parse-datetime: document the newly accepted format
[gnulib.git] / ChangeLog
1 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2
3         parse-datetime: document the newly accepted format
4         * doc/parse-datetime.texi (Combined date and time of day items):
5         New section.
6
7 2011-09-06  Bruno Haible  <bruno@clisp.org>
8
9         acl: Fix a test failure on newer Solaris 10 with ZFS.
10         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11         ENOSYS as no ACL.
12         Reported by Jim Meyering.
13
14 2011-09-06  Bruno Haible  <bruno@clisp.org>
15
16         acl: Update for AIX >= 5.3 with NFS.
17         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
18         ENOSYS as no ACL.
19
20         acl: Fix a test failure on AIX >= 5.3 with NFS.
21         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
22         as no ACL.
23
24 2011-09-06  Bruno Haible  <bruno@clisp.org>
25
26         acl: Fix a test failure on IRIX 6.5 with NFS.
27         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
28         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
29         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
30         * lib/copy-acl.c (qcopy_acl): Likewise.
31
32 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33
34         openat: port to AIX 7.1 with large files
35         AIX 7.1 does a "#define openat open64at" if large files are in use,
36         so we can't simply #undef openat.  Use the orig_openat trick (similar
37         to orig_open in lib/open.c) to work around the problem.  Problem
38         reported by Kevin Brott for GNU tar, in the thread containing
39         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
40         * lib/openat.c (__need_system_fcntl_h): Define first.
41         Include <fcntl.h> and <sys/types.h> before undefining.
42         (orig_openat) [HAVE_OPENAT]: New inline function.
43         (openat) [HAVE_OPENAT]: Do not undef.
44         (rpl_openat): Use orig_openat, not openat.
45
46 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
47             Bruno Haible  <bruno@clisp.org>
48
49         acl: Avoid errors on NonStop Kernel.
50         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
51         ENOTSUP errors.
52
53 2011-09-05  Bruno Haible  <bruno@clisp.org>
54
55         acl: Clean up Solaris code.
56         * lib/acl-internal.h: Remove no-op #if.
57         * lib/file-has-acl.c: Likewise.
58         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
59         * lib/copy-acl.c (qcopy_acl): Likewise.
60
61 2011-09-05  Bruno Haible  <bruno@clisp.org>
62
63         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
64         binaries built on the original Solaris 10.
65         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
66         trivial.
67
68 2011-09-05  Bruno Haible  <bruno@clisp.org>
69
70         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
71         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
72         10.
73         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
74         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
75         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
76         instead of acl_get, facl_get, acl_set, facl_set.
77
78 2011-09-05  Bruno Haible  <bruno@clisp.org>
79
80         copy-file: Try unit tests on more file systems.
81         * tests/test-copy-file-1.sh: New file.
82         * tests/test-copy-file-2.sh: New file.
83         * modules/copy-file-tests (Files): Add them.
84         (Makefile.am): Add them to TESTS.
85
86         acl: Try unit tests on more file systems.
87         * tests/test-file-has-acl-1.sh: New file.
88         * tests/test-file-has-acl-2.sh: New file.
89         * tests/test-set-mode-acl-1.sh: New file.
90         * tests/test-set-mode-acl-2.sh: New file.
91         * tests/test-copy-acl-1.sh: New file.
92         * tests/test-copy-acl-2.sh: New file.
93         * modules/acl-tests (Files): Add them.
94         (Makefile.am): Add them to TESTS.
95
96 2011-09-04  Bruno Haible  <bruno@clisp.org>
97
98         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
99         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
100         10.
101         (OLD_ALLOW, OLD_DENY): New macros.
102         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
103         ACE_ACCESS_ALLOWED_ACE_TYPE.
104         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
105         ACE_ACCESS_DENIED_ACE_TYPE.
106         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
107         (NEW_ACE_EXECUTE): Fix value.
108         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
109         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
110         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
111         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
112         NEW_ACE_SYNCHRONIZE): New macros.
113         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
114         instead of acl_fromtext, acl_set, facl_set.
115         Fixes a coreutils/tests/cp/perm failure.
116
117 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
118
119         openat: test for fstatat (..., 0) bug
120         Further testing with tar suggests that fstatat (..., 0)
121         does not work in general, on AIX 7.1; see
122         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
123         So, give up entirely on AIX 7.1's fstatat, and fall back on our
124         replacement fstatat (which is what older AIX releases were using
125         anyway).
126         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
127         use is now changed to orig_fstatat.  This was probably the right
128         thing to do anyway.
129         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
130         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
131         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
132         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
133         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
134         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
135         if the bug is found.
136
137         openat: test for fstatat (AT_FDCWD, ..., 0) bug
138         This tests for another fstatat bug on AIX 7.1:
139         fstatat (AT_FDCWD, ..., 0) does not work.  See
140         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
141         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
142         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
143         (rpl_fstatat): Adjust so that it works around either (or both)
144         bugs if present.
145         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
146
147 2011-09-03  Karl Berry  <karl@gnu.org>
148
149         * doc/regex.texi (Character Class Operators): Avoid literal ":"
150         in index entries.
151
152 2011-09-02  Bruno Haible  <bruno@clisp.org>
153
154         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
155         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
156         values of AR, ARFLAGS, RANLIB.
157         Reported by John W. Eaton <jwe@gnu.org> for Octave.
158
159 2011-09-02  Bruno Haible  <bruno@clisp.org>
160
161         Find 'ar' program that fits with --host argument.
162         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
163
164 2011-09-02  Bruno Haible  <bruno@clisp.org>
165
166         tests: init.sh: Support any non-GNU diff.
167         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
168         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
169         Solaris 8.
170
171 2011-09-02  Bruno Haible  <bruno@clisp.org>
172
173         tests: init.sh: work also with any non-GNU diff that supports -u
174         * tests/init.sh: Relax check for diff -u support.
175         Rather than checking for GNU diff via --version, simply check
176         for support for -u itself.  Useful at least on OpenBSD 4.9,
177         AIX 7.1, IRIX 6.5, and Solaris 10.
178
179 2011-09-01  Bruno Haible  <bruno@clisp.org>
180
181         strtoimax, strtoumax: Document problem on HP-UX 11.
182         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
183         * doc/posix-functions/strtoumax.texi: Likewise.
184
185 2011-09-01  Bruno Haible  <bruno@clisp.org>
186
187         strtoumax: Avoid link error on OSF/1 with DTK cc.
188         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
189         defined as a function.
190         * modules/strtoumax (Depends-on, configure.ac): Test only whether
191         strtoumax is defined, not whether it is declared.
192
193 2011-09-01  Bruno Haible  <bruno@clisp.org>
194
195         strtoimax: Avoid link error on OSF/1 with DTK cc.
196         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
197         defined as a function.
198         * modules/strtoimax (Depends-on, configure.ac): Test only whether
199         strtoimax is defined, not whether it is declared.
200
201 2011-09-01  Bruno Haible  <bruno@clisp.org>
202
203         imaxdiv: Avoid link error on OSF/1 with DTK cc.
204         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
205         as a function.
206         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
207         whether it is declared.
208
209 2011-09-01  Bruno Haible  <bruno@clisp.org>
210
211         imaxabs: Avoid link error on OSF/1 with DTK cc.
212         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
213         as a function.
214         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
215         whether it is declared.
216
217 2011-09-01  Bruno Haible  <bruno@clisp.org>
218
219         Tests for module 'strtoumax'.
220         * modules/strtoumax-tests: New file.
221         * tests/test-strtoumax.c: New file.
222
223         Tests for module 'strtoimax'.
224         * modules/strtoimax-tests: New file.
225         * tests/test-strtoimax.c: New file.
226
227         Tests for module 'imaxdiv'.
228         * modules/imaxdiv-tests: New file.
229         * tests/test-imaxdiv.c: New file.
230
231         Tests for module 'imaxabs'.
232         * modules/imaxabs-tests: New file.
233         * tests/test-imaxabs.c: New file.
234
235 2011-09-01  Bruno Haible  <bruno@clisp.org>
236
237         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
239         pthread_create.
240
241 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
242
243         openat: work around AIX 7.1 fstatat issue
244         This should fix the problem that was not properly fixed
245         in the previous change, dated 2011-08-30.
246         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
247         __need_system_stat_h defined.
248         (orig_fstatat) [HAVE_FSTATAT]: New function.
249         (rpl_fstatat): Go back to the old way of doing things,
250         except call orig_fstatat instead of fstatat.
251         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
252         Remove unnecessary check whether fstatat fills in st_size etc.
253
254 2011-09-01  Bruno Haible  <bruno@clisp.org>
255
256         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
257         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
258         just include the system's header.
259
260 2011-08-31  Jim Meyering  <meyering@redhat.com>
261
262         tests: avoid spurious assertion failure in test-float.c on ppc64
263         * tests/test-float.c (test_long_double): Comment out an assertion,
264         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
265         with gcc-4.4.4.
266
267         maint: indent with spaces, not TABs
268         I need to get in the habit of running gnulib's "make check".
269         Both of these would have been caught.
270         * m4/largefile.m4: Indent with spaces, not TABs.
271         * lib/parse-datetime.y (iso_8601_time): Likewise.
272         Spotted by Pádraig Brady.
273
274         test-parse-datetime.c: accommodate a relatively strict gcc warning
275         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
276         to avoid a warning from gcc's -Werror=missing-declarations.
277         Insert a few spaces-before-funcall-parenthesis.
278
279 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
280
281         parse-datetime: accept ISO 8601 date and time rep with "T" separator
282         The parser now accepts ISO 8601 date-time strings with "T" as the
283         separator.  It has long parsed dates like "2004-02-29 16:21:42"
284         with a space between the date and time strings.  Now it also parses
285         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
286         variants like "2004-02-29T16:21:42.333-07:00"
287         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
288         of day representation using the 'T' separator character.
289         * doc/parse-datetime.texi (General date syntax): replace use of
290         deprecated --iso-8601 option with --rfc-3339 in example of date
291         command output formats that can be parsed.
292         * tests/test-parse-datetime.c (tm_diff): New function, taken from
293         lib/parse-datetime.y.
294         (gmt_offset): New function.
295         (main): Add additional test cases to validate ISO8601 extended
296         date and time of day parsing.
297
298 2011-08-31  Bruno Haible  <bruno@clisp.org>
299
300         freopen: Documentation.
301         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
302         name.
303         Reported by Claudio Bley <claudio.bley@gmail.com>.
304
305 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
306
307         freopen: Don't crash if the filename argument is NULL.
308         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
309         NULL.
310
311 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
312
313         openat: work around AIX 7.1 fstatat bug
314         Problem reported by Kevin Brott for GNU tar, in the thread containing
315         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
316         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
317         FSTATAT_ST_SIZE_ETC_BROKEN.
318         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
319         rpl_fstatat.
320         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
321         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
322         AC_CHECK_FUNCS_ONCE for fstatat.
323         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
324         fchmodat, mkdirat, openat and unlinkat.
325
326 2011-08-30  Bruno Haible  <bruno@clisp.org>
327
328         Avoid endless recursions if config.h includes some header files.
329         * lib/fopen.c (__need_FILE): Define already before including config.h.
330         * lib/freopen.c (__need_FILE): Likewise.
331         * lib/open.c (__need_system_fcntl_h): Likewise.
332         * lib/stat.c (__need_system_sys_stat_h): Likewise.
333         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
334         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
335
336 2011-08-25  Karl Berry  <karl@gnu.org>
337
338         * config/srclist.txt (ylwrap): new try.
339         * build-aux/ylwrap: new file.
340
341 2011-08-23  Bruno Haible  <bruno@clisp.org>
342
343         tmpdir: Use a good default directory on native Windows.
344         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
345         (P_tmpdir): Default to _P_tmpdir on native Windows.
346         (path_search): On native Windows, try the value returned by GetTempPath
347         before trying P_tmpdir.
348         * modules/tmpdir (Depends-on): Add pathmax.
349         Suggested by John Darrington <john@darrington.wattle.id.au>.
350
351 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
352
353         doc: fix typo in README-release
354         * top/README-release: Capitalize first word of a sentence.
355
356 2011-08-19  Jim Meyering  <meyering@redhat.com>
357
358         fts: do not exhaust memory when processing million-entry directories
359         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
360         directory would require about 256*N bytes of memory.  Thus, it was
361         easy to construct a directory too large to be processed by any of
362         those tools.  With this change, fts' maximum memory utilization is
363         now limited to around 30MB.
364         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
365         (fts_read): When we've processed the final entry (i.e., when
366         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
367         using the parent entry to read any remaining entries.  Dispatch
368         depending on what fts_build returns:
369         - NULL+stop, aka failure: stop
370         - NULL otherwise: move up in the dir hierarchy
371         - non-NULL: handle this new entry
372         (fts_build): Declare and use new local, continue_readdir.
373         Prepare to be called from fts_read, when the entries
374         from a partially-read directory have just been exhausted.
375         In that case, we'll skip the opendir and instead use the parent's
376         fts_dirp and derive dir_fd from that.
377         Finally, in the readdir loop, if we read max_entries entries,
378         exit the loop ensuring *not* to call closedir.  This is required
379         so that fts_dirp can be reused on a subsequent call.
380         Prompted by Ben England's report of memory exhaustion in find
381         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
382
383         maint: fts: move decl of `dp' down into while loop; split a long line
384         * lib/fts.c (fts_build): No semantic change.
385
386         fts: add/use new struct member, fts_dirp
387         We are about to use this to manage any directory with
388         too many entries to read all of them into memory at once.
389         To do that, we'll need to save the DIR* pointer in each
390         affected FTSENT struct.
391         * lib/fts_.h: Include <dirent.h>.
392         (struct FTSENT) [fts_dirp]: New member.
393         * lib/fts.c (closedir_and_clear): Define.
394         Use it in place of closedir so that we are sure to
395         clear the new fts_dirp member when done with it.
396         (fts_alloc): Initialize the new member.
397         (fts_lfree): Free, if needed.
398
399         maint: fts: give __opendir2 a new parameter and rename
400         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
401         than surreptitiously using sole caller's "dir_fd".
402         (fts_opendir): Rename from __opendir2.
403
404         maint: fts.c: remove __opendir2's now-unused parameter, oflag
405         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
406
407         maint: fts.c: correct off-by-one indentation
408         * lib/fts.c (fts_build): Correct indentation, change style
409         of a couple of block comments, and bracing style.
410
411         maint: fts.c: move __opendir2 #define "up" out of function body
412         * lib/fts.c (__opendir2): Move "up".  No semantic change.
413
414         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
415         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
416         out for a long time and besides was useful only on BSD systems.
417
418 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
419
420         regex: port to Stratus OpenVOS
421         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
422         define to empty, rather than attempting nonportable optimizations.
423         Problem reported by Paul Green in:
424         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
425         and fix suggested by Eric Blake in:
426         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
427
428 2011-08-17  Eric Blake  <eblake@redhat.com>
429
430         getcwd: fix test failures on mingw
431         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
432         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
433         test if long directory cannot be created, and allow mingw errno.
434
435         getcwd-lgpl: fix m4 to match relaxed test for BSD
436         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
437         (gl_FUNC_GETCWD_SIGNATURE): New macro.
438         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
439         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
440         signature problem.
441
442         getcwd: fix compilation on mingw64
443         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
444         getcwd.
445         Reported by Marc-André Lureau.
446
447         pipe2: silence compiler warning
448         * lib/pipe2.c (pipe2): Hide label if it is not used.
449
450 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
451
452         relocatable-prog: fix link error
453         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
454         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
455         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
456         into modules/relocatable-lib without noticing that
457         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
458         also needs to build relocatable.c.
459
460 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
461
462         getaddrinfo: fix sh typo in gai_strerrorA decl checking
463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
464         shell code: it contained a 'break' that was not in a loop.
465         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
466         via a shell-language loop; this may have been true in old Autoconf
467         versions, but it's not true in Autoconf 2.68.  I found this bug
468         when testing coreutils git on Solaris 8, whose shell complains
469         about the syntax error.
470
471 2011-08-12  Simon Josefsson  <simon@josefsson.org>
472
473         * lib/base64.c: Fix comment to reference RFC 4648.
474         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
475         <gvtulder@gmail.com>.
476
477 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
478
479         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
480
481         po/Makefile.in.in: fix make -q problem
482         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
483         rule, since there's no file named 'check-macro-version' and its
484         use as a file breaks make -q.
485         (all): Don't depend on check-macro-version.
486         (CHECK_MACRO_VERSION): New macro.
487         (stamp-po): Use it.
488
489         configmake: fix make -q problem
490         * modules/configmake (configmake.h): Update configmake.h's time stamp
491         even if the file does not change.  Otherwise, 'make -q' fails.
492         Problem reported by Simon Josefsson in
493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
494
495 2011-08-11  Jim Meyering  <meyering@redhat.com>
496
497         git-version-gen: correct the advice in a comment
498         * build-aux/git-version-gen: Correct comment.
499         Don't recommend to list .tarball-version in .gitignore.
500
501 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
502
503         base64: fix off-by-one buffer size bug
504         Problem and (trivial) fix reported by Gijs van Tulder in
505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
506         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
507         * tests/test-base64.c (main): Catch the bug.
508
509 2011-08-10  Eric Blake  <eblake@redhat.com>
510
511         closein: correct comments
512         * lib/closein.c (close_stdin): Improve comments.
513
514 2011-08-09  Bruno Haible  <bruno@clisp.org>
515
516         More tests for 'fseeko'.
517         * tests/test-fseeko3.c: New file, from Eric Blake.
518         * tests/test-fseeko3.sh: New file.
519         * modules/fseeko-tests (Files): Add them.
520         (TESTS): Add test-fseeko3.sh.
521         (check_PROGRAMS): Add test-fseeko3.
522
523 2011-08-09  Eric Blake  <eblake@redhat.com>
524
525         fseeko: remove unneeded hack
526         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
527
528         fseeko: fix bug on glibc
529         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
530         Reported by John W. Eaton.
531
532 2011-08-08  Bruno Haible  <bruno@clisp.org>
533
534         unictype/base: Fix interoperability with preinstalled libunistring.
535         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
536         Reported by Simon Josefsson.
537
538 2011-08-08  Bruno Haible  <bruno@clisp.org>
539
540         iswblank: Detect declaration correctly.
541         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
542         AC_CHECK_DECLS invocation.
543
544 2011-08-08  Bruno Haible  <bruno@clisp.org>
545
546         tcgetsid: Detect declaration correctly.
547         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
548         AC_CHECK_DECLS invocation.
549         Reported by Simon Josefsson.
550
551 2011-08-08  Eric Blake  <eblake@redhat.com>
552
553         largefile: fix typo that regressed large file support
554         * modules/largefile (configure.ac-early): Fix section name.
555
556 2011-08-06  Karl Berry  <karl@gnu.org>
557
558         * MODULES.html.sh (func_all_files): _Noreturn is no longer
559         a separate module.
560
561 2011-08-05  Simon Josefsson  <simon@josefsson.org>
562
563         openat: Fix warnings and commens when building unlinkat.c on Hurd.
564         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
565         get prototype for free.
566
567 2011-08-04  Bruno Haible  <bruno@clisp.org>
568
569         Tests for module 'pathmax'.
570         * modules/pathmax-tests: New file.
571         * tests/test-pathmax.c: New file.
572
573         canonicalize-lgpl: Support larger filenames on the Hurd.
574         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
575         Reported by Paul Eggert.
576
577         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
578         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
579         * lib/chdir-long.h: Include pathmax.h.
580         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
581         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
582         (PATH_MAX): Remove code that is done by pathmax.h.
583         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
584         * lib/tmpfile.c: Add a comment.
585         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
586         * modules/chdir-long (Depends-on): Add pathmax.
587         * modules/getcwd (Depends-on): Add pathmax.
588         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
589         is not defined.
590         * doc/posix-headers/limits.texi: Mention the pathmax module.
591         * NEWS: Mention the change.
592
593 2011-08-02  Bruno Haible  <bruno@clisp.org>
594
595         pthread_sigmask: Actually use results of gl_THREADLIB.
596         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
597         gl_THREADLIB, not gl_[]THREADLIB.
598         Reported by Eric Blake.
599
600 2011-08-02  Jim Meyering  <meyering@redhat.com>
601
602         maint.mk: relax the default _gl_TS_function_match regexp
603         * top/maint.mk (_gl_TS_function_match): Don't require at least one
604         space between function name and "(" in an "extern" declaration.
605         That would fail to match a decl with no space there: extern void foo();
606
607 2011-07-31  Iain Nicol  <iain@thenicols.net>
608
609         git-version-gen: document that EXTRA_DIST must include .version
610         * build-aux/git-version-gen: In the how-to-use comment, document
611         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
612         will fail when run from an unpacked distribution tarball.
613
614 2011-08-01  Bruno Haible  <bruno@clisp.org>
615
616         wctype-h: Fix last change.
617         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
618         REPLACE_TOWLOWER to 0.
619         Reported by Sam Steingold <sds@gnu.org>.
620
621 2011-07-31  Bruno Haible  <bruno@clisp.org>
622
623         frexpl: Update autoconf test.
624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
625         according to changes of 2011-06-20.
626
627 2011-07-31  Bruno Haible  <bruno@clisp.org>
628
629         sys_utsname: Add support for Minix.
630         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
631         <sys/utsname.h>.
632         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
633         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
634
635 2011-07-31  Bruno Haible  <bruno@clisp.org>
636
637         strings: Add support for Minix.
638         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
639         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
640         * doc/posix-headers/strings.texi: Document the Minix problem.
641
642 2011-07-31  Bruno Haible  <bruno@clisp.org>
643
644         wctype-h: Add support for Minix.
645         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
646         REPLACE_TOWLOWER.
647         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
648         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
649         REPLACE_ISWCNTRL.
650
651 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
652
653         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
654         This is a performance improvement for 64-bit hosts: it causes the
655         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
656
657 2011-07-31  Bruno Haible  <bruno@clisp.org>
658
659         stdioext: Add support for Minix.
660         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
661         * lib/fpurge.c (fpurge): Likewise.
662         * lib/freadahead.c (freadahead): Likewise.
663         * lib/freadable.c (freadable): Likewise.
664         * lib/freading.c (freading): Likewise.
665         * lib/freadptr.c (freadptr): Likewise.
666         * lib/freadseek.c (freadptrinc): Likewise.
667         * lib/fseeko.c (rpl_fseeko): Likewise.
668         * lib/fseterr.c (fseterr): Likewise.
669         * lib/fwritable.c (fwritable): Likewise.
670         * lib/fwriting.c (fwriting): Likewise.
671         * lib/fflush.c (clear_ungetc_buffer): Update comment.
672         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
673
674 2011-07-31  Bruno Haible  <bruno@clisp.org>
675
676         errno: Port to Minix.
677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
678         ECONNABORTED are defined.
679         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
680         GNULIB_defined_ECONNABORTED): New macros.
681         * lib/strerror-override.h (strerror_override): Test also
682         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
683         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
684         ECONNABORTED.
685         * doc/posix-headers/errno.texi: Mention the Minix problem.
686
687 2011-07-31  Bruno Haible  <bruno@clisp.org>
688
689         Work around declaration collisions on Minix.
690         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
691         defined, set REPLACE_MBSINIT.
692         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
693         defined, set REPLACE_MBRTOWC.
694         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
695         set REPLACE_MBRLEN.
696         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
697         defined, set REPLACE_MBSRTOWCS.
698         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
699         defined, set REPLACE_WCRTOMB.
700         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
701         defined, set REPLACE_WCSRTOMBS.
702
703 2011-07-31  Bruno Haible  <bruno@clisp.org>
704
705         Add support for Minix with ACK compiler.
706         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
707         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
708         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
709
710 2011-07-31  Bruno Haible  <bruno@clisp.org>
711
712         Documentation about Minix.
713         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
714         * doc/glibc-headers/*.texi: Likewise.
715         * doc/posix-functions/*.texi: Likewise.
716         * doc/glibc-functions/*.texi: Likewise.
717
718 2011-07-31  Bruno Haible  <bruno@clisp.org>
719
720         snippet/warn-on-use: Fix indentation.
721         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
722
723 2011-07-25  Jim Meyering  <meyering@redhat.com>
724
725         tests: test-update-copyright.sh: remove unnecessary "rm" commands
726         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
727         commands.
728
729 2011-07-27  Jim Meyering  <meyering@redhat.com>
730
731         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
732         * top/maint.mk (gl_extract_significant_defines_): Now that
733         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
734         gnulib/lib/signal.in.h, and now that we recommend to
735         define-if-undefined those two symbols in application code,
736         we must filter them out of the "significant" list.
737         This avoids a "make syntax-check" failure in coreutils.
738
739 2011-07-26  Eric Blake  <eblake@redhat.com>
740
741         warnings: add comments about previous patch
742         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
743         * m4/include_next.m4: Likewise.
744         * m4/warn-on-use.m4: Likewise.
745         * m4/warnings.m4: Likewise, and simplify use.
746         Suggested by Stefano Lattarini.
747
748         include-next, warnings: support older autoconf
749         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
750         AS_VAR_PUSHDEF in a way that works with older autoconf.
751         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
752         Reported by Daniel P. Berrange.
753
754 2011-07-25  Bruno Haible  <bruno@clisp.org>
755
756         fseek, ftell: Fix doc.
757         * doc/posix-functions/fseek.texi: Reword statement about
758         AC_SYS_LARGEFILE.
759         * doc/posix-functions/ftell.texi: Likewise.
760
761 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
762             Bruno Haible  <bruno@clisp.org>
763
764         Add dependencies to the 'largefile' module.
765         * modules/fopen (Depends-on): Add 'largefile'.
766         * modules/freopen (Depends-on): Likewise.
767         * modules/fseeko (Depends-on): Likewise.
768         * modules/ftello (Depends-on): Likewise.
769         * modules/glob (Depends-on): Likewise.
770         * modules/lseek (Depends-on): Likewise.
771         * modules/lstat (Depends-on): Likewise.
772         * modules/mkostemp (Depends-on): Likewise.
773         * modules/mkostemps (Depends-on): Likewise.
774         * modules/mkstemp (Depends-on): Likewise.
775         * modules/mkstemps (Depends-on): Likewise.
776         * modules/open (Depends-on): Likewise.
777         * modules/openat (Depends-on): Likewise.
778         * modules/pread (Depends-on): Likewise.
779         * modules/pwrite (Depends-on): Likewise.
780         * modules/scandir (Depends-on): Likewise.
781         * modules/stat (Depends-on): Likewise.
782         * modules/tmpfile (Depends-on): Likewise.
783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
784         since the containing module now depends on the largefile module.
785         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
786         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
787         off_t is fixed by gnulib.
788         * doc/posix-functions/freopen.texi: Likewise.
789         * doc/posix-functions/fseeko.texi: Likewise.
790         * doc/posix-functions/fstatat.texi: Likewise.
791         * doc/posix-functions/ftello.texi: Likewise.
792         * doc/posix-functions/glob.texi: Likewise.
793         * doc/posix-functions/lseek.texi: Likewise.
794         * doc/posix-functions/lstat.texi: Likewise.
795         * doc/posix-functions/mkstemp.texi: Likewise.
796         * doc/posix-functions/open.texi: Likewise.
797         * doc/posix-functions/openat.texi: Likewise.
798         * doc/posix-functions/pread.texi: Likewise.
799         * doc/posix-functions/pwrite.texi: Likewise.
800         * doc/posix-functions/scandir.texi: Likewise.
801         * doc/posix-functions/stat.texi: Likewise.
802         * doc/posix-functions/tmpfile.texi: Likewise.
803         * doc/glibc-functions/mkostemp.texi: Likewise.
804         * doc/glibc-functions/mkostemps.texi: Likewise.
805         * doc/glibc-functions/mkstemps.texi: Likewise.
806
807 2011-07-25  Bruno Haible  <bruno@clisp.org>
808
809         fcntl: Move AC_LIBOBJ invocation to module description.
810         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
811         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
812
813         fcntl: Remove call-in from fchdir.m4.
814         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
816
817         dup3: Remove potential call-in from fchdir.m4.
818         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
820
821         dup2: Move AC_LIBOBJ invocation to module description.
822         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
823         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
824         Don't invoke AC_LIBOBJ.
825         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
826
827         dup2: Remove call-in from fchdir.m4.
828         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
830
831         fclose: Move AC_LIBOBJ invocation to module description.
832         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
833         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
834         to 1.
835         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
836
837         fclose: Remove call-in from close.m4.
838         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
839         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
840
841         close: Move AC_LIBOBJ invocation to module description.
842         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
843         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
844         1.
845         * modules/close (configure.ac): Invoke AC_LIBOBJ.
846
847         close: Remove call-in from fchdir.m4.
848         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
850
851         open: Move AC_LIBOBJ invocation to module description.
852         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
853         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
854         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
855
856         open: Remove call-in from fchdir.m4.
857         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
859
860         fchdir: Start to remove gl_REPLACE_* idiom.
861         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
862         (gl_FUNC_FCHDIR): Invoke it.
863
864 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
865
866         * lib/ftell.c (ftell): Comment out cast.
867
868         close: use gl_REPLACE_FCLOSE only if defined
869         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
870         is defined.  The close module doesn't depend on the fclose module
871         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
873         I reproduced the problem with "./gnulib-tool --test close sys_socket".
874
875 2011-07-24  Jim Meyering  <meyering@redhat.com>
876
877         test-select.h: avoid warning when using gcc's -Wmissing-declarations
878         * tests/test-select.h (test_function): Declare as "static".
879
880 2011-07-24  Bruno Haible  <bruno@clisp.org>
881
882         doc: Mention the effects of AC_SYS_LARGEFILE.
883         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
884         on this function.
885         * doc/posix-functions/aio_error.texi: Likewise.
886         * doc/posix-functions/aio_fsync.texi: Likewise.
887         * doc/posix-functions/aio_read.texi: Likewise.
888         * doc/posix-functions/aio_return.texi: Likewise.
889         * doc/posix-functions/aio_suspend.texi: Likewise.
890         * doc/posix-functions/aio_write.texi: Likewise.
891         * doc/posix-functions/fgetpos.texi: Likewise.
892         * doc/posix-functions/fopen.texi: Likewise.
893         * doc/posix-functions/freopen.texi: Likewise.
894         * doc/posix-functions/fsetpos.texi: Likewise.
895         * doc/posix-functions/fstatvfs.texi: Likewise.
896         * doc/posix-functions/ftruncate.texi: Likewise.
897         * doc/posix-functions/ftw.texi: Likewise.
898         * doc/posix-functions/getrlimit.texi: Likewise.
899         * doc/posix-functions/glob.texi: Likewise.
900         * doc/posix-functions/lio_listio.texi: Likewise.
901         * doc/posix-functions/lockf.texi: Likewise.
902         * doc/posix-functions/mkstemp.texi: Likewise.
903         * doc/posix-functions/mmap.texi: Likewise.
904         * doc/posix-functions/nftw.texi: Likewise.
905         * doc/posix-functions/openat.texi: Likewise.
906         * doc/posix-functions/opendir.texi: Likewise.
907         * doc/posix-functions/posix_fadvise.texi: Likewise.
908         * doc/posix-functions/posix_fallocate.texi: Likewise.
909         * doc/posix-functions/pread.texi: Likewise.
910         * doc/posix-functions/pwrite.texi: Likewise.
911         * doc/posix-functions/readdir.texi: Likewise.
912         * doc/posix-functions/readdir_r.texi: Likewise.
913         * doc/posix-functions/rewinddir.texi: Likewise.
914         * doc/posix-functions/scandir.texi: Likewise.
915         * doc/posix-functions/seekdir.texi: Likewise.
916         * doc/posix-functions/setrlimit.texi: Likewise.
917         * doc/posix-functions/statvfs.texi: Likewise.
918         * doc/posix-functions/telldir.texi: Likewise.
919         * doc/posix-functions/tmpfile.texi: Likewise.
920         * doc/posix-functions/truncate.texi: Likewise.
921         * doc/glibc-functions/fallocate.texi: Likewise.
922         * doc/glibc-functions/fstatfs.texi: Likewise.
923         * doc/glibc-functions/fts_children.texi: Likewise.
924         * doc/glibc-functions/fts_read.texi: Likewise.
925         * doc/glibc-functions/getdirentries.texi: Likewise.
926         * doc/glibc-functions/mkostemp.texi: Likewise.
927         * doc/glibc-functions/mkostemps.texi: Likewise.
928         * doc/glibc-functions/mkstemps.texi: Likewise.
929         * doc/glibc-functions/preadv.texi: Likewise.
930         * doc/glibc-functions/pwritev.texi: Likewise.
931         * doc/glibc-functions/sendfile.texi: Likewise.
932         * doc/glibc-functions/statfs.texi: Likewise.
933
934 2011-07-24  Bruno Haible  <bruno@clisp.org>
935
936         doc: Fix typo.
937         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
938
939 2011-07-24  Bruno Haible  <bruno@clisp.org>
940
941         doc: Mention fsusage.
942         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
943
944 2011-07-24  Bruno Haible  <bruno@clisp.org>
945
946         doc: Mention new glibc headers and functions.
947         * doc/glibc-headers/gshadow.texi: New file.
948         * doc/glibc-functions/endsgent.texi: New file.
949         * doc/glibc-functions/fgetsgent.texi: New file.
950         * doc/glibc-functions/fgetsgent_r.texi: New file.
951         * doc/glibc-functions/getsgent.texi: New file.
952         * doc/glibc-functions/getsgent_r.texi: New file.
953         * doc/glibc-functions/getsgnam.texi: New file.
954         * doc/glibc-functions/getsgnam_r.texi: New file.
955         * doc/glibc-functions/putsgent.texi: New file.
956         * doc/glibc-functions/setsgent.texi: New file.
957         * doc/glibc-functions/sgetsgent.texi: New file.
958         * doc/glibc-functions/sgetsgent_r.texi: New file.
959         * doc/glibc-functions/malloc_info.texi: New file.
960         * doc/glibc-functions/preadv.texi: New file.
961         * doc/glibc-functions/pwritev.texi: New file.
962         * doc/glibc-functions/register_printf_modifier.texi: New file.
963         * doc/glibc-functions/register_printf_specifier.texi: New file.
964         * doc/glibc-functions/register_printf_type.texi: New file.
965         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
966         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
967         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
968         * doc/glibc-functions/pthread_getname_np.texi: New file.
969         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
970         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
971         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
972         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
973         * doc/glibc-functions/pthread_setname_np.texi: New file.
974         * doc/glibc-functions/pthread_sigqueue.texi: New file.
975         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
976         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
977         * doc/glibc-functions/qsort_r.texi: New file.
978         * doc/glibc-functions/quick_exit.texi: New file.
979         * doc/glibc-functions/syncfs.texi: New file.
980         * doc/gnulib.texi: Include them.
981         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
982         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
983         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
984         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
985         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
986         * doc/glibc-functions/execvpe.texi: Likewise.
987
988 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
989
990         ftell: don't include <unistd.h>
991         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
992         guaranteed to define off_t, and the ftell module depends on the
993         stdio module.
994
995         ftell: do not assume wraparound signed arithmetic
996         * lib/ftell.c: Include <limits.h>.
997         (ftell): Don't assume wraparound signed arithmetic.
998
999 2011-07-24  Bruno Haible  <bruno@clisp.org>
1000
1001         close: No longer depend on module 'fclose'.
1002         * modules/close (Depends-on): Remove fclose.
1003         * NEWS: Mention the change.
1004         Suggested by Sam Steingold <sds@gnu.org>.
1005
1006 2011-07-24  Bruno Haible  <bruno@clisp.org>
1007
1008         fsusage: Enable large volume support on AIX >= 5.2.
1009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1010         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1011         instead of STAT_STATVFS.
1012         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1013
1014         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1016         f_blocks field only on MacOS X.
1017
1018         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1020         * modules/fsusage (Depends-on): Add largefile.
1021
1022 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1023
1024         * README: Modernize discussion of signed integers.
1025         Assuming overflow wraparound is no longer safe.
1026         Mention ones' complement and signed magnitude.
1027
1028 2011-07-22  Bruno Haible  <bruno@clisp.org>
1029
1030         select tests, pselect tests: Refactor.
1031         * tests/test-select.h: New file, extracted from tests/test-select.c.
1032         (select_fn): New type.
1033         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1034         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1035         test_pipe): Add my_select argument.
1036         (test_function): Renamed from main. Add my_select argument.
1037         * tests/test-select.c: Move most code to tests/test-select.h. Include
1038         test-select.h.
1039         * modules/select-tests (Files): Add tests/test-select.h.
1040         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1041         (my_select, main): New functions.
1042         * modules/pselect-tests (Files): Add tests/test-select.h,
1043         tests/macros.h, tests/signature.h.
1044         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1045         (configure.ac): Check for <sys/wait.h>.
1046
1047 2011-07-22  Bruno Haible  <bruno@clisp.org>
1048
1049         sys_select tests: Check the signature of FD_*.
1050         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1051         signature tests from here...
1052         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1053         here.
1054         * modules/sys_select-tests (Files): Add tests/signature.h.
1055
1056 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         largefile: new module, replacing large-inode
1059         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1060         * MODULES.html.sh: Add largefile, remove large-inode.
1061         * modules/largefile, m4/largefile.m4: New files.
1062         * modules/large-inode, m4/large-inode.m4: Remove.
1063
1064         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1065         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1066         implementations that use only 32 bits to count blocks.
1067         On typical hosts with 1024-byte blocks, this fails with file
1068         systems as small as 4 TiB.  Problem reported by Herb Wartens
1069         <http://debbugs.gnu.org/9140> and this should also fix a similar
1070         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1071
1072         large-inode: New module
1073         * MODULES.html.sh: Add it.
1074         * modules/large-inode, m4/large-inode.m4: New files.
1075
1076         extensions: Enable extensions on MacOS X 10.5 and later.
1077         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1078
1079 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1080
1081         file-has-acl: use acl_extended_file_nofollow if available
1082         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1083         (acl_extended_file): New macro.
1084         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1085         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1086
1087 2011-07-21  Bruno Haible  <bruno@clisp.org>
1088
1089         Declare system functions in a way that works with C++.
1090         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1091         declare fdopendir as extern "C".
1092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1093         declare frexpl as extern "C".
1094         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1095         declare gai_strerror as extern "C".
1096         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1097         programs, declare gai_strerror as extern "C".
1098         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1099         declare getlogin_r as extern "C".
1100         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1101         as extern "C".
1102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1103         declare ldexpl as extern "C".
1104         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1105         as extern "C".
1106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1107         program, declare getmntinfo as extern "C".
1108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1109         stpncpy as extern "C".
1110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1111         program, declare __xpg_strerror_r as extern "C".
1112         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1113         strndup as extern "C".
1114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1115         declare memset and bzero as extern "C".
1116         Reported by Sam Steingold <sds@gnu.org>.
1117
1118 2011-07-12  Jim Meyering  <meyering@redhat.com>
1119
1120         maint.mk: prohibit inclusion of "verify.h" without use
1121         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1122
1123 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1124
1125         timer-time: A new module to check for timer_settime()
1126         * m4/timer_time.m4: Check for the posix function.
1127         * modules/timer-time: Add the new module.
1128         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1129         Mention it.
1130
1131 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1132             Bruno Haible  <bruno@clisp.org>
1133
1134         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1135         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1136         not defined, assume POSIX threads and look for pthread_sigmask in
1137         $LIBS, without changing $CPPFLAGS.
1138
1139 2011-07-19  Bruno Haible  <bruno@clisp.org>
1140
1141         strstr: Update cross-compilation guess.
1142         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1143         CPUs, guess no, in view of glibc
1144         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1145         Suggested by Eric Blake. Reported by Reuben Thomas.
1146
1147 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1148
1149         getopt-gnu: suppress core dumps from detection code
1150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1151         to suppress core dumps that may well occur on glibc systems.
1152         * modules/getopt-gnu: Depend on nocrash.
1153
1154 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         pthread_sigmask: ensure usleep is declared
1157         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1158         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1159
1160 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1161
1162         doc: Document NonStop portability issues.
1163         * doc/posix-functions/sigaction.texi (sigaction):
1164         * doc/posix-headers/signal.texi (signal.h):
1165         Document NonStop.  See Joachim Schmitz in
1166         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1167
1168 2011-07-15  Bruno Haible  <bruno@clisp.org>
1169
1170         ffsl, ffsll: Avoid unportable behaviour.
1171         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1172
1173 2011-07-15  Bruno Haible  <bruno@clisp.org>
1174
1175         ffs: More tests.
1176         * tests/test-ffs.c (NBITS): New macro.
1177         (main): Add more tests.
1178         * tests/test-ffsl.c (NBITS): New macro.
1179         (main): Add more tests.
1180         * tests/test-ffsll.c (NBITS): New macro.
1181         (main): Add more tests.
1182
1183 2011-07-15  Eric Blake  <eblake@redhat.com>
1184
1185         ffsl, ffsll: new modules
1186         * modules/ffsl: New file.
1187         * modules/ffsll: Likewise.
1188         * m4/ffsl.m4: Likewise.
1189         * m4/ffsll.m4: Likewise.
1190         * lib/ffsl.c: Likewise.
1191         * lib/ffsl.h: Likewise.
1192         * lib/ffsll.c: Likewise.
1193         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1194         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1195         * modules/string (Makefile.am): Substitute witnesses.
1196         * lib/strings.in.h (ffsl, ffsll): Declare.
1197         * modules/ffsl-tests: New test file.
1198         * modules/ffsll-tests: Likewise.
1199         * tests/test-ffsl.c: Likewise.
1200         * tests/test-ffsll.c: Likewise.
1201         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1202         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1203         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1204
1205         ffs: fix m4 prerequisite
1206         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1207
1208         ffs: avoid undefined behavior
1209         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1210         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1211         Reported by Bruno Haible.
1212
1213 2011-07-12  Bruno Haible  <bruno@clisp.org>
1214
1215         pthread_sigmask: Rely on module 'threadlib'.
1216         * modules/pthread_sigmask (Depends-on): Add threadlib.
1217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1218         is defined.
1219
1220 2011-07-12  Bruno Haible  <bruno@clisp.org>
1221
1222         regex: Depend on module 'strcase'.
1223         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1224
1225 2011-07-12  Jim Meyering  <meyering@redhat.com>
1226
1227         warn-on-use: fix typo in file name
1228         * modules/snippet/warn-on-use (Files): Correct file name:
1229         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1230
1231 2011-07-12  Bruno Haible  <bruno@clisp.org>
1232
1233         strings: Document module.
1234         * doc/posix-headers/strings.texi: Mention module 'strings'.
1235
1236 2011-07-12  Bruno Haible  <bruno@clisp.org>
1237
1238         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1239         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1240         (Files, Makefile.am): Update.
1241         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1242         * modules/stdlib (Depends-on): Update.
1243
1244 2011-07-12  Bruno Haible  <bruno@clisp.org>
1245
1246         * NEWS: Mention the changes.
1247
1248         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1249         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1250         (Files, Makefile.am): Update.
1251         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1252         * modules/arpa_inet (Depends-on): Update.
1253         * modules/ctype (Depends-on): Update.
1254         * modules/dirent (Depends-on): Update.
1255         * modules/fcntl-h (Depends-on): Update.
1256         * modules/glob (Depends-on): Update.
1257         * modules/iconv-h (Depends-on): Update.
1258         * modules/inttypes-incomplete (Depends-on): Update.
1259         * modules/langinfo (Depends-on): Update.
1260         * modules/locale (Depends-on): Update.
1261         * modules/math (Depends-on): Update.
1262         * modules/netdb (Depends-on): Update.
1263         * modules/poll-h (Depends-on): Update.
1264         * modules/pty (Depends-on): Update.
1265         * modules/search (Depends-on): Update.
1266         * modules/signal (Depends-on): Update.
1267         * modules/spawn (Depends-on): Update.
1268         * modules/stdio (Depends-on): Update.
1269         * modules/stdlib (Depends-on): Update.
1270         * modules/string (Depends-on): Update.
1271         * modules/strings (Depends-on): Update.
1272         * modules/sys_file (Depends-on): Update.
1273         * modules/sys_ioctl (Depends-on): Update.
1274         * modules/sys_select (Depends-on): Update.
1275         * modules/sys_socket (Depends-on): Update.
1276         * modules/sys_stat (Depends-on): Update.
1277         * modules/sys_time (Depends-on): Update.
1278         * modules/sys_times (Depends-on): Update.
1279         * modules/sys_utsname (Depends-on): Update.
1280         * modules/sys_wait (Depends-on): Update.
1281         * modules/termios (Depends-on): Update.
1282         * modules/time (Depends-on): Update.
1283         * modules/unistd (Depends-on): Update.
1284         * modules/wchar (Depends-on): Update.
1285         * modules/wctype-h (Depends-on): Update.
1286         * MODULES.html.sh (Support for building libraries and executables):
1287         Update.
1288
1289         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1290         * modules/snippet/unused-parameter: Renamed from
1291         modules/unused-parameter.
1292         (Files, Makefile.am): Update.
1293         * build-aux/snippet/unused-parameter.h: Renamed from
1294         build-aux/unused-parameter.h.
1295         * modules/selinux-h (Depends-on): Update.
1296         * modules/unistr/base (Depends-on): Update.
1297         * MODULES.html.sh (Core language properties): Update.
1298
1299         Rename module 'link-warning' to 'snippet/link-warning'.
1300         * modules/snippet/link-warning: Renamed from modules/link-warning.
1301         (Files, Makefile.am): Update.
1302         * build-aux/snippet/link-warning.h: Renamed from
1303         build-aux/link-warning.h.
1304         * MODULES.html.sh (Support for building libraries and executables):
1305         Update.
1306
1307         Rename module 'c++defs' to 'snippet/c++defs'.
1308         * modules/snippet/c++defs: Renamed from modules/c++defs.
1309         (Files, Makefile.am): Update.
1310         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1311         * modules/arpa_inet (Depends-on): Update.
1312         * modules/ctype (Depends-on): Update.
1313         * modules/dirent (Depends-on): Update.
1314         * modules/fcntl-h (Depends-on): Update.
1315         * modules/glob (Depends-on): Update.
1316         * modules/iconv-h (Depends-on): Update.
1317         * modules/langinfo (Depends-on): Update.
1318         * modules/locale (Depends-on): Update.
1319         * modules/math (Depends-on): Update.
1320         * modules/netdb (Depends-on): Update.
1321         * modules/poll-h (Depends-on): Update.
1322         * modules/pty (Depends-on): Update.
1323         * modules/search (Depends-on): Update.
1324         * modules/signal (Depends-on): Update.
1325         * modules/spawn (Depends-on): Update.
1326         * modules/stdio (Depends-on): Update.
1327         * modules/stdlib (Depends-on): Update.
1328         * modules/string (Depends-on): Update.
1329         * modules/strings (Depends-on): Update.
1330         * modules/sys_ioctl (Depends-on): Update.
1331         * modules/sys_select (Depends-on): Update.
1332         * modules/sys_socket (Depends-on): Update.
1333         * modules/sys_stat (Depends-on): Update.
1334         * modules/sys_time (Depends-on): Update.
1335         * modules/sys_wait (Depends-on): Update.
1336         * modules/termios (Depends-on): Update.
1337         * modules/time (Depends-on): Update.
1338         * modules/unistd (Depends-on): Update.
1339         * modules/wchar (Depends-on): Update.
1340         * modules/wctype-h (Depends-on): Update.
1341
1342         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1343         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1344         (Files, Makefile.am): Update.
1345         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1346         * modules/argv-iter (Depends-on): Update.
1347         * modules/arpa_inet (Depends-on): Update.
1348         * modules/dirent (Depends-on): Update.
1349         * modules/fcntl-h (Depends-on): Update.
1350         * modules/fnmatch (Depends-on): Update.
1351         * modules/getopt-posix (Depends-on): Update.
1352         * modules/glob (Depends-on): Update.
1353         * modules/iconv-h (Depends-on): Update.
1354         * modules/inttypes-incomplete (Depends-on): Update.
1355         * modules/locale (Depends-on): Update.
1356         * modules/math (Depends-on): Update.
1357         * modules/netdb (Depends-on): Update.
1358         * modules/search (Depends-on): Update.
1359         * modules/signal (Depends-on): Update.
1360         * modules/spawn (Depends-on): Update.
1361         * modules/stdio (Depends-on): Update.
1362         * modules/stdlib (Depends-on): Update.
1363         * modules/string (Depends-on): Update.
1364         * modules/strings (Depends-on): Update.
1365         * modules/sys_socket (Depends-on): Update.
1366         * modules/sys_stat (Depends-on): Update.
1367         * modules/sys_time (Depends-on): Update.
1368         * modules/sys_times (Depends-on): Update.
1369         * modules/sys_utsname (Depends-on): Update.
1370         * modules/time (Depends-on): Update.
1371         * modules/unistd (Depends-on): Update.
1372         * modules/wchar (Depends-on): Update.
1373         * MODULES.html.sh (Support for building libraries and executables):
1374         Update.
1375
1376 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1377
1378         Improvements on _Noreturn and related modules.
1379
1380         modules/_Exit-tests: test _Noreturn too
1381         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1382         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1383         (main): Use them.
1384
1385         stdnoreturn, stdnoreturn-tests: remove modules
1386         They're not needed here and a bit premature for use elsewhere.  See
1387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1388         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1389         * tests/test-stdnoreturn.c: Remove files.
1390         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1391         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1392         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1393         and using noreturn.
1394         * modules/openat, modules/sigpipe-die, modules/xalloc:
1395         * modules/xmemdup0, modules/xstrtol:
1396         Remove dependency on stdnoreturn.
1397
1398         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1399         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1400         Reparenthesize to avoid GCC warning.
1401         Support Microsoft's syntax.
1402         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1403
1404         _Noreturn-tests: remove module
1405         * modules/_Noreturn-tests: Remove.
1406         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1407         * tests/test-_Noreturn.c: Remove.
1408         * tests/test-stdnoreturn.c: Merge from the old
1409         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1410
1411 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1412
1413         _Noreturn, stdnoreturn, and related modules.
1414
1415         * top/maint.mk: Adjust to new noreturn support.
1416         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1417         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1418
1419         xalloc: use stdnoreturn.h
1420         * lib/xalloc.h: Include <stdnoreturn.h>.
1421         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1422         * modules/xalloc (Depends-on): Add stdnoreturn.
1423
1424         xstrtol: use stdnoreturn.h
1425         * lib/xstrtol.h: Include <stdnoreturn.h>.
1426         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1427         * modules/xstrtol (Depends-on): Add stdnoreturn.
1428
1429         xmemdup0: use stdnoreturn.h
1430         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1431         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1432         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1433
1434         sigpipe-die: use stdnoreturn.h
1435         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1436         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1437         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1438
1439         openat: use stdnoreturn.h
1440         * lib/openat.h: Include <stdnoreturn.h>.
1441         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1442         * modules/openat (Depends-on): Add stdnoreturn.
1443
1444         * lib/openat-die.c (openat_save_fail): Modernize comment.
1445
1446         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1447
1448         * lib/glthread/thread.h: Modernize comment.
1449
1450         obstack: use _Noreturn
1451         * lib/obstack.c (__attribute__): Remove macro.
1452         (print_and_abort): Use _Noreturn.
1453
1454         c-stack: use _Noreturn
1455         * lib/c-stack.c (die, overflow_handler, segv_handler):
1456         Use _Noreturn rather than __attribute__((noreturn)).
1457
1458         argmatch-tests, exclude_tests: use _Noreturn
1459         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1460         Remove.
1461         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1462
1463         stdlib: use _Noreturn
1464         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1465         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1466         * modules/stdlib (Depends-on): Add _Noreturn.
1467         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1468
1469         stdnoreturn-tests: new module
1470         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1471
1472         stdnoreturn: new module
1473         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1474         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1475
1476         _Noreturn-tests: new module
1477         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1478
1479         _Noreturn: new module
1480         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1481         New section, mentioning it.
1482         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1483
1484         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1485
1486 2011-07-11  Eric Blake  <eblake@redhat.com>
1487
1488         ffs: new module
1489         * modules/ffs: New file.
1490         * m4/ffs.m4: Likewise.
1491         * lib/ffs.c: Likewise.
1492         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1493         * modules/strings (Makefile.am): Substitute witness.
1494         (Depends-on): Add c++defs.
1495         * lib/strings.in.h (ffs): Declare.
1496         * modules/ffs-tests: New test file.
1497         * tests/test-ffs.c: Test new module.
1498         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1499         * doc/posix-functions/ffs.texi (ffs): Likewise.
1500
1501         regex: avoid compiler warning
1502         * lib/regex.c (includes): Include <strings.h>, for use of
1503         strcasecmp in regcomp.c.
1504         Reported by Joachim Schmitz.
1505
1506 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1507
1508         stdint: respect system's intmax_t if INTMAX_MAX
1509         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1510         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1511         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1512         long but int64_t is long long, and where we will clash with the
1513         system intmax_t if we override it.  See
1514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1515         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1516         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1517         similarly for UINTMAX_C.
1518
1519 2011-07-08  Bruno Haible  <bruno@clisp.org>
1520
1521         pthread_sigmask tests: Avoid a compiler warning.
1522         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1523         non-zero.
1524
1525         sigprocmask tests: A better way to avoid a compiler warning.
1526         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1527         (main): Complain if system() returns non-zero.
1528         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1529
1530 2011-07-08  Bruno Haible  <bruno@clisp.org>
1531
1532         pthread_sigmask: Work around IRIX bug.
1533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1534         bug.
1535         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1536         there may be unblocked pending signals.
1537         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1538
1539 2011-07-08  Bruno Haible  <bruno@clisp.org>
1540
1541         pthread_sigmask: Work around Cygwin bug.
1542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1543         bug.
1544         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1545         the system's pthread_sigmask function.
1546         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1547
1548 2011-07-08  Bruno Haible  <bruno@clisp.org>
1549
1550         pthread_sigmask: Work around bug in single-threaded implementation.
1551         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1552         FreeBSD, HP-UX, Solaris bug.
1553         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1554         * lib/pthread_sigmask.c: Include <stddef.h>.
1555         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1556         the system's pthread_sigmask function.
1557         * modules/pthread_sigmask (configure.ac): Invoke
1558         gl_PREREQ_PTHREAD_SIGMASK.
1559         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1560         HP-UX, Solaris.
1561
1562 2011-07-08  Eric Blake  <eblake@redhat.com>
1563
1564         test-sigprocmask: avoid compiler warning
1565         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1566         * tests/test-sigprocmask.c (main): Use it to silence warning.
1567         Reported by Jim Meyering.
1568
1569         test-snprintf: avoid compiler warning
1570         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1571         * tests/test-vsnprintf.c (main): Likewise.
1572         Reported by Jim Meyering.
1573
1574 2011-07-08  Bruno Haible  <bruno@clisp.org>
1575
1576         Tests for module 'pthread_sigmask'.
1577         * modules/pthread_sigmask-tests: New file.
1578         * tests/test-pthread_sigmask1.c: New file, based on
1579         tests/test-sigprocmask.c.
1580         * tests/test-pthread_sigmask2.c: New file.
1581
1582 2011-07-08  Jim Meyering  <meyering@redhat.com>
1583
1584         test-getopt.h: avoid warning about an unused variable
1585         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1586
1587 2011-07-07  Jim Meyering  <meyering@redhat.com>
1588
1589         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1590         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1591         now that it no longer contains leading TABs.
1592         Remove unused "url=FIXME" statement.
1593
1594 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1595
1596         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1598         When gl_THREADLIB is not in use, assume that the POSIX sematics
1599         are desired.  This is better for Emacs, which uses POSIX semantics
1600         on GNUish and/or POSIXish platforms, and does not use threads at
1601         all otherwise.
1602
1603         pthread_sigmask: fix typo when testing for libraries
1604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1605         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1606
1607 2011-07-08  Eric Blake  <eblake@redhat.com>
1608
1609         fts: introduce FTS_NOATIME
1610         * lib/fts_.h (FTS_NOATIME): New bit flag.
1611         (FTS_OPTIONMASK): Adjust.
1612         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1613         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1614
1615 2011-07-08  Bruno Haible  <bruno@clisp.org>
1616
1617         Tests for module 'thread'.
1618         * modules/thread-tests: New file.
1619         * tests/test-thread_self.c: New file.
1620         * tests/test-thread_create.cc: New file.
1621
1622 2011-07-08  Bruno Haible  <bruno@clisp.org>
1623
1624         thread: Avoid gcc warnings when using gl_thread_self().
1625         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1626         'void *'.
1627         (gl_thread_self_pointer): Update.
1628
1629 2011-07-07  Bruno Haible  <bruno@clisp.org>
1630
1631         signal-c++-tests: Check declaration of pthread_sigmask.
1632         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1633         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1634         $(LIB_PTHREAD_SIGMASK).
1635
1636 2011-07-07  Bruno Haible  <bruno@clisp.org>
1637
1638         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1639         * lib/signal.in.h (pthread_sigmask): Override if
1640         REPLACE_PTHREAD_SIGMASK is 1.
1641         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1642         REPLACE_PTHREAD_SIGMASK.
1643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1644         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1645         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1646         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1647         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1648
1649 2011-07-07  Bruno Haible  <bruno@clisp.org>
1650
1651         pthread_sigmask: Ensure declaration in <signal.h>.
1652         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1653         include <pthread.h>.
1654         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1655         problem.
1656
1657 2011-07-07  Bruno Haible  <bruno@clisp.org>
1658
1659         pthread_sigmask: Document the module.
1660         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1661
1662 2011-07-07  Bruno Haible  <bruno@clisp.org>
1663
1664         pthread_sigmask: Follow gnulib conventions.
1665         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1666         gl_PTHREAD_SIGMASK.
1667         * modules/pthread_sigmask (configure.ac): Update.
1668
1669 2011-07-07  Bruno Haible  <bruno@clisp.org>
1670
1671         pthread_sigmask: Make declaration C++ safe.
1672         * lib/signal.in.h: In two special conditions, just do an #include_next.
1673         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1674         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1675         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1676         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1677         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1678         not REPLACE_PTHREAD_MASK.
1679         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1680         not REPLACE_PTHREAD_MASK.
1681         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1682
1683 2011-07-07  Bruno Haible  <bruno@clisp.org>
1684
1685         pthread_sigmask: Fix return value.
1686         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1687         * lib/pthread_sigmask.c: New file.
1688         * modules/pthread_sigmask (Files): Add it.
1689         (configure.ac): Invoke AC_LIBOBJ.
1690
1691 2011-07-07  Eric Blake  <eblake@redhat.com>
1692
1693         getopt: more portable argv creation
1694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1695         const, use char arrays rather than strings.
1696         Suggested by Paul Eggert.
1697
1698 2011-07-07  Bruno Haible  <bruno@clisp.org>
1699
1700         Tests for module 'sigprocmask'.
1701         * modules/sigprocmask-tests: New file.
1702         * tests/test-sigprocmask.c: New file.
1703
1704 2011-07-07  Bruno Haible  <bruno@clisp.org>
1705
1706         float tests: Tweak.
1707         * tests/test-float.c (main): Tweak skip message.
1708
1709 2011-07-07  Eric Blake  <eblake@redhat.com>
1710
1711         getopt: avoid compiler warning during configure
1712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1713         assigning string literals to non-const pointer.
1714
1715         getopt-gnu: avoid crash in glibc getopt
1716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1717         * tests/test-getopt.h (test_getopt): Enhance test.
1718         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1719         * doc/posix-functions/getopt.texi (getopt): Document it.
1720         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1721         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1722         Likewise.
1723
1724 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1725
1726         getopt: handle W; without long options in getopt [BZ #12922]
1727         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1728         but no long options are defined, just return 'W'.
1729
1730 2011-07-07  Bruno Haible  <bruno@clisp.org>
1731
1732         Avoid literal tabs.
1733         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1734         variable containing a tab instead of a literal tab.
1735         Reported by Jim Meyering.
1736
1737 2011-07-07  Bruno Haible  <bruno@clisp.org>
1738
1739         Comments.
1740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1741
1742 2011-07-06  Bruno Haible  <bruno@clisp.org>
1743
1744         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1745         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1746         <winsock2.h>.
1747         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1748         lib/sys_socket.in.h.
1749         (close, gethostname): Hide declarations from <winsock2.h>.
1750         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1751         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1752         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1753         (select): Don't override if gnulib's <sys/select.h> was already
1754         included.
1755         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1756         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1757         setsockopt, shutdown, select): Tweak indentation.
1758
1759 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1760
1761         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1762         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1763         in an application that does not use the sys_select module.
1764
1765 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1766
1767         poll: do not return 0 on timeout=-1
1768         * lib/poll.c: Loop with yield if no events occured
1769
1770 2011-07-06  Eric Blake  <eblake@redhat.com>
1771
1772         pthread_sigmask: always replace when not using pthread
1773         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1774         replacement when using some threading other than pthread.  Fix
1775         logic bug.
1776
1777 2011-07-06  Bruno Haible  <bruno@clisp.org>
1778
1779         Comments.
1780         * m4/printf.m4: Update comments about mingw.
1781
1782 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         sys_select: define sigset_t more portably
1785         * lib/sys_select.in.h: Always include <sys/types.h>, since
1786         we now need sigset_t and mingw defines it there.
1787         Include <signal.h> before split inclusion guard, to avoid
1788         mishaps on Solaris, whose <signal.h> eventually includes us.
1789         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1790         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1791         which come from ...
1792         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1793         gl_CHECK_TYPE_SIGSET_T.
1794         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1795         does the real work.
1796         * modules/sys_select (Depends-on): Add 'signal'.
1797
1798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1799         Suggested by Bruno Haible.
1800
1801         pselect: Use pthread_sigmask, not sigprocmask.
1802         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1803         multithreaded apps better than sigprocmask does.
1804         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1805         sigprocmask directly.
1806
1807 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1810         Don't #undef,  since we don't need any underlying pselect.
1811         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1812         (Depends-on): Add select.
1813         (Link): Add $(LIBSOCKET).
1814         These changes suggested by Bruno Haible.
1815
1816         pselect: document better
1817         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1818         * doc/posix-functions/pselect.texi (pselect): Document new module.
1819
1820         pthread_sigmask: new module
1821         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1822         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1823         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1824         This is done only as a macro; I don't know how well that'll
1825         work for C++.  Move <sys/types.h> include before the include_next,
1826         to avoid mishap on Solaris.
1827         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1828         * modules/signal (Makefile.am): Substitute the check's results.
1829         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1830
1831         test-pselect: new module
1832         * modules/pselect-tests, tests/test-pselect.c: New files.
1833         * tests/test-select.c, tests/test-sys_select-c++.cc:
1834         If TEST_PSELECT is defined, test pselect instead of testing select.
1835
1836         * tests/test-sys_select.c (sigset_t): Test for it, too.
1837         Suggested by Bruno Haible.
1838
1839 2011-07-05  Eric Blake  <eblake@redhat.com>
1840
1841         snprintf: guarantee %1$d, for libintl
1842         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1843         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1844         * doc/posix-functions/snprintf.texi (snprintf): Update.
1845         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1846         * tests/test-snprintf.c (main): Enhance test.
1847         * tests/test-vsnprintf.c (main): Likewise.
1848
1849 2011-07-05  Jim Meyering  <meyering@redhat.com>
1850
1851         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1852         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1853         per Bruno's request, to accommodate this idiom (no space after "#")
1854         even when the function is inside an #if block:
1855         char *
1856         gets (char *s)
1857         #undef gets
1858         {
1859           ...
1860         }
1861
1862 2011-07-04  Jim Meyering  <meyering@redhat.com>
1863
1864         maint: indent with spaces, not TABs, and add a rule to check this
1865         * tests/test-userspec.c: Indent with spaces, not TABs.
1866         * tests/test-argp.c: Likewise.
1867         * tests/test-c-stack2.sh: Likewise.
1868         * tests/test-parse-duration.sh: Likewise
1869         * m4/strtod.m4: Likewise.
1870         * m4/alloca.m4: Likewise.
1871         * m4/pselect.m4: Likewise.
1872         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1873
1874 2011-07-03  Jim Meyering  <meyering@redhat.com>
1875
1876         maint.mk: correct omissions in prohibit_argmatch_without_use check
1877         This rule would mistakenly report that argmatch.h is included without
1878         use even when both the argmatch and invalid_arg macro were used.
1879         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1880         of argmatch and invalid_arg.
1881
1882 2011-07-03  Bruno Haible  <bruno@clisp.org>
1883
1884         Comments about EINTR.
1885         * lib/safe-read.h: Explain the purpose of this module.
1886         * lib/safe-write.h: Likewise.
1887         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1888         module.
1889         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1890         module.
1891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1892
1893 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         xnanosleep: Rewrite to use new dtotimespec module.
1896         It has the conversion code that used to be in xnanosleep.
1897         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1898         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1899         (TIME_T_MAX): Remove.
1900         (xnanosleep): Rewrite in terms of dtotimespec.
1901         * modules/xnanosleep (Depends-on): Add dtotimespec.
1902         Remove intprops, stdbool.
1903
1904         timespec-add, timespec-sub: new modules
1905         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1906         * lib/timespec-add.c, lib/timespec-sub.c:
1907         * modules/timespec-add, modules/timespec-sub: New files.
1908
1909         dtotimespec: new module
1910         * lib/timespec.h (dtotimespec): New decl.
1911         * lib/dtotimespec.c, modules/dtotimespec: New files.
1912
1913         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1914
1915         pselect: new module
1916         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1917         (pselect): New decls.
1918         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1919         since the standard pselect decl uses 'restrict'.
1920         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1921         HAVE_PSELECT, REPLACE_PSELECT.
1922         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1923         HAVE_PSELECT, REPLACE_PSELECT.
1924         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1925
1926         sys_select: don't depend on sys_socket
1927         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1929         This fix works on GNU and GNU-like platforms, but has not been tested
1930         on native Windows.
1931         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1933         gl_HEADER_SYS_SOCKET.
1934         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1935         gl_PREREQ_SYS_H_WINSOCK2.
1936
1937 2011-06-29  Eric Blake  <eblake@redhat.com>
1938
1939         pipe2: fix C89 compile problem
1940         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1941         Reported by Bruno Haible.
1942
1943         pipe, pipe2: don't corrupt fd on error
1944         * lib/pipe.c (pipe): Leave fd unchanged on error.
1945         * lib/pipe2.c (pipe2): Likewise.
1946         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1947         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1948
1949 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1950
1951         mmap-anon: do not use regular expressions inadvertently
1952         * m4/mmap-anon.m4: Remove trailing period from strings sought
1953         in the output.
1954
1955 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1956
1957         nanosleep: fix integer overflow problem
1958         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1959         arithmetic wraps around on overflow.
1960
1961         nanosleep: simplify carrying
1962         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1963         first call to the underyling nanosleep, not for the last one.
1964         This doesn't fix any bugs, but it simplifies the computation of
1965         the remaining delay.  Found while auditing integer overflow issues.
1966
1967         dup2: remove test for existence of fcntl
1968         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1969         "#if HAVE_FCNTL", in the configure-time test program.
1970         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1971         and therefore speeds up "configure" a bit.  Found while
1972         adding the dup2 module to Emacs.
1973
1974 2011-06-24  Eric Blake  <eblake@redhat.com>
1975
1976         maint.mk: enhance useless header checks
1977         * top/maint.mk (_sc_header_without_use): Check both include
1978         styles.
1979         (sc_prohibit_assert_without_use)
1980         (sc_prohibit_close_stream_without_use)
1981         (sc_prohibit_getopt_without_use)
1982         (sc_prohibit_quotearg_without_use)
1983         (sc_prohibit_quote_without_use)
1984         (sc_prohibit_long_options_without_use)
1985         (sc_prohibit_inttostr_without_use)
1986         (sc_prohibit_ignore_value_without_use)
1987         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1988         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1989         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1990         (sc_prohibit_hash_pjw_without_use)
1991         (sc_prohibit_safe_read_without_use)
1992         (sc_prohibit_argmatch_without_use)
1993         (sc_prohibit_canonicalize_without_use)
1994         (sc_prohibit_root_dev_ino_without_use)
1995         (sc_prohibit_openat_without_use)
1996         (sc_prohibit_c_ctype_without_use)
1997         (sc_prohibit_signal_without_use)
1998         (sc_prohibit_stdio--_without_use)
1999         (sc_prohibit_stdio-safer_without_use)
2000         (sc_prohibit_strings_without_use)
2001         (sc_prohibit_intprops_without_use)
2002         (sc_prohibit_stddef_without_use)
2003         (sc_prohibit_xfreopen_without_use): Update clients.
2004
2005 2011-06-24  Jim Meyering  <meyering@redhat.com>
2006
2007         syntax-check: keep one maint.mk rule in sync with its header
2008         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2009         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2010         I prefer to avoid temporary files here, so use <(...), but that
2011         is not supported by /bin/sh, so...
2012         (SHELL): Define to /bin/bash.
2013
2014 2011-06-24  Eric Blake  <eblake@redhat.com>
2015
2016         maint.mk: update sc_prohibit_intprops_without_use
2017         * top/maint.mk (_intprops_names): Match recent changes.
2018
2019 2011-06-24  Bruno Haible  <bruno@clisp.org>
2020
2021         strerror-override: No-op tweak.
2022         * lib/strerror-override.h (strerror_override): Reorder conditions,
2023         for consistency with lib/strerror-override.c.
2024
2025 2011-06-23  Eric Blake  <eblake@redhat.com>
2026
2027         maint.mk: test further PATH_MAX issues
2028         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2029         (sc_prohibit_path_max_allocation): ...and also test alloca.
2030         Suggested by Jim Meyering.
2031
2032 2011-06-22  Eric Blake  <eblake@redhat.com>
2033
2034         maint.mk: add syntax-check to avoid char[PATH_MAX]
2035         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2036
2037         stat: be robust to PATH_MAX definition
2038         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2039         * modules/stat (Depends-on): Add verify.
2040
2041         link: work around IRIX bug
2042         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2043         * lib/link.c (rpl_link): Work around it.
2044         * tests/test-link.h (test_link): Enhance test.
2045         * doc/posix-functions/link.texi (link): Document the bug.
2046
2047         getopt: silence clang warning
2048         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2049         dereference.
2050         Reported by Gustavo Martin Domato.
2051
2052 2011-06-22  Jim Meyering  <meyering@redhat.com>
2053
2054         bootstrap: do not insert a blank line into each .gitignore file
2055         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2056
2057 2011-06-21  Eric Blake  <eblake@redhat.com>
2058
2059         perror: test for output mismatch
2060         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2061         perror on IRIX.
2062
2063         strerror_r: fix OpenBSD behavior on out-of-range
2064         * lib/strerror_r.c (strerror_r): Always use maximal string.
2065         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2066
2067         strerror_r: fix OpenBSD behavior on 0
2068         * lib/strerror-override.c (strerror_override): Also override 0
2069         when needed.
2070         * lib/strerror-override.h (strerror_override): Likewise.
2071         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2072         earlier.
2073         * lib/strerror_r.c (strerror_r): Likewise.
2074         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2075         behavior...
2076         (gl_FUNC_STRERROR_0): ...into new macro.
2077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2078         is overridden.
2079         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2080         * modules/strerror-override (Files): Add strerror.m4.
2081         (configure.ac): Also provide override for 0 when needed.
2082         * doc/posix-functions/strerror.texi (strerror): Document this.
2083         * doc/posix-functions/perror.texi (perror): Likewise.
2084
2085         perror: adjust array size
2086         * modules/perror (Depends-on): Add strerror-override.
2087         * lib/perror.c (perror): Use it to avoid magic number.
2088
2089         strerror-override: reduce size
2090         * lib/strerror-override.c (strerror_override): Use fewer lines.
2091
2092 2011-06-20  Bruno Haible  <bruno@clisp.org>
2093
2094         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2095         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2096
2097 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         alloca: port to compilers that can optimize like GCC 4.6.0
2100         * lib/alloca.c (find_stack_direction): New signature, taken from
2101         Autoconf git.  This works with GCC 4.6.0.  This code should never
2102         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2103         be used with other compilers that optimize as well as GCC 4.6.0 does.
2104         (alloca): Adjust to new signature.
2105         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2106         New macro, which patches Autoconf in a similar way.
2107
2108         c-stack: stop worrying about stack direction
2109         * lib/c-stack.c (find_stack_direction): Remove.
2110         (segv_handler): Don't worry about stack direction growth, as it's
2111         too much of a pain to configure this correctly, given how compilers
2112         are optimizing-away our stack-growth detection code.  Instead, assume
2113         that any access to just before or just after the stack is OK.
2114         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2115         Don't require AC_FUNC_ALLOCA; no longer needed.
2116
2117 2011-06-20  Eric Blake  <eblake@redhat.com>
2118
2119         test-stat: don't allocate PATH_MAX bytes
2120         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2121         PATH_MAX-sized buffer.
2122         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2123         * modules/stat-tests (Depends-on): Likewise.
2124         * tests/test-fstatat.c (includes): Drop pathmax.h.
2125         * tests/test-stat.c (includes): Likewise.
2126         Reported by Bruno Haible.
2127
2128 2011-06-20  Bruno Haible  <bruno@clisp.org>
2129
2130         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2131         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2132         * lib/float.c: New file.
2133         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2134         REPLACE_FLOAT_LDBL.
2135         * modules/float (Files): Add lib/float.c.
2136         (configure.ac): Invoke AC_LIBOBJ.
2137         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2138
2139 2011-06-20  Bruno Haible  <bruno@clisp.org>
2140
2141         Tests for module 'float'.
2142         * modules/float-tests: New file.
2143         * tests/test-float.c: New file.
2144
2145 2011-06-19  Bruno Haible  <bruno@clisp.org>
2146
2147         isinf: Coding style.
2148         * lib/isinf.c: Use GNU coding style.
2149
2150 2011-06-19  Bruno Haible  <bruno@clisp.org>
2151
2152         linkat test: Avoid test failure on AIX 7.1.
2153         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2154         * tests/test-link.h (test_link): Likewise.
2155
2156 2011-06-19  Bruno Haible  <bruno@clisp.org>
2157
2158         pread test: Avoid test failure on OpenBSD 4.9.
2159         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2160
2161 2011-06-19  Bruno Haible  <bruno@clisp.org>
2162
2163         sprintf-posix: Fix test failure on AIX 7.1.
2164         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2165         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2166         on AIX.
2167         * doc/posix-functions/fprintf.texi: Likewise.
2168         * doc/posix-functions/printf.texi: Likewise.
2169         * doc/posix-functions/snprintf.texi: Likewise.
2170         * doc/posix-functions/sprintf.texi: Likewise.
2171         * doc/posix-functions/vdprintf.texi: Likewise.
2172         * doc/posix-functions/vfprintf.texi: Likewise.
2173         * doc/posix-functions/vprintf.texi: Likewise.
2174         * doc/posix-functions/vsnprintf.texi: Likewise.
2175         * doc/posix-functions/vsprintf.texi: Likewise.
2176
2177 2011-06-19  Bruno Haible  <bruno@clisp.org>
2178
2179         roundl-ieee: Fix test failure on AIX 7.1.
2180         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2181         * doc/posix-functions/roundl.texi: Mention problem with negative
2182         arguments.
2183
2184 2011-06-19  Bruno Haible  <bruno@clisp.org>
2185
2186         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2187         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2188         * doc/posix-functions/round.texi: Mention problem with negative
2189         arguments.
2190         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2191
2192 2011-06-19  Bruno Haible  <bruno@clisp.org>
2193
2194         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2196         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2197         * doc/posix-functions/roundf.texi: Mention problem with negative
2198         arguments.
2199         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2200
2201 2011-06-19  Bruno Haible  <bruno@clisp.org>
2202
2203         ceilf-ieee: Work around bug on MacOS X 10.5.
2204         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2205
2206         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2207         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2208         IEEE compliant, avoid compiler optimizations.
2209         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2210         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2211         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2212         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2213         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2214         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2215         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2217         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2218         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2219
2220 2011-06-19  Bruno Haible  <bruno@clisp.org>
2221
2222         ceilf-ieee: Work around bug on AIX 7.1.
2223         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2224         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2225
2226 2011-06-19  Bruno Haible  <bruno@clisp.org>
2227
2228         ceil-ieee: Work around bug on AIX 7.1.
2229         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2230         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2231
2232 2011-06-18  Bruno Haible  <bruno@clisp.org>
2233
2234         fsync test: Avoid test failure on MacOS X and AIX.
2235         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2236         EINVAL.
2237
2238 2011-06-18  Bruno Haible  <bruno@clisp.org>
2239
2240         openat, fdopendir tests: Fix link errors.
2241         * modules/openat-tests (Depends-on): Add progname.
2242         * modules/fdopendir-tests (Depends-on): Likewise.
2243         * tests/test-fchownat.c: Include progname.h.
2244         (main): Call set_program_name.
2245         * tests/test-fstatat.c: Include progname.h.
2246         (main): Call set_program_name.
2247         * tests/test-mkdirat.c: Include progname.h.
2248         (main): Call set_program_name.
2249         * tests/test-openat.c: Include progname.h.
2250         (main): Call set_program_name.
2251         * tests/test-unlinkat.c: Include progname.h.
2252         (main): Call set_program_name.
2253         * tests/test-fdopendir.c: Include progname.h.
2254         (main): Call set_program_name.
2255
2256 2011-06-18  Bruno Haible  <bruno@clisp.org>
2257
2258         Doc update.
2259         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2260         HP-UX.
2261         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2262
2263 2011-06-18  Bruno Haible  <bruno@clisp.org>
2264
2265         getcwd tests: Avoid compilation error on HP-UX 11.31.
2266         * modules/getcwd-tests (Depends-on): Add pathmax.
2267         * tests/test-getcwd.c: Include pathmax.h.
2268
2269 2011-06-18  Bruno Haible  <bruno@clisp.org>
2270
2271         isfinite, isinf: Fix link error on AIX 6 and 7.
2272         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2273         needed, also test the macro with a 'float' argument.
2274         * m4/isinf.m4 (gl_ISINF): Likewise.
2275
2276 2011-06-18  Bruno Haible  <bruno@clisp.org>
2277
2278         getloadavg: Don't clobber LIBS. Regression from previous commit.
2279         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2280         AC_CHECK_LIB from here...
2281         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2282         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2283         gl_func_getloadavg_done.
2284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2285
2286 2011-06-18  Bruno Haible  <bruno@clisp.org>
2287
2288         clean-temp: Improve documentation.
2289         * lib/clean-temp.h: Explain better how to use this module.
2290         Reported by John Darrington <john@darrington.wattle.id.au>.
2291
2292 2011-06-17  Bruno Haible  <bruno@clisp.org>
2293
2294         pread, pwrite: Avoid cc warning on AIX.
2295         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2296         (pwrite): Likewise.
2297
2298 2011-06-17  Bruno Haible  <bruno@clisp.org>
2299
2300         spawn-pipe tests: Fix link error.
2301         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2303
2304 2011-06-17  Bruno Haible  <bruno@clisp.org>
2305
2306         Tests: Remove unnecessary dependency.
2307         * modules/canonicalize-tests (Depends-on): Remove progname.
2308         * modules/chown-tests (Depends-on): Likewise.
2309         * modules/dirname-tests (Depends-on): Likewise.
2310         * modules/fdopendir-tests (Depends-on): Likewise.
2311         * modules/fdutimensat-tests (Depends-on): Likewise.
2312         * modules/hash-tests (Depends-on): Likewise.
2313         * modules/lchown-tests (Depends-on): Likewise.
2314         * modules/linkat-tests (Depends-on): Likewise.
2315         * modules/renameat-tests (Depends-on): Likewise.
2316         * modules/spawn-pipe-tests (Depends-on): Likewise.
2317         * modules/utimensat-tests (Depends-on): Likewise.
2318
2319 2011-06-17  Bruno Haible  <bruno@clisp.org>
2320
2321         spawn-pipe tests: Fix link error.
2322         * tests/test-spawn-pipe-child.c: Undefine fflush.
2323
2324 2011-06-17  Bruno Haible  <bruno@clisp.org>
2325
2326         Fix tests link errors.
2327         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2328         * modules/chown-tests (Makefile.am): Don't link test-chown with
2329         LIBINTL.
2330         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2331         LIBINTL.
2332         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2333         LIBINTL.
2334         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2335         LIBINTL.
2336
2337 2011-06-16  Bruno Haible  <bruno@clisp.org>
2338
2339         crypto/gc-sha1: Fix recent regression.
2340         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2341         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2342
2343         crypto/gc-md5: Fix recent regression.
2344         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2345
2346         crypto/gc-md4: Fix recent regression.
2347         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2348         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2349
2350         crypto/gc-arctwo: Fix recent regression.
2351         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2352         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2353
2354         crypto/gc-rijndael: Fix recent regression.
2355         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2356         (configure.ac): Invoke AC_LIBOBJ here.
2357         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2359
2360         crypto/gc-hmac-sha1: Fix recent regression.
2361         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2362         (configure.ac): Invoke AC_LIBOBJ here.
2363         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2365
2366         crypto/gc-hmac-md5: Fix recent regression.
2367         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2368         (configure.ac): Invoke AC_LIBOBJ here.
2369         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2371
2372         crypto/gc-des: Fix recent regression.
2373         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2374         (configure.ac): Invoke AC_LIBOBJ here.
2375         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2377
2378         crypto/gc-arcfour: Fix recent regression.
2379         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2380         (configure.ac): Invoke AC_LIBOBJ here.
2381         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2383
2384 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2385
2386         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2387         After the 2011-05-21 change, this macro requires
2388         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2390
2391 2011-06-16  Bruno Haible  <bruno@clisp.org>
2392
2393         fprintftime: Move AC_LIBOBJ invocations to module description.
2394         * m4/fprintftime.m4: Remove file.
2395         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2396         (configure.ac): Remove gl_FPRINTFTIME call.
2397         (Makefile.am): Augment lib_SOURCES.
2398         Reported by Jim Meyering.
2399
2400 2011-06-16  Bruno Haible  <bruno@clisp.org>
2401
2402         tmpfile-safer: Finish 2011-05-23 commit.
2403         * m4/stdio-safer.m4: Really remove file.
2404         Reported by Jim Meyering.
2405
2406 2011-06-16  Bruno Haible  <bruno@clisp.org>
2407
2408         syntax-check: Fix typo.
2409         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2410         printf-posix.m4.
2411         Reported by Jim Meyering.
2412
2413 2011-06-13  Jim Meyering  <meyering@redhat.com>
2414
2415         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2416         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2417
2418 2011-05-23  Bruno Haible  <bruno@clisp.org>
2419
2420         yesno: Move AC_LIBOBJ invocations to module description.
2421         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2422         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2423
2424 2011-05-23  Bruno Haible  <bruno@clisp.org>
2425
2426         xstrtol: Move AC_LIBOBJ invocations to module description.
2427         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2428         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2429
2430 2011-05-23  Bruno Haible  <bruno@clisp.org>
2431
2432         xstrtold: Move AC_LIBOBJ invocations to module description.
2433         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2434         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2435
2436 2011-05-23  Bruno Haible  <bruno@clisp.org>
2437
2438         xstrtod: Move AC_LIBOBJ invocations to module description.
2439         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2440         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2441
2442 2011-05-23  Bruno Haible  <bruno@clisp.org>
2443
2444         xnanosleep: Move AC_LIBOBJ invocations to module description.
2445         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2446         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2447
2448 2011-05-23  Bruno Haible  <bruno@clisp.org>
2449
2450         xgetcwd: Move AC_LIBOBJ invocations to module description.
2451         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2452         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2453
2454 2011-05-23  Bruno Haible  <bruno@clisp.org>
2455
2456         xalloc: Move AC_LIBOBJ invocations to module description.
2457         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2458         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2459
2460 2011-05-23  Bruno Haible  <bruno@clisp.org>
2461
2462         write-any-file: Move AC_LIBOBJ invocations to module description.
2463         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2464         invocation.
2465         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2466
2467 2011-05-23  Bruno Haible  <bruno@clisp.org>
2468
2469         utimens: Move AC_LIBOBJ invocations to module description.
2470         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2471         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2472
2473 2011-05-23  Bruno Haible  <bruno@clisp.org>
2474
2475         utimecmp: Move AC_LIBOBJ invocations to module description.
2476         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2477         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2478
2479 2011-05-23  Bruno Haible  <bruno@clisp.org>
2480
2481         userspec: Move AC_LIBOBJ invocations to module description.
2482         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2483         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2484
2485 2011-05-23  Bruno Haible  <bruno@clisp.org>
2486
2487         unlinkdir: Move AC_LIBOBJ invocations to module description.
2488         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2489         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2490
2491 2011-05-23  Bruno Haible  <bruno@clisp.org>
2492
2493         unistd-safer: Move AC_LIBOBJ invocations to module description.
2494         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2495         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2496
2497 2011-05-23  Bruno Haible  <bruno@clisp.org>
2498
2499         tempname: Move AC_LIBOBJ invocations to module description.
2500         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2501         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2502
2503 2011-05-23  Bruno Haible  <bruno@clisp.org>
2504
2505         strftime: Move AC_LIBOBJ invocations to module description.
2506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2507         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2508
2509 2011-05-23  Bruno Haible  <bruno@clisp.org>
2510
2511         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2512         * m4/stdlib-safer.m4: Remove file.
2513         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2514         (configure.ac): Remove gl_STDLIB_SAFER call.
2515         (Makefile.am): Augment lib_SOURCES.
2516
2517 2011-05-23  Bruno Haible  <bruno@clisp.org>
2518
2519         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2520         * m4/stdio-safer.m4: Remove file.
2521         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2522         (configure.ac): Remove gl_TMPFILE_SAFER call.
2523         (Makefile.am): Augment lib_SOURCES.
2524
2525 2011-05-23  Bruno Haible  <bruno@clisp.org>
2526
2527         popen-safer: Move AC_LIBOBJ invocations to module description.
2528         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2529         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2530         (configure.ac): Remove gl_POPEN_SAFER call.
2531         (Makefile.am): Augment lib_SOURCES.
2532
2533 2011-05-23  Bruno Haible  <bruno@clisp.org>
2534
2535         freopen-safer: Move AC_LIBOBJ invocations to module description.
2536         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2537         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2538         (configure.ac): Remove gl_FREOPEN_SAFER call.
2539         (Makefile.am): Augment lib_SOURCES.
2540
2541 2011-05-23  Bruno Haible  <bruno@clisp.org>
2542
2543         fopen-safer: Move AC_LIBOBJ invocations to module description.
2544         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2545         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2546         (configure.ac): Remove gl_FOPEN_SAFER call.
2547         (Makefile.am): Augment lib_SOURCES.
2548
2549 2011-05-23  Bruno Haible  <bruno@clisp.org>
2550
2551         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2552         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2553         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2554
2555 2011-05-23  Bruno Haible  <bruno@clisp.org>
2556
2557         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2558         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2559         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2560
2561 2011-05-23  Bruno Haible  <bruno@clisp.org>
2562
2563         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2564         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2565         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2566
2567 2011-05-23  Bruno Haible  <bruno@clisp.org>
2568
2569         settime: Move AC_LIBOBJ invocations to module description.
2570         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2571         * modules/settime (Makefile.am): Augment lib_SOURCES.
2572
2573 2011-05-23  Bruno Haible  <bruno@clisp.org>
2574
2575         savedir: Move AC_LIBOBJ invocations to module description.
2576         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2577         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2578
2579 2011-05-23  Bruno Haible  <bruno@clisp.org>
2580
2581         save-cwd: Move AC_LIBOBJ invocations to module description.
2582         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2583         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2584
2585 2011-05-23  Bruno Haible  <bruno@clisp.org>
2586
2587         same: Move AC_LIBOBJ invocations to module description.
2588         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2589         * modules/same (Makefile.am): Augment lib_SOURCES.
2590
2591 2011-05-23  Bruno Haible  <bruno@clisp.org>
2592
2593         safe-write: Move AC_LIBOBJ invocations to module description.
2594         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2595         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2596         instead of gl_SAFE_WRITE.
2597         (Makefile.am): Augment lib_SOURCES.
2598
2599 2011-05-23  Bruno Haible  <bruno@clisp.org>
2600
2601         safe-read: Move AC_LIBOBJ invocations to module description.
2602         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2603         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2604         of gl_SAFE_READ.
2605         (Makefile.am): Augment lib_SOURCES.
2606
2607 2011-05-23  Bruno Haible  <bruno@clisp.org>
2608
2609         safe-alloc: Move AC_LIBOBJ invocations to module description.
2610         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2611         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2612
2613 2011-05-23  Bruno Haible  <bruno@clisp.org>
2614
2615         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2616         * m4/rijndael.m4: Remove file.
2617         * modules/crypto/rijndael (Files): Remove it.
2618         (configure.ac): Remove gl_RIJNDAEL call.
2619         (Makefile.am): Augment lib_SOURCES.
2620
2621 2011-05-23  Bruno Haible  <bruno@clisp.org>
2622
2623         readtokens: Move AC_LIBOBJ invocations to module description.
2624         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2625         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2626
2627 2011-05-23  Bruno Haible  <bruno@clisp.org>
2628
2629         read-file: Move AC_LIBOBJ invocations to module description.
2630         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2631         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2632         of gl_FUNC_READ_FILE.
2633         (Makefile.am): Augment lib_SOURCES.
2634
2635 2011-05-23  Bruno Haible  <bruno@clisp.org>
2636
2637         quotearg: Move AC_LIBOBJ invocations to module description.
2638         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2639         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2640
2641 2011-05-23  Bruno Haible  <bruno@clisp.org>
2642
2643         quote: Move AC_LIBOBJ invocations to module description.
2644         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2645         * modules/quote (Makefile.am): Augment lib_SOURCES.
2646
2647 2011-05-23  Bruno Haible  <bruno@clisp.org>
2648
2649         posixver: Move AC_LIBOBJ invocations to module description.
2650         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2651         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2652
2653 2011-05-23  Bruno Haible  <bruno@clisp.org>
2654
2655         posixtm: Move AC_LIBOBJ invocations to module description.
2656         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2657         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2658
2659 2011-05-23  Bruno Haible  <bruno@clisp.org>
2660
2661         physmem: Move AC_LIBOBJ invocations to module description.
2662         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2663         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2664
2665 2011-05-23  Bruno Haible  <bruno@clisp.org>
2666
2667         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2668         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2669         invocation.
2670         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2671
2672 2011-05-23  Bruno Haible  <bruno@clisp.org>
2673
2674         mpsort: Move AC_LIBOBJ invocations to module description.
2675         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2676         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2677
2678 2011-05-23  Bruno Haible  <bruno@clisp.org>
2679
2680         modechange: Move AC_LIBOBJ invocations to module description.
2681         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2682         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2683
2684 2011-05-23  Bruno Haible  <bruno@clisp.org>
2685
2686         mkdir-p: Move AC_LIBOBJ invocations to module description.
2687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2688         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2689
2690 2011-05-23  Bruno Haible  <bruno@clisp.org>
2691
2692         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2693         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2694         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2695
2696 2011-05-23  Bruno Haible  <bruno@clisp.org>
2697
2698         mgetgroups: Move AC_LIBOBJ invocations to module description.
2699         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2700         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2701
2702 2011-05-23  Bruno Haible  <bruno@clisp.org>
2703
2704         memxor: Move AC_LIBOBJ invocations to module description.
2705         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2706         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2707
2708 2011-05-23  Bruno Haible  <bruno@clisp.org>
2709
2710         memcoll: Move AC_LIBOBJ invocations to module description.
2711         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2712         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2713
2714 2011-05-23  Bruno Haible  <bruno@clisp.org>
2715
2716         memcasecmp: Move AC_LIBOBJ invocations to module description.
2717         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2718         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2719
2720 2011-05-23  Bruno Haible  <bruno@clisp.org>
2721
2722         crypto/md5: Move AC_LIBOBJ invocations to module description.
2723         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2724         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2725
2726 2011-05-23  Bruno Haible  <bruno@clisp.org>
2727
2728         crypto/md4: Move AC_LIBOBJ invocations to module description.
2729         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2730         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2731
2732 2011-05-23  Bruno Haible  <bruno@clisp.org>
2733
2734         crypto/md2: Move AC_LIBOBJ invocations to module description.
2735         * m4/md2.m4: Remove file.
2736         * modules/crypto/md2 (Files): Remove it.
2737         (configure.ac): Remove gl_MD2 call.
2738         (Makefile.am): Augment lib_SOURCES.
2739
2740 2011-05-23  Bruno Haible  <bruno@clisp.org>
2741
2742         long-options: Move AC_LIBOBJ invocations to module description.
2743         * m4/long-options.m4: Remove file.
2744         * modules/long-options (Files): Remove it.
2745         (configure.ac): Remove gl_LONG_OPTIONS call.
2746         (Makefile.am): Augment lib_SOURCES.
2747
2748 2011-05-23  Bruno Haible  <bruno@clisp.org>
2749
2750         i-ring: Move AC_LIBOBJ invocations to module description.
2751         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2752         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2753
2754 2011-05-23  Bruno Haible  <bruno@clisp.org>
2755
2756         idcache: Move AC_LIBOBJ invocations to module description.
2757         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2758         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2759
2760 2011-05-23  Bruno Haible  <bruno@clisp.org>
2761
2762         human: Move AC_LIBOBJ invocations to module description.
2763         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2764         * modules/human (Makefile.am): Augment lib_SOURCES.
2765
2766 2011-05-23  Bruno Haible  <bruno@clisp.org>
2767
2768         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2769         * m4/hmac-sha1.m4: Remove file.
2770         * modules/crypto/hmac-sha1 (Files): Remove it.
2771         (configure.ac): Remove gl_HMAC_SHA1 call.
2772         (Makefile.am): Augment lib_SOURCES.
2773
2774 2011-05-23  Bruno Haible  <bruno@clisp.org>
2775
2776         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2777         * m4/hmac-md5.m4: Remove file.
2778         * modules/crypto/hmac-md5 (Files): Remove it.
2779         (configure.ac): Remove gl_HMAC_MD5 call.
2780         (Makefile.am): Augment lib_SOURCES.
2781
2782 2011-05-23  Bruno Haible  <bruno@clisp.org>
2783
2784         hash: Move AC_LIBOBJ invocations to module description.
2785         * m4/hash.m4: Remove file.
2786         * modules/hash (Files): Remove it.
2787         (configure.ac): Remove gl_HASH call.
2788         (Makefile.am): Augment lib_SOURCES.
2789
2790 2011-05-23  Bruno Haible  <bruno@clisp.org>
2791
2792         hard-locale: Move AC_LIBOBJ invocations to module description.
2793         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2794         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2795
2796 2011-05-23  Bruno Haible  <bruno@clisp.org>
2797
2798         getugroups: Move AC_LIBOBJ invocations to module description.
2799         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2800         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2801
2802 2011-05-23  Bruno Haible  <bruno@clisp.org>
2803
2804         gettime: Move AC_LIBOBJ invocations to module description.
2805         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2806         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2807
2808 2011-05-23  Bruno Haible  <bruno@clisp.org>
2809
2810         getndelim2: Move AC_LIBOBJ invocations to module description.
2811         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2812         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2813
2814 2011-05-23  Bruno Haible  <bruno@clisp.org>
2815
2816         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2817         * m4/gc-pbkdf2-sha1.m4: Remove file.
2818         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2819         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2820         (Makefile.am): Augment lib_SOURCES.
2821
2822 2011-05-23  Bruno Haible  <bruno@clisp.org>
2823
2824         fts: Move AC_LIBOBJ invocations to module description.
2825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2826         * modules/fts (configure.ac): ... to here.
2827
2828 2011-05-23  Bruno Haible  <bruno@clisp.org>
2829
2830         file-type: Move AC_LIBOBJ invocations to module description.
2831         * m4/file-type.m4: Remove file.
2832         * modules/file-type (Files): Remove it.
2833         (configure.ac): Remove gl_FILE_TYPE call.
2834         (Makefile.am): Augment lib_SOURCES.
2835
2836 2011-05-23  Bruno Haible  <bruno@clisp.org>
2837
2838         filenamecat*: Respect rules for use of AC_LIBOBJ.
2839         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2840         Remove AC_LIBOBJ invocation.
2841         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2842         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2843
2844 2011-05-23  Bruno Haible  <bruno@clisp.org>
2845
2846         filemode: Move AC_LIBOBJ invocations to module description.
2847         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2848         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2849
2850 2011-05-23  Bruno Haible  <bruno@clisp.org>
2851
2852         openat-safer: Move AC_LIBOBJ invocations to module description.
2853         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2854         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2855
2856 2011-05-23  Bruno Haible  <bruno@clisp.org>
2857
2858         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2859         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2860         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2861
2862 2011-05-23  Bruno Haible  <bruno@clisp.org>
2863
2864         exclude: Move AC_LIBOBJ invocations to module description.
2865         * m4/exclude.m4: Remove file.
2866         * modules/exclude (Files): Remove it.
2867         (configure.ac): Remove gl_EXCLUDE call.
2868         (Makefile.am): Augment lib_SOURCES.
2869
2870 2011-05-23  Bruno Haible  <bruno@clisp.org>
2871
2872         dirname*: Respect rules for use of AC_LIBOBJ.
2873         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2874         invocations.
2875         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2876         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2877
2878 2011-05-23  Bruno Haible  <bruno@clisp.org>
2879
2880         dirent-safer: Move AC_LIBOBJ invocations to module description.
2881         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2882         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2883
2884 2011-05-23  Bruno Haible  <bruno@clisp.org>
2885
2886         crypto/des: Move AC_LIBOBJ invocations to module description.
2887         * m4/des.m4: Remove file.
2888         * modules/crypto/des (Files): Remove it.
2889         (configure.ac): Remove gl_DES call.
2890         (Makefile.am): Augment lib_SOURCES.
2891
2892 2011-05-23  Bruno Haible  <bruno@clisp.org>
2893
2894         cycle-check: Move AC_LIBOBJ invocations to module description.
2895         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2896         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2897
2898 2011-05-23  Bruno Haible  <bruno@clisp.org>
2899
2900         c-strtold: Move AC_LIBOBJ invocations to module description.
2901         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2902         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2903
2904 2011-05-23  Bruno Haible  <bruno@clisp.org>
2905
2906         c-strtod: Move AC_LIBOBJ invocations to module description.
2907         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2908         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2909
2910 2011-05-23  Bruno Haible  <bruno@clisp.org>
2911
2912         crc: Move AC_LIBOBJ invocations to module description.
2913         * m4/crc.m4: Remove file.
2914         * modules/crc (Files): Remove it.
2915         (configure.ac): Remove gl_CRC call.
2916         (Makefile.am): Augment lib_SOURCES.
2917
2918 2011-05-23  Bruno Haible  <bruno@clisp.org>
2919
2920         close-stream: Move AC_LIBOBJ invocations to module description.
2921         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2922         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2923
2924 2011-05-23  Bruno Haible  <bruno@clisp.org>
2925
2926         closeout: Move AC_LIBOBJ invocations to module description.
2927         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2928         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2929
2930 2011-05-23  Bruno Haible  <bruno@clisp.org>
2931
2932         closein: Move AC_LIBOBJ invocations to module description.
2933         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2934         * modules/closein (Makefile.am): Augment lib_SOURCES.
2935
2936 2011-05-23  Bruno Haible  <bruno@clisp.org>
2937
2938         cloexec: Move AC_LIBOBJ invocations to module description.
2939         * m4/cloexec.m4: Remove file.
2940         * modules/cloexec (Files): Remove it.
2941         (configure.ac): Remove gl_CLOEXEC call.
2942         (Makefile.am): Augment lib_SOURCES.
2943
2944 2011-05-23  Bruno Haible  <bruno@clisp.org>
2945
2946         check-version: Move AC_LIBOBJ invocations to module description.
2947         * m4/check-version.m4: Remove file.
2948         * modules/check-version (Files): Remove it.
2949         (configure.ac): Remove gl_CHECK_VERSION call.
2950         (Makefile.am): Augment lib_SOURCES.
2951
2952 2011-05-23  Bruno Haible  <bruno@clisp.org>
2953
2954         chdir-safer: Move AC_LIBOBJ invocations to module description.
2955         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2956         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2957
2958 2011-05-23  Bruno Haible  <bruno@clisp.org>
2959
2960         canonicalize: Move AC_LIBOBJ invocations to module description.
2961         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2962         AC_LIBOBJ invocation.
2963         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2964
2965 2011-05-23  Bruno Haible  <bruno@clisp.org>
2966
2967         canon-host: Move AC_LIBOBJ invocations to module description.
2968         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2969         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2970         instead of gl_CANON_HOST.
2971         (Makefile.am): Augment lib_SOURCES.
2972
2973 2011-05-23  Bruno Haible  <bruno@clisp.org>
2974
2975         backupfile: Move AC_LIBOBJ invocations to module description.
2976         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2977         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2978
2979 2011-05-23  Bruno Haible  <bruno@clisp.org>
2980
2981         argmatch: Move AC_LIBOBJ invocations to module description.
2982         * m4/argmatch.m4: Remove file.
2983         * modules/argmatch (Files): Remove it.
2984         (configure.ac): Remove gl_ARGMATCH call.
2985         (Makefile.am): Augment lib_SOURCES.
2986
2987 2011-05-23  Bruno Haible  <bruno@clisp.org>
2988
2989         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2990         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2991         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2992
2993 2011-05-23  Bruno Haible  <bruno@clisp.org>
2994
2995         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2996         * m4/arcfour.m4: Remove file.
2997         * modules/crypto/arcfour (Files): Remove it.
2998         (configure.ac): Remove gl_ARCFOUR call.
2999         (Makefile.am): Augment lib_SOURCES.
3000
3001 2011-05-22  Bruno Haible  <bruno@clisp.org>
3002
3003         write: Move AC_LIBOBJ invocations to module description.
3004         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3005         * modules/write (configure.ac): ... to here.
3006
3007 2011-05-22  Bruno Haible  <bruno@clisp.org>
3008
3009         wmemset: Move AC_LIBOBJ invocations to module description.
3010         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3011         here...
3012         * modules/wmemset (configure.ac): ... to here.
3013
3014 2011-05-22  Bruno Haible  <bruno@clisp.org>
3015
3016         wmemmove: Move AC_LIBOBJ invocations to module description.
3017         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3018         here...
3019         * modules/wmemmove (configure.ac): ... to here.
3020
3021 2011-05-22  Bruno Haible  <bruno@clisp.org>
3022
3023         wmemcpy: Move AC_LIBOBJ invocations to module description.
3024         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3025         here...
3026         * modules/wmemcpy (configure.ac): ... to here.
3027
3028 2011-05-22  Bruno Haible  <bruno@clisp.org>
3029
3030         wmemcmp: Move AC_LIBOBJ invocations to module description.
3031         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3032         here...
3033         * modules/wmemcmp (configure.ac): ... to here.
3034
3035 2011-05-22  Bruno Haible  <bruno@clisp.org>
3036
3037         wmemchr: Move AC_LIBOBJ invocations to module description.
3038         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3039         here...
3040         * modules/wmemchr (configure.ac): ... to here.
3041
3042 2011-05-22  Bruno Haible  <bruno@clisp.org>
3043
3044         wcswidth: Move AC_LIBOBJ invocations to module description.
3045         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3046         here...
3047         * modules/wcswidth (configure.ac): ... to here.
3048
3049 2011-05-22  Bruno Haible  <bruno@clisp.org>
3050
3051         wcwidth: Respect rules for use of AC_LIBOBJ.
3052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3053         invocation from here...
3054         * modules/wcwidth (configure.ac): ... to here.
3055         (Depends-on): Update conditions.
3056
3057 2011-05-22  Bruno Haible  <bruno@clisp.org>
3058
3059         wctype: Move AC_LIBOBJ invocations to module description.
3060         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3061         invocation from here...
3062         * modules/wctype (configure.ac): ... to here.
3063         (Depends-on): Update conditions.
3064
3065 2011-05-22  Bruno Haible  <bruno@clisp.org>
3066
3067         wctrans: Move AC_LIBOBJ invocations to module description.
3068         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3069         invocation from here...
3070         * modules/wctrans (configure.ac): ... to here.
3071
3072 2011-05-22  Bruno Haible  <bruno@clisp.org>
3073
3074         wctomb: Move AC_LIBOBJ invocations to module description.
3075         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3076         invocations from here...
3077         * modules/wctomb (configure.ac): ... to here.
3078
3079 2011-05-22  Bruno Haible  <bruno@clisp.org>
3080
3081         wctob: Move AC_LIBOBJ invocations to module description.
3082         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3083         gl_PREREQ_WCTOB invocations from here...
3084         * modules/wctob (configure.ac): ... to here.
3085         (Depends-on): Update conditions.
3086
3087 2011-05-22  Bruno Haible  <bruno@clisp.org>
3088
3089         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3090         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3091         here...
3092         * modules/wcsxfrm (configure.ac): ... to here.
3093
3094 2011-05-22  Bruno Haible  <bruno@clisp.org>
3095
3096         wcstok: Move AC_LIBOBJ invocations to module description.
3097         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3098         * modules/wcstok (configure.ac): ... to here.
3099
3100 2011-05-22  Bruno Haible  <bruno@clisp.org>
3101
3102         wcsstr: Move AC_LIBOBJ invocations to module description.
3103         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3104         * modules/wcsstr (configure.ac): ... to here.
3105
3106 2011-05-22  Bruno Haible  <bruno@clisp.org>
3107
3108         wcsspn: Move AC_LIBOBJ invocations to module description.
3109         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3110         * modules/wcsspn (configure.ac): ... to here.
3111
3112 2011-05-22  Bruno Haible  <bruno@clisp.org>
3113
3114         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3115         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3116         gl_PREREQ_WCSRTOMBS invocations from here...
3117         * modules/wcsrtombs (configure.ac): ... to here.
3118
3119 2011-05-22  Bruno Haible  <bruno@clisp.org>
3120
3121         wcsrchr: Move AC_LIBOBJ invocations to module description.
3122         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3123         here...
3124         * modules/wcsrchr (configure.ac): ... to here.
3125
3126 2011-05-22  Bruno Haible  <bruno@clisp.org>
3127
3128         wcspbrk: Move AC_LIBOBJ invocations to module description.
3129         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3130         here...
3131         * modules/wcspbrk (configure.ac): ... to here.
3132
3133 2011-05-22  Bruno Haible  <bruno@clisp.org>
3134
3135         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3136         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3137         gl_PREREQ_WCSNRTOMBS invocations from here...
3138         * modules/wcsnrtombs (configure.ac): ... to here.
3139
3140 2011-05-22  Bruno Haible  <bruno@clisp.org>
3141
3142         wcsnlen: Move AC_LIBOBJ invocations to module description.
3143         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3144         here...
3145         * modules/wcsnlen (configure.ac): ... to here.
3146
3147 2011-05-22  Bruno Haible  <bruno@clisp.org>
3148
3149         wcsncpy: Move AC_LIBOBJ invocations to module description.
3150         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3151         here...
3152         * modules/wcsncpy (configure.ac): ... to here.
3153
3154 2011-05-22  Bruno Haible  <bruno@clisp.org>
3155
3156         wcsncmp: Move AC_LIBOBJ invocations to module description.
3157         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3158         here...
3159         * modules/wcsncmp (configure.ac): ... to here.
3160
3161 2011-05-22  Bruno Haible  <bruno@clisp.org>
3162
3163         wcsncat: Move AC_LIBOBJ invocations to module description.
3164         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3165         here...
3166         * modules/wcsncat (configure.ac): ... to here.
3167
3168 2011-05-22  Bruno Haible  <bruno@clisp.org>
3169
3170         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3171         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3172         from here...
3173         * modules/wcsncasecmp (configure.ac): ... to here.
3174
3175 2011-05-22  Bruno Haible  <bruno@clisp.org>
3176
3177         wcslen: Move AC_LIBOBJ invocations to module description.
3178         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3179         * modules/wcslen (configure.ac): ... to here.
3180
3181 2011-05-22  Bruno Haible  <bruno@clisp.org>
3182
3183         wcsdup: Move AC_LIBOBJ invocations to module description.
3184         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3185         * modules/wcsdup (configure.ac): ... to here.
3186
3187 2011-05-22  Bruno Haible  <bruno@clisp.org>
3188
3189         wcscspn: Move AC_LIBOBJ invocations to module description.
3190         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3191         here...
3192         * modules/wcscspn (configure.ac): ... to here.
3193
3194 2011-05-22  Bruno Haible  <bruno@clisp.org>
3195
3196         wcscpy: Move AC_LIBOBJ invocations to module description.
3197         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3198         * modules/wcscpy (configure.ac): ... to here.
3199
3200 2011-05-22  Bruno Haible  <bruno@clisp.org>
3201
3202         wcscoll: Move AC_LIBOBJ invocations to module description.
3203         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3204         here...
3205         * modules/wcscoll (configure.ac): ... to here.
3206
3207 2011-05-22  Bruno Haible  <bruno@clisp.org>
3208
3209         wcscmp: Move AC_LIBOBJ invocations to module description.
3210         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3211         * modules/wcscmp (configure.ac): ... to here.
3212
3213 2011-05-22  Bruno Haible  <bruno@clisp.org>
3214
3215         wcschr: Move AC_LIBOBJ invocations to module description.
3216         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3217         * modules/wcschr (configure.ac): ... to here.
3218
3219 2011-05-22  Bruno Haible  <bruno@clisp.org>
3220
3221         wcscat: Move AC_LIBOBJ invocations to module description.
3222         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3223         * modules/wcscat (configure.ac): ... to here.
3224
3225 2011-05-22  Bruno Haible  <bruno@clisp.org>
3226
3227         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3228         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3229         here...
3230         * modules/wcscasecmp (configure.ac): ... to here.
3231
3232 2011-05-22  Bruno Haible  <bruno@clisp.org>
3233
3234         wcrtomb: Move AC_LIBOBJ invocations to module description.
3235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3236         invocations from here...
3237         * modules/wcrtomb (configure.ac): ... to here.
3238
3239 2011-05-22  Bruno Haible  <bruno@clisp.org>
3240
3241         wcpncpy: Move AC_LIBOBJ invocations to module description.
3242         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3243         here...
3244         * modules/wcpncpy (configure.ac): ... to here.
3245
3246 2011-05-22  Bruno Haible  <bruno@clisp.org>
3247
3248         wcpcpy: Move AC_LIBOBJ invocations to module description.
3249         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3250         * modules/wcpcpy (configure.ac): ... to here.
3251
3252 2011-05-22  Bruno Haible  <bruno@clisp.org>
3253
3254         waitpid: Move AC_LIBOBJ invocations to module description.
3255         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3256         invocation from here...
3257         * modules/waitpid (configure.ac): ... to here.
3258
3259 2011-05-22  Bruno Haible  <bruno@clisp.org>
3260
3261         utimensat: Move AC_LIBOBJ invocations to module description.
3262         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3263         here...
3264         * modules/utimensat (configure.ac): ... to here.
3265
3266 2011-05-22  Bruno Haible  <bruno@clisp.org>
3267
3268         usleep: Move AC_LIBOBJ invocations to module description.
3269         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3270         here...
3271         * modules/usleep (configure.ac): ... to here.
3272
3273 2011-05-22  Bruno Haible  <bruno@clisp.org>
3274
3275         unlockpt: Move AC_LIBOBJ invocations to module description.
3276         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3277         gl_PREREQ_UNLOCKPT invocations from here...
3278         * modules/unlockpt (configure.ac): ... to here.
3279
3280 2011-05-22  Bruno Haible  <bruno@clisp.org>
3281
3282         unlink: Respect rules for use of AC_LIBOBJ.
3283         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3284         * modules/unlink (configure.ac): ... to here.
3285
3286 2011-05-22  Bruno Haible  <bruno@clisp.org>
3287
3288         uname: Move AC_LIBOBJ invocations to module description.
3289         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3291         here...
3292         * modules/uname (configure.ac): ... to here.
3293
3294 2011-05-22  Bruno Haible  <bruno@clisp.org>
3295
3296         ttyname_r: Move AC_LIBOBJ invocations to module description.
3297         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3298         gl_PREREQ_TTYNAME_R invocations from here...
3299         * modules/ttyname_r (configure.ac): ... to here.
3300
3301 2011-05-22  Bruno Haible  <bruno@clisp.org>
3302
3303         tsearch: Move AC_LIBOBJ invocations to module description.
3304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3305         invocations from here...
3306         * modules/tsearch (configure.ac): ... to here.
3307
3308 2011-05-22  Bruno Haible  <bruno@clisp.org>
3309
3310         towctrans: Move AC_LIBOBJ invocations to module description.
3311         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3312         AC_LIBOBJ invocation from here...
3313         * modules/towctrans (configure.ac): ... to here.
3314
3315 2011-05-22  Bruno Haible  <bruno@clisp.org>
3316
3317         tmpfile: Move AC_LIBOBJ invocations to module description.
3318         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3319         invocations from here...
3320         * modules/tmpfile (configure.ac): ... to here.
3321
3322 2011-05-22  Bruno Haible  <bruno@clisp.org>
3323
3324         times: Move AC_LIBOBJ invocations to module description.
3325         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3326         * modules/times (configure.ac): ... to here.
3327
3328 2011-05-22  Bruno Haible  <bruno@clisp.org>
3329
3330         time_r: Move AC_LIBOBJ invocations to module description.
3331         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3332         invocations from here...
3333         * modules/time_r (configure.ac): ... to here.
3334
3335 2011-05-22  Bruno Haible  <bruno@clisp.org>
3336
3337         timegm: Move AC_LIBOBJ invocations to module description.
3338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3339         invocations from here...
3340         * modules/timegm (configure.ac): ... to here.
3341
3342 2011-05-22  Bruno Haible  <bruno@clisp.org>
3343
3344         tcgetsid: Move AC_LIBOBJ invocations to module description.
3345         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3346         and gl_PREREQ_TCGETSID invocations from here...
3347         * modules/tcgetsid (configure.ac): ... to here.
3348         (Depends-on): Update conditions.
3349
3350 2011-05-22  Bruno Haible  <bruno@clisp.org>
3351
3352         symlinkat: Move AC_LIBOBJ invocations to module description.
3353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3354         here...
3355         * modules/symlinkat (configure.ac): ... to here.
3356
3357 2011-05-22  Bruno Haible  <bruno@clisp.org>
3358
3359         symlink: Move AC_LIBOBJ invocations to module description.
3360         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3361         here...
3362         * modules/symlink (configure.ac): ... to here.
3363
3364 2011-05-22  Bruno Haible  <bruno@clisp.org>
3365
3366         strverscmp: Move AC_LIBOBJ invocations to module description.
3367         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3369         from here...
3370         * modules/strverscmp (configure.ac): ... to here.
3371
3372 2011-05-22  Bruno Haible  <bruno@clisp.org>
3373
3374         strtok_r: Move AC_LIBOBJ invocations to module description.
3375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3376         and gl_PREREQ_STRTOK_R invocations from here...
3377         * modules/strtok_r (configure.ac): ... to here.
3378         (Depends-on): Update conditions.
3379
3380 2011-05-22  Bruno Haible  <bruno@clisp.org>
3381
3382         strtoumax: Move AC_LIBOBJ invocations to module description.
3383         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3385         from here...
3386         * modules/strtoumax (configure.ac): ... to here.
3387
3388 2011-05-22  Bruno Haible  <bruno@clisp.org>
3389
3390         strtoimax: Move AC_LIBOBJ invocations to module description.
3391         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3393         from here...
3394         * modules/strtoimax (configure.ac): ... to here.
3395
3396 2011-05-22  Bruno Haible  <bruno@clisp.org>
3397
3398         strtoull: Move AC_LIBOBJ invocations to module description.
3399         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3401         from here...
3402         * modules/strtoull (configure.ac): ... to here.
3403
3404 2011-05-22  Bruno Haible  <bruno@clisp.org>
3405
3406         strtoll: Move AC_LIBOBJ invocations to module description.
3407         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3409         here...
3410         * modules/strtoll (configure.ac): ... to here.
3411
3412 2011-05-22  Bruno Haible  <bruno@clisp.org>
3413
3414         strtoul: Move AC_LIBOBJ invocations to module description.
3415         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3417         * modules/strtoul (configure.ac): ... to here.
3418
3419 2011-05-22  Bruno Haible  <bruno@clisp.org>
3420
3421         strtol: Move AC_LIBOBJ invocations to module description.
3422         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3423         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3424         * modules/strtol (configure.ac): ... to here.
3425
3426 2011-05-22  Bruno Haible  <bruno@clisp.org>
3427
3428         strtod: Move AC_LIBOBJ invocations to module description.
3429         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3430         invocations from here...
3431         * modules/strtod (configure.ac): ... to here.
3432
3433 2011-05-22  Bruno Haible  <bruno@clisp.org>
3434
3435         strstr*: Move AC_LIBOBJ invocations to module description.
3436         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3437         invocations from here...
3438         * modules/strstr-simple (configure.ac): ... to here.
3439         * modules/strstr (configure.ac): ... and here.
3440
3441 2011-05-22  Bruno Haible  <bruno@clisp.org>
3442
3443         strsignal: Move AC_LIBOBJ invocations to module description.
3444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3445         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3446         * modules/strsignal (configure.ac): ... to here.
3447         (Depends-on): Update conditions.
3448
3449 2011-05-22  Bruno Haible  <bruno@clisp.org>
3450
3451         strsep: Move AC_LIBOBJ invocations to module description.
3452         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3454         here...
3455         * modules/strsep (configure.ac): ... to here.
3456
3457 2011-05-22  Bruno Haible  <bruno@clisp.org>
3458
3459         strptime: Move AC_LIBOBJ invocations to module description.
3460         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3461         gl_PREREQ_STRPTIME invocations from here...
3462         * modules/strptime (configure.ac): ... to here.
3463
3464 2011-05-22  Bruno Haible  <bruno@clisp.org>
3465
3466         strpbrk: Move AC_LIBOBJ invocations to module description.
3467         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3469         here...
3470         * modules/strpbrk (configure.ac): ... to here.
3471
3472 2011-05-22  Bruno Haible  <bruno@clisp.org>
3473
3474         strnlen: Move AC_LIBOBJ invocations to module description.
3475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3476         invocations from here...
3477         * modules/strnlen (configure.ac): ... to here.
3478
3479 2011-05-22  Bruno Haible  <bruno@clisp.org>
3480
3481         strndup: Move AC_LIBOBJ invocations to module description.
3482         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3483         invocations from here...
3484         * modules/strndup (configure.ac): ... to here.
3485         (Depends-on): Update conditions.
3486
3487 2011-05-22  Bruno Haible  <bruno@clisp.org>
3488
3489         strncat: Move AC_LIBOBJ invocations to module description.
3490         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3491         invocations from here...
3492         * modules/strncat (configure.ac): ... to here.
3493
3494 2011-05-22  Bruno Haible  <bruno@clisp.org>
3495
3496         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3497         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3498         invocations from here...
3499         * modules/strdup (configure.ac): ... to here.
3500         * modules/strdup-posix (configure.ac): ... and here.
3501
3502 2011-05-22  Bruno Haible  <bruno@clisp.org>
3503
3504         strcspn: Move AC_LIBOBJ invocations to module description.
3505         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3507         here...
3508         * modules/strcspn (configure.ac): ... to here.
3509
3510 2011-05-22  Bruno Haible  <bruno@clisp.org>
3511
3512         strchrnul: Move AC_LIBOBJ invocations to module description.
3513         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3514         gl_PREREQ_STRCHRNUL invocations from here...
3515         * modules/strchrnul (configure.ac): ... to here.
3516
3517 2011-05-22  Bruno Haible  <bruno@clisp.org>
3518
3519         strcasestr*: Move AC_LIBOBJ invocations to module description.
3520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3521         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3522         * modules/strcasestr-simple (configure.ac): ... to here.
3523         * modules/strcasestr (configure.ac): ... and here.
3524
3525 2011-05-22  Bruno Haible  <bruno@clisp.org>
3526
3527         strcase: Move AC_LIBOBJ invocations to module description.
3528         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3529         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3530         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3531         gl_PREREQ_STRNCASECMP invocations from here...
3532         * modules/strcase (configure.ac): ... to here.
3533
3534 2011-05-22  Bruno Haible  <bruno@clisp.org>
3535
3536         stpncpy: Move AC_LIBOBJ invocations to module description.
3537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3538         here...
3539         * modules/stpncpy (configure.ac): ... to here.
3540
3541 2011-05-22  Bruno Haible  <bruno@clisp.org>
3542
3543         stpcpy: Move AC_LIBOBJ invocations to module description.
3544         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3546         here...
3547         * modules/stpcpy (configure.ac): ... to here.
3548
3549 2011-05-21  Bruno Haible  <bruno@clisp.org>
3550
3551         stat: Move AC_LIBOBJ invocations to module description.
3552         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3553         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3554         here...
3555         * modules/stat (configure.ac): ... to here.
3556
3557 2011-05-21  Bruno Haible  <bruno@clisp.org>
3558
3559         sleep: Move AC_LIBOBJ invocations to module description.
3560         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3561         * modules/sleep (configure.ac): ... to here.
3562
3563 2011-05-21  Bruno Haible  <bruno@clisp.org>
3564
3565         signbit: Move AC_LIBOBJ invocations to module description.
3566         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3567         * modules/signbit (configure.ac): ... to here.
3568
3569 2011-05-21  Bruno Haible  <bruno@clisp.org>
3570
3571         sigprocmask: Move AC_LIBOBJ invocations to module description.
3572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3573         gl_PREREQ_SIGPROMASK invocations from here...
3574         * modules/sigprocmask (configure.ac): ... to here.
3575
3576 2011-05-21  Bruno Haible  <bruno@clisp.org>
3577
3578         sigaction: Move AC_LIBOBJ invocations to module description.
3579         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3580         gl_PREREQ_SIGACTION invocations from here...
3581         * modules/sigaction (configure.ac): ... to here.
3582
3583 2011-05-21  Bruno Haible  <bruno@clisp.org>
3584
3585         sig2str: Move AC_LIBOBJ invocations to module description.
3586         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3587         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3588         here...
3589         * modules/sig2str (configure.ac): ... to here.
3590
3591 2011-05-21  Bruno Haible  <bruno@clisp.org>
3592
3593         setlocale: Move AC_LIBOBJ invocations to module description.
3594         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3595         gl_PREREQ_SETLOCALE invocations from here...
3596         * modules/setlocale (configure.ac): ... to here.
3597
3598 2011-05-21  Bruno Haible  <bruno@clisp.org>
3599
3600         unsetenv: Move AC_LIBOBJ invocations to module description.
3601         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3602         and gl_PREREQ_UNSETENV invocations from here...
3603         * modules/unsetenv (configure.ac): ... to here.
3604         (Depends-on): Update.
3605
3606 2011-05-21  Bruno Haible  <bruno@clisp.org>
3607
3608         setenv: Move AC_LIBOBJ invocations to module description.
3609         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3610         here...
3611         * modules/setenv (configure.ac): ... to here.
3612
3613 2011-05-21  Bruno Haible  <bruno@clisp.org>
3614
3615         selinux-h: Move AC_LIBOBJ invocations to module description.
3616         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3617         AC_LIBOBJ invocation from here...
3618         * modules/selinux-h (configure.ac): ... to here.
3619
3620 2011-05-21  Bruno Haible  <bruno@clisp.org>
3621
3622         select: Respect rules for use of AC_LIBOBJ.
3623         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3624         here...
3625         * modules/select (configure.ac): ... to here.
3626
3627 2011-05-21  Bruno Haible  <bruno@clisp.org>
3628
3629         scandir: Move AC_LIBOBJ invocations to module description.
3630         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3631         invocations from here...
3632         * modules/scandir (configure.ac): ... to here.
3633
3634 2011-05-21  Bruno Haible  <bruno@clisp.org>
3635
3636         rpmatch: Move AC_LIBOBJ invocations to module description.
3637         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3639         here...
3640         * modules/rpmatch (configure.ac): ... to here.
3641
3642 2011-05-21  Bruno Haible  <bruno@clisp.org>
3643
3644         rmdir: Respect rules for use of AC_LIBOBJ.
3645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3646         * modules/rmdir (configure.ac): ... to here.
3647
3648 2011-05-21  Bruno Haible  <bruno@clisp.org>
3649
3650         renameat: Move AC_LIBOBJ invocations to module description.
3651         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3652         here...
3653         * modules/renameat (configure.ac): ... to here.
3654
3655 2011-05-21  Bruno Haible  <bruno@clisp.org>
3656
3657         rename: Respect rules for use of AC_LIBOBJ.
3658         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3659         here...
3660         * modules/rename (configure.ac): ... to here.
3661
3662 2011-05-21  Bruno Haible  <bruno@clisp.org>
3663
3664         remove: Move AC_LIBOBJ invocations to module description.
3665         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3666         here...
3667         * modules/remove (configure.ac): ... to here.
3668
3669 2011-05-21  Bruno Haible  <bruno@clisp.org>
3670
3671         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3672         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3673         macro.
3674         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3675         * modules/relocatable-lib (configure.ac): ... to here.
3676         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3677         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3678
3679 2011-05-21  Bruno Haible  <bruno@clisp.org>
3680
3681         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3682         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3683         here...
3684         * modules/relocatable-prog (configure.ac): ... to here.
3685
3686 2011-05-21  Bruno Haible  <bruno@clisp.org>
3687
3688         regex: Move AC_LIBOBJ invocations to module description.
3689         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3690         invocations from here...
3691         * modules/regex (configure.ac): ... to here.
3692
3693 2011-05-21  Bruno Haible  <bruno@clisp.org>
3694
3695         realloc-*: Move AC_LIBOBJ invocations to module description.
3696         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3697         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3698         AC_LIBOBJ invocations from here...
3699         * modules/realloc-gnu (configure.ac): ... to here.
3700         * modules/realloc-posix (configure.ac): ... and here.
3701
3702 2011-05-21  Bruno Haible  <bruno@clisp.org>
3703
3704         readutmp: Move AC_LIBOBJ invocations to module description.
3705         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3706         * modules/readutmp (configure.ac): ... to here.
3707
3708 2011-05-21  Bruno Haible  <bruno@clisp.org>
3709
3710         readlinkat: Move AC_LIBOBJ invocations to module description.
3711         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3712         here...
3713         * modules/readlinkat (configure.ac): ... to here.
3714
3715 2011-05-21  Bruno Haible  <bruno@clisp.org>
3716
3717         readlink: Move AC_LIBOBJ invocations to module description.
3718         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3719         gl_PREREQ_READLINK invocations from here...
3720         * modules/readlink (configure.ac): ... to here.
3721
3722 2011-05-21  Bruno Haible  <bruno@clisp.org>
3723
3724         readline: Move AC_LIBOBJ invocations to module description.
3725         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3726         gl_PREREQ_READLINE invocations from here...
3727         * modules/readline (configure.ac): ... to here.
3728
3729 2011-05-21  Bruno Haible  <bruno@clisp.org>
3730
3731         read: Move AC_LIBOBJ invocations to module description.
3732         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3733         * modules/read (configure.ac): ... to here.
3734
3735 2011-05-21  Bruno Haible  <bruno@clisp.org>
3736
3737         rawmemchr: Move AC_LIBOBJ invocations to module description.
3738         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3740         from here...
3741         * modules/rawmemchr (configure.ac): ... to here.
3742
3743 2011-05-21  Bruno Haible  <bruno@clisp.org>
3744
3745         random_r: Move AC_LIBOBJ invocations to module description.
3746         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3747         gl_PREREQ_RANDOM_R invocations from here...
3748         * modules/random_r (configure.ac): ... to here.
3749
3750 2011-05-21  Bruno Haible  <bruno@clisp.org>
3751
3752         pwrite: Move AC_LIBOBJ invocations to module description.
3753         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3754         * modules/pwrite (configure.ac): ... to here.
3755
3756 2011-05-21  Bruno Haible  <bruno@clisp.org>
3757
3758         putenv: Move AC_LIBOBJ invocations to module description.
3759         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3760         * modules/putenv (configure.ac): ... to here.
3761
3762 2011-05-21  Bruno Haible  <bruno@clisp.org>
3763
3764         login_tty: Move AC_LIBOBJ invocations to module description.
3765         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3766         * modules/login_tty (configure.ac): ... to here.
3767
3768 2011-05-21  Bruno Haible  <bruno@clisp.org>
3769
3770         openpty: Move AC_LIBOBJ invocations to module description.
3771         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3772         * modules/openpty (configure.ac): ... to here.
3773
3774 2011-05-21  Bruno Haible  <bruno@clisp.org>
3775
3776         forkpty: Move AC_LIBOBJ invocations to module description.
3777         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3778         * modules/forkpty (configure.ac): ... to here.
3779
3780 2011-05-21  Bruno Haible  <bruno@clisp.org>
3781
3782         ptsname: Move AC_LIBOBJ invocations to module description.
3783         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3784         invocations from here...
3785         * modules/ptsname (configure.ac): ... to here.
3786
3787 2011-05-21  Bruno Haible  <bruno@clisp.org>
3788
3789         pread: Move AC_LIBOBJ invocations to module description.
3790         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3791         * modules/pread (configure.ac): ... to here.
3792
3793 2011-05-21  Bruno Haible  <bruno@clisp.org>
3794
3795         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3796         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3797         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3798         * modules/posix_spawn (configure.ac): ... to here.
3799         * modules/posix_spawnp (configure.ac): ... and here.
3800
3801 2011-05-21  Bruno Haible  <bruno@clisp.org>
3802
3803         popen: Move AC_LIBOBJ invocations to module description.
3804         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3805         invocations from here...
3806         * modules/popen (configure.ac): ... to here.
3807
3808 2011-05-21  Bruno Haible  <bruno@clisp.org>
3809
3810         poll: Move AC_LIBOBJ invocations to module description.
3811         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3812         invocations from here...
3813         * modules/poll (configure.ac): ... to here.
3814
3815 2011-05-21  Bruno Haible  <bruno@clisp.org>
3816
3817         pipe-posix: Move AC_LIBOBJ invocations to module description.
3818         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3819         * modules/pipe-posix (configure.ac): ... to here.
3820
3821 2011-05-21  Bruno Haible  <bruno@clisp.org>
3822
3823         openat: Respect rules for use of AC_LIBOBJ.
3824         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3825         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3826         * modules/openat (configure.ac): ... to here.
3827
3828 2011-05-21  Bruno Haible  <bruno@clisp.org>
3829
3830         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3831         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3832         invocation from here...
3833         * modules/obstack-printf (configure.ac): ... to here.
3834         * modules/obstack-printf-posix (configure.ac): ... and here.
3835
3836 2011-05-21  Bruno Haible  <bruno@clisp.org>
3837
3838         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3839         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3840         from here...
3841         * modules/nl_langinfo (configure.ac): ... to here.
3842
3843 2011-05-21  Bruno Haible  <bruno@clisp.org>
3844
3845         nanosleep: Move AC_LIBOBJ invocations to module description.
3846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3847         gl_PREREQ_NANOSLEEP invocations from here...
3848         * modules/nanosleep (configure.ac): ... to here.
3849
3850 2011-05-21  Bruno Haible  <bruno@clisp.org>
3851
3852         mountlist: Move AC_LIBOBJ invocations to module description.
3853         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3854         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3855         * modules/mountlist (configure.ac): ... to here.
3856
3857 2011-05-21  Bruno Haible  <bruno@clisp.org>
3858
3859         mktime: Respect rules for use of AC_LIBOBJ.
3860         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3861         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3862         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3863         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3864         * modules/mktime (configure.ac): ... to here.
3865         * modules/mktime-internal (configure.ac): ... and here.
3866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3867
3868 2011-05-21  Bruno Haible  <bruno@clisp.org>
3869
3870         mkstemps: Move AC_LIBOBJ invocations to module description.
3871         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3872         here...
3873         * modules/mkstemps (configure.ac): ... to here.
3874
3875 2011-05-21  Bruno Haible  <bruno@clisp.org>
3876
3877         mkstemp: Move AC_LIBOBJ invocations to module description.
3878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3879         gl_PREREQ_MKSTEMP invocations from here...
3880         * modules/mkstemp (configure.ac): ... to here.
3881
3882 2011-05-21  Bruno Haible  <bruno@clisp.org>
3883
3884         mkostemps: Move AC_LIBOBJ invocations to module description.
3885         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3886         here...
3887         * modules/mkostemps (configure.ac): ... to here.
3888
3889 2011-05-21  Bruno Haible  <bruno@clisp.org>
3890
3891         mkostemp: Move AC_LIBOBJ invocations to module description.
3892         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3893         gl_PREREQ_MKOSTEMP invocations from here...
3894         * modules/mkostemp (configure.ac): ... to here.
3895
3896 2011-05-21  Bruno Haible  <bruno@clisp.org>
3897
3898         mknod: Move AC_LIBOBJ invocations to module description.
3899         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3900         * modules/mknod (configure.ac): ... to here.
3901
3902 2011-05-21  Bruno Haible  <bruno@clisp.org>
3903
3904         mkfifoat: Move AC_LIBOBJ invocations to module description.
3905         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3906         here...
3907         * modules/mkfifoat (configure.ac): ... to here.
3908
3909 2011-05-21  Bruno Haible  <bruno@clisp.org>
3910
3911         mkfifo: Respect rules for use of AC_LIBOBJ.
3912         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3913         here...
3914         * modules/mkfifo (configure.ac): ... to here.
3915
3916 2011-05-21  Bruno Haible  <bruno@clisp.org>
3917
3918         mkdtemp: Move AC_LIBOBJ invocations to module description.
3919         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3920         invocations from here...
3921         * modules/mkdtemp (configure.ac): ... to here.
3922
3923 2011-05-21  Bruno Haible  <bruno@clisp.org>
3924
3925         mkdir: Move AC_LIBOBJ invocations to module description.
3926         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3927         * modules/mkdir (configure.ac): ... to here.
3928
3929 2011-05-21  Bruno Haible  <bruno@clisp.org>
3930
3931         memset: Move AC_LIBOBJ invocations to module description.
3932         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3934         here...
3935         * modules/memset (configure.ac): ... to here.
3936
3937 2011-05-21  Bruno Haible  <bruno@clisp.org>
3938
3939         memrchr: Move AC_LIBOBJ invocations to module description.
3940         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3942         here...
3943         * modules/memrchr (configure.ac): ... to here.
3944
3945 2011-05-21  Bruno Haible  <bruno@clisp.org>
3946
3947         mempcpy: Move AC_LIBOBJ invocations to module description.
3948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3950         here...
3951         * modules/mempcpy (configure.ac): ... to here.
3952
3953 2011-05-21  Bruno Haible  <bruno@clisp.org>
3954
3955         memmove: Move AC_LIBOBJ invocations to module description.
3956         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3958         here...
3959         * modules/memmove (configure.ac): ... to here.
3960
3961 2011-05-21  Bruno Haible  <bruno@clisp.org>
3962
3963         memmem*: Move AC_LIBOBJ invocations to module description.
3964         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3965         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3966         here...
3967         (gl_FUNC_MEMMEM): ... and here...
3968         * modules/memmem-simple (configure.ac): ... to here.
3969         * modules/memmem (configure.ac): ... and here.
3970
3971 2011-05-21  Bruno Haible  <bruno@clisp.org>
3972
3973         memcpy: Move AC_LIBOBJ invocations to module description.
3974         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3976         here...
3977         * modules/memcpy (configure.ac): ... to here.
3978
3979 2011-05-21  Bruno Haible  <bruno@clisp.org>
3980
3981         memcmp: Simplify autoconf macro.
3982         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3983         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3984         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3985
3986 2011-05-21  Bruno Haible  <bruno@clisp.org>
3987
3988         memcmp: Move AC_LIBOBJ invocations to module description.
3989         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3990         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3991         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3992         * modules/memcmp (configure.ac): ... to here.
3993         (Depends-on): Update conditions.
3994
3995 2011-05-21  Bruno Haible  <bruno@clisp.org>
3996
3997         memchr: Respect rules for use of AC_LIBOBJ.
3998         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3999         invocations from here...
4000         * modules/memchr (configure.ac): ... to here.
4001
4002 2011-05-21  Bruno Haible  <bruno@clisp.org>
4003
4004         mbtowc: Move AC_LIBOBJ invocations to module description.
4005         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4006         invocations from here...
4007         * modules/mbtowc (configure.ac): ... to here.
4008
4009 2011-05-21  Bruno Haible  <bruno@clisp.org>
4010
4011         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4012         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4013         gl_PREREQ_MBSRTOWCS invocations from here...
4014         * modules/mbsrtowcs (configure.ac): ... to here.
4015
4016 2011-05-21  Bruno Haible  <bruno@clisp.org>
4017
4018         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4019         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4020         gl_PREREQ_MBSNRTOWCS invocations from here...
4021         * modules/mbsnrtowcs (configure.ac): ... to here.
4022
4023 2011-05-21  Bruno Haible  <bruno@clisp.org>
4024
4025         mbsinit: Move AC_LIBOBJ invocations to module description.
4026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4027         invocations from here...
4028         * modules/mbsinit (configure.ac): ... to here.
4029
4030 2011-05-21  Bruno Haible  <bruno@clisp.org>
4031
4032         mbrlen: Move AC_LIBOBJ invocations to module description.
4033         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4034         invocations from here...
4035         * modules/mbrlen (configure.ac): ... to here.
4036
4037 2011-05-21  Bruno Haible  <bruno@clisp.org>
4038
4039         mbrtowc: Respect rules for use of AC_LIBOBJ.
4040         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4041         invocations from here...
4042         * modules/mbrtowc (configure.ac): ... to here.
4043
4044 2011-05-21  Bruno Haible  <bruno@clisp.org>
4045
4046         malloc-*: Move AC_LIBOBJ invocations to module description.
4047         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4048         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4049         AC_LIBOBJ invocations from here...
4050         * modules/malloc-gnu (configure.ac): ... to here.
4051         * modules/malloc-posix (configure.ac): ... and here.
4052
4053 2011-05-21  Bruno Haible  <bruno@clisp.org>
4054
4055         lstat, openat: Respect rules for use of AC_LIBOBJ.
4056         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4057         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4058         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4059         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4060         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4061         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4062         here.
4063         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4064
4065 2011-05-21  Bruno Haible  <bruno@clisp.org>
4066
4067         lseek: Move AC_LIBOBJ invocations to module description.
4068         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4069         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4070         * modules/lseek (configure.ac): ... to here.
4071
4072 2011-05-21  Bruno Haible  <bruno@clisp.org>
4073
4074         linkat: Move AC_LIBOBJ invocations to module description.
4075         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4076         here...
4077         * modules/linkat (configure.ac): ... to here.
4078
4079 2011-05-21  Bruno Haible  <bruno@clisp.org>
4080
4081         link: Respect rules for use of AC_LIBOBJ.
4082         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4083         * modules/link (configure.ac): ... to here.
4084
4085 2011-05-21  Bruno Haible  <bruno@clisp.org>
4086
4087         lchown: Move AC_LIBOBJ invocations to module description.
4088         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4089         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4090         * modules/lchown (configure.ac): ... to here.
4091
4092 2011-05-21  Bruno Haible  <bruno@clisp.org>
4093
4094         iswctype: Move AC_LIBOBJ invocations to module description.
4095         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4096         here...
4097         * modules/iswctype (configure.ac): ... to here.
4098
4099 2011-05-21  Bruno Haible  <bruno@clisp.org>
4100
4101         iswblank: Move AC_LIBOBJ invocations to module description.
4102         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4103         here...
4104         * modules/iswblank (configure.ac): ... to here.
4105
4106 2011-05-21  Bruno Haible  <bruno@clisp.org>
4107
4108         atanl: Move AC_LIBOBJ invocations to module description.
4109         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4110         * modules/atanl (configure.ac): ... to here.
4111
4112 2011-05-21  Bruno Haible  <bruno@clisp.org>
4113
4114         acosl: Move AC_LIBOBJ invocations to module description.
4115         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4116         * modules/acosl (configure.ac): ... to here.
4117
4118 2011-05-21  Bruno Haible  <bruno@clisp.org>
4119
4120         asinl: Respect rules for use of AC_LIBOBJ.
4121         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4122         * modules/asinl (configure.ac): ... to here.
4123
4124 2011-05-21  Bruno Haible  <bruno@clisp.org>
4125
4126         tanl: Move AC_LIBOBJ invocations to module description.
4127         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4128         * modules/tanl (configure.ac): ... to here.
4129
4130 2011-05-21  Bruno Haible  <bruno@clisp.org>
4131
4132         cosl: Move AC_LIBOBJ invocations to module description.
4133         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4134         * modules/cosl (configure.ac): ... to here.
4135
4136 2011-05-21  Bruno Haible  <bruno@clisp.org>
4137
4138         sinl: Move AC_LIBOBJ invocations to module description.
4139         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4140         * modules/sinl (configure.ac): ... to here.
4141
4142 2011-05-21  Bruno Haible  <bruno@clisp.org>
4143
4144         logl: Move AC_LIBOBJ invocations to module description.
4145         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4146         * modules/logl (configure.ac): ... to here.
4147
4148 2011-05-21  Bruno Haible  <bruno@clisp.org>
4149
4150         expl: Move AC_LIBOBJ invocations to module description.
4151         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4152         * modules/expl (configure.ac): ... to here.
4153
4154 2011-05-21  Bruno Haible  <bruno@clisp.org>
4155
4156         roundl: Move AC_LIBOBJ invocations to module description.
4157         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4158         * modules/roundl (configure.ac): ... to here.
4159
4160 2011-05-21  Bruno Haible  <bruno@clisp.org>
4161
4162         round: Move AC_LIBOBJ invocations to module description.
4163         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4164         * modules/round (configure.ac): ... to here.
4165
4166 2011-05-21  Bruno Haible  <bruno@clisp.org>
4167
4168         roundf: Move AC_LIBOBJ invocations to module description.
4169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4170         * modules/roundf (configure.ac): ... to here.
4171
4172 2011-05-21  Bruno Haible  <bruno@clisp.org>
4173
4174         truncl: Move AC_LIBOBJ invocations to module description.
4175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4176         * modules/truncl (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         trunc: Move AC_LIBOBJ invocations to module description.
4181         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4182         * modules/trunc (configure.ac): ... to here.
4183
4184 2011-05-21  Bruno Haible  <bruno@clisp.org>
4185
4186         truncf: Move AC_LIBOBJ invocations to module description.
4187         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4188         * modules/truncf (configure.ac): ... to here.
4189
4190 2011-05-21  Bruno Haible  <bruno@clisp.org>
4191
4192         ceill: Move AC_LIBOBJ invocations to module description.
4193         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4194         * modules/ceill (configure.ac): ... to here.
4195
4196 2011-05-21  Bruno Haible  <bruno@clisp.org>
4197
4198         ceil: Move AC_LIBOBJ invocations to module description.
4199         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4200         * modules/ceil (configure.ac): ... to here.
4201
4202 2011-05-21  Bruno Haible  <bruno@clisp.org>
4203
4204         ceilf: Move AC_LIBOBJ invocations to module description.
4205         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4206         * modules/ceilf (configure.ac): ... to here.
4207
4208 2011-05-21  Bruno Haible  <bruno@clisp.org>
4209
4210         floorl: Respect rules for use of AC_LIBOBJ.
4211         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4212         * modules/floorl (configure.ac): ... to here.
4213
4214 2011-05-21  Bruno Haible  <bruno@clisp.org>
4215
4216         floor: Respect rules for use of AC_LIBOBJ.
4217         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4218         * modules/floor (configure.ac): ... to here.
4219
4220 2011-05-21  Bruno Haible  <bruno@clisp.org>
4221
4222         floorf: Move AC_LIBOBJ invocations to module description.
4223         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4224         * modules/floorf (configure.ac): ... to here.
4225
4226 2011-05-20  Bruno Haible  <bruno@clisp.org>
4227
4228         sqrtl: Respect rules for use of AC_LIBOBJ.
4229         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4230         * modules/sqrtl (configure.ac): ... to here.
4231
4232 2011-05-20  Bruno Haible  <bruno@clisp.org>
4233
4234         ldexpl: Respect rules for use of AC_LIBOBJ.
4235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4236         * modules/ldexpl (configure.ac): ... to here.
4237
4238 2011-05-20  Bruno Haible  <bruno@clisp.org>
4239
4240         frexpl*: Respect rules for use of AC_LIBOBJ.
4241         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4242         invocation from here...
4243         * modules/frexpl (configure.ac): ... to here.
4244         * modules/frexpl-nolibm (configure.ac): ... and here.
4245
4246 2011-05-20  Bruno Haible  <bruno@clisp.org>
4247
4248         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4249         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4250         invocation from here...
4251         * modules/frexp (configure.ac): ... to here.
4252         * modules/frexp-nolibm (configure.ac): ... and here.
4253
4254 2011-05-20  Bruno Haible  <bruno@clisp.org>
4255
4256         isnan: Respect rules for use of AC_LIBOBJ.
4257         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4258         invocations here.
4259         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4260         REPLACE_ISNAN.
4261         * modules/isnand (configure.ac): Likewise.
4262         * modules/isnanl (configure.ac): Likewise.
4263
4264 2011-05-20  Bruno Haible  <bruno@clisp.org>
4265
4266         isnanl*: Respect rules for use of AC_LIBOBJ.
4267         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4268         invocation from here...
4269         * modules/isnanl (configure.ac): ... to here.
4270         * modules/isnanl-nolibm (configure.ac): ... and here.
4271
4272 2011-05-20  Bruno Haible  <bruno@clisp.org>
4273
4274         isnand*: Move AC_LIBOBJ invocations to module description.
4275         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4276         invocation from here...
4277         * modules/isnand (configure.ac): ... to here.
4278         * modules/isnand-nolibm (configure.ac): ... and here.
4279
4280 2011-05-20  Bruno Haible  <bruno@clisp.org>
4281
4282         isnanf*: Move AC_LIBOBJ invocations to module description.
4283         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4284         invocation from here...
4285         * modules/isnanf (configure.ac): ... to here.
4286         * modules/isnanf-nolibm (configure.ac): ... and here.
4287
4288 2011-05-20  Bruno Haible  <bruno@clisp.org>
4289
4290         isnan*: Separate the AC_LIBOBJ invocations.
4291         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4292         AC_LIBOBJ invocation.
4293         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4294         here.
4295         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4296         AC_LIBOBJ invocation.
4297         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4298         here.
4299         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4300         AC_LIBOBJ invocation.
4301         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4302         here.
4303         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4304
4305 2011-05-08  Bruno Haible  <bruno@clisp.org>
4306
4307         isinf: Move AC_LIBOBJ invocations to module description.
4308         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4309         * modules/isinf (configure.ac): ... to here.
4310
4311 2011-05-08  Bruno Haible  <bruno@clisp.org>
4312
4313         isfinite: Move AC_LIBOBJ invocations to module description.
4314         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4315         * modules/isfinite (configure.ac): ... to here.
4316
4317 2011-05-08  Bruno Haible  <bruno@clisp.org>
4318
4319         isblank: Move AC_LIBOBJ invocations to module description.
4320         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4321         here...
4322         * modules/isblank (configure.ac): ... to here.
4323
4324 2011-05-08  Bruno Haible  <bruno@clisp.org>
4325
4326         isapipe: Move AC_LIBOBJ invocations to module description.
4327         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4328         gl_PREREQ_ISAPIPE invocations from here...
4329         * modules/isapipe (configure.ac): ... to here.
4330         (Depends-on): Update condition.
4331
4332 2011-05-08  Bruno Haible  <bruno@clisp.org>
4333
4334         ioctl: Move AC_LIBOBJ invocations to module description.
4335         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4336         invocations from here...
4337         * modules/ioctl (configure.ac): ... to here.
4338         (Depends-on): Update condition.
4339
4340 2011-05-08  Bruno Haible  <bruno@clisp.org>
4341
4342         imaxdiv: Move AC_LIBOBJ invocations to module description.
4343         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4344         invocations from here...
4345         * modules/imaxdiv (configure.ac): ... to here.
4346
4347 2011-05-08  Bruno Haible  <bruno@clisp.org>
4348
4349         imaxabs: Move AC_LIBOBJ invocations to module description.
4350         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4351         invocations from here...
4352         * modules/imaxabs (configure.ac): ... to here.
4353
4354 2011-05-08  Bruno Haible  <bruno@clisp.org>
4355
4356         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4358         AC_LIBOBJ invocations from here...
4359         * modules/getaddrinfo (configure.ac): ... to here.
4360         (Depends-on): Add conditions.
4361
4362 2011-05-08  Bruno Haible  <bruno@clisp.org>
4363
4364         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4365         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4366         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4367         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4368         (gl_PREREQ_INET_PTON): ... from here.
4369         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4370         gl_PREREQ_INET_PTON here.
4371         (Depends-on): Update condition.
4372
4373 2011-05-08  Bruno Haible  <bruno@clisp.org>
4374
4375         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4376         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4377         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4378         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4379         (gl_PREREQ_INET_NTOP): ... from here.
4380         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4381         gl_PREREQ_INET_NTOP here.
4382         (Depends-on): Update condition.
4383
4384 2011-05-08  Bruno Haible  <bruno@clisp.org>
4385
4386         iconv_open: Move AC_LIBOBJ invocations to module description.
4387         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4388         AC_LIBOBJ invocations from here...
4389         * modules/iconv_open (configure.ac): ... to here.
4390
4391 2011-05-08  Bruno Haible  <bruno@clisp.org>
4392
4393         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4394         If module 'iconv_open' is among the main modules and module
4395         'iconv_open-utf' is among the tests dependencies, then
4396         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4397         return the special iconv_t values. Therefore iconv() and iconv_close()
4398         must support these special iconv_t values, already in lib, not only in
4399         tests.
4400         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4401         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4402         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4403         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4404         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4405         (Depends-on): Add the dependencies of iconv_open-utf.
4406         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4407         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4408         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4409
4410 2011-05-08  Bruno Haible  <bruno@clisp.org>
4411
4412         group-member: Move AC_LIBOBJ invocations to module description.
4413         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4414         gl_PREREQ_GROUP_MEMBER invocations from here...
4415         * modules/group-member (configure.ac): ... to here.
4416
4417 2011-05-08  Bruno Haible  <bruno@clisp.org>
4418
4419         grantpt: Move AC_LIBOBJ invocations to module description.
4420         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4421         invocations from here...
4422         * modules/grantpt (configure.ac): ... to here.
4423
4424 2011-05-08  Bruno Haible  <bruno@clisp.org>
4425
4426         glob: Move AC_LIBOBJ invocations to module description.
4427         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4428         from here...
4429         * modules/glob (configure.ac): ... to here.
4430
4431 2011-05-08  Bruno Haible  <bruno@clisp.org>
4432
4433         getusershell: Move AC_LIBOBJ invocations to module description.
4434         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4435         Move AC_LIBOBJ invocation from here...
4436         * modules/getusershell (configure.ac): ... to here.
4437         (Depends-on): Update condition.
4438
4439 2011-05-08  Bruno Haible  <bruno@clisp.org>
4440
4441         gettimeofday: Move AC_LIBOBJ invocations to module description.
4442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4443         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4444         gl_PREREQ_GETTIMEOFDAY invocations from here...
4445         * modules/gettimeofday (configure.ac): ... to here.
4446
4447 2011-05-08  Bruno Haible  <bruno@clisp.org>
4448
4449         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4450         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4451         just gl_FUNC_TZSET.
4452         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4453         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4455         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4456
4457 2011-05-08  Bruno Haible  <bruno@clisp.org>
4458
4459         getsubopt: Move AC_LIBOBJ invocations to module description.
4460         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4461         gl_PREREQ_GETSUBOPT invocations from here...
4462         * modules/getsubopt (configure.ac): ... to here.
4463
4464 2011-05-08  Bruno Haible  <bruno@clisp.org>
4465
4466         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4467         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4468         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4469         * modules/getpass-gnu (configure.ac): ... to here.
4470
4471 2011-05-08  Bruno Haible  <bruno@clisp.org>
4472
4473         getpass: Move AC_LIBOBJ invocations to module description.
4474         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4475         gl_PREREQ_GETPASS invocations from here...
4476         * modules/getpass (configure.ac): ... to here.
4477
4478 2011-05-08  Bruno Haible  <bruno@clisp.org>
4479
4480         getpagesize: Move AC_LIBOBJ invocations to module description.
4481         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4482         from here...
4483         * modules/getpagesize (configure.ac): ... to here.
4484
4485 2011-05-08  Bruno Haible  <bruno@clisp.org>
4486
4487         getopt: Move AC_LIBOBJ invocations to module description.
4488         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4489         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4490         invocations from here...
4491         * modules/getopt-gnu (configure.ac): ... to here.
4492         * modules/getopt-posix (configure.ac): ... and here.
4493         (Depends-on): Update condition.
4494
4495 2011-05-08  Bruno Haible  <bruno@clisp.org>
4496
4497         getopt, argp: Respect rules for use of AC_LIBOBJ.
4498         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4499         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4500         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4501         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4502
4503 2011-05-08  Bruno Haible  <bruno@clisp.org>
4504
4505         getlogin_r: Move AC_LIBOBJ invocations to module description.
4506         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4507         gl_PREREQ_GETLOGIN_R invocations from here...
4508         * modules/getlogin_r (configure.ac): ... to here.
4509
4510 2011-05-08  Bruno Haible  <bruno@clisp.org>
4511
4512         getlogin: Move AC_LIBOBJ invocations to module description.
4513         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4514         here...
4515         * modules/getlogin (configure.ac): ... to here.
4516
4517 2011-05-08  Bruno Haible  <bruno@clisp.org>
4518
4519         getloadavg: Move AC_LIBOBJ invocations to module description.
4520         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4521         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4522         * modules/getloadavg (configure.ac): ... to here.
4523
4524 2011-05-08  Bruno Haible  <bruno@clisp.org>
4525
4526         gethrxtime: Move AC_LIBOBJ invocations to module description.
4527         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4528         LIB_GETHRXTIME from here...
4529         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4530         invocations from here...
4531         * modules/gethrxtime (configure.ac): ... to here.
4532
4533 2011-05-08  Bruno Haible  <bruno@clisp.org>
4534
4535         gethostname: Move AC_LIBOBJ invocations to module description.
4536         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4537         gl_PREREQ_GETHOSTNAME invocations from here...
4538         * modules/gethostname (configure.ac): ... to here.
4539
4540 2011-05-08  Bruno Haible  <bruno@clisp.org>
4541
4542         getgroups: Move AC_LIBOBJ invocations to module description.
4543         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4544         here...
4545         * modules/getgroups (configure.ac): ... to here.
4546
4547 2011-05-08  Bruno Haible  <bruno@clisp.org>
4548
4549         getdtablesize: Move AC_LIBOBJ invocations to module description.
4550         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4551         invocation from here...
4552         * modules/getdtablesize (configure.ac): ... to here.
4553
4554 2011-05-08  Bruno Haible  <bruno@clisp.org>
4555
4556         getdomainname: Move AC_LIBOBJ invocations to module description.
4557         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4558         gl_PREREQ_GETDOMAINNAME invocations from here...
4559         * modules/getdomainname (configure.ac): ... to here.
4560
4561 2011-05-08  Bruno Haible  <bruno@clisp.org>
4562
4563         getline: Move AC_LIBOBJ invocations to module description.
4564         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4565         invocations from here...
4566         * modules/getline (configure.ac): ... to here.
4567
4568 2011-05-08  Bruno Haible  <bruno@clisp.org>
4569
4570         getline: Simplify.
4571         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4572         It's already handled through the module dependency.
4573
4574 2011-05-08  Bruno Haible  <bruno@clisp.org>
4575
4576         getdelim: Move AC_LIBOBJ invocations to module description.
4577         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4578         and gl_PREREQ_GETDELIM invocations from here...
4579         * modules/getdelim (configure.ac): ... to here.
4580         (Depends-on): Fix condition.
4581
4582 2011-05-08  Bruno Haible  <bruno@clisp.org>
4583
4584         getcwd: Move AC_LIBOBJ invocations to module description.
4585         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4586         invocations from here...
4587         * modules/getcwd (configure.ac): ... to here.
4588
4589 2011-05-08  Bruno Haible  <bruno@clisp.org>
4590
4591         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4592         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4593         here...
4594         * modules/getcwd-lgpl (configure.ac): ... to here.
4595
4596 2011-05-07  Bruno Haible  <bruno@clisp.org>
4597
4598         crypto/gc: Move AC_LIBOBJ invocations to module description.
4599         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4600         * modules/crypto/gc (configure.ac): ... to here.
4601
4602 2011-05-07  Bruno Haible  <bruno@clisp.org>
4603
4604         fwriting: Move AC_LIBOBJ invocations to module description.
4605         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4606         here...
4607         * modules/fwriting (configure.ac): ... to here.
4608
4609 2011-05-07  Bruno Haible  <bruno@clisp.org>
4610
4611         fwritable: Move AC_LIBOBJ invocations to module description.
4612         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4613         here...
4614         * modules/fwritable (configure.ac): ... to here.
4615
4616 2011-05-07  Bruno Haible  <bruno@clisp.org>
4617
4618         futimens: Move AC_LIBOBJ invocations to module description.
4619         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4620         here...
4621         * modules/futimens (configure.ac): ... to here.
4622
4623 2011-05-07  Bruno Haible  <bruno@clisp.org>
4624
4625         ftruncate: Move AC_LIBOBJ invocations to module description.
4626         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4627         gl_PREREQ_FTRUNCATE invocations from here...
4628         * modules/ftruncate (configure.ac): ... to here.
4629
4630 2011-05-07  Bruno Haible  <bruno@clisp.org>
4631
4632         fsync: Move AC_LIBOBJ invocations to module description.
4633         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4634         invocations from here...
4635         * modules/fsync (configure.ac): ... to here.
4636
4637 2011-05-07  Bruno Haible  <bruno@clisp.org>
4638
4639         fsusage: Move AC_LIBOBJ invocations to module description.
4640         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4641         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4642         * modules/fsusage (configure.ac): ... to here.
4643
4644 2011-05-07  Bruno Haible  <bruno@clisp.org>
4645
4646         freopen: Move AC_LIBOBJ invocations to module description.
4647         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4648         invocations from here...
4649         * modules/freopen (configure.ac): ... to here.
4650
4651 2011-05-07  Bruno Haible  <bruno@clisp.org>
4652
4653         free: Move AC_LIBOBJ invocations to module description.
4654         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4655         invocations from here...
4656         * modules/free (configure.ac): ... to here.
4657
4658 2011-05-07  Bruno Haible  <bruno@clisp.org>
4659
4660         freadable: Move AC_LIBOBJ invocations to module description.
4661         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4662         here...
4663         * modules/freadable (configure.ac): ... to here.
4664
4665 2011-05-07  Bruno Haible  <bruno@clisp.org>
4666
4667         fpurge: Move AC_LIBOBJ invocations to module description.
4668         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4669         invocations from here...
4670         * modules/fpurge (configure.ac): ... to here.
4671
4672 2011-05-07  Bruno Haible  <bruno@clisp.org>
4673
4674         fpending: Move AC_LIBOBJ invocations to module description.
4675         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4676         gl_FUNC_FPENDING.
4677         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4678         invocations from here...
4679         * modules/fpending (configure.ac): ... to here.
4680
4681 2011-05-07  Bruno Haible  <bruno@clisp.org>
4682
4683         fopen: Move AC_LIBOBJ invocations to module description.
4684         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4685         invocations from here...
4686         * modules/fopen (configure.ac): ... to here.
4687
4688 2011-05-07  Bruno Haible  <bruno@clisp.org>
4689
4690         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4691         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4692         gl_FUNC_FNMATCH_POSIX.
4693         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4694         invocations from here...
4695         * modules/fnmatch (configure.ac): ... to here.
4696         * modules/fnmatch-gnu (configure.ac): ... and here.
4697
4698 2011-05-07  Bruno Haible  <bruno@clisp.org>
4699
4700         flock: Move AC_LIBOBJ invocations to module description.
4701         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4702         invocations from here...
4703         * modules/flock (configure.ac): ... to here.
4704
4705 2011-05-07  Bruno Haible  <bruno@clisp.org>
4706
4707         fileblocks: Move AC_LIBOBJ invocations to module description.
4708         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4709         gl_PREREQ_FILEBLOCKS invocations from here...
4710         * modules/fileblocks (configure.ac): ... to here.
4711
4712 2011-05-06  Bruno Haible  <bruno@clisp.org>
4713
4714         fflush: Move AC_LIBOBJ invocations to module description.
4715         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4716         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4717         invocations from here...
4718         * modules/fflush (configure.ac): ... to here.
4719
4720 2011-05-06  Bruno Haible  <bruno@clisp.org>
4721
4722         fdopendir: Move AC_LIBOBJ invocations to module description.
4723         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4724         here...
4725         * modules/fdopendir (configure.ac): ... to here.
4726         (Depends-on): Improve conditions.
4727
4728 2011-05-06  Bruno Haible  <bruno@clisp.org>
4729
4730         _Exit: Move AC_LIBOBJ invocations to module description.
4731         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4732         invocations from here...
4733         * modules/_Exit (configure.ac): ... to here.
4734
4735 2011-05-21  Bruno Haible  <bruno@clisp.org>
4736
4737         euidaccess: Respect rules for use of AC_LIBOBJ.
4738         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4740         from here...
4741         * modules/euidaccess (configure.ac): ... to here.
4742
4743 2011-05-06  Bruno Haible  <bruno@clisp.org>
4744
4745         error: Move AC_LIBOBJ invocations to module description.
4746         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4747         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4748         invocations from here...
4749         * modules/error (configure.ac): ... to here.
4750
4751 2011-05-06  Bruno Haible  <bruno@clisp.org>
4752
4753         duplocale: Move AC_LIBOBJ invocations to module description.
4754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4755         gl_PREREQ_DUPLOCALE invocations from here...
4756         * modules/duplocale (configure.ac): ... to here.
4757
4758 2011-05-05  Bruno Haible  <bruno@clisp.org>
4759
4760         dirfd: Move AC_LIBOBJ invocations to module description.
4761         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4762         gl_FUNC_DIRFD.
4763         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4764         here...
4765         * modules/dirfd (configure.ac): ... to here.
4766         (Depends-on): Fix condition.
4767
4768 2011-05-05  Bruno Haible  <bruno@clisp.org>
4769
4770         chown: Respect rules for use of AC_LIBOBJ.
4771         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4772         * modules/chown (configure.ac): ... to here.
4773
4774 2011-05-05  Bruno Haible  <bruno@clisp.org>
4775
4776         chdir-long: Move AC_LIBOBJ invocations to module description.
4777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4778         gl_PREREQ_CHDIR_LONG invocations from here...
4779         * modules/chdir-long (configure.ac): ... to here.
4780
4781 2011-05-05  Bruno Haible  <bruno@clisp.org>
4782
4783         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4784         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4785         from here...
4786         * modules/canonicalize-lgpl (configure.ac): ... to here.
4787
4788 2011-05-05  Bruno Haible  <bruno@clisp.org>
4789
4790         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4791         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4792         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4793         REPLACE_CALLOC.
4794         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4795         * modules/calloc-gnu (configure.ac): Likewise.
4796
4797 2011-05-05  Bruno Haible  <bruno@clisp.org>
4798
4799         btowc: Move AC_LIBOBJ invocations to module description.
4800         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4801         invocations from here...
4802         * modules/btowc (configure.ac): ... to here.
4803
4804 2011-05-21  Bruno Haible  <bruno@clisp.org>
4805
4806         atexit: Move AC_LIBOBJ invocations to module description.
4807         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4809         here...
4810         * modules/atexit (configure.ac): ... to here.
4811
4812 2011-05-05  Bruno Haible  <bruno@clisp.org>
4813
4814         atoll: Move AC_LIBOBJ invocations to module description.
4815         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4816         invocations from here...
4817         * modules/atoll (configure.ac): ... to here.
4818
4819 2011-05-05  Bruno Haible  <bruno@clisp.org>
4820
4821         argz: Move AC_LIBOBJ invocations to module description.
4822         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4823         * modules/argz (configure.ac): ... to here.
4824
4825 2011-05-05  Bruno Haible  <bruno@clisp.org>
4826
4827         alphasort: Move AC_LIBOBJ invocations to module description.
4828         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4829         gl_PREREQ_ALPHASORT invocations from here...
4830         * modules/alphasort (configure.ac): ... to here.
4831
4832 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         verify: new macro verify_expr; verify_true deprecated
4835         * NEWS: Mention this.
4836         * doc/verify.texi (Compile-time Assertions): Document this.
4837         * lib/verify.h (verify_true): Deprecate.
4838         (verify_expr): New macro.
4839         * tests/test-verify.c (function): Test verify_expr.
4840
4841 2011-06-14  Jim Meyering  <meyering@redhat.com>
4842
4843         init.sh: give more portable redirection-related advice in a comment
4844         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4845         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4846         for lots of discussion.  Stefano Lattarini suggested the solution
4847         of putting "9>&2" after the command.  Reported by Bruno Haible.
4848
4849 2011-06-13  Bruno Haible  <bruno@clisp.org>
4850
4851         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4852         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4853         'none'.
4854
4855 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4856
4857         ftoastr: use strtof only if HAVE_STRTOF
4858         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4860         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4861         * modules/ftoastr (configure.ac): Check for strtof.
4862
4863 2011-06-13  Bruno Haible  <bruno@clisp.org>
4864
4865         gnulib-tool: Addendum to 2011-06-08 commit.
4866         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4867         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4868
4869 2011-06-13  Bruno Haible  <bruno@clisp.org>
4870
4871         fseeko: Provide a non-inline replacement of fseek().
4872         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4873         * modules/fseeko (Depends-on): Add fseek.
4874         * modules/fseek (License): Change to LGPLv2+.
4875
4876 2011-06-13  Bruno Haible  <bruno@clisp.org>
4877
4878         ftello: Provide a non-inline replacement of ftell().
4879         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4880         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4881         not have ftello() (such as on mingw).
4882         * modules/ftello (Depends-on): Add ftell.
4883         * modules/ftell (License): Change to LGPLv2+.
4884
4885 2011-05-07  Bruno Haible  <bruno@clisp.org>
4886
4887         ftell: Move AC_LIBOBJ invocations to module description.
4888         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4889         * modules/ftell (configure.ac): ... to here.
4890
4891 2011-05-07  Bruno Haible  <bruno@clisp.org>
4892
4893         ftello: Respect rules for use of AC_LIBOBJ.
4894         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4895         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4896         here...
4897         * modules/ftello (configure.ac): ... to here.
4898
4899 2011-05-07  Bruno Haible  <bruno@clisp.org>
4900
4901         fseeko: Simplify.
4902         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4903         (gl_FUNC_FSEEKO): Inline it here.
4904
4905 2011-05-07  Bruno Haible  <bruno@clisp.org>
4906
4907         fseek: Move AC_LIBOBJ invocations to module description.
4908         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4909         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4910         * modules/fseek (configure.ac): ... to here.
4911
4912 2011-05-07  Bruno Haible  <bruno@clisp.org>
4913
4914         fseek: Respect rules for use of AC_LIBOBJ.
4915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4916         here...
4917         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4918
4919 2011-05-07  Bruno Haible  <bruno@clisp.org>
4920
4921         fseeko: Respect rules for use of AC_LIBOBJ.
4922         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4923         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4924         here...
4925         * modules/fseeko (configure.ac): ... to here.
4926
4927 2011-06-13  Bruno Haible  <bruno@clisp.org>
4928
4929         gnulib-tool: Allow comments in the 'Depends-on' section.
4930         * doc/gnulib.texi (Module description): Mention comment syntax in the
4931         Depends-on section.
4932         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4933
4934 2011-06-13  Bruno Haible  <bruno@clisp.org>
4935
4936         file-set.h: guard __attibute__ use, now that it's not always defined
4937         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4938         versions that support it.  This fixes a coreutils build failure with
4939         the vendor cc on HP-UX 11.31.
4940
4941 2011-06-12  Bruno Haible  <bruno@clisp.org>
4942
4943         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4944         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4945         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4946         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4947         (acl, aclsort): New declarations.
4948         (aclv_nontrivial): New declaration.
4949         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4950         (file_has_acl): Read also the second kind of HP-UX ACLs.
4951         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4952         kind of HP-UX ACLs if the first kind fails.
4953         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4954         second kind of HP-UX ACLs.
4955         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4956         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4957         agree.
4958         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4959         hpuxjfs.
4960         Handle hpuxjfs.
4961         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4962         hpuxjfs.
4963         Handle hpuxjfs.
4964         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4965         (func_test_same_acls): Use both lsacl and getacl.
4966         Handle hpuxjfs.
4967         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4968         (func_test_same_acls): Use both lsacl and getacl.
4969         Handle hpuxjfs.
4970
4971 2011-06-12  Bruno Haible  <bruno@clisp.org>
4972
4973         acl: Complete the 2010-08-10 fix.
4974         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4975         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4976         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4977         explicitly.
4978         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4979         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4980
4981 2011-06-12  Bruno Haible  <bruno@clisp.org>
4982
4983         spawn-pipe tests: Comments.
4984         * tests/test-spawn-pipe-child.c (main): Update comment.
4985         Reported by James Youngman <jay@gnu.org>.
4986
4987 2011-06-11  James Youngman  <jay@gnu.org>
4988
4989         New module 'stat-size'.
4990         * modules/stat-size: New module.  Provides macros for accessing
4991         file size information in instances of struct stat.  Depends on the
4992         fileblocks module because it calls st_blocks.
4993         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4994         * doc/gnulib.texi: Include stat-size.texi.
4995         * doc/stat-size.texi: Documentation for this module.
4996         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4997         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4998         AC_STRUCT_ST_BLOCKS.
4999
5000 2011-06-09  Bruno Haible  <bruno@clisp.org>
5001
5002         thread: Support pthreads-win32.
5003         * lib/glthread/thread.h (gl_thread_self): Define differently on
5004         pthreads-win32.
5005         (gl_null_thread): New declaration.
5006         (gl_thread_self_pointer): New macro.
5007         * lib/glthread/thread.c (gl_null_thread): New constant.
5008         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5009         gl_thread_self.
5010         * tests/test-tls.c: Likewise.
5011         Suggested by Paul Eggert. Reported by Eric Blake.
5012
5013 2011-06-09  Bruno Haible  <bruno@clisp.org>
5014
5015         thread: Fix confusion between NULL and 0.
5016         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5017         Reported by Paul Eggert.
5018
5019 2011-06-09  Bruno Haible  <bruno@clisp.org>
5020
5021         spawn-pipe tests: Avoid test failure on HP-UX 11.
5022         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5023         is closed.
5024
5025 2011-06-09  Bruno Haible  <bruno@clisp.org>
5026
5027         acl tests: Fix compilation error on HP-UX 11.
5028         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5029
5030 2011-06-09  Bruno Haible  <bruno@clisp.org>
5031
5032         rmdir: Avoid test failure on HP-UX 10.20.
5033         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5034         EEXIST.
5035
5036 2011-06-08  Eric Blake  <eblake@redhat.com>
5037
5038         perror: fix test on mingw
5039         * modules/perror-tests (Depends-on): Add dup2.
5040
5041         strerror_r-posix: fix on MacOS
5042         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5044         logic bug.
5045         * lib/strerror_r.c (strerror_r): Fix the bug.
5046         * lib/strerror.c (strerror): Likewise.
5047         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5048         problem.
5049         * doc/posix-functions/strerror.texi (strerror): Likewise.
5050         * doc/posix-functions/perror.texi (perror): Likewise.
5051         * tests/test-strerror.c (main): Enhance test.
5052         * tests/test-strerror_r.c (main): Likewise.
5053
5054 2011-06-08  Bruno Haible  <bruno@clisp.org>
5055
5056         gnulib-tool: Better isolation between different gnulib-tool invocations.
5057         * gnulib-tool: New option --witness-c-macro.
5058         (witness_c_macro): New variable.
5059         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5060         AM_CPPFLAGS define it as a C macro.
5061         (func_emit_tests_Makefile_am): Likewise.
5062         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5063         read it from there.
5064         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5065         m4_define, not AC_DEFUN.
5066         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5067         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5068         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5069         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5070         s|...|...|, to substitute the values of the GNULIB_* module indicator
5071         variables.
5072         * modules/dirent (Makefile.am): Likewise.
5073         * modules/fcntl-h (Makefile.am): Likewise.
5074         * modules/iconv-h (Makefile.am): Likewise.
5075         * modules/langinfo (Makefile.am): Likewise.
5076         * modules/locale (Makefile.am): Likewise.
5077         * modules/math (Makefile.am): Likewise.
5078         * modules/netdb (Makefile.am): Likewise.
5079         * modules/poll-h (Makefile.am): Likewise.
5080         * modules/pty (Makefile.am): Likewise.
5081         * modules/search (Makefile.am): Likewise.
5082         * modules/signal (Makefile.am): Likewise.
5083         * modules/spawn (Makefile.am): Likewise.
5084         * modules/stdio (Makefile.am): Likewise.
5085         * modules/stdlib (Makefile.am): Likewise.
5086         * modules/string (Makefile.am): Likewise.
5087         * modules/sys_ioctl (Makefile.am): Likewise.
5088         * modules/sys_select (Makefile.am): Likewise.
5089         * modules/sys_socket (Makefile.am): Likewise.
5090         * modules/sys_stat (Makefile.am): Likewise.
5091         * modules/sys_times (Makefile.am): Likewise.
5092         * modules/sys_utsname (Makefile.am): Likewise.
5093         * modules/sys_wait (Makefile.am): Likewise.
5094         * modules/termios (Makefile.am): Likewise.
5095         * modules/time (Makefile.am): Likewise.
5096         * modules/unistd (Makefile.am): Likewise.
5097         * modules/wchar (Makefile.am): Likewise.
5098
5099 2011-06-08  Eric Blake  <eblake@redhat.com>
5100
5101         strerror: simplify replacement
5102         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5103         * modules/strerror (configure.ac): No prereqs needed here...
5104         * modules/strerror-override (configure.ac): ...but this needs it.
5105         (Files): Add file for needed prereq macro.
5106
5107 2011-06-08  Bruno Haible  <bruno@clisp.org>
5108
5109         strerror_r-posix: Tweaks.
5110         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5111         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5112         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5113         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5114         (gl_FUNC_STRERROR_R): ... to here.
5115         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5116
5117 2011-06-07  Eric Blake  <eblake@redhat.com>
5118
5119         perror: document fixed bugs
5120         * doc/posix-functions/perror.texi (perror): Document recent
5121         patches.
5122
5123 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5124
5125         stat-time: get_stat_birthtime failure is better-defined
5126         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5127         return a timestamp whose tv_sec and tv_nsec values are both -1.
5128         Previously, the spec said only that the tv_nsec value was negative.
5129         This upward-compatible change simplifies GNU tar a bit.
5130
5131 2011-06-07  Eric Blake  <eblake@redhat.com>
5132
5133         strerror_r-posix: work around cygwin 1.7.9
5134         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5135         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5136         bug without replacing strerror_r.
5137         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5138         strerror_r is buggy, but without requiring strerror_r compilation.
5139         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5140
5141         test-perror: relax test to ignore cygwin bug
5142         * tests/test-perror2.c (main): Relax test on requiring detection
5143         of stream errors, and use unbuffered stream.
5144         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5145         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5146         * doc/posix-functions/fputc.texi (fputc): Likewise.
5147         * doc/posix-functions/fputs.texi (fputs): Likewise.
5148         * doc/posix-functions/fputws.texi (fputws): Likewise.
5149         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5150         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5151         * doc/posix-functions/getopt.texi (getopt): Likewise.
5152         * doc/posix-functions/perror.texi (perror): Likewise.
5153         * doc/posix-functions/printf.texi (printf): Likewise.
5154         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5155         * doc/posix-functions/psignal.texi (psignal): Likewise.
5156         * doc/posix-functions/putc.texi (putc): Likewise.
5157         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5158         Likewise.
5159         * doc/posix-functions/putchar.texi (putchar): Likewise.
5160         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5161         Likewise.
5162         * doc/posix-functions/puts.texi (puts): Likewise.
5163         * doc/posix-functions/putwc.texi (putwc): Likewise.
5164         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5165         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5166         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5167         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5168         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5169         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5170         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5171         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5172
5173 2011-05-22  Bruno Haible  <bruno@clisp.org>
5174
5175         strerror: Move AC_LIBOBJ invocations to module description.
5176         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5177         gl_PREREQ_STRERROR invocations from here...
5178         * modules/strerror (configure.ac): ... to here.
5179
5180 2011-05-21  Bruno Haible  <bruno@clisp.org>
5181
5182         perror: Use common idiom.
5183         * modules/perror (configure.ac): Reorder statements.
5184
5185 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5186
5187         tests: fix usage message in 'mktempd_'
5188         * tests/init.sh (mktempd_): In the usage message, use literal
5189         'mktempd_', not '$ME' (which is even undefined), as the name of
5190         the subroutine.
5191
5192 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5193
5194         tests init: new function 'fatal_', for hard errors
5195         Before this patch, the only way offered by tests/init.sh to
5196         properly signal a hard error was the `framework_failure_'
5197         function.  But the error message issued by that function,
5198         as its name would suggest, refers to a set-up failure in the
5199         testsuite, while hard errors can obviously also be due to
5200         other reasons.  The best way to fix this inconsistency is to
5201         introduce a new function with a more general error message.
5202         * tests/init.sh (fatal_): New function.
5203
5204 2011-06-06  Eric Blake  <eblake@redhat.com>
5205
5206         canonicalize-lgpl: use common idiom
5207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5208         over newer POSIX -Rf.
5209         Reported by Bruno Haible.
5210
5211         canonicalize-lgpl: work around AIX realpath bug
5212         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5213         * doc/posix-functions/realpath.texi (realpath): Document it.
5214         Reported by Bruno Haible.
5215
5216         strerror: work around FreeBSD bug
5217         * lib/strerror.c (strerror): Special case 0.
5218         Reported by Bruno Haible.
5219
5220         strerror-override: avoid bloating errno module
5221         * modules/errno (Files, configure.ac): Move replacement strings...
5222         * modules/strerror-override: ...to new module.
5223         * modules/strerror (Depends-on): Add strerror-override.
5224         * modules/strerror_r-posix (Depends-on): Likewise.
5225         * MODULES.html.sh: Document new module.
5226         Reported by Bruno Haible.
5227
5228 2011-06-06  Bruno Haible  <bruno@clisp.org>
5229
5230         spawn-pipe tests: Rename program.
5231         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5232         * tests/test-spawn-pipe-child.c: Update comment.
5233         * tests/test-spawn-pipe.sh: Update.
5234         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5235
5236         spawn-pipe tests: Link the child program only against libc.
5237         * tests/test-spawn-pipe-child.c: New file, extracted from
5238         tests/test-spawn-pipe.c.
5239         (main): Expect only one argument.
5240         (is_open): New function, copied from tests/test-pipe.c.
5241         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5242         (child_main): Remove function.
5243         (test_pipe): Pass only one argument to the child program.
5244         (main): Remove child process code. Expect the child program's name as
5245         first argument.
5246         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5247         argument.
5248         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5249         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5250         test-spawn-pipe-child against no libraries.
5251
5252 2011-06-06  Bruno Haible  <bruno@clisp.org>
5253
5254         careadlinkat: Avoid mismatch between ssize_t and int.
5255         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5256         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5257
5258 2011-06-06  Jim Meyering  <meyering@redhat.com>
5259
5260         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5261         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5262         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5263
5264 2011-06-05  Bruno Haible  <bruno@clisp.org>
5265
5266         ansi-c++-opt: Interoperability with libtool.
5267         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5268         set the variable to "no", not to ":".
5269         * NEWS: Mention the change.
5270
5271 2011-06-05  Bruno Haible  <bruno@clisp.org>
5272
5273         acl: Fix test failure on AIX 7.
5274         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5275         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5276
5277 2011-06-05  Bruno Haible  <bruno@clisp.org>
5278
5279         pipe-filter-ii: Fix test failure on AIX and IRIX.
5280         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5281         with EAGAIN, retry with a smaller buffer size.
5282
5283 2011-06-05  Bruno Haible  <bruno@clisp.org>
5284
5285         localename: Fix link dependencies.
5286         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5287         * modules/localename-tests (Makefile.am): Link test-localename with
5288         $(LIBTHREAD).
5289
5290 2011-06-05  Bruno Haible  <bruno@clisp.org>
5291
5292         error: Avoid gcc warning.
5293         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5294
5295 2011-06-05  Bruno Haible  <bruno@clisp.org>
5296
5297         unsetenv: Avoid gcc warning.
5298         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5299
5300 2011-06-05  Bruno Haible  <bruno@clisp.org>
5301
5302         setenv: Avoid gcc warning.
5303         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5304
5305 2011-06-05  Bruno Haible  <bruno@clisp.org>
5306
5307         sys_select: Ensure memset is declared also on AIX 7.
5308         * lib/sys_select.in.h: Include <string.h> also on AIX.
5309         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5310         self-contained also on AIX 7.1.
5311
5312 2011-06-04  Jim Meyering  <meyering@redhat.com>
5313
5314         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5315         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5316         function name, "error".
5317         (_gl_translatable_diag_func_re): New configurable variable.
5318
5319 2011-06-04  Bruno Haible  <bruno@clisp.org>
5320
5321         getopt: Avoid gcc warning.
5322         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5323
5324 2011-06-04  Bruno Haible  <bruno@clisp.org>
5325
5326         strerror_r: Fix comments.
5327         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5328         commit.
5329
5330 2011-06-04  Bruno Haible  <bruno@clisp.org>
5331
5332         perror: Fix compilation error.
5333         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5334         Undefine fprintf, not sprintf.
5335         * modules/perror (Depends-on): Remove intprops, verify.
5336
5337 2011-06-04  Bruno Haible  <bruno@clisp.org>
5338
5339         setlocale: Enable replacement on Cygwin 1.5.
5340         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5341         Cygwin 1.5.x.
5342         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5343         LC_CTYPE category also exists on Cygwin 1.5.x.
5344
5345 2011-06-04  Bruno Haible  <bruno@clisp.org>
5346
5347         strerror-override: Don't disable symbol renamings.
5348         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5349         * lib/strerror-override.c: Include config.h.
5350         (strerror_override): Don't undefine.
5351
5352 2011-06-03  Bruno Haible  <bruno@clisp.org>
5353
5354         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5355         * lib/localename.h: Update copyright header.
5356         * lib/localename.c: Likewise.
5357         * lib/relocatable.h: Likewise.
5358         * lib/relocatable.c: Likewise.
5359
5360 2011-06-02  Bruno Haible  <bruno@clisp.org>
5361
5362         doc: Fix a module name.
5363         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5364
5365 2011-06-02  Bruno Haible  <bruno@clisp.org>
5366
5367         pipe2: Remove dependency on 'nonblocking' module.
5368         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5369         O_NONBLOCK is defined by gnulib.
5370         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5371         is zero.
5372         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5373         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5374         defined by gnulib.
5375         (get_nonblocking_flag): New function.
5376         (main): Test O_NONBLOCK flag only if it is nonzero.
5377         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5378
5379 2011-06-03  Jim Meyering  <meyering@redhat.com>
5380
5381         maint: three new prohibit-header-without-use rules
5382         Prohibit use of cloexec.h, posixver.h, same.h without use.
5383         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5384         (sc_prohibit_posixver_without_use): Likewise.
5385         (sc_prohibit_same_without_use): Likewise.
5386
5387 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         allocator: 'die' routine is now given requested size
5390         * lib/allocator.h (struct allocator.die): New size arg.
5391         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5392         If the actual problem is an ssize_t limitation, not a size_t or
5393         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5394
5395 2011-06-01  Eric Blake  <eblake@redhat.com>
5396
5397         strerror: drop strerror_r dependency
5398         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5399         * lib/strerror-override.c (strerror_override): ...to new file.
5400         * lib/strerror-override.h: Add prototype.
5401         * lib/strerror-impl.h: Delete.
5402         * lib/strerror.c (strerror): New implementation.
5403         * modules/errno (Files): Add new files.
5404         (configure.ac): Compile new file as appropriate.
5405         * modules/strerror (Files): Drop unused file.
5406         (Depends-on): Drop strerror_r-posix.
5407         * MODULES.html.sh: Document strerror_r-posix.
5408         Requested by Sam Steingold.
5409
5410         perror: call strerror_r directly
5411         * modules/perror (Files): Drop strerror-impl.h.
5412         * lib/perror.c (perror): Use our own stack buffer, rather than
5413         calling a wrapper that uses static storage.
5414         * doc/posix-functions/perror.texi (perror): Document a limitation
5415         of our replacement.
5416
5417         strerror_r: fix includes for FreeBSD
5418         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5419         since we use abort on some platforms.
5420         Reported by Matthias Bolte.
5421
5422 2011-05-31  Bruno Haible  <bruno@clisp.org>
5423
5424         Fix link errors in tests: openat-die uses gettext-h.
5425         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5426         against $(LIBINTL).
5427         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5428         against $(LIBINTL).
5429         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5430         $(LIBINTL).
5431         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5432         against $(LIBINTL).
5433         * modules/linkat-tests (Makefile.am): Link test-linkat against
5434         $(LIBINTL).
5435         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5436         $(LIBINTL).
5437         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5438         against $(LIBINTL).
5439         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5440         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5441         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5442         $(LIBINTL).
5443         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5444         $(LIBINTL).
5445         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5446         $(LIBINTL).
5447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5448
5449 2011-05-31  Bruno Haible  <bruno@clisp.org>
5450
5451         Fix link errors in tests: wait-process uses gettext-h.
5452         * modules/nonblocking-pipe-tests (Makefile.am): Set
5453         test_nonblocking_pipe_main_LDADD.
5454         * modules/nonblocking-socket-tests (Makefile.am): Link
5455         test-nonblocking-socket-main against $(LIBINTL).
5456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5457
5458 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5459
5460         assert-h: work around 'verify' incompatibility
5461         * lib/verify.h: Use @...@ directives, not ifdef.
5462         * modules/assert-h (assert.h): Implement the directives.
5463         (assert.h): Substitute the symbol-prefix more consistently.
5464
5465 2011-05-29  Jim Meyering  <meyering@redhat.com>
5466
5467         trim: remove three superfluous assignments
5468         * lib/trim.c (trim2): Remove three superfluous assignments
5469         and correct brace positioning.
5470
5471 2011-05-29  Bruno Haible  <bruno@clisp.org>
5472
5473         wctype-h: Avoid namespace pollution on Solaris 2.6.
5474         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5475         identifiers.
5476         * doc/posix-headers/wctype.texi: Mention the problem.
5477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5478
5479 2011-05-28  Jim Meyering  <meyering@redhat.com>
5480
5481         parse-datetime.y: accommodate -Wstrict-overflow
5482         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5483         placate -Wstrict-overflow.
5484
5485         trim: avoid a warning from -O2 -Wstrict-overflow
5486         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5487
5488 2011-05-29  Bruno Haible  <bruno@clisp.org>
5489
5490         gnulib-tool: Fix bug in yesterday's commit.
5491         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5492         twice.
5493
5494 2011-05-29  Bruno Haible  <bruno@clisp.org>
5495
5496         Allow multiple gnulib generated include files to be combined.
5497         * gnulib-tool (func_compute_include_guard_prefix): New function.
5498         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5499         ${gl_include_guard_prefix} references.
5500         (func_import, func_create_testdir): Invoke
5501         func_compute_include_guard_prefix.
5502         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5503         * lib/ctype.in.h: Likewise.
5504         * lib/dirent.in.h: Likewise.
5505         * lib/errno.in.h: Likewise.
5506         * lib/fcntl.in.h: Likewise.
5507         * lib/float.in.h: Likewise.
5508         * lib/getopt.in.h: Likewise.
5509         * lib/iconv.in.h: Likewise.
5510         * lib/langinfo.in.h: Likewise.
5511         * lib/locale.in.h: Likewise.
5512         * lib/math.in.h: Likewise.
5513         * lib/netdb.in.h: Likewise.
5514         * lib/netinet_in.in.h: Likewise.
5515         * lib/poll.in.h: Likewise.
5516         * lib/pthread.in.h: Likewise.
5517         * lib/pty.in.h: Likewise.
5518         * lib/sched.in.h: Likewise.
5519         * lib/se-selinux.in.h: Likewise.
5520         * lib/search.in.h: Likewise.
5521         * lib/signal.in.h: Likewise.
5522         * lib/spawn.in.h: Likewise.
5523         * lib/stdarg.in.h: Likewise.
5524         * lib/stddef.in.h: Likewise.
5525         * lib/stdint.in.h: Likewise.
5526         * lib/stdio.in.h: Likewise.
5527         * lib/stdlib.in.h: Likewise.
5528         * lib/string.in.h: Likewise.
5529         * lib/strings.in.h: Likewise.
5530         * lib/sys_file.in.h: Likewise.
5531         * lib/sys_ioctl.in.h: Likewise.
5532         * lib/sys_select.in.h: Likewise.
5533         * lib/sys_socket.in.h: Likewise.
5534         * lib/sys_stat.in.h: Likewise.
5535         * lib/sys_time.in.h: Likewise.
5536         * lib/sys_times.in.h: Likewise.
5537         * lib/sys_uio.in.h: Likewise.
5538         * lib/sys_utsname.in.h: Likewise.
5539         * lib/sys_wait.in.h: Likewise.
5540         * lib/sysexits.in.h: Likewise.
5541         * lib/termios.in.h: Likewise.
5542         * lib/time.in.h: Likewise.
5543         * lib/unistd.in.h: Likewise.
5544         * lib/wchar.in.h: Likewise.
5545         * lib/wctype.in.h: Likewise.
5546         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5547         * modules/ctype (Makefile.am): Likewise.
5548         * modules/dirent (Makefile.am): Likewise.
5549         * modules/errno (Makefile.am): Likewise.
5550         * modules/fcntl-h (Makefile.am): Likewise.
5551         * modules/float (Makefile.am): Likewise.
5552         * modules/getopt-posix (Makefile.am): Likewise.
5553         * modules/iconv-h (Makefile.am): Likewise.
5554         * modules/langinfo (Makefile.am): Likewise.
5555         * modules/locale (Makefile.am): Likewise.
5556         * modules/math (Makefile.am): Likewise.
5557         * modules/netdb (Makefile.am): Likewise.
5558         * modules/netinet_in (Makefile.am): Likewise.
5559         * modules/poll-h (Makefile.am): Likewise.
5560         * modules/pthread (Makefile.am): Likewise.
5561         * modules/pty (Makefile.am): Likewise.
5562         * modules/sched (Makefile.am): Likewise.
5563         * modules/search (Makefile.am): Likewise.
5564         * modules/selinux-h (Makefile.am): Likewise.
5565         * modules/signal (Makefile.am): Likewise.
5566         * modules/spawn (Makefile.am): Likewise.
5567         * modules/stdarg (Makefile.am): Likewise.
5568         * modules/stddef (Makefile.am): Likewise.
5569         * modules/stdint (Makefile.am): Likewise.
5570         * modules/stdio (Makefile.am): Likewise.
5571         * modules/stdlib (Makefile.am): Likewise.
5572         * modules/string (Makefile.am): Likewise.
5573         * modules/strings (Makefile.am): Likewise.
5574         * modules/sys_file (Makefile.am): Likewise.
5575         * modules/sys_ioctl (Makefile.am): Likewise.
5576         * modules/sys_select (Makefile.am): Likewise.
5577         * modules/sys_socket (Makefile.am): Likewise.
5578         * modules/sys_stat (Makefile.am): Likewise.
5579         * modules/sys_time (Makefile.am): Likewise.
5580         * modules/sys_times (Makefile.am): Likewise.
5581         * modules/sys_uio (Makefile.am): Likewise.
5582         * modules/sys_utsname (Makefile.am): Likewise.
5583         * modules/sys_wait (Makefile.am): Likewise.
5584         * modules/sysexits (Makefile.am): Likewise.
5585         * modules/termios (Makefile.am): Likewise.
5586         * modules/time (Makefile.am): Likewise.
5587         * modules/unistd (Makefile.am): Likewise.
5588         * modules/wchar (Makefile.am): Likewise.
5589         * modules/wctype-h (Makefile.am): Likewise.
5590         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5591
5592 2011-05-29  Bruno Haible  <bruno@clisp.org>
5593
5594         assert-h: Allow multiple gnulib generated replacements to coexist.
5595         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5596
5597 2011-05-29  Bruno Haible  <bruno@clisp.org>
5598
5599         argp: Allow coexistence with strerror_r-posix module.
5600         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5601         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5602         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5603         not the glibc signature.
5604
5605 2011-05-28  Bruno Haible  <bruno@clisp.org>
5606
5607         gnulib-tool: Alternative structure of testdirs, similar to --import.
5608         * gnulib-tool: New option --single-configure.
5609         (func_usage): Document it.
5610         (single_configure): New variable.
5611         (func_modules_transitive_closure_separately,
5612         func_modules_transitive_closure_separately,
5613         func_determine_use_libtests, func_modules_add_dummy_separately,
5614         func_modules_to_filelist_separately): New functions, extracted from
5615         func_import.
5616         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5617         (func_import): Use the new functions.
5618         (func_create_testdir): Set final_modules. Handle $single_configure =
5619         true case.
5620
5621 2011-05-28  Bruno Haible  <bruno@clisp.org>
5622
5623         getloadavg: Remove an unreliable safety check.
5624         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5625         getloadavg.c is in place.
5626         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5627         Reported by Sam Steingold <sds@gnu.org>.
5628
5629 2011-05-28  Bruno Haible  <bruno@clisp.org>
5630
5631         doc: Cleanup yet another file produced by texinfo.tex.
5632         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5633
5634 2011-05-28  Bruno Haible  <bruno@clisp.org>
5635
5636         Finish the conditional dependencies mechanism.
5637         * gnulib-tool: New option --no-conditional-dependencies.
5638         (func_usage): Document it. Don't mark --conditional-dependencies as
5639         experimental.
5640         (cond_dependencies): The possible values can now be true, false, empty.
5641         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5642         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5643         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5644
5645 2011-05-28  Bruno Haible  <bruno@clisp.org>
5646
5647         doc: Use a recent texinfo.tex.
5648         * doc/Makefile (tex_opts): New variable.
5649         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5650
5651 2011-05-28  Jim Meyering  <meyering@redhat.com>
5652
5653         intprops.h: adjust comment to match code change
5654         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5655         only once, it *may* have side effects.  Also fix an unrelated typo.
5656         (_GL_INT_SIGNED): Likewise.
5657
5658 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5659
5660         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5661
5662 2011-05-26  Bruno Haible  <bruno@clisp.org>
5663
5664         mbsrchr: Avoid collision with system function on Interix.
5665         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5666         Reported by Markus Duft <mduft@gentoo.org>.
5667
5668 2011-05-15  James Youngman  <jay@gnu.org>
5669
5670         getopt: for ambiguous options, enumerate the possibilities.
5671         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5672         the ambiguous options when an ambiguous prefix is given. This was
5673         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5674         glibc change was
5675         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5676
5677 2011-05-25  Eric Blake  <eblake@redhat.com>
5678
5679         getcwd: work around mingw bug
5680         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5681         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5682         Reported by Matthias Bolte.
5683
5684 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5685
5686         test-intprops: disable -Wtype-limits diagnostics
5687         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5688         diagnostics.  Otherwise, the integer overflow macros generate many
5689         diagnostics.  Reported by Jim Meyering in
5690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5691
5692         intprops: shorten, to pacify gcc -Woverlength-strings
5693         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5694         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5695         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5696         likely to run afoul of C compiler limits for string constant lengths.
5697         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5698
5699 2011-05-24  Eric Blake  <eblake@redhat.com>
5700
5701         docs: document recently fixed glibc printf bug
5702         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5703         * doc/posix-functions/printf.texi (printf): Likewise.
5704         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5705         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5706
5707         closein-tests: convert to init.sh
5708         * modules/closein-tests (Files): Add init.sh
5709         * tests/test-closein.sh Use it.
5710
5711         yesno-tests: convert to init.sh
5712         * modules/yesno-tests (Files): Add init.sh.
5713         * tests/test-yesno.sh: Use it.
5714
5715         atexit-tests: ensure reliable exit status
5716         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5717         Reported by Bruno Haible.
5718
5719 2011-05-24  Bruno Haible  <bruno@clisp.org>
5720
5721         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5723         gl_PREREQ_STRERROR_R invocations from here...
5724         * modules/strerror_r-posix (configure.ac): ... to here.
5725
5726 2011-05-24  Eric Blake  <eblake@redhat.com>
5727
5728         strerror_r: fix missing header
5729         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5730
5731         strerror_r: fix AIX test failures
5732         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5733         ERANGE failure.
5734
5735         strerror_r: fix Solaris test failures
5736         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5737         failures.
5738         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5739
5740         strerror_r: enforce POSIX recommendations
5741         * lib/strerror_r.c (safe_copy): New helper method.
5742         (strerror_r): Guarantee a non-empty string.
5743         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5744         recent POSIX rulings and to match our strerror guarantees.
5745         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5746
5747 2011-05-24  Jim Meyering  <meyering@redhat.com>
5748
5749         test-perror2.c: avoid warning about unused variable
5750         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5751
5752 2011-05-24  Eric Blake  <eblake@redhat.com>
5753
5754         perror: avoid spurious test failure on HP-UX
5755         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5756
5757         tests: fix logic bug in init.sh
5758         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5759         shell.
5760
5761 2011-05-24  Jim Meyering  <meyering@redhat.com>
5762
5763         utimensat: do not reference an out-of-scope buffer
5764         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5765         declared in an inner scope, yet "times" would be dereferenced outside
5766         the scope in which "ts" was valid.
5767         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5768         of ts[2] "out/up", so that the use of aliased "times" (via
5769         "times = ts;") does not end up referencing an out-of-scope "ts"
5770
5771         opendir-safer.c: don't clobber errno; don't close negative FD
5772         * lib/opendir-safer.c (opendir_safer):
5773         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5774         file descriptor, and more importantly, don't clobber the
5775         offending errno value with EINVAL.  Before, upon failure
5776         of dup_safer, we would pass the negative file descriptor to
5777         fdopendir, which would clobber errno.
5778
5779 2011-05-23  Bruno Haible  <bruno@clisp.org>
5780
5781         idcache: Fix module description.
5782         * modules/idcache (Include): Set to "idcache.h".
5783
5784 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5785
5786         gnulib-tool: fix portability problem with MacOS sed
5787         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5788         before the "}".  Problem reported by Leo in
5789         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5790         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5791         sed_extract_condition1, sed_extract_condition2.
5792
5793 2011-05-23  Bruno Haible  <bruno@clisp.org>
5794
5795         hash: Simplify autoconf macro.
5796         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5797
5798 2011-05-23  Bruno Haible  <bruno@clisp.org>
5799
5800         getugroups: Fix module description.
5801         * modules/getugroups (Include): Set to "getugroups.h".
5802
5803 2011-05-23  Bruno Haible  <bruno@clisp.org>
5804
5805         linkat: Simplify autoconf macro.
5806         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5807
5808 2011-05-23  Bruno Haible  <bruno@clisp.org>
5809             Eric Blake  <eblake@redhat.com>
5810
5811         linkat, renameat: Update dependencies.
5812         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5813         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5814         symlinkat.
5815
5816 2011-05-23  Jim Meyering  <meyering@redhat.com>
5817
5818         maint.mk: more tight_scope improvements
5819         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5820         (_gl_TS_headers): Define only in if-0'd block.
5821         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5822         sometimes we must *not* use it.  Adjust uses accordingly.
5823         (sc_tight_scope): Use much simpler grep-based test to determine
5824         whether we skip this rule.
5825
5826         maint.mk: generalize/improve the tight-scope rule
5827         * top/maint.mk: Emit a warning when the test is skipped.
5828         (_gl_TS_dir): Add $(srcdir)/ prefix.
5829         (_gl_TS_function_match): Simplify, rather than trying
5830         to enumerate common types.  Otherwise, it would fail to match an
5831         "extern unsigned char const *" declaration in idutils.
5832         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5833         a way to support use of that type of macro.
5834         (_gl_TS_var_match): Simplify regexp.
5835         (_gl_TS_obj_files): New configurable variable.
5836         (_gl_TS_headers): Likewise.
5837
5838 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5839
5840         verify: fix bug when gnulib <assert.h> is also included
5841         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5842         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5843         Perhaps there's a better way, but this fixes the immediate problem.
5844         Problem reported by Bruno Haible in
5845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5846
5847 2011-05-22  Bruno Haible  <bruno@clisp.org>
5848
5849         xgetcwd: Simplify autoconf macro.
5850         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5851
5852 2011-05-22  Bruno Haible  <bruno@clisp.org>
5853
5854         New module 'mktime-internal'.
5855         * modules/mktime-internal: New file.
5856         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5857         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5858         mktime_internal as a C macro if libc has __mktime_internal.
5859         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5860         conditions.
5861         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5862
5863 2011-05-22  Bruno Haible  <bruno@clisp.org>
5864
5865         timegm: Correct mktime replacement statements.
5866         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5867         defining mktime as a C macro. This completes a 2009-07-28 commit.
5868
5869 2011-05-22  Bruno Haible  <bruno@clisp.org>
5870
5871         timegm: Simplify autoconf macro.
5872         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5873
5874 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5875
5876         clock-time: change to LGPLv2+.
5877         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5878         BSD-like but we have no mark for that; this is good enough for now.
5879
5880 2011-05-21  Bruno Haible  <bruno@clisp.org>
5881
5882         strerror_r: Fix comments.
5883         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5884
5885 2011-05-21  Bruno Haible  <bruno@clisp.org>
5886
5887         relocatable-prog-wrapper: Fix possible link error.
5888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5889         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5890         (gl_FUNC_SETENV): ... to here.
5891         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5892         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5893
5894 2011-05-21  Bruno Haible  <bruno@clisp.org>
5895
5896         relocatable-prog-wrapper: Assume strerror() exists.
5897         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5898         m4/strerror.m4.
5899         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5900         * lib/relocwrapper.c: Remove mention of strerror module.
5901         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5902         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5903         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5904         C macro.
5905
5906 2011-05-21  Bruno Haible  <bruno@clisp.org>
5907
5908         select: Simplify replacement idiom.
5909         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5910         Win32 platforms.
5911         * lib/sys_select.in.h (select): Simplify accordingly.
5912         * modules/select (Depends-on): Likewise.
5913
5914 2011-05-21  Bruno Haible  <bruno@clisp.org>
5915
5916         mkdir-p: Simplify autoconf macro.
5917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5918         gl_FUNC_LCHOWN.
5919
5920 2011-05-21  Eric Blake  <eblake@redhat.com>
5921
5922         strerror_r: avoid clobbering strerror on cygwin
5923         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5924         fall back instead to sys_errlist.
5925         * modules/strerror (configure.ac): Add witness.
5926         * tests/test-strerror_r.c (main): Enhance test.
5927         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5928         * tests/test-perror2.c (main): Free memory before exit.
5929
5930 2011-05-21  Bruno Haible  <bruno@clisp.org>
5931
5932         mkdtemp: Use gnulib naming conventions.
5933         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5934         * modules/mkdtemp (configure.ac): Update.
5935
5936 2011-05-20  Eric Blake  <eblake@redhat.com>
5937
5938         strerror_r: avoid corrupting errno on Solaris
5939         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5940         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5941
5942         strerror_r: avoid compiler warning
5943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5944
5945         strerror_r: simplify AIX code
5946         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5947
5948         test-perror: avoid spurious failure on FreeBSD
5949         * modules/perror-tests (Depends-on): Add strerror, now that
5950         strerror_r no longer pulls it in.
5951
5952 2011-05-20  Bruno Haible  <bruno@clisp.org>
5953
5954         strerror_r-posix: Remove unused dependencies.
5955         * modules/strerror_r-posix (Depends-on): Remove strerror.
5956         Reported by Eric Blake.
5957
5958 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5959
5960         intprops: remove assumption about A|B representation
5961         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5962         is a valid integer if both A and B are.  Although this is true for
5963         all known practical hosts, the C standard doesn't guarantee it,
5964         and the code need not assume it.  Also, this change may work around
5965         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5967
5968 2011-05-20  Eric Blake  <eblake@redhat.com>
5969
5970         perror: work around FreeBSD bug
5971         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5972         is broken.  Move AC_LIBOBJ...
5973         * modules/perror (configure.ac): Here.
5974         * doc/posix-functions/perror.texi (perror): Document this.
5975         * tests/test-perror2.c (main): Enhance test.
5976
5977         test-perror: check for strerror interactions
5978         * tests/macros.h (STREQ): Add macro.
5979         * modules/perror-tests (Files): Add second test.
5980         * tests/test-perror2.c (main): New file.
5981         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5982
5983         test-perror: rewrite to use init script
5984         * modules/perror-tests (Files): Add init.sh.
5985         * tests/test-perror.sh: Use temporary directory.
5986
5987 2011-05-20  Jim Meyering  <meyering@redhat.com>
5988
5989         maint: replace misused "a" with "an"
5990         * doc/intprops.texi: "a integer"
5991         * doc/regex.texi: "a explanation"
5992         * lib/alignof.h: "a object"
5993         * lib/argmatch.h: "a explanation"
5994         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5995         * lib/stdint.in.h: "a integer"
5996         * lib/userspec.c: "a owner"
5997         * doc/gnulib.texi: Fix "a idea", and reword.
5998
5999 2011-05-19  Jim Meyering  <meyering@redhat.com>
6000
6001         maint: correct misuse of "a" and "an"
6002         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6003         * lib/argp-help.c: "an docum...": s/an/a/
6004         * lib/argp-parse.c: "An vector": s/An/A/
6005         * lib/execute.c: "an native": s/an/a/
6006         * lib/spawn-pipe.c: Likewise.
6007         * lib/gc.h: "an Gc_rc": s/an/a/
6008         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6009         * lib/fts.c: "an stat.st_dev": s/an/a/
6010
6011 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6012
6013         intprops-tests: work around HP-UX 11.23 cc bug with constants
6014         * tests/test-intprops.c (VERIFY): New macro.
6015         (main): Use it, instead of verify, to work around the compiler bug; see
6016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6017
6018         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6019         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6020         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6021         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6022         (_GL_REMAINDER_OVERFLOW): Use it.
6023
6024         intprops-tests: revert unsigned part of previous change
6025         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6026         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6027         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6029
6030 2011-05-19  Bruno Haible  <bruno@clisp.org>
6031
6032         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6033         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6034         strerror_r() returned without filling the buffer.
6035         Reported by Eric Blake.
6036
6037 2011-05-19  Eric Blake  <eblake@redhat.com>
6038
6039         strerror_r: guarantee unchanged errno
6040         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6041         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6042         failure.
6043         * tests/test-strerror_r.c (main): Enhance test.
6044
6045 2011-05-19  Bruno Haible  <bruno@clisp.org>
6046
6047         strerror_r: Reorder #if blocks.
6048         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6049         for consistency with the previous commit.
6050
6051 2011-05-19  Bruno Haible  <bruno@clisp.org>
6052
6053         perror: Avoid clobbering the strerror buffer when possible.
6054         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6055         * lib/strerror.c: Include it.
6056         * modules/strerror (Files): Add lib/strerror-impl.h.
6057         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6058         (my_strerror): New function, defined through lib/strerror-impl.h.
6059         (perror): Use it instead of strerror.
6060         * modules/perror (Files): Add lib/strerror-impl.h.
6061         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6062
6063 2011-05-19  Eric Blake  <eblake@redhat.com>
6064
6065         strerror_r: fix on newer cygwin
6066         * lib/strerror_r.c (strerror_r): Cygwin now has
6067         __xpg_strerror_r, use it.
6068
6069 2011-05-19  Bruno Haible  <bruno@clisp.org>
6070
6071         strerror_r: Avoid clobbering the strerror buffer when possible.
6072         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6073         (sys_nerr, sys_errlist): New declarations.
6074         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6075         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6076         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6077
6078 2011-05-19  Bruno Haible  <bruno@clisp.org>
6079
6080         strerror_r: Fix test failure on mingw.
6081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6082         EXTEND_STRERROR_R.
6083         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6084         macros from errno.in.h instead.
6085
6086 2011-05-19  Eric Blake  <eblake@redhat.com>
6087
6088         strerror: relax test for Solaris
6089         * tests/test-strerror.c (main): Permit Solaris behavior.
6090         * tests/test-strerror_r.c (main): Likewise.
6091
6092         strerror: enforce POSIX ruling on strerror(0)
6093         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6095         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6096         * doc/posix-functions/strerror.texi (strerror): Document it.
6097         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6098         * tests/test-strerror.c (main): Strengthen test.
6099         * tests/test-strerror_r.c (main): Likewise.
6100
6101 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         intprop-tests: port to older and more-pedantic compilers
6104         * modules/intprops-tests (Files): Add tests/macros.h.
6105         * tests/test-intprops.c: Include macros.h.
6106         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6107         it's no longer documented to expand to an integer constant expression.
6108         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6109         argument is floating point, as it's no longer documented to expand
6110         to an integer constant expression in that case.
6111         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6112         compiler bugs reported by Bruno Haible.  See
6113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6114         (U0, U1): New constants, to work around the same bugs.  Also,
6115         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6116
6117         intprops: work around C compiler bugs
6118         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6119         bug in Sun C 5.11 2010/08/13 and other compilers; see
6120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6121
6122         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6123         * doc/intprops.texi (Integer Type Determination): Fix
6124         documentation for TYPE_IS_INTEGER: it returns an constant
6125         expression, not an integer constant expression.  Fix doc for
6126         TYPE_SIGNED: it returns an integer constant expression only if its
6127         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6128         hardly worth documented that way....)
6129
6130 2011-05-18  Bruno Haible  <bruno@clisp.org>
6131
6132         strerror_r: Avoid clobbering the strerror buffer when possible.
6133         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6134         Handle gnulib defined errno values here. When strerror() returns NULL
6135         or an empty string, return EINVAL.
6136         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6137         gnulib defined errno values here.
6138         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6139
6140 2011-05-18  Eric Blake  <eblake@redhat.com>
6141
6142         fnmatch: avoid compiler warning
6143         * lib/fnmatch_loop.c (FCT): Use correct type.
6144         Reported by Matthias Bolte.
6145
6146 2011-05-13  Jim Meyering  <meyering@redhat.com>
6147
6148         maint.mk: three new prohibit_<HDR>_without_use rules
6149         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6150         (sc_prohibit_stdio-safer_without_use): Likewise.
6151         (sc_prohibit_xfreopen_without_use): Likewise.
6152
6153 2011-05-17  Jim Meyering  <meyering@redhat.com>
6154
6155         announce-gen: fail if the NEWS delta is empty
6156         If there's nothing noteworthy in NEWS, then either you forgot
6157         or you shouldn't be releasing.
6158         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6159
6160 2011-05-17  Pádraig Brady <P@draigBrady.com>
6161
6162         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6163         reserved symbols starting with double underscore from the check.
6164
6165 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6166
6167         intprops: add doc
6168         * doc/intprops.texi: New file, documenting intprops.
6169         * doc/gnulib.texi (Particular Modules): Include it.
6170
6171         verify: add doc to gnulib manual and fix example
6172         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6173         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6174         (Compile-time Assertions): Fix example so it can't overflow.
6175
6176 2011-05-17  Jim Meyering  <meyering@redhat.com>
6177
6178         warnings.m4: don't usurp save_CPPFLAGS variable name
6179         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6180
6181         doc: fix typo
6182         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6183
6184 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6185             Bruno Haible  <bruno@clisp.org>
6186
6187         doc: Tweak recent change.
6188         * README (Portability guidelines): Tweak new text.
6189         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6190         Interix 6.1.
6191
6192 2011-05-16  Eric Blake  <eblake@redhat.com>
6193
6194         inttypes: avoid autoconf warning
6195         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6196         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6197
6198 2011-05-16  Sam Steingold <sds@gnu.org>
6199         and Eric Blake  <eblake@redhat.com>
6200
6201         vc-list-files: accept multiple directory operands
6202         * build-aux/vc-list-files: Iterate over all remaining operands.
6203
6204 2011-05-16  Bruno Haible  <bruno@clisp.org>
6205
6206         Fix confusion regarding deprecated modules.
6207         * modules/calloc (Status, Notice): Mark module as deprecated, not
6208         obsolete.
6209         * modules/fnmatch-posix (Status, Notice): Likewise.
6210         * modules/getdate (Status, Notice): Likewise.
6211         * modules/getopt (Status, Notice): Likewise.
6212         * modules/malloc (Status, Notice): Likewise.
6213         * modules/pipe (Status, Notice): Likewise.
6214         * modules/realloc (Status, Notice): Likewise.
6215         * modules/rename-dest-slash (Status, Notice): Likewise.
6216         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6217         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6218         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6219         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6220         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6221
6222 2011-05-16  Bruno Haible  <bruno@clisp.org>
6223
6224         doc: List the target platforms.
6225         * doc/gnulib-intro.texi (Target Platforms): New section.
6226         * doc/gnulib.texi (Introduction): Update menu.
6227         * README (Portability guidelines): Refer to the new section. Update
6228         statement about oldest supported environment. Remove rationale why
6229         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6230         unportable C89 function.
6231         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6232         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6233
6234 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6237
6238 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6239
6240         intprops-tests: new module
6241         * modules/intprops-tests, tests/test-intprops.c: New files.
6242
6243         intprops: add safe, portable integer overflow checking
6244         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6245         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6246         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6247         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6248         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6249         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6250         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6251         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6252         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6253         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6254         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6255
6256 2011-05-12  James Youngman  <jay@gnu.org>
6257
6258         Add a test for glibc's Bugzilla bug #12378.
6259         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6260         doesn't allow the literal matching of a lone "[" (which is
6261         required by POSIX).
6262         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6263
6264 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6265
6266         Sync glibc change fixing Bugzilla bug #12378.
6267         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6268         beginning and fall back to matching as normal character if the
6269         string ends before the matching ']' is found.  This is what POSIX
6270         requires.
6271
6272 2011-05-13  Eric Blake  <eblake@redhat.com>
6273
6274         getcwd-lgpl: relax test for FreeBSD
6275         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6276         issue.
6277         * tests/test-getcwd-lgpl.c (main): Relax test.
6278         Reported by Matthias Bolte.
6279
6280 2011-05-11  Eric Blake  <eblake@redhat.com>
6281
6282         test-fflush: silence compiler warning
6283         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6284
6285 2011-05-11  Bruno Haible  <bruno@clisp.org>
6286
6287         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6288         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6289         * modules/canonicalize (Depends-on): Add 'nocrash'.
6290         * modules/canonicalize-lgpl (Depends-on): Likewise.
6291         * doc/posix-functions/realpath.texi: Update platforms list.
6292         Reported by Ryan Schmidt <ryandesign@macports.org>.
6293
6294 2011-05-11  Bruno Haible  <bruno@clisp.org>
6295
6296         group-member: Declare function in <unistd.h>.
6297         * lib/unistd.in.h (group_member): New declaration.
6298         * lib/group-member.h: Remove file.
6299         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6300         * tests/test-unistd-c++.cc: Check signature of group_member.
6301         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6302         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6303         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6304         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6305         HAVE_GROUP_MEMBER.
6306         * modules/group-member (Files): Remove lib/group-member.h.
6307         (Depends-on): Add unistd. Specify conditions.
6308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6309         (Include): Change to <unistd.h>.
6310         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6311         HAVE_GROUP_MEMBER.
6312         * NEWS: Mention the change.
6313         * lib/euidaccess.c: Don't include group-member.h.
6314
6315 2011-05-11  Bruno Haible  <bruno@clisp.org>
6316
6317         group-member: Document module.
6318         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6319         module.
6320
6321 2011-05-11  Bruno Haible  <bruno@clisp.org>
6322
6323         fclose: Fix mistake earlier today.
6324         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6325
6326 2011-05-11  Eric Blake  <eblake@redhat.com>
6327
6328         fclose: preserve fflush errors
6329         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6330         Reported by Jim Meyering.
6331
6332         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6333         * build-aux/bootstrap (check_versions): When no specific version
6334         is required, merely check that the app produces an exit status
6335         that indicates its existence.
6336
6337         maint.mk: drop redundant check
6338         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6339         the same but better.
6340
6341 2011-05-11  Bruno Haible  <bruno@clisp.org>
6342
6343         fclose: Fix possible link error.
6344         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6345         unregister_shadow_fd. Improve comments.
6346         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6347         Eric Blake.
6348
6349 2011-05-11  Jim Meyering  <meyering@redhat.com>
6350
6351         maint.mk: improve "can not" detection and generalize rule name
6352         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6353         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6354         Use the same technique as in sc_prohibit_doubled_word, so that
6355         we recognize "can not" also when the words are separated by a newline.
6356         Suggested by Eric Blake.
6357         (perl_filename_lineno_text_): Define.  Factored out of...
6358         (prohibit_doubled_word_): ...here.  Use the new definition.
6359         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6360         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6361         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6362
6363 2011-05-10  Eric Blake  <eblake@redhat.com>
6364
6365         fclose: avoid double close race when possible
6366         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6367         all but WINDOWS_SOCKETS.
6368
6369 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6370
6371         openat: correct new comment
6372         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6373
6374 2011-05-10  Jim Meyering  <meyering@redhat.com>
6375
6376         openat: add comments
6377         * lib/openat-proc.c (openat_proc_name): Add comments,
6378         mostly from Eric Blake.
6379
6380 2011-05-09  Eric Blake  <eblake@redhat.com>
6381
6382         openat: reduce syscalls in first probe of /proc
6383         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6384         be a directory.  Simplify the probe for .. bugs.
6385         * modules/openat (Depends-on): Drop same-inode.
6386         Reported by Bastien ROUCARIES.
6387
6388 2011-05-09  Jim Meyering  <meyering@redhat.com>
6389
6390         maint.mk: change semantics/name of tight_scope variables
6391         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6392         Rename variables to align with semantics that make them more useful.
6393
6394         maint.mk: tweak new rule's name not to impinge
6395         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6396         (sc_tight_scope): Use new rule name rather than $@-0.
6397
6398         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6399         * top/maint.mk (sc_tight_scope): New rule.
6400         (sc_tight_scope-0): New rule, ifdef'd out.
6401         (_gl_TS_dir): Default.
6402         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6403         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6404
6405 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6406
6407         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6408         Haible <bruno@clisp.org>.
6409
6410 2011-05-08  Bruno Haible  <bruno@clisp.org>
6411
6412         Comments.
6413         * m4/isnanf.m4: Add comment.
6414         * m4/isnanl.m4: Likewise.
6415
6416 2011-05-08  Bruno Haible  <bruno@clisp.org>
6417
6418         glob: Remove obsolete macro.
6419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6420
6421 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6422
6423         intprops: Sun C 5.11 supports __typeof__
6424         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6425         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6426         which is new.
6427         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6428
6429         intprops: switch to usual gnulib indenting and naming
6430         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6431         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6432
6433         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6434
6435 2011-05-08  Jim Meyering  <meyering@redhat.com>
6436
6437         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6438         * top/maint.mk (release-prep): Use make's --no-print-directory
6439         option when generating the announcement.  This eliminates the
6440         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6441         generated announcement template.
6442
6443 2011-05-08  Bruno Haible  <bruno@clisp.org>
6444
6445         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6446         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6447         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6448
6449 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         ignore-value, verify: Omit include files from lib_SOURCES.
6452         * modules/ignore-value, modules/verify (Makefile.am):
6453         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6454         that leads Automake to duplicate use of am__objects_... variables
6455         in Makefile.in.  See
6456         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6457
6458 2011-05-07  Bruno Haible  <bruno@clisp.org>
6459
6460         fclose: Simplify autoconf macro.
6461         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6462         defined.
6463
6464 2011-05-07  Bruno Haible  <bruno@clisp.org>
6465
6466         canonicalize-lgpl: Fix autoconf macro ordering bug.
6467         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6468         gl_STDLIB_H_DEFAULTS.
6469
6470 2011-05-06  Eric Blake  <eblake@redhat.com>
6471
6472         maintainer-makefile: make sc_po_check easier to tune
6473         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6474         to probe for strings, such as an alternate location for gnulib.
6475
6476         fclose: guarantee behavior on seekable stdin
6477         * modules/fclose (Depends-on): Add fflush.
6478         * doc/posix-functions/fclose.texi (fclose): Document this.
6479         * tests/test-fclose.c (main): Make test for this unconditional.
6480
6481 2011-05-06  Bruno Haible  <bruno@clisp.org>
6482
6483         fflush, fpurge: Relicense under LGPLv2+.
6484         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6485         * modules/fpurge (License): Likewise.
6486         With permission from Eric Blake and Jim Meyering.
6487         Suggested by Eric Blake.
6488
6489 2011-05-06  Karl Berry  <karl@gnu.org>
6490
6491         * MODULES.html.sh (func_all_modules): remove exit.
6492
6493 2011-05-06  Jim Meyering  <meyering@redhat.com>
6494
6495         maint.mk: use info-gnu@ as the default only for a stable release
6496         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6497         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6498         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6500
6501 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6502
6503         assert-h: new module, which supports C1X-style static_assert
6504         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6505         * lib/verify.h: Revamp so that this can be copied into assert.h,
6506         while retaining the ability to use it standalone as before.
6507         Rename private identifiers so as not to encroach on the
6508         standard C namespace, since this is now used by assert.h.
6509         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6510         the old verify_true.
6511         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6512         the old verify_true.  Use _GL_VERIFY_TYPE.
6513         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6514         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6515         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6516         defined when this file is copied into the replacement assert.h.
6517         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6518         and _Static_assert is not built in.
6519         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6520         defined, and use the new macros mentioned above.
6521         * doc/posix-headers/assert.texi: Document this.
6522
6523 2011-05-05  Bruno Haible  <bruno@clisp.org>
6524
6525         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6526         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6527         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6528         gl_REPLACE_FCLOSE here.
6529         * modules/fflush (Depends-on): Remove fclose.
6530         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6531         combination with module 'fclose'.
6532
6533 2011-05-05  Bruno Haible  <bruno@clisp.org>
6534
6535         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6536         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6537         gl_FUNC_FFLUSH.
6538         (gl_FUNC_FFLUSH): Use it.
6539         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6540         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6541         gl_REPLACE_FSEEKO here.
6542
6543 2011-05-05  Bruno Haible  <bruno@clisp.org>
6544
6545         tzset: Relicense under LGPL.
6546         * modules/tzset (License): Change to LGPL.
6547         No agreement needed; it's a no-op.
6548
6549         strtoimax, strtoumax: Relicense under LGPL.
6550         * modules/strtoimax (License): Change to LGPL.
6551         * modules/strtoumax (License): Likewise.
6552         With permission from Jim Meyering, Paul Eggert:
6553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6555
6556         getgroups: Relicense under LGPL.
6557         * modules/getgroups (License): Change to LGPL.
6558         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6562
6563         nanosleep: Relicense under LGPL.
6564         * modules/nanosleep (License): Change to LGPL.
6565         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6566         Haible:
6567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6571
6572         futimens: Relicense under LGPL.
6573         * modules/futimens (License): Change to LGPL.
6574         With permission from Eric Blake:
6575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6576
6577         fflush: Relicense under LGPL.
6578         * modules/fflush (License): Change to LGPL.
6579         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6583
6584         tmpfile: Relicense under LGPL.
6585         * modules/tmpfile (License): Change to LGPL.
6586         With permission from Ben Pfaff:
6587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6588
6589         isfinite: Relicense under LGPL.
6590         * modules/isfinite (License): Change to LGPL.
6591         With permission from Ben Pfaff, Bruno Haible:
6592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6594
6595         acosl..tanl: Relicense under LGPL.
6596         * modules/acosl (License): Change to LGPL.
6597         * modules/asinl (License): Likewise.
6598         * modules/atanl (License): Likewise.
6599         * modules/cosl (License): Likewise.
6600         * modules/expl (License): Likewise.
6601         * modules/logl (License): Likewise.
6602         * modules/sinl (License): Likewise.
6603         * modules/sqrtl (License): Likewise.
6604         * modules/tanl (License): Likewise.
6605         Source code originally from glibc and Paolo Bonzini. Agreements:
6606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6608
6609 2011-05-05  Bruno Haible  <bruno@clisp.org>
6610
6611         signal: Define sighandler_t.
6612         * lib/signal.in.h (sighandler_t): New type.
6613         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6614         whether sighandler_t is defined.
6615         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6616         * modules/signal (Depends-on): Add extensions.
6617         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6618         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6619         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6620
6621 2011-05-05  Eric Blake  <eblake@redhat.com>
6622
6623         maint: remove useless REPLACE_*_H macros
6624         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6625         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6626         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6627         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6628         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6629         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6630         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6631         * m4/btowc.m4: Update callers.
6632         * m4/dirfd.m4: Likewise.
6633         * m4/duplocale.m4: Likewise.
6634         * m4/fchdir.m4: Likewise.
6635         * m4/fdopendir.m4: Likewise.
6636         * m4/inet_ntop.m4: Likewise.
6637         * m4/inet_pton.m4: Likewise.
6638         * m4/ioctl.m4: Likewise.
6639         * m4/mbrlen.m4: Likewise.
6640         * m4/mbrtowc.m4: Likewise.
6641         * m4/mbsinit.m4: Likewise.
6642         * m4/mbsnrtowcs.m4: Likewise.
6643         * m4/mbsrtowcs.m4: Likewise.
6644         * m4/poll.m4: Likewise.
6645         * m4/setlocale.m4: Likewise.
6646         * m4/wcrtomb.m4: Likewise.
6647         * m4/wcsnrtombs.m4: Likewise.
6648         * m4/wcsrtombs.m4: Likewise.
6649         * m4/wctob.m4: Likewise.
6650         * m4/wcwidth.m4: Likewise.
6651         * modules/posix_spawn: Likewise.
6652         * modules/posix_spawn_file_actions_addclose: Likewise.
6653         * modules/posix_spawn_file_actions_adddup2: Likewise.
6654         * modules/posix_spawn_file_actions_addopen: Likewise.
6655         * modules/posix_spawn_file_actions_destroy: Likewise.
6656         * modules/posix_spawn_file_actions_init: Likewise.
6657         * modules/posix_spawnattr_destroy: Likewise.
6658         * modules/posix_spawnattr_getflags: Likewise.
6659         * modules/posix_spawnattr_getpgroup: Likewise.
6660         * modules/posix_spawnattr_getschedparam: Likewise.
6661         * modules/posix_spawnattr_getschedpolicy: Likewise.
6662         * modules/posix_spawnattr_getsigdefault: Likewise.
6663         * modules/posix_spawnattr_getsigmask: Likewise.
6664         * modules/posix_spawnattr_init: Likewise.
6665         * modules/posix_spawnattr_setflags: Likewise.
6666         * modules/posix_spawnattr_setpgroup: Likewise.
6667         * modules/posix_spawnattr_setschedparam: Likewise.
6668         * modules/posix_spawnattr_setschedpolicy: Likewise.
6669         * modules/posix_spawnattr_setsigdefault: Likewise.
6670         * modules/posix_spawnattr_setsigmask: Likewise.
6671         * modules/posix_spawnp: Likewise.
6672
6673 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6674
6675         Add option to do-release-commit-and-tag to specify branch.
6676         * build-aux/do-release-commit-and-tag: Add --branch.
6677
6678 2011-05-03  Bruno Haible  <bruno@clisp.org>
6679
6680         Avoid unnecessary compilation units, through conditional dependencies.
6681         * modules/accept (Depends-on): Add conditions to the dependencies.
6682         * modules/acosl (Depends-on): Likewise.
6683         * modules/argz (Depends-on): Likewise.
6684         * modules/asinl (Depends-on): Likewise.
6685         * modules/atanl (Depends-on): Likewise.
6686         * modules/atoll (Depends-on): Likewise.
6687         * modules/bind (Depends-on): Likewise.
6688         * modules/btowc (Depends-on): Likewise.
6689         * modules/canonicalize-lgpl (Depends-on): Likewise.
6690         * modules/ceil (Depends-on): Likewise.
6691         * modules/ceilf (Depends-on): Likewise.
6692         * modules/ceill (Depends-on): Likewise.
6693         * modules/chdir-long (Depends-on): Likewise.
6694         * modules/chown (Depends-on): Likewise.
6695         * modules/close (Depends-on): Likewise.
6696         * modules/connect (Depends-on): Likewise.
6697         * modules/cosl (Depends-on): Likewise.
6698         * modules/dirfd (Depends-on): Likewise.
6699         * modules/dprintf (Depends-on): Likewise.
6700         * modules/dprintf-posix (Depends-on): Likewise.
6701         * modules/error (Depends-on): Likewise.
6702         * modules/euidaccess (Depends-on): Likewise.
6703         * modules/expl (Depends-on): Likewise.
6704         * modules/faccessat (Depends-on): Likewise.
6705         * modules/fchdir (Depends-on): Likewise.
6706         * modules/fclose (Depends-on): Likewise.
6707         * modules/fcntl (Depends-on): Likewise.
6708         * modules/fdopendir (Depends-on): Likewise.
6709         * modules/fflush (Depends-on): Likewise.
6710         * modules/floor (Depends-on): Likewise.
6711         * modules/floorf (Depends-on): Likewise.
6712         * modules/floorl (Depends-on): Likewise.
6713         * modules/fnmatch (Depends-on): Likewise.
6714         * modules/fopen (Depends-on): Likewise.
6715         * modules/fprintf-posix (Depends-on): Likewise.
6716         * modules/frexp (Depends-on): Likewise.
6717         * modules/frexp-nolibm (Depends-on): Likewise.
6718         * modules/frexpl (Depends-on): Likewise.
6719         * modules/frexpl-nolibm (Depends-on): Likewise.
6720         * modules/fseek (Depends-on): Likewise.
6721         * modules/fsusage (Depends-on): Likewise.
6722         * modules/ftell (Depends-on): Likewise.
6723         * modules/ftello (Depends-on): Likewise.
6724         * modules/futimens (Depends-on): Likewise.
6725         * modules/getcwd (Depends-on): Likewise.
6726         * modules/getcwd-lgpl (Depends-on): Likewise.
6727         * modules/getdelim (Depends-on): Likewise.
6728         * modules/getdomainname (Depends-on): Likewise.
6729         * modules/getgroups (Depends-on): Likewise.
6730         * modules/gethostname (Depends-on): Likewise.
6731         * modules/getline (Depends-on): Likewise.
6732         * modules/getlogin_r (Depends-on): Likewise.
6733         * modules/getopt-posix (Depends-on): Likewise.
6734         * modules/getpeername (Depends-on): Likewise.
6735         * modules/getsockname (Depends-on): Likewise.
6736         * modules/getsockopt (Depends-on): Likewise.
6737         * modules/getsubopt (Depends-on): Likewise.
6738         * modules/getusershell (Depends-on): Likewise.
6739         * modules/glob (Depends-on): Likewise.
6740         * modules/grantpt (Depends-on): Likewise.
6741         * modules/iconv_open (Depends-on): Likewise.
6742         * modules/iconv_open-utf (Depends-on): Likewise.
6743         * modules/inet_ntop (Depends-on): Likewise.
6744         * modules/inet_pton (Depends-on): Likewise.
6745         * modules/ioctl (Depends-on): Likewise.
6746         * modules/isapipe (Depends-on): Likewise.
6747         * modules/isfinite (Depends-on): Likewise.
6748         * modules/isinf (Depends-on): Likewise.
6749         * modules/lchown (Depends-on): Likewise.
6750         * modules/ldexpl (Depends-on): Likewise.
6751         * modules/link (Depends-on): Likewise.
6752         * modules/linkat (Depends-on): Likewise.
6753         * modules/listen (Depends-on): Likewise.
6754         * modules/logl (Depends-on): Likewise.
6755         * modules/lstat (Depends-on): Likewise.
6756         * modules/mbrlen (Depends-on): Likewise.
6757         * modules/mbrtowc (Depends-on): Likewise.
6758         * modules/mbsinit (Depends-on): Likewise.
6759         * modules/mbsnrtowcs (Depends-on): Likewise.
6760         * modules/mbsrtowcs (Depends-on): Likewise.
6761         * modules/mbtowc (Depends-on): Likewise.
6762         * modules/memcmp (Depends-on): Likewise.
6763         * modules/mkdir (Depends-on): Likewise.
6764         * modules/mkdtemp (Depends-on): Likewise.
6765         * modules/mkfifo (Depends-on): Likewise.
6766         * modules/mkfifoat (Depends-on): Likewise.
6767         * modules/mknod (Depends-on): Likewise.
6768         * modules/mkostemp (Depends-on): Likewise.
6769         * modules/mkostemps (Depends-on): Likewise.
6770         * modules/mkstemp (Depends-on): Likewise.
6771         * modules/mkstemps (Depends-on): Likewise.
6772         * modules/mktime (Depends-on): Likewise.
6773         * modules/nanosleep (Depends-on): Likewise.
6774         * modules/open (Depends-on): Likewise.
6775         * modules/openat (Depends-on): Likewise.
6776         * modules/perror (Depends-on): Likewise.
6777         * modules/poll (Depends-on): Likewise.
6778         * modules/popen (Depends-on): Likewise.
6779         * modules/posix_spawn (Depends-on): Likewise.
6780         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6781         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6782         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6783         * modules/posix_spawnp (Depends-on): Likewise.
6784         * modules/pread (Depends-on): Likewise.
6785         * modules/printf-posix (Depends-on): Likewise.
6786         * modules/ptsname (Depends-on): Likewise.
6787         * modules/putenv (Depends-on): Likewise.
6788         * modules/pwrite (Depends-on): Likewise.
6789         * modules/readline (Depends-on): Likewise.
6790         * modules/readlink (Depends-on): Likewise.
6791         * modules/readlinkat (Depends-on): Likewise.
6792         * modules/recv (Depends-on): Likewise.
6793         * modules/recvfrom (Depends-on): Likewise.
6794         * modules/regex (Depends-on): Likewise.
6795         * modules/remove (Depends-on): Likewise.
6796         * modules/rename (Depends-on): Likewise.
6797         * modules/renameat (Depends-on): Likewise.
6798         * modules/rmdir (Depends-on): Likewise.
6799         * modules/round (Depends-on): Likewise.
6800         * modules/roundf (Depends-on): Likewise.
6801         * modules/roundl (Depends-on): Likewise.
6802         * modules/rpmatch (Depends-on): Likewise.
6803         * modules/select (Depends-on): Likewise.
6804         * modules/send (Depends-on): Likewise.
6805         * modules/sendto (Depends-on): Likewise.
6806         * modules/setenv (Depends-on): Likewise.
6807         * modules/setlocale (Depends-on): Likewise.
6808         * modules/setsockopt (Depends-on): Likewise.
6809         * modules/shutdown (Depends-on): Likewise.
6810         * modules/sigaction (Depends-on): Likewise.
6811         * modules/signbit (Depends-on): Likewise.
6812         * modules/sigprocmask (Depends-on): Likewise.
6813         * modules/sinl (Depends-on): Likewise.
6814         * modules/sleep (Depends-on): Likewise.
6815         * modules/snprintf (Depends-on): Likewise.
6816         * modules/snprintf-posix (Depends-on): Likewise.
6817         * modules/socket (Depends-on): Likewise.
6818         * modules/sprintf-posix (Depends-on): Likewise.
6819         * modules/sqrtl (Depends-on): Likewise.
6820         * modules/stat (Depends-on): Likewise.
6821         * modules/strchrnul (Depends-on): Likewise.
6822         * modules/strdup-posix (Depends-on): Likewise.
6823         * modules/strerror (Depends-on): Likewise.
6824         * modules/strerror_r-posix (Depends-on): Likewise.
6825         * modules/strndup (Depends-on): Likewise.
6826         * modules/strnlen (Depends-on): Likewise.
6827         * modules/strptime (Depends-on): Likewise.
6828         * modules/strsep (Depends-on): Likewise.
6829         * modules/strsignal (Depends-on): Likewise.
6830         * modules/strstr-simple (Depends-on): Likewise.
6831         * modules/strtod (Depends-on): Likewise.
6832         * modules/strtoimax (Depends-on): Likewise.
6833         * modules/strtok_r (Depends-on): Likewise.
6834         * modules/strtoumax (Depends-on): Likewise.
6835         * modules/symlink (Depends-on): Likewise.
6836         * modules/symlinkat (Depends-on): Likewise.
6837         * modules/tanl (Depends-on): Likewise.
6838         * modules/tcgetsid (Depends-on): Likewise.
6839         * modules/tmpfile (Depends-on): Likewise.
6840         * modules/trunc (Depends-on): Likewise.
6841         * modules/truncf (Depends-on): Likewise.
6842         * modules/truncl (Depends-on): Likewise.
6843         * modules/uname (Depends-on): Likewise.
6844         * modules/unlink (Depends-on): Likewise.
6845         * modules/unlockpt (Depends-on): Likewise.
6846         * modules/unsetenv (Depends-on): Likewise.
6847         * modules/usleep (Depends-on): Likewise.
6848         * modules/utimensat (Depends-on): Likewise.
6849         * modules/vasprintf (Depends-on): Likewise.
6850         * modules/vdprintf (Depends-on): Likewise.
6851         * modules/vdprintf-posix (Depends-on): Likewise.
6852         * modules/vfprintf-posix (Depends-on): Likewise.
6853         * modules/vprintf-posix (Depends-on): Likewise.
6854         * modules/vsnprintf (Depends-on): Likewise.
6855         * modules/vsnprintf-posix (Depends-on): Likewise.
6856         * modules/vsprintf-posix (Depends-on): Likewise.
6857         * modules/wcrtomb (Depends-on): Likewise.
6858         * modules/wcscasecmp (Depends-on): Likewise.
6859         * modules/wcscspn (Depends-on): Likewise.
6860         * modules/wcsdup (Depends-on): Likewise.
6861         * modules/wcsncasecmp (Depends-on): Likewise.
6862         * modules/wcsnrtombs (Depends-on): Likewise.
6863         * modules/wcspbrk (Depends-on): Likewise.
6864         * modules/wcsrtombs (Depends-on): Likewise.
6865         * modules/wcsspn (Depends-on): Likewise.
6866         * modules/wcsstr (Depends-on): Likewise.
6867         * modules/wcstok (Depends-on): Likewise.
6868         * modules/wcswidth (Depends-on): Likewise.
6869         * modules/wctob (Depends-on): Likewise.
6870         * modules/wctomb (Depends-on): Likewise.
6871         * modules/wctype (Depends-on): Likewise.
6872         * modules/wcwidth (Depends-on): Likewise.
6873         * modules/write (Depends-on): Likewise.
6874
6875 2011-05-03  Bruno Haible  <bruno@clisp.org>
6876
6877         Support for conditional dependencies.
6878         * doc/gnulib.texi (Module description): Document the syntax of
6879         conditional dependencies.
6880         * gnulib-tool: New option --conditional-dependencies.
6881         (func_usage): Document it.
6882         (cond_dependencies): New variable.
6883         (func_get_automake_snippet_conditional,
6884         func_get_automake_snippet_unconditional): New functions, extracted from
6885         func_get_automake_snippet.
6886         (func_get_automake_snippet): Use them.
6887         (sed_first_32_chars): New variable.
6888         (func_module_shellfunc_name): New function.
6889         (func_module_shellvar_name): New function.
6890         (func_module_conditional_name): New function.
6891         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6892         func_cond_module_condition): New functions.
6893         (func_modules_transitive_closure): Add support for conditional
6894         dependencies.
6895         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6896         conditional automake snippet in an automake conditional.
6897         (func_emit_autoconf_snippets): Emit shell functions that contain the
6898         code for conditional modules.
6899         (func_import, func_create_testdir): Update specification.
6900
6901 2011-05-03  Eric Blake  <eblake@redhat.com>
6902
6903         test-getaddrinfo: report error information
6904         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6905
6906 2011-05-03  Jim Meyering  <meyering@redhat.com>
6907
6908         bootstrap: avoid build failure when $GZIP is set
6909         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6910         program name.  If defined at all, it is supposed to list gzip options.
6911         Reported by Alan Curry in http://debbugs.gnu.org/8609
6912
6913 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6914
6915         readme-release: new module with release instructions
6916         * modules/readme-release: New module.
6917         * top/README-release: New file, from coreutils, grep, diffutils.
6918         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6919
6920 2011-05-02  Eric Blake  <eblake@redhat.com>
6921
6922         fflush: also replace fclose when fixing fflush
6923         * modules/fflush (Depends-on): Add fclose.
6924         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6925         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6926         memstreams with no backing fd.
6927         * doc/posix-functions/fclose.texi (fclose): Document the use of
6928         fflush module to fix the bug.
6929         * tests/test-fclose.c (main): Relax test when fclose is used in
6930         isolation.
6931
6932         fclose: add some tests
6933         * modules/fclose-tests: New test module.
6934         * tests/test-fclose.c: New file.
6935         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6936
6937         fclose: reduced dependencies
6938         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6939         simpler lseek.
6940         * lib/fclose.c (rpl_fclose): Likewise.
6941         Reported by Simon Josefsson.
6942
6943         exit: drop remaining clients
6944         * modules/argmatch (Depends-on): Replace exit with stdlib.
6945         * modules/copy-file (Depends-on): Likewise.
6946         * modules/execute (Depends-on): Likewise.
6947         * modules/exitfail (Depends-on): Likewise.
6948         * modules/obstack (Depends-on): Likewise.
6949         * modules/pagealign_alloc (Depends-on): Likewise.
6950         * modules/pipe-filter-gi (Depends-on): Likewise.
6951         * modules/pipe-filter-ii (Depends-on): Likewise.
6952         * modules/savewd (Depends-on): Likewise.
6953         * modules/spawn-pipe (Depends-on): Likewise.
6954         * modules/wait-process (Depends-on): Likewise.
6955         * modules/xsetenv (Depends-on): Likewise.
6956         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6957         * modules/git-merge-changelog (Depends-on): Likewise.
6958         * modules/long-options (Depends-on): Likewise.
6959         * modules/pt_chown (Depends-on): Likewise.
6960         * modules/sysexits (Depends-on): Likewise.
6961
6962         freading: relax license from LGPLv3+ to LGPLv2+
6963         * modules/freading (License): Relax LGPL version.
6964
6965 2011-05-02  Bruno Haible  <bruno@clisp.org>
6966
6967         fchdir: Remove unused dependencies.
6968         * modules/fchdir (Depends-on): Remove include_next.
6969
6970 2011-05-02  Bruno Haible  <bruno@clisp.org>
6971
6972         gnulib-tool: Refactor.
6973         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6974         from func_emit_autoconf_snippets.
6975         (func_emit_autoconf_snippets): Use it.
6976
6977 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6978
6979         * NEWS: Document removal of 'exit'.
6980         * modules/exit: Remove file.
6981
6982 2011-05-01  Bruno Haible  <bruno@clisp.org>
6983
6984         Update DEPENDENCIES.
6985         * DEPENDENCIES (gettext): Recommend the newest release.
6986         Reported by Simon Josefsson.
6987
6988 2011-05-01  Bruno Haible  <bruno@clisp.org>
6989
6990         gnulib-tool: Reduce code duplication.
6991         * gnulib-tool (func_emit_autoconf_snippets): New function.
6992         (func_import, func_create_testdir): Use it.
6993
6994 2011-04-30  Eric Blake  <eblake@redhat.com>
6995
6996         fclose: don't fail on non-seekable input stream
6997         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6998         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6999         since fflush is allowed to fail in that case.
7000
7001 2011-04-30  Bruno Haible  <bruno@clisp.org>
7002
7003         dup3: cleanup
7004         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7005
7006 2011-04-30  Bruno Haible  <bruno@clisp.org>
7007
7008         netdb: Make it work in C++ mode.
7009         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7010         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7011         module.
7012         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7013         gl_MODULE_INDICATOR_FOR_TESTS.
7014         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7015         * modules/netdb-c++-tests: New file.
7016         * tests/test-netdb-c++.cc: New file.
7017
7018 2011-04-30  Bruno Haible  <bruno@clisp.org>
7019
7020         New modules 'vfscanf', 'vscanf'.
7021         * modules/vfscanf: New file.
7022         * modules/vscanf: New file.
7023         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7024         here.
7025         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7026         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7027
7028 2011-04-30  Bruno Haible  <bruno@clisp.org>
7029
7030         passfd: Add comments.
7031         * lib/passfd.c: Add comments about platforms.
7032
7033 2011-04-30  Bruno Haible  <bruno@clisp.org>
7034
7035         sys_uio: Make <sys/uio.h> self-contained.
7036         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7037         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7038
7039 2011-04-30  Bruno Haible  <bruno@clisp.org>
7040
7041         sys_socket: Ensure 'struct iovec' definition.
7042         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7043         <sys/socket.h>.
7044         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7045
7046 2011-04-30  Bruno Haible  <bruno@clisp.org>
7047
7048         sys_uio: Protect definition of 'struct iovec'.
7049         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7050         it as a C struct.
7051
7052 2011-04-30  Bruno Haible  <bruno@clisp.org>
7053
7054         manywarnings: fix indentation
7055         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7056
7057 2011-04-30  Pádraig Brady <P@draigBrady.com>
7058
7059         manywarnings: add -Wno-missing-field-initializers if needed.
7060         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7061         option if it's needed to allow initialization with { 0, }
7062
7063 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7064
7065         announce-gen: cosmetic improvement
7066         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7067
7068 2011-04-29  Jim Meyering  <meyering@redhat.com>
7069
7070         vc-list-files: indent with spaces, not TABs
7071         * build-aux/vc-list-files: Convert leading TABs to spaces,
7072         to match the style of most other files in gnulib.
7073
7074         announce-gen: indent with spaces, not TABs
7075         * build-aux/announce-gen: Convert all TABs to spaces, to match
7076         the style of most other files in gnulib.
7077
7078 2011-04-29  Eric Blake  <eblake@redhat.com>
7079
7080         quotearg: avoid uninitialized variable use
7081         * lib/quotearg.c (quoting_options_from_style): Initialize
7082         remaining fields, and ensure that custom styles are only used via
7083         quoting_options rather than quoting_style.
7084
7085 2011-04-29  Jim Meyering  <meyering@redhat.com>
7086
7087         maint.mk: remove unused VC-tag variable
7088         * top/maint.mk (VC-tag): Remove unused variable.
7089
7090 2011-04-29  Bruno Haible  <bruno@clisp.org>
7091
7092         netdb: fix gai_strerror replacements
7093         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7094         * modules/netdb: Substitute it.
7095
7096 2011-04-29  Jim Meyering  <meyering@redhat.com>
7097
7098         test-getcwd.c: avoid new set-but-not-used warning
7099         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7100         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7101         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7102         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7103
7104         test-hash.c: avoid a new shadowing warning
7105         * tests/test-hash.c (main): Don't shadow "dup".
7106
7107 2011-04-28  Eric Blake  <eblake@redhat.com>
7108
7109         getaddrinfo: fix gai_strerror signature
7110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7111         and work around mingw with UNICODE defined.
7112         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7113         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7114         * modules/netdb (Makefile.am): Substitute it.
7115         * lib/netdb.in.h (gai_strerror): Declare replacement.
7116         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7117         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7118         the fix.
7119
7120         getsockopt: avoid compiler warning
7121         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7122         Reported by Matthias Bolte.
7123
7124         tests: drop unused link dependency
7125         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7126         * modules/dirent-safer-tests (Makefile.am): Likewise.
7127         * modules/fdopendir-tests (Makefile.am): Likewise.
7128         * modules/mkfifoat-tests (Makefile.am): Likewise.
7129         * modules/openat-safer-tests (Makefile.am): Likewise.
7130         * modules/openat-tests (Makefile.am): Likewise.
7131         * modules/readlinkat-tests (Makefile.am): Likewise.
7132         * modules/symlinkat-tests (Makefile.am): Likewise.
7133         * modules/linkat-tests (Makefile.am): Likewise.
7134         (Depends-on): Switch to filenamecat-lgpl.
7135         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7136         LIBINTL.
7137         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7138         * tests/test-linkat.c (main): Don't require xalloc.
7139
7140         hash, mgetgroups: drop xalloc dependency
7141         * lib/hash.c (includes): Adjust includes.
7142         * lib/mgetgroups.c (includes): Likewise.
7143         (xgetgroups): Move...
7144         * lib/xgetgroups.c: ...to new file.
7145         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7146         * modules/xgetgroups: New file, split from...
7147         * modules/mgetgroups: ...here.
7148         (Depends-on): Add xalloc-oversized.
7149         * modules/hash (Depends-on): Likewise.
7150         * modules/hash-tests (Depends-on): Drop xalloc.
7151         (test_hash_LDADD): Drop unused library.
7152         * tests/test-hash.c (main): Break xalloc dependency.
7153         (includes): Drop unused include.
7154
7155         xalloc-oversized: new module
7156         * modules/xalloc-oversized: New module.
7157         * modules/xalloc (Depends-on): Add it.
7158         * lib/xalloc.h (xalloc_oversized): Move...
7159         * lib/xalloc-oversized.h: ...into new file.
7160
7161         utimecmp: drop dependency on xmalloc
7162         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7163         due to memory pressure.
7164         * modules/utimecmp (Depends-on): Drop xalloc.
7165
7166 2011-04-27  Eric Blake  <eblake@redhat.com>
7167
7168         getcwd: fix mingw bugs
7169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7170         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7171         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7172
7173 2011-04-27  Bruno Haible  <bruno@clisp.org>
7174
7175         mkstemps: Ensure declaration on MacOS X 10.5.
7176         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7177         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7178         MacOS X.
7179
7180 2011-04-27  Bruno Haible  <bruno@clisp.org>
7181
7182         mkstemp: More documentation.
7183         * doc/posix-functions/mkstemp.texi: Document header file problem on
7184         MacOS X.
7185
7186 2011-04-27  Bruno Haible  <bruno@clisp.org>
7187
7188         mkstemp: Tweak configure message when cross-compiling.
7189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7190         result as a guess.
7191
7192 2011-04-27  Bruno Haible  <bruno@clisp.org>
7193
7194         clean-temp: Clarify what it does.
7195         * lib/clean-temp.h: Add more comments.
7196         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7197         module.
7198         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7199         * doc/glibc-functions/mkstemps.texi: Likewise.
7200         * doc/glibc-functions/mkostemps.texi: Likewise.
7201
7202 2011-04-27  Eric Blake  <eblake@redhat.com>
7203
7204         fchdir: avoid extra chdir and fix test
7205         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7206         getcwd-lgpl.
7207         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7208         have to be canonical.
7209         (canonicalize_file_name): Drop unused macro.
7210         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7211
7212         filenamecat-lgpl: fix licence
7213         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7214         when it was first created.
7215
7216         linkat, renameat: add missing dependency
7217         * modules/linkat (Depends-on): Require getcwd-lgpl.
7218         * modules/renameat (Depends-on): Likewise.
7219
7220         tests: reduce dependencies
7221         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7222         * tests/test-renameat.c (main): Likewise.
7223         * modules/linkat-tests (Depends-on): Relax dependency.
7224         * modules/renameat-tests (Depends-on): Likewise.
7225         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7226         dependency explicit.
7227
7228         save-cwd: reduce default dependency
7229         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7230         * lib/save-cwd.c: Update comments.
7231         * NEWS: Document the semantic change.
7232
7233         getcwd: enhance tests
7234         * tests/test-getcwd-lgpl.c: New file, taken from...
7235         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7236         repeat long path stress tests from m4 probe.
7237         * modules/getcwd-lgpl-tests: New module.
7238         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7239         * m4/getcwd-abort-bug.m4: Update comment.
7240         * m4/getcwd-path-max.m4: Likewise.
7241
7242         getcwd-lgpl: new module
7243         * modules/getcwd-lgpl: New module.
7244         * lib/getcwd-lgpl.c: New file.
7245         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7246         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7247         * modules/getcwd (configure.ac): Set C witness.
7248         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7249
7250         getcwd: tweak comments
7251         * m4/getcwd-abort-bug.m4: Fix comments.
7252         * m4/getcwd-path-max.m4: Likewise.
7253         * m4/getcwd.m4: Likewise.
7254
7255 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7256         and Eric Blake  <eblake@redhat.com>
7257
7258         mkstemp: replace if system version uses wrong permissions
7259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7260         read/write mode bits set in file created by mkstemp.
7261         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7262
7263 2011-04-27  Eric Blake  <eblake@redhat.com>
7264
7265         passfd: avoid compiler warning
7266         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7267         Reported by Laine Stump.
7268
7269 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7270
7271         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7272         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7273
7274 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7275         and Eric Blake  <eblake@redhat.com>
7276
7277         mkstemp: mention clean-temp module
7278         * lib/mkstemp.c: Add comment.
7279         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7280
7281 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7282
7283         inttypes: also provide default values for 32-bit tests
7284         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7285         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7286
7287 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7288
7289         strtoumax: remove dependency on strtoimax
7290         This is like the strtoull change of yesterday.
7291         * modules/strtoumax (Files): Add lib/strtoimax.c.
7292         (Depends-on): Remove strtoimax and add verify.
7293
7294         inttypes-incomplete: new module
7295         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7296         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7297         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7298         of gl_INTTYPES_H.
7299         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7300         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7301         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7302         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7303         * modules/strtoumax, modules/xstrtol (Depends-on):
7304         Depend on inttypes-incomplete, not inttypes.
7305         * modules/inttypes-incomplete: New module, containing the contents
7306         of the old modules/inttypes module, except that the Files: section
7307         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7308         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7309         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7310         (Depends-on): Depend only on inttypes-incomplete.
7311         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7312
7313         inttypes: omit now-redundant strtoimax and strtoumax work
7314         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7315         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7316
7317         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7318         This supports apps that need pointers to strtoimax and strtoumax,
7319         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7320         nonexistent functions.  See
7321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7322         et seq.
7323         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7324         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7325         a macro.
7326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7327
7328 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7329
7330         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7331
7332 2011-04-25  Bruno Haible  <bruno@clisp.org>
7333
7334         strtol, strtoul: Mark modules as obsolete.
7335         * modules/strtol (Status, Notice): New sections.
7336         * modules/strtoul (Status, Notice): New sections.
7337
7338 2011-04-25  Bruno Haible  <bruno@clisp.org>
7339
7340         strtod: Remove check for strtod, unless supporting old platforms.
7341         * modules/strtod-obsolete: New file.
7342         * m4/strtod-obsolete.m4: New file.
7343         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7344         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7345         * modules/strtod (Depends-on): Add strtod-obsolete.
7346         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7347
7348 2011-04-25  Bruno Haible  <bruno@clisp.org>
7349
7350         strcase: Make module obsolete.
7351         * modules/strcase (Status, Notice): New sections.
7352
7353 2011-04-25  Bruno Haible  <bruno@clisp.org>
7354
7355         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7356         * modules/dup2-obsolete: New file.
7357         * m4/dup2-obsolete.m4: New file.
7358         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7359         gl_FUNC_DUP2_OBSOLETE is not also defined.
7360         * modules/dup2 (Depends-on): Add dup2-obsolete.
7361         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7362
7363 2011-04-25  Bruno Haible  <bruno@clisp.org>
7364
7365         strnlen: Avoid memchr related link error on old obsolete platforms.
7366         * modules/memchr-obsolete: New file.
7367         * m4/memchr-obsolete.m4: New file.
7368         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7369         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7370         * modules/memchr (Depends-on): Add memchr-obsolete.
7371         * modules/strnlen (Depends-on): Likewise.
7372         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7373
7374 2011-04-25  Jim Meyering  <meyering@redhat.com>
7375
7376         maint.mk: makefile_at_at_check extend and clean up
7377         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7378         in addition to */Makefile.am.
7379         Exempt legitimate uses of @VAR@ notation, e.g.,
7380         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7381         Remove obsolete coreutils-specific comment.
7382         Prompted by discussion here:
7383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7384
7385 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7386
7387         strtoul: remove dependency on strtol
7388         This is so that 'configure' need not check for strtol merely because
7389         the application needs strtoul.
7390         * modules/strtoul (Files): Add lib/strtol.c.
7391         (Depends-on): Remove strtol.
7392
7393         strtoull: remove dependency on strtoul
7394         This is like the strtoll change.
7395         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7396         (Depends-on): Remove strtoul.
7397
7398         strtoll: remove dependency on strtol
7399         This is so that 'configure' need not check for strtol merely because
7400         the application needs strtoll.
7401         * modules/strtoll (Files): Add lib/strtol.c.
7402         (Depends-on): Remove strtol.
7403
7404 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7405
7406         inttypes: Move some configure check to module 'imaxdiv'.
7407         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7408         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7409         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7410
7411 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7412
7413         inttypes: Move some configure check to module 'imaxabs'.
7414         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7415         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7416         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7417
7418 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7419
7420         inttypes: Remove configure tests that are not needed since 2009-12-31.
7421         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7422         gl_cv_header_working_inttypes_h.
7423
7424 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7425
7426         * modules/strnlen (Depends-on): Remove memchr.
7427         The strnlen implementation doesn't need the memchr module's fixes; see
7428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7429
7430         strtol: remove dependency on wchar
7431         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7432         * modules/strtol (Depends-on): Remove wchar.
7433
7434 2011-04-21  Eric Blake  <eblake@redhat.com>
7435
7436         passfd: fix test regression on Linux
7437         * modules/passfd-tests (configure.ac): Correct socketpair check.
7438
7439         passfd: speed up configure and drop unused code
7440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7441         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7442         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7443         Instead of probing at configure for unix_scm_rights_bsd44_way,
7444         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7445         check to a struct member probe.
7446         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7447         (sendfd, recvfd): Update preprocessor checks.
7448         * modules/passfd (Files): Reflect rename, and drop unused file.
7449         (Depends-on): Drop unused dependency.
7450
7451         passfd: allow compilation on mingw
7452         * modules/sys_socket (Depends-on): Add sys_uio.
7453         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7454         iovec and a minimal struct msghdr.
7455         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7456         * tests/test-sys_socket.c (main): Enhance test.
7457         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7458         guaranteed to provide what we need.
7459         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7460         * modules/passfd-tests (Depends-on): Add sys_wait.
7461         * tests/test-passfd.c (main): Skip test on mingw, for now.
7462         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7463         partial 'struct msghdr' implementation.
7464
7465         sys_uio: new module
7466         * modules/sys_uio: New module.
7467         * modules/sys_uio-tests: Likewise.
7468         * lib/sys_uio.in.h: New file.
7469         * m4/sys_uio_h.m4: Likewise.
7470         * tests/test-sys_uio.c: Likewise.
7471         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7472         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7473
7474 2011-04-20  Jim Meyering  <meyering@redhat.com>
7475
7476         useless-if-before-free: avoid false-positive
7477         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7478         disjunct so that it too requires a terminating ";".  Without that,
7479         this script would identify as useless one statement from gcc that
7480         was not:
7481           if (aligned_ptr)
7482             free (((void **) aligned_ptr) [-1]);
7483
7484 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7485
7486         doc: update users.txt.
7487         * users.txt: Add barcode.
7488
7489 2011-04-19  Bruno Haible  <bruno@clisp.org>
7490
7491         ioctl: Remove link dependency on native Windows.
7492         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7493         (gl_close_fn, gl_ioctl_fn): New types.
7494         (struct fd_hook): Renamed from struct close_hook. Change type of
7495         private_close_fn field. Add private_ioctl_fn field.
7496         (close_hook_fn): Add parameter for primary close method.
7497         (execute_close_hooks, execute_all_close_hooks): Likewise.
7498         (ioctl_hook_fn): New type.
7499         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7500         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7501         argument.
7502         (unregister_fd_hook): Renamed from unregister_close_hook.
7503         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7504         Don't include <unistd.h>.
7505         (close): Remove undef.
7506         (anchor): Update.
7507         (execute_close_hooks): Add argument for primary close method.
7508         (execute_all_close_hooks): Likewise.
7509         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7510         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7511         argument. Allow each argument to be NULL.
7512         (unregister_fd_hook): Renamed from unregister_close_hook.
7513         * lib/close.c (rpl_close): Pass 'close' function pointer to
7514         execute_all_close_hooks.
7515         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7516         (primary_ioctl): New function.
7517         (ioctl): Don't call ioctlsocket here. Instead, call
7518         execute_all_ioctl_hooks.
7519         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7520         close method.
7521         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7522         (fd_sockets_hook): Renamed from close_sockets_hook.
7523         (gl_sockets_startup, gl_sockets_cleanup): Update.
7524         * modules/fd-hook: Renamed from modules/close-hook. Update.
7525         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7526         * modules/sockets (Depends-on): Likewise.
7527         * modules/ioctl (Depends-on): Add fd-hook.
7528         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7529         GNULIB_SOCKET.
7530
7531 2011-04-19  Bruno Haible  <bruno@clisp.org>
7532
7533         Move the support of O_NONBLOCK in open() to the 'open' module.
7534         * modules/nonblocking (Depends-on): Remove 'open'.
7535         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7536         gl_cv_have_open_O_NONBLOCK.
7537         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7538         O_NONBLOCK support.
7539         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7540
7541 2011-04-17  Bruno Haible  <bruno@clisp.org>
7542
7543         pipe2: Simplify code.
7544         * lib/pipe2.c (pipe2): Reduce code duplication.
7545
7546 2011-04-17  Bruno Haible  <bruno@clisp.org>
7547
7548         nonblocking: Add comment.
7549         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7550
7551 2011-04-17  Bruno Haible  <bruno@clisp.org>
7552
7553         nonblocking: Add tests for sockets.
7554         * tests/test-nonblocking-socket.sh: New file.
7555         * tests/test-nonblocking-socket-main.c: New file.
7556         * tests/test-nonblocking-socket-child.c: New file.
7557         * tests/test-nonblocking-socket.h: New file.
7558         * tests/socket-server.h: New file.
7559         * tests/socket-client.h: New file.
7560         * modules/nonblocking-socket-tests: New file.
7561         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7562
7563 2011-04-17  Bruno Haible  <bruno@clisp.org>
7564
7565         nonblocking: Add tests for pipes.
7566         * tests/test-nonblocking-pipe.sh: New file.
7567         * tests/test-nonblocking-pipe-main.c: New file.
7568         * tests/test-nonblocking-pipe-child.c: New file.
7569         * tests/test-nonblocking-pipe.h: New file.
7570         * tests/test-nonblocking-writer.h: New file.
7571         * tests/test-nonblocking-reader.h: New file.
7572         * tests/test-nonblocking-misc.h: New file.
7573         * modules/nonblocking-pipe-tests: New file.
7574         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7575
7576 2011-04-16  Bruno Haible  <bruno@clisp.org>
7577
7578         gettext: Clarify the needed programmer actions.
7579         * modules/gettext (Notice): New field.
7580         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7581
7582 2011-04-16  Bruno Haible  <bruno@clisp.org>
7583
7584         strchrnul: Tweak last commit.
7585         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7586         bug.
7587         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7588         as in _GL_FUNCDECL_SYS.
7589         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7590         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7591
7592 2011-04-15  Eric Blake  <eblake@redhat.com>
7593
7594         strchrnul: work around cygwin bug
7595         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7596         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7598         * modules/string (Makefile.am): Substitute it.
7599         * lib/string.in.h (strchrnul): Use it.
7600
7601 2011-04-15  Bruno Haible  <bruno@clisp.org>
7602
7603         Don't require lib/stdio-write.c when only module 'stdio' is used.
7604         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7605         invocation.
7606         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7607
7608 2011-04-14  Bruno Haible  <bruno@clisp.org>
7609
7610         Support non-blocking pipe I/O in read() on native Windows.
7611         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7612         (read): New declaration.
7613         * lib/read.c: New file.
7614         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7615         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7616         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7617         vscanf): New declarations.
7618         * lib/stdio-read.c: New file.
7619         * m4/read.m4: New file.
7620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7621         REPLACE_READ.
7622         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7623         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7624         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7625         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7626         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7627         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7628         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7629         * modules/read: New file.
7630         * modules/nonblocking (Files): Add lib/stdio-read.c.
7631         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7632         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7633         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7634         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7635         * modules/pread (Depends-on): Add read.
7636         * modules/safe-read (Depends-on): Likewise.
7637         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7638         gets, scanf, vfscanf, vscanf): Verify signatures.
7639         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7640         problem with non-blocking pipes.
7641         * doc/posix-functions/fgetc.texi: Likewise.
7642         * doc/posix-functions/fgets.texi: Likewise.
7643         * doc/posix-functions/fread.texi: Likewise.
7644         * doc/posix-functions/fscanf.texi: Likewise.
7645         * doc/posix-functions/getc.texi: Likewise.
7646         * doc/posix-functions/getchar.texi: Likewise.
7647         * doc/posix-functions/gets.texi: Likewise.
7648         * doc/posix-functions/scanf.texi: Likewise.
7649         * doc/posix-functions/vfscanf.texi: Likewise.
7650         * doc/posix-functions/vscanf.texi: Likewise.
7651
7652 2011-04-14  Bruno Haible  <bruno@clisp.org>
7653
7654         Support non-blocking pipe I/O in write() on native Windows.
7655         * lib/write.c (rpl_write): Split a write request that failed merely
7656         because the byte count was larger than the pipe buffer's size.
7657         * doc/posix-functions/write.texi: Mention the problem with large byte
7658         counts.
7659
7660 2011-04-14  Bruno Haible  <bruno@clisp.org>
7661
7662         wchar: Ensure that wchar_t gets defined on uClibc.
7663         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7664         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7665
7666 2011-04-13  Bruno Haible  <bruno@clisp.org>
7667
7668         safe-write, full-read: Avoid unnecessary compilation units.
7669         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7670         (Depends-on): Remove safe-read. Add ssize_t.
7671         * modules/full-read (Files): Add lib/full-write.c.
7672         (Depends-on): Add full-write.
7673
7674 2011-04-13  Bruno Haible  <bruno@clisp.org>
7675
7676         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7677         * modules/pwrite (Depends-on): Add 'write'.
7678
7679 2011-04-13  Bruno Haible  <bruno@clisp.org>
7680
7681         Support non-blocking pipe I/O in write() on native Windows.
7682         * lib/unistd.in.h (write): Enable replacement also if
7683         GNULIB_UNISTD_H_NONBLOCKING is 1.
7684         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7685         (rpl_write): When failing to write on a non-blocking pipe, change
7686         errno from ENOSPC to EAGAIN.
7687         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7688         putchar, puts, vfprintf, vprintf): Enable replacement also if
7689         GNULIB_STDIO_H_NONBLOCKING is 1.
7690         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7691         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7692         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7693         CALL_WITH_SIGPIPE_EMULATION.
7694         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7695         * m4/nonblocking.m4: New file.
7696         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7697         for non-blocking I/O support.
7698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7699         GNULIB_UNISTD_H_NONBLOCKING.
7700         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7701         required for non-blocking I/O support.
7702         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7703         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7704         lib/stdio-write.c, m4/asm-underscore.m4.
7705         (Depends-on): Add stdio, unistd.
7706         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7707         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7708         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7709         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7710         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7711         problem with non-blocking pipes.
7712         * doc/posix-functions/fputc.texi: Likewise.
7713         * doc/posix-functions/fputs.texi: Likewise.
7714         * doc/posix-functions/fwrite.texi: Likewise.
7715         * doc/posix-functions/printf.texi: Likewise.
7716         * doc/posix-functions/putc.texi: Likewise.
7717         * doc/posix-functions/putchar.texi: Likewise.
7718         * doc/posix-functions/puts.texi: Likewise.
7719         * doc/posix-functions/vfprintf.texi: Likewise.
7720         * doc/posix-functions/vprintf.texi: Likewise.
7721         * doc/posix-functions/write.texi: Likewise.
7722
7723 2011-04-10  Jim Meyering  <meyering@redhat.com>
7724
7725         maint.mk: prohibit doubled words
7726         Detect them also when they're separated by a newline.
7727         There are 3 ways to customize it:
7728           - disable the test on a per file basis, as usual with rules using
7729             $(VC_LIST_EXCEPT)
7730           - replace the default doubled-word-selecting regexp (affects all files)
7731           - ignore a particular file-vs-doubled-word match
7732         I nearly used that last one to ignore the "is is" match in
7733         coreutils' NEWS file, since the text was "ls -is is ..."
7734         To do that, I would have added this line to cfg.mk:
7735           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7736         but it would have ignored any "is is" match in NEWS.
7737         Low probability, but still...
7738         Instead, I changed the text, slightly:
7739           -  ls -is is now consistent with ls -lis in ignoring values returned
7740           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7741         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7742         (prohibit_doubled_word_): Define.
7743         (sc_prohibit_doubled_word): New rule.
7744         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7745
7746 2011-04-10  Jim Meyering  <meyering@redhat.com>
7747
7748         maint: fix doubled-word typo in comment
7749         * m4/gethostname.m4: s/is is/it is/
7750         * m4/getdomainname.m4: Likewise.
7751
7752 2011-04-10  Jim Meyering  <meyering@redhat.com>
7753
7754         maint: remove doubled word: s/it it/it/
7755         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7756
7757 2011-04-10  Jim Meyering  <meyering@redhat.com>
7758
7759         maint.mk: remove useless semicolon and backslash
7760         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7761         semicolon and backslash.
7762
7763 2011-04-10  Bruno Haible  <bruno@clisp.org>
7764
7765         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7766         * modules/stdint-tests (Depends-on): Add wchar.
7767
7768 2011-04-10  Jim Meyering  <meyering@redhat.com>
7769
7770         maint: remove doubled words in comments, e.g., s/a a/a/
7771         * lib/strptime.c (day_of_the_week): s/the the/the/
7772         * tests/test-chown.h (test_chown): s/a a/a/
7773
7774         test-chown.h: correct a cast
7775         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7776         when the destination is a stat.st_gid.
7777
7778 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7779
7780         getaddrinfo: Fix test for sa_len member.
7781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7782         include <sys/types.h> before <sys/socket.h>.
7783
7784 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7785
7786         maint: change "can not" to "cannot"
7787         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7788         boundaries.
7789
7790 2011-04-09  Jim Meyering  <meyering@redhat.com>
7791
7792         maint: change "a a" to "a"
7793         * tests/test-lchown.h (test_lchown): s/a a/a/
7794
7795         maint.mk: prohibit \<the the\>
7796         * top/maint.mk (sc_prohibit_the_the): New rule.
7797
7798         maint: fix "the the" in comment
7799         * lib/count-one-bits.h: s/the the/the/
7800
7801         maint: change "can not" to "cannot"
7802         But do not change the occurrences in maintain.texi or in
7803         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7804         * doc/gnulib-tool.texi: s/can not/cannot/
7805         * doc/posix-functions/accept.texi (accept): Likewise.
7806         * doc/posix-functions/socket.texi (socket): Likewise.
7807         * lib/mbrtowc.c: Likewise.
7808
7809         maint.mk: prohibit use of "can not"
7810         * top/maint.mk (sc_prohibit_can_not): New rule.
7811         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7812
7813 2011-04-09  Bruno Haible  <bruno@clisp.org>
7814
7815         careadlinkat: Guard against misuse of careadlinkatcwd.
7816         * lib/careadlinkat.c: Include <stdlib.h>.
7817         (careadlinkatcwd): Check that the fd argument is as expected.
7818
7819 2011-04-09  Bruno Haible  <bruno@clisp.org>
7820
7821         careadlinkat: Use common coding style.
7822         * lib/careadlinkat.c: Move gnulib includes after system includes.
7823
7824 2011-04-09  Bruno Haible  <bruno@clisp.org>
7825
7826         careadlinkat: Clarify specification.
7827         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7828         (careadlinkatcwd): Add comment.
7829         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7830
7831 2011-04-09  Bruno Haible  <bruno@clisp.org>
7832
7833         areadlinkat: Avoid link error on many platforms.
7834         * modules/areadlinkat (Depends-on): Add areadlink.
7835
7836 2011-04-09  Bruno Haible  <bruno@clisp.org>
7837
7838         allocator, careadlinkat: Fix double-inclusion guard.
7839         * lib/allocator.h: Fix double-inclusion guard.
7840         * lib/careadlinkat.h: Likewise.
7841
7842 2011-04-09  Bruno Haible  <bruno@clisp.org>
7843
7844         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7845         * lib/relocwrapper.c: Update dependencies hierarchy.
7846         * build-aux/install-reloc: Update list of files to be compiled.
7847         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7848         lib/allocator.[hc].
7849
7850 2011-04-08  Eric Blake  <eblake@redhat.com>
7851
7852         strftime: silence gnulib-tool warning
7853         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7854
7855 2011-04-08  Bruno Haible  <bruno@clisp.org>
7856
7857         verify: Fix syntax error with GCC 4.6 in C++ mode.
7858         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7859         (HAVE_STATIC_ASSERT): New macro.
7860         (verify_true, verify): Use 'static_assert' if it is supported and
7861         '_Static_assert' is not supported.
7862
7863 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7864
7865         allocator: New module.
7866         * modules/allocator, lib/allocator.c: New files.
7867         * lib/allocator.h (stdlib_allocator): New decl.
7868         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7869         Remove.  Do not include <stdlib.h>.
7870         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7871         * modules/careadlinkat (Files): Remove lib/allocator.h.
7872         (Depends-on): Add allocator.
7873
7874         stdlib: let modules use system malloc, realloc
7875         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7876         if !_GL_USE_STDLIB_ALLOC.
7877         (malloc, realloc): Limit this change to a smaller scope.
7878
7879         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7880         (malloc, realloc): Don't #undef; no longer needed.
7881         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7882         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7883         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7884         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7885         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7886         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7887         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7888         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7889
7890         careadlinkat: rename members to avoid problem
7891         * lib/allocator.h (struct allocator): Rename members from
7892         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7893         and realloc are #define'd.  Reported by Eric Blake in
7894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7895         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7896
7897 2011-04-08  Eric Blake  <eblake@redhat.com>
7898
7899         nonblocking: reduce dependency
7900         * tests/test-nonblocking.c: Only test sockets when in use.
7901         * modules/nonblocking-tests (Depends-on): Drop socket.
7902         (Makefile.am): Link even if sockets are not present.
7903         * modules/pipe2-tests (Makefile.am): Likewise.
7904         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7905
7906         pipe2: fix O_NONBLOCK support on mingw
7907         * modules/pipe2 (Depends-on): Add nonblocking.
7908         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7909         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7910         * tests/test-nonblocking.c (main): Likewise.
7911         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7912
7913         fcntl-h: fix O_ACCMODE on cygwin
7914         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7915         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7916
7917         pipe-filter: drop O_NONBLOCK workarounds
7918         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7919         * modules/pipe-filter-ii (Depends-on): Likewise.
7920         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7921
7922         nonblocking: provide O_NONBLOCK for mingw
7923         * modules/nonblocking (Depends-on): Add open.
7924         (configure.ac): Set new witness macro.
7925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7926         * modules/fcntl-h (Makefile.am): Substitute it.
7927         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7928         nonblocking module is in use.
7929         * lib/nonblocking.c: Adjust portability test.
7930         * lib/open.c (open): Don't let native open see gnulib flag.
7931         * tests/test-fcntl-h.c (main): Enhance test.
7932         * tests/test-open.h (test_open): Likewise.
7933         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7934
7935         careadlinkat: fix compilation error on mingw
7936         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7937         within struct allocator.
7938
7939 2011-04-06  Eric Blake  <eblake@redhat.com>
7940
7941         binary-io: relicense under LGPLv2+
7942         * modules/binary-io (License): Relax to LGPLv2+.
7943         Requested for libvirt, and required by pipe2.
7944
7945 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7946
7947         verify: use _Static_assert if available
7948         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7949         (verify_true, verify): Use it if available.  This generates better
7950         diagnostics with GCC 4.6.0 and later.
7951
7952 2011-04-05  Bruno Haible  <bruno@clisp.org>
7953
7954         Remove leftover generated .h files after config.status changed.
7955
7956         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7957         GL_GENERATE_ALLOCA_H.
7958         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7959         GL_GENERATE_ALLOCA_H evaluates to false.
7960
7961         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7962         GL_GENERATE_ARGZ_H.
7963         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7964         evaluates to false.
7965
7966         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7967         GL_GENERATE_BYTESWAP_H.
7968         * modules/byteswap (Makefile.am): Remove byteswap.h if
7969         GL_GENERATE_BYTESWAP_H evaluates to false.
7970
7971         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7972         GL_GENERATE_ERRNO_H.
7973         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7974         evaluates to false.
7975
7976         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7977         GL_GENERATE_FLOAT_H.
7978         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7979         evaluates to false.
7980
7981         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7982         GL_GENERATE_FNMATCH_H.
7983         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7984         GL_GENERATE_FNMATCH_H evaluates to false.
7985
7986         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7987         GL_GENERATE_GLOB_H.
7988         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7989         evaluates to false.
7990
7991         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7992         automake conditional GL_GENERATE_ICONV_H.
7993         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7994         evaluates to false.
7995
7996         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7997         GL_GENERATE_NETINET_IN_H.
7998         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7999         GL_GENERATE_NETINET_IN_H evaluates to false.
8000
8001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8002         conditional GL_GENERATE_PTHREAD_H.
8003         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8004         * modules/pthread (Makefile.am): Remove pthread.h if
8005         GL_GENERATE_PTHREAD_H evaluates to false.
8006
8007         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8008         GL_GENERATE_SCHED_H.
8009         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8010         evaluates to false.
8011
8012         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8013         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8014         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8015         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8016
8017         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8018         GL_GENERATE_STDARG_H.
8019         * modules/stdarg (Makefile.am): Remove stdarg.h if
8020         GL_GENERATE_STDARG_H evaluates to false.
8021
8022         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8023         GL_GENERATE_STDBOOL_H.
8024         * modules/stdbool (Makefile.am): Remove stdbool.h if
8025         GL_GENERATE_STDBOOL_H evaluates to false.
8026
8027         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8028         conditional GL_GENERATE_STDDEF_H.
8029         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8030         * modules/stddef (Makefile.am): Remove stddef.h if
8031         GL_GENERATE_STDDEF_H evaluates to false.
8032
8033         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8034         GL_GENERATE_STDINT_H.
8035         * modules/stdint (Makefile.am): Remove stdint.h if
8036         GL_GENERATE_STDINT_H evaluates to false.
8037
8038         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8039         GL_GENERATE_SYSEXITS_H.
8040         * modules/sysexits (Makefile.am): Remove sysexits.h if
8041         GL_GENERATE_SYSEXITS_H evaluates to false.
8042
8043         Reported by Karl Berry and Ralf Wildenhues.
8044
8045 2011-04-05  Bruno Haible  <bruno@clisp.org>
8046
8047         Ensure to rebuild generated .h files when config.status has changed.
8048         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8049         config.status.
8050         * modules/ctype (Makefile.am): Likewise.
8051         * modules/dirent (Makefile.am): Likewise.
8052         * modules/errno (Makefile.am): Likewise.
8053         * modules/fcntl-h (Makefile.am): Likewise.
8054         * modules/float (Makefile.am): Likewise.
8055         * modules/getopt-posix (Makefile.am): Likewise.
8056         * modules/glob (Makefile.am): Likewise.
8057         * modules/iconv-h (Makefile.am): Likewise.
8058         * modules/inttypes (Makefile.am): Likewise.
8059         * modules/langinfo (Makefile.am): Likewise.
8060         * modules/locale (Makefile.am): Likewise.
8061         * modules/math (Makefile.am): Likewise.
8062         * modules/netdb (Makefile.am): Likewise.
8063         * modules/netinet_in (Makefile.am): Likewise.
8064         * modules/poll-h (Makefile.am): Likewise.
8065         * modules/pthread (Makefile.am): Likewise.
8066         * modules/pty (Makefile.am): Likewise.
8067         * modules/sched (Makefile.am): Likewise.
8068         * modules/search (Makefile.am): Likewise.
8069         * modules/selinux-h (Makefile.am): Likewise.
8070         * modules/signal (Makefile.am): Likewise.
8071         * modules/spawn (Makefile.am): Likewise.
8072         * modules/stdarg (Makefile.am): Likewise.
8073         * modules/stdbool (Makefile.am): Likewise.
8074         * modules/stddef (Makefile.am): Likewise.
8075         * modules/stdint (Makefile.am): Likewise.
8076         * modules/stdio (Makefile.am): Likewise.
8077         * modules/stdlib (Makefile.am): Likewise.
8078         * modules/string (Makefile.am): Likewise.
8079         * modules/strings (Makefile.am): Likewise.
8080         * modules/sys_file (Makefile.am): Likewise.
8081         * modules/sys_ioctl (Makefile.am): Likewise.
8082         * modules/sys_select (Makefile.am): Likewise.
8083         * modules/sys_socket (Makefile.am): Likewise.
8084         * modules/sys_stat (Makefile.am): Likewise.
8085         * modules/sys_time (Makefile.am): Likewise.
8086         * modules/sys_times (Makefile.am): Likewise.
8087         * modules/sys_utsname (Makefile.am): Likewise.
8088         * modules/sys_wait (Makefile.am): Likewise.
8089         * modules/sysexits (Makefile.am): Likewise.
8090         * modules/termios (Makefile.am): Likewise.
8091         * modules/time (Makefile.am): Likewise.
8092         * modules/unistd (Makefile.am): Likewise.
8093         * modules/wchar (Makefile.am): Likewise.
8094         * modules/wctype-h (Makefile.am): Likewise.
8095         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8096
8097 2011-04-05  Bruno Haible  <bruno@clisp.org>
8098
8099         pipe2: Relicense under LGPLv2+.
8100         * modules/pipe2 (License): Change to LGPLv2+.
8101         Requested by Eric Blake, for libvirt.
8102
8103 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8104
8105         bootstrap: compute gnulib_extra_files after updating build_aux
8106         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8107         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8108
8109 2011-04-05  Eric Blake  <eblake@redhat.com>
8110
8111         bootstrap: preserve git whitelist item sorting
8112         * build-aux/bootstrap (sort_patterns): New function.
8113         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8114
8115 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8116
8117         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8118         sc_space_tab check.
8119
8120 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8121
8122         areadlink, areadlinkat: rewrite in terms of careadlinkat
8123         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8124         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8125         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8126         (malloc, realloc): Remove #undefs.
8127         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8128         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8129         readlink, ssize_t, stdint, unistd.
8130         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8131         areadlink, stdint.
8132
8133         careadlinkat: new module
8134         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8135         * modules/careadlinkat: New files, written by me with
8136         a review and feedback from Ben Pfaff in
8137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8138
8139 2011-04-01  Bruno Haible  <bruno@clisp.org>
8140
8141         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8142         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8143         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8144         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8145         Reported by Bruce Korb <bruce.korb@gmail.com>.
8146
8147 2011-04-01  Bruno Haible  <bruno@clisp.org>
8148
8149         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8150         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8151         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8152         * modules/wcpcpy (Depends-on): Add extensions.
8153         * modules/wcpncpy (Depends-on): Likewise.
8154         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8155         systems.
8156         * doc/posix-functions/wcpncpy.texi: Likewise.
8157         * doc/posix-functions/wcwidth.texi: Likewise.
8158
8159 2011-03-31  Eric Blake  <eblake@redhat.com>
8160
8161         nonblocking: fix mingw test failures
8162         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8163         non-blocking flag on regular file.
8164         (get_nonblocking_flag): Set errno on invalid fd.
8165         * tests/test-nonblocking.c (main): Avoid test failure on
8166         directories if fchdir is not active.
8167         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8168
8169 2011-03-31  Bruno Haible  <bruno@clisp.org>
8170
8171         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8172         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8173         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8174         Reported by Simon Josefsson <simon@josefsson.org>.
8175
8176 2011-03-31  Bruno Haible  <bruno@clisp.org>
8177         and Eric Blake  <eblake@redhat.com>
8178
8179         nonblocking: new module
8180         * modules/nonblocking: New module.
8181         * modules/nonblocking-tests: Likewise.
8182         * lib/nonblocking.h: New file.
8183         * lib/nonblocking.c: Likewise.
8184         * tests/test-nonblocking.c: New test.
8185         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8186
8187 2011-03-30  Bruno Haible  <bruno@clisp.org>
8188
8189         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8190         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8191         instead of 'printf' format for GCC >= 4.4.
8192         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8193         (fprintf, printf, vfprintf, vprintf): Declare with
8194         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8195         the system's vfprintf() function.
8196         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8197
8198 2011-03-30  Eric Blake  <eblake@redhat.com>
8199
8200         passfd: fix scoping bug
8201         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8202         before sendmsg/recvmsg.
8203
8204         passfd: standardize coding conventions
8205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8206         can be learned at compile time.
8207         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8208         ifdefs.
8209         (sendfd, recvfd): Follow gnulib code conventions.
8210
8211         passfd: fix incorrect sendmsg arguments
8212         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8213         incorrect msg_controllen value.
8214         * modules/passfd-tests (Depends-on): Check for alarm.
8215         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8216         Reported by Bastien ROUCARIES.
8217
8218 2011-03-30  Bruno Haible  <bruno@clisp.org>
8219
8220         c-strcasestr: Relicense under LGPLv2+.
8221         * modules/c-strcasestr (License): Change to LGPLv2+.
8222         Requested by Eric Blake, for libvirt.
8223
8224 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8225
8226         * users.txt: Add libidn2.  Fix libtasn1 link.
8227
8228 2011-03-30  Jim Meyering  <meyering@redhat.com>
8229
8230         tests: readlink* ("",... fails with EINVAL on newer kernels
8231         readlink and readlinkat have typically failed with ENOENT for
8232         the invalid, empty file name,  "".  However, with the advent
8233         of linux-2.6.39, they fail with EINVAL.
8234         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8235         when operating on the empty file name.
8236         * tests/test-readlink.h (test_readlink): Likewise.
8237
8238 2011-03-29  Bruno Haible  <bruno@clisp.org>
8239
8240         Relicense some modules under LGPLv2+, for libidn2.
8241         * modules/array-mergesort (License): Change to LGPLv2+.
8242         * modules/c-strcaseeq (License): Likewise.
8243         * modules/striconveh (License): Likewise.
8244         * modules/striconveha (License): Likewise.
8245         * modules/uniconv/base (License): Likewise.
8246         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8247         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8248         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8249         * modules/unictype/base (License): Likewise.
8250         * modules/unictype/bidiclass-of (License): Likewise.
8251         * modules/unictype/category-M (License): Likewise.
8252         * modules/unictype/category-none (License): Likewise.
8253         * modules/unictype/category-of (License): Likewise.
8254         * modules/unictype/category-test (License): Likewise.
8255         * modules/unictype/category-test-withtable (License): Likewise.
8256         * modules/unictype/combining-class (License): Likewise.
8257         * modules/unictype/joiningtype-of (License): Likewise.
8258         * modules/unictype/scripts (License): Likewise.
8259         * modules/uninorm/base (License): Likewise.
8260         * modules/uninorm/canonical-decomposition (License): Likewise.
8261         * modules/uninorm/composition (License): Likewise.
8262         * modules/uninorm/decompose-internal (License): Likewise.
8263         * modules/uninorm/decomposition-table (License): Likewise.
8264         * modules/uninorm/nfc (License): Likewise.
8265         * modules/uninorm/nfd (License): Likewise.
8266         * modules/uninorm/u32-normalize (License): Likewise.
8267         * modules/unistr/base (License): Likewise.
8268         * modules/unistr/u32-cpy (License): Likewise.
8269         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8270         * modules/unistr/u32-to-u8 (License): Likewise.
8271         * modules/unistr/u32-uctomb (License): Likewise.
8272         * modules/unistr/u8-check (License): Likewise.
8273         * modules/unistr/u8-mblen (License): Likewise.
8274         * modules/unistr/u8-mbtouc (License): Likewise.
8275         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8276         * modules/unistr/u8-mbtoucr (License): Likewise.
8277         * modules/unistr/u8-prev (License): Likewise.
8278         * modules/unistr/u8-strlen (License): Likewise.
8279         * modules/unistr/u8-to-u32 (License): Likewise.
8280         * modules/unistr/u8-uctomb (License): Likewise.
8281         * modules/unitypes (License): Likewise.
8282         Requested by Simon Josefsson.
8283
8284 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8285
8286         lib-symbol-visibility: Add a notice.
8287         * modules/lib-symbol-visibility (Notice): New field.
8288
8289 2011-03-29  Bruno Haible  <bruno@clisp.org>
8290
8291         getaddrinfo: Doc fix.
8292         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8293         section "fixed in Gnulib".
8294
8295 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8296
8297         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8298         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8299
8300 2011-03-26  Bruno Haible  <bruno@clisp.org>
8301
8302         unictype/property-byname: Reduce the number of load-time relocations.
8303         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8304         (UC_PROPERTY_INDEX_*): New enumeration values.
8305         (uc_property_byname): Convert an index from the lookup table to an
8306         uc_property_t.
8307         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8308         values.
8309
8310 2011-03-26  Bruno Haible  <bruno@clisp.org>
8311
8312         unictype/property-byname: Allow omitted word separators and aliases.
8313         * lib/unictype/pr_byname.gperf: Add property names without word
8314         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8315         for 'space'.
8316
8317 2011-03-26  Bruno Haible  <bruno@clisp.org>
8318
8319         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8320         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8321         also hyphens to space.
8322         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8323         without spaces.
8324         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8325
8326 2011-03-26  Bruno Haible  <bruno@clisp.org>
8327
8328         unictype/joiningtype-byname: Recognize long names as well.
8329         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8330         a long name.
8331         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8332         unictype/joiningtype_byname.h.
8333         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8334         * lib/unictype/joiningtype_byname.gperf: New file.
8335         * modules/unictype/joiningtype-byname (Files): Add
8336         lib/unictype/joiningtype_byname.gperf.
8337         (Depends-on): Add gperf.
8338         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8339         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8340         long names.
8341
8342         Tests for module 'unictype/joiningtype-longname'.
8343         * modules/unictype/joiningtype-longname-tests: New file.
8344         * tests/unictype/test-joiningtype_longname.c: New file.
8345
8346         New module 'unictype/joiningtype-longname'.
8347         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8348         * lib/unictype/joiningtype_longname.c: New file.
8349         * modules/unictype/joiningtype-longname: New file.
8350         * modules/unictype/joiningtype-all (Depends-on): Add
8351         unictype/joiningtype-longname.
8352
8353 2011-03-26  Bruno Haible  <bruno@clisp.org>
8354
8355         unictype/bidiclass-byname: Recognize long names as well.
8356         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8357         name.
8358         * lib/unictype/bidi_byname.c: Include <string.h>,
8359         unictype/bidi_byname.h.
8360         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8361         * lib/unictype/bidi_byname.gperf: New file.
8362         * modules/unictype/bidiclass-byname (Files): Add
8363         lib/unictype/bidi_byname.gperf.
8364         (Depends-on): Add gperf.
8365         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8366         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8367         long names.
8368
8369         Tests for module 'unictype/bidiclass-longname'.
8370         * modules/unictype/bidiclass-longname-tests: New file.
8371         * tests/unictype/test-bidi_longname.c: New file.
8372
8373         New module 'unictype/bidiclass-longname'.
8374         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8375         * lib/unictype/bidi_longname.c: New file.
8376         * modules/unictype/bidiclass-longname: New file.
8377         * modules/unictype/bidiclass-all (Depends-on): Add
8378         unictype/bidiclass-longname.
8379
8380 2011-03-26  Bruno Haible  <bruno@clisp.org>
8381
8382         unictype/bidi*: Rename modules.
8383         * modules/unictype/bidiclass-all: Renamed from
8384         modules/unictype/bidicategory-all.
8385         * modules/unictype/bidiclass-name: Renamed from
8386         modules/unictype/bidiclass-name.
8387         (Description): Update.
8388         * modules/unictype/bidiclass-name-tests: Renamed from
8389         modules/unictype/bidicategory-name-tests.
8390         * modules/unictype/bidiclass-byname: Renamed from
8391         modules/unictype/bidicategory-byname.
8392         (Description): Update.
8393         * modules/unictype/bidiclass-byname-tests: Renamed from
8394         modules/unictype/bidicategory-byname-tests.
8395         * modules/unictype/bidiclass-of: Renamed from
8396         modules/unictype/bidicategory-of.
8397         (Description): Update.
8398         * modules/unictype/bidiclass-of-tests: Renamed from
8399         modules/unictype/bidicategory-of-tests.
8400         * modules/unictype/bidiclass-test: Renamed from
8401         modules/unictype/bidicategory-test.
8402         (Description): Update.
8403         * modules/unictype/bidiclass-test-tests: Renamed from
8404         modules/unictype/bidicategory-test-tests.
8405         * modules/unictype/bidicategory-all: New file, a simple redirection.
8406         * modules/unictype/bidicategory-name: Likewise.
8407         * modules/unictype/bidicategory-byname: Likewise.
8408         * modules/unictype/bidicategory-of: Likewise.
8409         * modules/unictype/bidicategory-test: Likewise.
8410         * modules/unictype/property-bidi-* (Dependencies): Update.
8411         * lib/unictype/bidi_*.c: Update comment.
8412
8413 2011-03-26  Bruno Haible  <bruno@clisp.org>
8414
8415         unictype/bidi*: Rename functions, part 2.
8416         * modules/unictype/bidicategory-name (configure.ac): Update required
8417         libunistring version.
8418         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8419
8420 2011-03-25  Bruno Haible  <bruno@clisp.org>
8421
8422         New module 'unictype/combining-class-all'.
8423         * modules/unictype/combining-class-all: New file.
8424
8425         Tests for module 'unictype/combining-class-byname'.
8426         * modules/unictype/combining-class-byname-tests: New file.
8427         * tests/unictype/test-combiningclass_byname.c: New file.
8428
8429         New module 'unictype/combining-class-byname'.
8430         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8431         * lib/unictype/combiningclass_byname.c: New file.
8432         * lib/unictype/combiningclass_byname.gperf: New file.
8433         * modules/unictype/combining-class-byname: New file.
8434
8435         Tests for module 'unictype/combining-class-longname'.
8436         * modules/unictype/combining-class-longname-tests: New file.
8437         * tests/unictype/test-combiningclass_longname.c: New file.
8438
8439         New module 'unictype/combining-class-longname'.
8440         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8441         * lib/unictype/combiningclass_longname.c: New file.
8442         * modules/unictype/combining-class-longname: New file.
8443
8444         Tests for module 'unictype/combining-class-name'.
8445         * modules/unictype/combining-class-name-tests: New file.
8446         * tests/unictype/test-combiningclass_name.c: New file.
8447
8448         New module 'unictype/combining-class-name'.
8449         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8450         * lib/unictype/combiningclass_name.c: New file.
8451         * modules/unictype/combining-class-name: New file.
8452
8453 2011-03-25  Bruno Haible  <bruno@clisp.org>
8454
8455         unictype/combining-class: Rename source files.
8456         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8457         of unictype/combining.h.
8458         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8459         Update.
8460         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8461         * modules/unictype/combining-class (Description): Fix.
8462         (Files, Makefile.am): Update.
8463         * tests/unictype/test-combiningclass.c: Renamed from
8464         tests/unictype/test-combining.c.
8465         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8466
8467 2011-03-25  Bruno Haible  <bruno@clisp.org>
8468
8469         unictype: Update list of canonical combining classes.
8470         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8471
8472 2011-03-25  Bruno Haible  <bruno@clisp.org>
8473
8474         unictype/category-byname: Recognize long names as well.
8475         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8476         a long name.
8477         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8478         unictype/categ_byname.h.
8479         (UC_CATEGORY_INDEX_*): New enumeration values.
8480         (uc_general_category_byname): Use uc_general_category_lookup and
8481         convert from index to value.
8482         * lib/unictype/categ_byname.gperf: New file.
8483         * modules/unictype/category-byname (Files): Add
8484         lib/unictype/categ_byname.gperf.
8485         (Depends-on): Add gperf.
8486         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8487         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8488         long names.
8489
8490         Tests for module 'unictype/category-longname'.
8491         * modules/unictype/category-longname-tests: New file.
8492         * tests/unictype/test-categ_longname.c: New file.
8493
8494         New module 'unictype/category-longname'.
8495         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8496         * lib/unictype/categ_longname.c: New file.
8497         * modules/unictype/category-longname: New file.
8498         * modules/unictype/category-all (Depends-on): Add it.
8499
8500 2011-03-25  Bruno Haible  <bruno@clisp.org>
8501
8502         Tests for module 'unictype/category-LC'.
8503         * modules/unictype/category-LC-tests: New file.
8504         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8505
8506         New module 'unictype/category-LC'.
8507         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8508         (UC_CATEGORY_LC): New declaration.
8509         (UC_CASED_LETTER): New macro.
8510         * lib/gen-uni-tables.c (is_category_LC): New function.
8511         (output_categories): Also handle category LC.
8512         (UC_CATEGORY_MASK_LC): New enumeration value.
8513         (general_category_byname): Also handle category LC.
8514         * lib/unictype/categ_LC.c: New file.
8515         * lib/unictype/categ_LC.h: New file, automatically generated.
8516         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8517         category LC.
8518         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8519         * modules/unictype/category-LC: New file.
8520         * modules/unictype/category-byname (Depends-on): Add
8521         unictype/category-LC.
8522         * modules/unictype/category-all (Depends-on): Likewise.
8523
8524 2011-03-25  Eric Blake  <eblake@redhat.com>
8525
8526         xmalloc: revert yesterday's regression
8527         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8528         realloc's underlying behavior (allowing allocation of zero-size
8529         objects, especially if malloc-gnu is also in use).
8530
8531 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8532
8533         maint.mk: add missing version to VC-tag
8534         * top/maint.mk: git tag was missing actual tag name; add it.
8535
8536         valgrind: do leak checking, and exit with code 1 on error (not 0)
8537         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8538         to VALGRIND.
8539
8540 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8541
8542         posix-modules: say what it does.
8543         * posix-modules: Add a line to the --help output saying what it does.
8544
8545 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8546
8547         xmalloc: Do not leak if underlying realloc is C99 compatible.
8548         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8549         This avoids a leak on C99-based systems.  See
8550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8551
8552 2011-03-24  Eric Blake  <eblake@redhat.com>
8553
8554         realloc: document portability problem
8555         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8556         passing 0 size to realloc.
8557
8558 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8559
8560         doc: update users.txt
8561         * users.txt: Add cvsps, tmpwatch
8562
8563 2011-03-23  Matt Rice  <ratmice@gmail.com>
8564
8565         doc: update users.txt
8566         * users.txt: Add gdb.
8567
8568 2011-03-23  Jim Meyering  <meyering@redhat.com>
8569
8570         doc: update users.txt
8571         Looking through matches up to the following URL (there are still
8572         several more pages), I found several projects that use gnulib:
8573         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8574         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8575         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8576
8577 2011-03-22  Bruno Haible  <bruno@clisp.org>
8578
8579         unictype/bidi*: Rename functions.
8580         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8581         uc_bidi_class, uc_is_bidi_class): New declarations.
8582         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8583         uc_bidi_category_byname.
8584         (uc_bidi_category_byname): New function.
8585         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8586         u_bidi_category_name.
8587         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8588         (uc_bidi_category_name): New function.
8589         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8590         uc_bidi_category.
8591         (uc_bidi_category): New function.
8592         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8593         uc_is_bidi_category. Invoke uc_bidi_class.
8594         (uc_is_bidi_category): New function.
8595         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8596         instead of uc_bidi_category_byname.
8597         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8598         instead of uc_bidi_category_name.
8599         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8600         uc_bidi_category.
8601         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8602         instead of uc_is_bidi_category.
8603
8604 2011-03-21  Bruno Haible  <bruno@clisp.org>
8605
8606         New module 'unictype/joininggroup-all'.
8607         * modules/unictype/joininggroup-all: New file.
8608
8609         Tests for module 'unictype/joininggroup-of'.
8610         * modules/unictype/joininggroup-of-tests: New file.
8611         * tests/unictype/test-joininggroup_of.c: New file.
8612         * tests/unictype/test-joininggroup_of.h: New file, automatically
8613         generated by gen-uni-tables.
8614
8615         New module 'unictype/joininggroup-of'.
8616         * modules/unictype/joininggroup-of: New file.
8617         * lib/unictype/joininggroup_of.c: New file.
8618         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8619         gen-uni-tables.
8620
8621         Tests for module 'unictype/joininggroup-byname'.
8622         * modules/unictype/joininggroup-byname-tests: New file.
8623         * tests/unictype/test-joininggroup_byname.c: New file.
8624
8625         New module 'unictype/joininggroup-byname'.
8626         * modules/unictype/joininggroup-byname: New file.
8627         * lib/unictype/joininggroup_byname.c: New file.
8628         * lib/unictype/joininggroup_byname.gperf: New file.
8629
8630         Tests for module 'unictype/joininggroup-name'.
8631         * modules/unictype/joininggroup-name-tests: New file.
8632         * tests/unictype/test-joininggroup_name.c: New file.
8633
8634         New module 'unictype/joininggroup-name'.
8635         * modules/unictype/joininggroup-name: New file.
8636         * lib/unictype/joininggroup_name.c: New file.
8637         * lib/unictype/joininggroup_name.h: New file.
8638
8639         New module 'unictype/joiningtype-all'.
8640         * modules/unictype/joiningtype-all: New file.
8641
8642         Tests for module 'unictype/joiningtype-of'.
8643         * modules/unictype/joiningtype-of-tests: New file.
8644         * tests/unictype/test-joiningtype_of.c: New file.
8645         * tests/unictype/test-joiningtype_of.h: New file, automatically
8646         generated by gen-uni-tables.
8647
8648         New module 'unictype/joiningtype-of'.
8649         * modules/unictype/joiningtype-of: New file.
8650         * lib/unictype/joiningtype_of.c: New file.
8651         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8652         gen-uni-tables.
8653
8654         Tests for module 'unictype/joiningtype-byname'.
8655         * modules/unictype/joiningtype-byname-tests: New file.
8656         * tests/unictype/test-joiningtype_byname.c: New file.
8657
8658         New module 'unictype/joiningtype-byname'.
8659         * modules/unictype/joiningtype-byname: New file.
8660         * lib/unictype/joiningtype_byname.c: New file.
8661
8662         Tests for module 'unictype/joiningtype-name'.
8663         * modules/unictype/joiningtype-name-tests: New file.
8664         * tests/unictype/test-joiningtype_name.c: New file.
8665
8666         New module 'unictype/joiningtype-name'.
8667         * modules/unictype/joiningtype-name: New file.
8668         * lib/unictype/joiningtype_name.c: New file.
8669
8670         unictype: Add support for Arabic shaping properties.
8671         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8672         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8673         declarations.
8674         (UC_JOINING_GROUP_*): New enumeration values.
8675         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8676         declarations.
8677         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8678         (unicode_joining_type): New variable.
8679         (UC_JOINING_GROUP_*): New enumeration values.
8680         (unicode_joining_group): New variable.
8681         (fill_arabicshaping, joining_type_as_c_identifier,
8682         output_joining_type_test, output_joining_type,
8683         joining_group_as_c_identifier, output_joining_group_test,
8684         output_joining_group): New functions.
8685         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8686         fill_arabicshaping and output_joining_type_test, output_joining_type,
8687         output_joining_group_test, output_joining_group.
8688         Reported by Simon Josefsson.
8689
8690 2011-03-21  Jim Meyering  <meyering@redhat.com>
8691
8692         strftime: fix a bug in yesterday's change
8693         * lib/strftime.c (add): Accommodate width's initial value of -1.
8694         Otherwise, nstrftime would copy uninitialized data into
8695         the result buffer.
8696
8697 2011-03-21  Jim Meyering  <meyering@redhat.com>
8698
8699         tests: add strftime-tests module
8700         * tests/test-strftime.c: New file.
8701         * modules/strftime-tests: New module.
8702
8703 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8704
8705         strftime: don't assume a byte count fits in 'int'
8706         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8707         found this problem by static analysis, using gcc -Wstrict-overflow
8708         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8709         on an integer overflow having undefined behavior, but it turns out
8710         that the argument is a size, which might not fit in 'int' anyway,
8711
8712 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         stdio: don't require ignore_value around fwrite
8715
8716         This patch works around libc bug 11959
8717         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8718         Without this patch, applications must often write
8719         ignore_value (fwrite (...)) even though the ignore_value is
8720         not helpful here.  It's common to write many objects, using
8721         fwrite/printf/etc., and then use ferror to detect output error.
8722
8723         I considered making this patch optional, but decided against it,
8724         because libc is obviously being inconsistent here: there is no
8725         reason libc should insist that user code must inspect fwrite
8726         return's value without also insisting that it inspect printf's,
8727         putchar's, etc.  If user code wants to have a strict style where
8728         all these functions' values are checked (so that ferror need not
8729         be checked), we could add support for that style in a new gnulib
8730         module, but in the meantime it's better to be consistent and to
8731         support common usage.
8732
8733         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8734         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8735         that we are compiling in checking mode, and if not C++, and
8736         if not already wrapping fwrite for some other reason.
8737         (fwrite): #define to rpl_fwrite if the latter is defined.
8738
8739 2011-03-20  Bruno Haible  <bruno@clisp.org>
8740
8741         verror: Fix compilation error introduced on 2011-02-13.
8742         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8743         instead of __attribute__.
8744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8745
8746 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8747             Bruno Haible  <bruno@clisp.org>
8748
8749         socklen: do not depend on sys_socket
8750         While trying to modify Emacs to use gnulib's socklen module,
8751         I discovered a circular dependency: socklen depends on sys_socket
8752         and vice versa.  Emacs can use socklen, but it does not need
8753         sys_socket because it has its own substitute for sys/socket.h.
8754         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8755         gl_TYPE_SOCKLEN_T.
8756         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8757         gl_PREREQ_SYS_H_SOCKET.
8758         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8759         gl_PREREQ_SYS_H_SOCKET.
8760         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8761         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8762         * modules/socklen (Depends-on): Do not depend on sys_socket.
8763         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8764
8765 2011-03-20  Jim Meyering  <meyering@redhat.com>
8766
8767         maint.mk: sort file names *after* new transformation
8768         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8769         prefix would have led to an unwarranted failure in GNU parted.
8770         Sort after that transformation.
8771
8772 2011-03-19  Jim Meyering  <meyering@redhat.com>
8773
8774         maint.mk: fix po-file syntax-check rule
8775         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8776         Patch by Bruno Haible.
8777
8778 2011-03-19  Bruno Haible  <bruno@clisp.org>
8779
8780         socklen: Update comment.
8781         * m4/socklen.m4: Update comment about platforms.
8782
8783 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8784             Bruno Haible  <bruno@clisp.org>
8785
8786         inet_ntop, inet_pton: Simplify.
8787         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8788         documented to provide socklen_t and we already depend on sys_socket.
8789         * modules/inet_pton (Depends-on): Likewise.
8790         * lib/arpa_inet.in.h: Adjust comment.
8791
8792 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8793             Bruno Haible  <bruno@clisp.org>
8794
8795         netdb: Simplify.
8796         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8797         documented to provide socklen_t and we already depend on sys_socket.
8798         * lib/netdb.in.h: Adjust comment.
8799
8800 2011-03-19  Bruno Haible  <bruno@clisp.org>
8801
8802         sys_socket, netdb: Document problem with socklen_t.
8803         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8804         platforms.
8805         * doc/posix-headers/netdb.texi: Likewise.
8806
8807 2011-03-18  Eric Blake  <eblake@redhat.com>
8808
8809         maint.mk: let po check work in VPATH build
8810         * top/maint.mk (po_file): Allow cfg.mk override.
8811         (sc_po_check): Allow VPATH use.
8812         Reported by Jiri Denemark.
8813
8814 2011-03-16  Jim Meyering  <meyering@redhat.com>
8815
8816         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8817         Before, you would have had to create one .x-sc_ file per rule in order
8818         to exempt offending files.  Now, you may instead use a Make variable --
8819         usually defined in cfg.mk -- whose name identifies the affected rule.
8820         * top/maint.mk (_sc_excl): Define.
8821         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8822         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8823
8824 2011-03-13  Bruno Haible  <bruno@clisp.org>
8825
8826         ignore-value tests: Avoid warnings.
8827         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8828         empty for gcc < 3.4.
8829
8830 2011-03-13  Bruno Haible  <bruno@clisp.org>
8831
8832         passfd: Fix link error on Solaris.
8833         * modules/passfd (Description): Correct.
8834         (Depends-on): Add socketlib.
8835         (Link): New section.
8836         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8837
8838 2011-03-13  Bruno Haible  <bruno@clisp.org>
8839
8840         passfd: Fix link error on AIX 5.2.
8841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8842
8843 2011-03-13  Bruno Haible  <bruno@clisp.org>
8844
8845         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8846         * lib/sys_socket.in.h: Include <stddef.h>.
8847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8848         CMSG_FIRSTHDR. Remove unused variable.
8849
8850 2011-03-13  Bruno Haible  <bruno@clisp.org>
8851
8852         passfd: Fix compilation error on OpenBSD.
8853         * lib/passfd.c: Include <sys/uio.h>.
8854
8855 2011-03-13  Bruno Haible  <bruno@clisp.org>
8856
8857         passfd test: Fix warnings.
8858         * tests/test-passfd.c: Include <sys/wait.h>.
8859         (main): Fix typo.
8860
8861 2011-03-13  Bruno Haible  <bruno@clisp.org>
8862
8863         passfd module, part 4, tweaks.
8864         * tests/test-passfd.c: Reorder includes.
8865         (main): Fix perror and printf calls.
8866
8867 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8868
8869         passfd module, part 4.
8870         * modules/passfd-tests: New file.
8871         * tests/test-passfd.c: New file.
8872
8873 2011-03-13  Jim Meyering  <meyering@redhat.com>
8874
8875         Makefile: rely on GNU make; derive syntax-check rule names
8876         Rather than requiring that each sc_ rule be listed as a dependent
8877         of "check", use features of GNU make to derive the list.
8878         * Makefile (syntax-check-rules): Define.
8879         (check): Depend on the new variable, not the hard-coded list.
8880
8881 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8882             Bruno Haible  <bruno@clisp.org>
8883
8884         passfd module, part 3.
8885         * lib/passfd.h (recvfd): Add a flags argument.
8886         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8887         (recvfd): Add a flags argument.
8888         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8889         exists.
8890         * modules/passfd (Depends-on): Add cloexec.
8891         Suggested by Eric Blake.
8892
8893 2011-03-13  Bruno Haible  <bruno@clisp.org>
8894
8895         passfd module, part 2, tweaks.
8896         * modules/passfd (Files): Reorder.
8897         (Depends-on): Remove errno.
8898         (Include): Remove <sys/socket.h>, <sys/un.h>.
8899         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8900         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8901         specification header. Include <sys/socket.h> always. Don't include
8902         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8903         (sendfd): Clarify that it sets errno when it fails.
8904         (recvfd): Fix specification.
8905
8906 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8907
8908         passfd module, part 2.
8909         * modules/passfd: New file.
8910         * lib/passfd.h: New file.
8911         * lib/passfd.c: New file.
8912
8913 2011-03-12  Bruno Haible  <bruno@clisp.org>
8914
8915         wcswidth, mbswidth: Avoid integer overflow.
8916         * lib/wcswidth.c: Include <limits.h>.
8917         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8918         * lib/mbswidth.c: Include <limits.h>.
8919         (mbsnwidth): Avoid 'int' overflow.
8920         Reported by Jim Meyering.
8921
8922 2011-03-12  Bruno Haible  <bruno@clisp.org>
8923
8924         futimens, utimensat: Avoid endless recursion on Solaris 10.
8925         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8926         Solaris.
8927         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8928         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8929
8930 2011-03-11  Jim Meyering  <meyering@redhat.com>
8931
8932         maint.mk: relax a regexp to accommodate other formatting styles
8933         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8934         between "ngettext" and the following "(".
8935
8936 2011-03-11  Pádraig Brady <P@draigBrady.com>
8937
8938         maint.mk: suppress a false positive warning
8939         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8940         diagnostics are marked with ngettext.
8941
8942 2011-03-10  Eric Blake  <eblake@redhat.com>
8943
8944         wchar: add explicit dependencies, for Tru64
8945         * modules/mbmemcasecoll (Depends-on): Add wchar.
8946         * modules/mbtowc (Depends-on): Likewise.
8947         * modules/vasnprintf (Depends-on): Likewise.
8948         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8949         * modules/wctomb (Depends-on): Likewise.
8950         Reported by Peter O'Gorman.
8951
8952 2011-03-08  Bruno Haible  <bruno@clisp.org>
8953
8954         passfd module, part 1, tweaks.
8955         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8956         Improve indentation. Improve AC_MSG_CHECKING messages.
8957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8958         gl_SOCKET_FAMILIES.
8959
8960 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8961
8962         passfd module, part 1.
8963         * m4/afunix.m4: New file.
8964         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8965         sockets.
8966
8967 2011-03-08  Bruno Haible  <bruno@clisp.org>
8968
8969         regex-quote: New API.
8970         * lib/regex-quote.h: Include <stdbool.h>.
8971         (struct regex_quote_spec): New type.
8972         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8973         New declarations.
8974         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8975         'const struct regex_quote_spec *' argument.
8976         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8977         (pcre_special): New constant.
8978         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8979         New functions.
8980         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8981         'const struct regex_quote_spec *' argument.
8982         * modules/regex-quote (Depends-on): Add stdbool.
8983         * tests/test-regex-quote.c (check): Update for new API. Add test for
8984         anchored results.
8985         * NEWS: Mention the API change.
8986         Reported by Reuben Thomas and Eric Blake.
8987
8988 2011-03-06  Bruno Haible  <bruno@clisp.org>
8989
8990         regex-quote: Fix creation of POSIX extended regular expressions.
8991         * lib/regex-quote.c (ere_special): Add grouping and alternation
8992         operators.
8993
8994 2011-03-05  Bruno Haible  <bruno@clisp.org>
8995
8996         doc: Improve doc regarding autopoint vs. gnulib.
8997         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8998         disable autopoint while running autoreconf.
8999         Suggested by Ralf Wildenhues.
9000
9001 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9002
9003         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9004         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9005
9006 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9007
9008         parse-duration: remove xalloc.h dependency
9009         * lib/parse-duration.c (parse_period): handle NULL return from
9010         strdup instead of calling xstrdup().
9011         * modules/parse-duration: remove "xalloc" dependency
9012
9013 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9014
9015         bootstrap: honor m4_base when running aclocal
9016         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9017
9018 2011-03-02  Jim Meyering  <meyering@redhat.com>
9019
9020         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9021         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9022         on request from Matt Booth.
9023
9024 2011-03-01  Eric Blake  <eblake@redhat.com>
9025
9026         test-link: work on Hurd
9027         * tests/test-link.h (test_link): Hurd rejects linking directories
9028         with EISDIR instead of the POSIX-mandated EPERM.
9029
9030 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9031
9032         stdio: simplify by moving files to printf-posix, sigpipe
9033         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9034         since this symbol is needed only if printf is replaced.
9035         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9036         Require gl_ASM_SYMBOL_PREFIX.
9037         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9038         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9039         (Depends-on): Add 'raise'.
9040         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9041         * modules/stdio (Files): Remove lib/stdio-write.c,
9042         m4/asm-underscore.m4.
9043         (Depends-on): Remove 'raise'.
9044
9045         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9046         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9047         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9048         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9049
9050 2011-02-28  Bruno Haible  <bruno@clisp.org>
9051
9052         localcharset: Assume ANSI C behaviour of free().
9053         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9054         calling free().
9055         Suggested by Simon Josefsson <simon@josefsson.org>.
9056
9057 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9058             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9059             Bruno Haible  <bruno@clisp.org>  (tiny change)
9060
9061         On Cygwin, use /proc file system instead of win32 API.
9062         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9063         Win32 file names.
9064         (DllMain): Simplify by removing Cygwin specific code.
9065         (find_shared_library_fullname): Use Linux specific implementation also
9066         for Cygwin.
9067         (get_shared_library_fullname): Update accordingly.
9068         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9069         Win32 file names.
9070         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9071         Cygwin specific code.
9072
9073 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9074             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9075
9076         Fix OpenMP flag detection for various Fortran compilers.
9077         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9078         OpenMP-conditional compilation construct, to force compile
9079         failure with missing OpenMP flag.
9080         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9081
9082 2011-02-25  Eric Blake  <eblake@redhat.com>
9083
9084         strstr: expand test coverage
9085         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9086         compilation.
9087         * tests/test-memmem.c (main): Duplicate tests.
9088         * tests/test-strcasestr.c (main): Likewise.
9089         * tests/test-c-strcasestr.c (main): Likewise.
9090
9091 2011-02-25  Jim Meyering  <meyering@redhat.com>
9092
9093         maint.mk: detect missing-NL-at-EOF, too
9094         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9095         it also detects when a file lacks a newline at EOF.
9096         (require_exactly_one_NL_at_EOF_): Renamed from
9097         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9098         since people may well have .x-sc_... file names tied to the
9099         existing name.  Suggested by Eric Blake.
9100
9101 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9102
9103         dirname: move m4/dos.m4 functionality into lib/dosname.h
9104
9105         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9106         extracts symbols from it, puts them into config.h; but it's much
9107         easier to use the symbols directly.  filename.h already does this,
9108         but it disagrees with dos.m4 in some respects.  This patch
9109         introduces a different include file dosname.h that packages up
9110         dos.m4, and then later we can work on merging filename.h and
9111         dosname.h.  Applications that need only the easy-to-configure
9112         symbols should consider including dosname.h rather than dirname.h.
9113         * NEWS: Mention incompatible changes.
9114         * m4/dos.m4: Remove.
9115         * lib/dosname.h, modules/dosname: New files.
9116         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9117         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9118         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9119         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9120         Include dosname.h, not dirname.h.
9121         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9122         Include dosname.h, for definitions of symbols like ISSLASH
9123         that used to be in config.h.
9124         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9126         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9127         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9128         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9129         * modules/rmdir (Files): Likewise.
9130         * modules/stat (Files): Likewise.
9131         * modules/unlink (Files): Likewise.
9132         * modules/dirname-lgpl (Depends-on): Add dosname.
9133         * modules/lstat (Depends-on): Likewise.
9134         * modules/openat (Depends-on): Likewise.
9135         * modules/rmdir (Depends-on): Likewise.
9136         * modules/savewd (Depends-on): Likewise.
9137         * modules/stat (Depends-on): Likewise.
9138         * modules/unlink (Depends-on): Likewise.
9139         * modules/openat (Depends-on): Remove dirname-lgpl.
9140         * modules/savewd (Depends-on): Likewise.
9141         * tests/test-dirname.c: Do not use removed symbols like
9142         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9143         the remaining symbols, e.g., ISSLASH ('\\').
9144
9145 2011-02-25  Eric Blake  <eblake@redhat.com>
9146
9147         strstr: revert patches that introduced bug and pessimization
9148         * lib/str-two-way.h: Add another reference.
9149         (two_way_short_needle, two_way_long_needle): Revert changes from
9150         2011-02-24; they pessimize search speed.
9151         (critical_factorization): Partially revert changes from
9152         2010-06-22; they violate the requirement that the left half of the
9153         needle be smaller than the period of the needle.
9154
9155 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9156
9157         filenamecat: remove unnecessary dependency on dirname-lgpl
9158         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9159         is no direct dependency, just an indirect one via filenamecat-lgpl.
9160
9161         remove: remove unnecessary use of m4/dos.m4
9162         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9163         * modules/remove (FILES): Remove m4/dos.m4.
9164
9165         * lib/openat-proc.c: Don't include dirname.h; not needed.
9166
9167         backupfile: remove unnecessary use of m4/dos.m4
9168         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9169         of its symbols are used by the backupfile code.  backupfile.c does
9170         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9171         for the rare case of programs that want all their backup file
9172         names to live within 8+3 limits, and dos.m4 doesn't address that.
9173         * modules/backupfile (Files): Remove m4/dos.m4.
9174
9175 2011-02-24  Jim Meyering  <meyering@redhat.com>
9176
9177         strstr: fix a bug whereby strstr would mistakenly return NULL
9178         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9179         in period calculation.
9180         (two_way_long_needle): Likewise.
9181         The original problem was reported by Mike Stump in
9182         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9183         Ralf Wildenhues provided the short needle and haystack.
9184         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9185         Add a more involved test to trigger the bug in two_way_long_needle.
9186
9187 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9188
9189         gnulib-tool: remove use of bold display in help screen
9190         * gnulib-tool (func_usage): Do not use bold display anymore in the
9191         help screen.  That was just meant to be a temporary emphasis for a
9192         backward-incompatible change.
9193
9194 2011-02-23  Bruno Haible  <bruno@clisp.org>
9195
9196         Fix misindentation of preprocessor directives.
9197         * lib/argp-namefrob.h: Reindent preprocessor directives.
9198         * lib/getopt_int.h (struct _getopt_data): Likewise.
9199         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9200         * lib/vasnprintf.c (decode_long_double): Likewise.
9201         * tests/test-argmatch.c: Insert blank lines, for clarity.
9202         * tests/test-exclude.c: Likewise.
9203
9204 2011-02-22  Bruno Haible  <bruno@clisp.org>
9205
9206         ioctl: Fix for MacOS X in 64-bit mode.
9207         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9208         value.
9209         Suggested by Eric Blake.
9210         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9211
9212 2011-02-22  Jim Meyering  <meyering@redhat.com>
9213
9214         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9215         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9216         in lib/.
9217
9218 2011-02-22  Eric Blake  <eblake@redhat.com>
9219
9220         maint: avoid any CDPATH issue
9221         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9222
9223         maint: adjust cpp indentation for my modules, as well
9224         * Makefile (sc_cpp_indent_check): Add my name.
9225         * lib/fbufmode.c: Filter through cppi.
9226         * lib/fpurge.c: Likewise.
9227         * lib/freadable.c: Likewise.
9228         * lib/freading.c: Likewise.
9229         * lib/fwritable.c: Likewise.
9230         * lib/fwriting.c: Likewise.
9231         * lib/sigaction.c: Likewise.
9232
9233 2011-02-22  Jim Meyering  <meyering@redhat.com>
9234
9235         maint: adjust cpp indentation to reflect nesting depth
9236         I.e., in a block of code that begins with an unnested "#if",
9237         put one space between the "#" in column 1 and following token.
9238         For example,
9239         -#include <sys/vfs.h>
9240         +# include <sys/vfs.h>
9241         Do this only in .c files that are part of a module I maintain.
9242         * lib/linkat.c: Filter through cppi.
9243         * lib/nanosleep.c: Likewise.
9244         * lib/openat.c: Likewise.
9245         * lib/openat-die.c: Likewise.
9246         * lib/dup3.c: Likewise.
9247         * lib/fchownat.c: Likewise.
9248         * lib/flock.c: Likewise.
9249         * lib/fsync.c: Likewise.
9250         * lib/fts.c: Likewise.
9251         * lib/getpass.c: Likewise.
9252         * lib/gettimeofday.c: Likewise.
9253         * lib/userspec.c: Likewise.
9254         * Makefile (sc_cpp_indent_check): New rule, to check this.
9255
9256 2011-02-22  Bruno Haible  <bruno@clisp.org>
9257
9258         New module 'wctomb'.
9259         * lib/stdlib.in.h (wctomb): New declaration.
9260         * lib/wctomb.c: New file.
9261         * lib/wctomb-impl.h: New file.
9262         * m4/wctomb.m4: New file.
9263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9264         REPLACE_WCTOMB.
9265         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9266         REPLACE_WCTOMB.
9267         * modules/wctomb: New file.
9268         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9269         * doc/posix-functions/wctomb.texi: Mention the new module.
9270         * modules/wctob (Depends-on): Add wctomb.
9271
9272 2011-02-22  Bruno Haible  <bruno@clisp.org>
9273
9274         New module 'mbtowc'.
9275         * lib/stdlib.in.h (mbtowc): New declaration.
9276         * lib/mbtowc.c: New file.
9277         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9278         * m4/mbtowc.m4: New file.
9279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9280         REPLACE_MBTOWC.
9281         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9282         REPLACE_MBTOWC.
9283         * modules/mbtowc: New file.
9284         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9285         * doc/posix-functions/mbtowc.texi: Mention the new module.
9286         * modules/btowc (Depends-on): Add mbtowc.
9287
9288 2011-02-22  Bruno Haible  <bruno@clisp.org>
9289
9290         wcrtomb: Add more tests for native Windows platforms.
9291         * tests/test-wcrtomb-w32-1.sh: New file.
9292         * tests/test-wcrtomb-w32-2.sh: New file.
9293         * tests/test-wcrtomb-w32-3.sh: New file.
9294         * tests/test-wcrtomb-w32-4.sh: New file.
9295         * tests/test-wcrtomb-w32-5.sh: New file.
9296         * tests/test-wcrtomb-w32.c: New file.
9297         * modules/wcrtomb-tests (Files): Add them.
9298         (Makefile.am): Arrange to run these tests.
9299         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9300         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9301
9302 2011-02-20  Bruno Haible  <bruno@clisp.org>
9303
9304         wcrtomb: Enhance test.
9305         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9306
9307 2011-02-20  Bruno Haible  <bruno@clisp.org>
9308
9309         mbrtowc: Tiny optimization.
9310         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9311
9312 2011-02-20  Jim Meyering  <meyering@redhat.com>
9313
9314         test-exclude.c: remove unmatched #endif
9315         * tests/test-exclude.c: Remove stray #endif, left over from
9316         the change of a week ago.
9317
9318 2011-02-19  Jim Meyering  <meyering@redhat.com>
9319
9320         git-version-gen: skip "-dirty" check when appropriate
9321         * build-aux/git-version-gen: Don't run any git commands when the
9322         version string comes from .tarball-version.  Prior to this, we
9323         would run git update-index --refresh even from a just-unpacked
9324         tarball directory, and that could affect a .git/ directory in a
9325         parent of the build directory.  Reported by Mike Frysinger.
9326
9327 2011-02-19  Bruno Haible  <bruno@clisp.org>
9328
9329         unictype/property-byname: Reduce the size of the 'data' segment.
9330         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9331
9332 2011-02-19  Bruno Haible  <bruno@clisp.org>
9333
9334         unictype/scripts: Reduce the size of the 'data' segment.
9335         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9336         '%pic'.
9337         * lib/unictype/scripts_byname.gperf: Regenerated.
9338
9339 2011-02-19  Bruno Haible  <bruno@clisp.org>
9340
9341         stdint: Update documentation.
9342         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9343
9344 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         stdint: omit redundant check for wchar.h
9347         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9348         always tests whether wchar.h exists, so remove the now-redundant test.
9349
9350 2011-02-18  Bruno Haible  <bruno@clisp.org>
9351
9352         stdint: Cut dependency to module 'wchar'.
9353         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9354         include the necessary prerequisites.
9355         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9356         * modules/stdint (Depends-on): Remove wchar.
9357         (Makefile.am): Substitute HAVE_WCHAR_H.
9358         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9359
9360 2011-02-18  Eric Blake  <eblake@redhat.com>
9361
9362         longlong: skip, rather than fail, on cross-compilation
9363         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9364         when cross-compiling; regression from 2011-02-16.
9365
9366 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9367
9368         * NEWS: Mention 2011-02-08 change to stdlib.
9369
9370 2011-02-17  Bruno Haible  <bruno@clisp.org>
9371
9372         getloadavg: Add comments about platforms.
9373         * m4/getloadavg.m4: Add comment.
9374         * lib/getloadavg.c: Likewise.
9375
9376 2011-02-17  Bruno Haible  <bruno@clisp.org>
9377
9378         getloadavg: Fix link error on Solaris 2.6.
9379         * modules/getloadavg (Link): New section.
9380         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9381         linking test-getloadavg.
9382         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9383         getloadavg.
9384
9385 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9388         It was 'int', but this doesn't match the IRIX 6.5 manual.
9389         Suggested by Bruno Haible in
9390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9391
9392 2011-02-17  Bruno Haible  <bruno@clisp.org>
9393
9394         havelib: Fix comments.
9395         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9396         change.
9397
9398 2011-02-17  Bruno Haible  <bruno@clisp.org>
9399
9400         havelib: Update config.rpath.
9401         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9402
9403 2011-02-17  Bruno Haible  <bruno@clisp.org>
9404
9405         getloadavg test: Add some plausibility checks.
9406         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9407         is improbable.
9408
9409 2011-02-16  Eric Blake  <eblake@redhat.com>
9410
9411         maintainer-makefile: make syntax-check a no-op from tarballs
9412         * top/maint.mk (no-vc-detected): New rule.
9413         (local-checks-available): Use it to avoid hanging if someone tries
9414         'make syntax-check' from a tarball.  Also append to any non-syntax
9415         checks already defined in cfg.mk.
9416
9417 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9418
9419         longlong: tune, particularly for common case of c99
9420
9421         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9422         or running anything if c99, or if unsigned long long int does not
9423         work.  In either case, we know the answer without further tests.
9424         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9425         it at most once, and use its results for both long long int and
9426         unsigned long long int.  This is more likely to be efficient in
9427         the common case where the program wants to check for both long
9428         long int and unsigned long long int.
9429         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9430         since the answer is already known.
9431
9432 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9433
9434         getloadavg: set errno
9435         * lib/getloadavg.c: Set errno when returning -1.  If no other
9436         error number looks appropriate, set it to ENOSYS if the getloadavg
9437         looks like it can't possibly ever work, ENOTSUP otherwise.
9438         Suggested by Bruno Haible in
9439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9440
9441         getloadavg: trim unused parts and speed up 'configure'
9442         * NEWS: Document this.
9443         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9444         always compiled if getloadavg is absent.
9445         Move test code to ...
9446         * tests/test-getloadavg.c: New file, containing previous
9447         contents of test from lib/getloadavg.c.  It also contains
9448         suggestions by Bruno Haible in
9449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9450         * modules/getloadavg-tests: New file.
9451         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9452         Do tests in the same order as they're needed for getloadavg.c.
9453         Omit setgid-related tests that generate symbols KMEM_GROUP,
9454         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9455         Do only the tests that are needed to see whether the system has
9456         getloadavg, moving the other tests into ...
9457         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9458         NLIST_NAME_UNION; nobody should be using it.  Do not define
9459         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9460         relevant, as the user of this module shouldn't care how getloadavg
9461         is implemented.
9462
9463         getloadavg: omit unused var
9464         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9465
9466 2011-02-15  Jim Meyering  <meyering@redhat.com>
9467
9468         doc: update users.txt
9469         * users.txt: Update iwhd's URL.
9470
9471 2011-02-13  Bruno Haible  <bruno@clisp.org>
9472
9473         Consistent macro naming for macros that use GCC __attribute__.
9474         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9475         _ATTRIBUTE_NONNULL_.
9476         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9477         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9478         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9479         ATTRIBUTE_DEPRECATED.
9480         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9481         ATTRIBUTE_NORETURN.
9482         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9483         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9484         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9485         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9486         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9487         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9488         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9489         ATTRIBUTE_SENTINEL.
9490         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9491         ATTRIBUTE_RETURN_CHECK.
9492         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9493         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9494         ATTRIBUTE_NORETURN.
9495         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9496         Reported by Paul Eggert.
9497
9498 2011-02-13  Bruno Haible  <bruno@clisp.org>
9499
9500         Don't interfere with a program's definition of __attribute__.
9501         * lib/argp.h (__attribute__): Remove definition.
9502         (_GL_ATTRIBUTE_FORMAT): New macro.
9503         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9504         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9505         (_GL_ATTRIBUTE_FORMAT): New macro.
9506         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9507         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9508         GCC 3 or newer.
9509         * lib/error.h (__attribute__): Remove definition.
9510         (_GL_ATTRIBUTE_FORMAT): New macro.
9511         (error, error_at_line): Use it.
9512         * lib/hash.h (__attribute__): Remove definition.
9513         (ATTRIBUTE_WUR): Update definition. Define always.
9514         * lib/openat.h (__attribute__): Remove definition.
9515         (ATTRIBUTE_NORETURN): Update definition. Define always.
9516         * lib/sigpipe-die.h (__attribute__): Remove definition.
9517         (ATTRIBUTE_NORETURN): Update definition. Define always.
9518         * lib/vasnprintf.h (__attribute__): Remove definition.
9519         (_GL_ATTRIBUTE_FORMAT): New macro.
9520         (asnprintf, vasnprintf): Use it.
9521         * lib/xalloc.h (__attribute__): Remove definition.
9522         (ATTRIBUTE_NORETURN): Update definition. Define always.
9523         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9524         * lib/xmemdup0.h (__attribute__): Remove definition.
9525         (ATTRIBUTE_NORETURN): Update definition. Define always.
9526         * lib/xprintf.h (__attribute__): Remove definition.
9527         (_GL_ATTRIBUTE_FORMAT): New macro.
9528         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9529         * lib/xstrtol.h (__attribute__): Remove definition.
9530         (ATTRIBUTE_NORETURN): Update definition. Define always.
9531         * lib/xvasprintf.h (__attribute__): Remove definition.
9532         (_GL_ATTRIBUTE_FORMAT): New macro.
9533         (xasprintf, xvasprintf): Use it.
9534         * tests/test-argmatch.c (__attribute__): Remove definition.
9535         (ATTRIBUTE_NORETURN): Update definition. Define always.
9536         * tests/test-exclude.c (__attribute__): Remove definition.
9537         (ATTRIBUTE_NORETURN): Update definition. Define always.
9538         Reported by Paul Eggert.
9539
9540 2011-02-13  Bruno Haible  <bruno@clisp.org>
9541
9542         mbrtowc: Add more tests for native Windows platforms.
9543         * tests/test-mbrtowc-w32-1.sh: New file.
9544         * tests/test-mbrtowc-w32-2.sh: New file.
9545         * tests/test-mbrtowc-w32-3.sh: New file.
9546         * tests/test-mbrtowc-w32-4.sh: New file.
9547         * tests/test-mbrtowc-w32-5.sh: New file.
9548         * tests/test-mbrtowc-w32.c: New file.
9549         * modules/mbrtowc-tests (Files): Add them.
9550         (Makefile.am): Arrange to run these tests.
9551         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9552         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9553
9554 2011-02-13  Bruno Haible  <bruno@clisp.org>
9555
9556         mbrtowc: Work around native Windows bug.
9557         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9558         guess when no suitable locale for testing was found.
9559         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9560
9561 2011-02-13  Bruno Haible  <bruno@clisp.org>
9562
9563         mbsinit: Work around mingw bug.
9564         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9565         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9566         Windows.
9567         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9568
9569 2011-02-13  Bruno Haible  <bruno@clisp.org>
9570
9571         mbsinit: Don't crash for a NULL argument.
9572         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9573         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9574
9575 2011-02-13  Bruno Haible  <bruno@clisp.org>
9576
9577         Don't interfere with a program's definition of __attribute__.
9578         * lib/stdio.in.h (__attribute__): Remove definition.
9579         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9580         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9581         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9582         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9583         * lib/string.in.h (__attribute__): Remove definition.
9584         Reported by Paul Eggert.
9585
9586 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9587
9588         stdlib: don't get in the way of non-GCC __attribute__
9589         See thread starting at
9590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9591         Revert previous stdlib change, installing the following instead:
9592         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9593         to get in the way of a non-GCC compiler that supports __attribute__.
9594         (_GL_ATTRIBUTE_RETURN): New macro.
9595         (_Exit): Use it instead of __attribute__.
9596
9597 2011-02-12  Bruno Haible  <bruno@clisp.org>
9598
9599         quotearg test: Avoid test failure on mingw.
9600         * tests/test-quotearg.sh: Convert the locale identifier from native
9601         Windows syntax to Unix syntax.
9602
9603 2011-02-12  Bruno Haible  <bruno@clisp.org>
9604
9605         setlocale: Prefer gnulib's override over libintl's override.
9606         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9607         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9608         GNULIB_defined_setlocale is set.
9609
9610 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9611
9612         stdlib: support non-GCC __attribute__
9613
9614         Fix a serious and tricky problem encountered when attempting to
9615         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9616         5.5, but it crashed due to memory corruption on Solaris 10 with
9617         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9618         bits that are otherwise zero.  This tagging is optional inside
9619         Emacs but is preferred and is used when __attribute__ ((__aligned
9620         (8))) works, as it does with both recent-enough GCC and with Sun C
9621         5.11.  However, Sun C 5.11 is not GCC and does not #define
9622         __GNUC__ and __GNUC_MINOR__.
9623
9624         When I added the getloadavg module to Emacs, it brought in
9625         stdlib.in.h, which contained this fragment:
9626
9627            #ifndef __attribute__
9628            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9629            #  define __attribute__(Spec)   /* empty */
9630            # endif
9631            #endif
9632
9633         When files that include <stdlib.h> were compiled with Sun C 5.11,
9634         the above code disabled __attribute__ ((__aligned (8))), which
9635         caused variables to not be properly aligned, which eventually led
9636         to the pointer corruption mentioned above.  (This was a bit hard
9637         to diagnose, unfortunately.)
9638
9639         Several "#define __attribute__(X) /* empty */" code snippets need
9640         to be eradicated from Gnulib to work with non-GCC compilers that
9641         support __attribute__.  The Autoconf way to do this is to test for
9642         each kind of attribute that we want support for, and selectively
9643         enable that in source code.
9644
9645         Fix this problem just for stdlib.h, by adding a test for the
9646         __noreturn__ attribute, and change stdlib.in.h to use that test
9647         when needed.  This technique can be easily generalized to the
9648         other *.in.h files and attributes, and a similar technique can be
9649         used for *.h and *.c files.  This patch is enough to solve the
9650         problem for Emacs + getloadavg, and I thought I'd publish it for
9651         feedback before undertaking further, similar fixes in other
9652         modules.
9653
9654         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9655         because it's not needed for stdlib.h.  It merely substitutes the
9656         value directly into stdlib.h.  We may well need to #define it, or
9657         similar symbols, for other modules, but it's nice to also have an
9658         option to not #define it for applications like Emacs that do not
9659         need it.
9660
9661         * lib/stdlib.in.h (__attribute__): Do not #define.
9662         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9663         be defined only if the _Exit module is also used.
9664         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9666         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9667         platforms.
9668         * modules/_Exit (Files): Add m4/attribute.m4.
9669         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9670         * m4/attribute.m4: New file.
9671
9672 2011-02-12  Bruno Haible  <bruno@clisp.org>
9673
9674         wcsrtombs: Work around bug on native Windows.
9675         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9676         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9677         instead of len.
9678         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9679
9680 2011-02-12  Bruno Haible  <bruno@clisp.org>
9681
9682         mbsrtowcs: Work around bug on native Windows.
9683         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9684         against mingw bug.
9685         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9686
9687 2011-02-12  Bruno Haible  <bruno@clisp.org>
9688
9689         Avoid setlocale bugs in tests.
9690         * modules/btowc (Dependencies): Add setlocale.
9691         * modules/c-strcase (Dependencies): Likewise.
9692         * modules/mbmemcasecmp (Dependencies): Likewise.
9693         * modules/mbmemcasecoll (Dependencies): Likewise.
9694         * modules/mbrtowc (Dependencies): Likewise.
9695         * modules/mbscasecmp (Dependencies): Likewise.
9696         * modules/mbscasestr (Dependencies): Likewise.
9697         * modules/mbschr (Dependencies): Likewise.
9698         * modules/mbscspn (Dependencies): Likewise.
9699         * modules/mbsinit (Dependencies): Likewise.
9700         * modules/mbsncasecmp (Dependencies): Likewise.
9701         * modules/mbsnrtowcs (Dependencies): Likewise.
9702         * modules/mbspbrk (Dependencies): Likewise.
9703         * modules/mbspcasecmp (Dependencies): Likewise.
9704         * modules/mbsrchr (Dependencies): Likewise.
9705         * modules/mbsrtowcs (Dependencies): Likewise.
9706         * modules/mbsspn (Dependencies): Likewise.
9707         * modules/mbsstr (Dependencies): Likewise.
9708         * modules/nl_langinfo (Dependencies): Likewise.
9709         * modules/quotearg (Dependencies): Likewise.
9710         * modules/unicase/locale-language (Dependencies): Likewise.
9711         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9712         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9713         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9714         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9715         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9716         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9717         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9718         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9719         * modules/vasnprintf-posix (Dependencies): Likewise.
9720         * modules/wcrtomb (Dependencies): Likewise.
9721         * modules/wcsnrtombs (Dependencies): Likewise.
9722         * modules/wcsrtombs (Dependencies): Likewise.
9723
9724 2011-02-12  Bruno Haible  <bruno@clisp.org>
9725
9726         setlocale: Workaround native Windows bug.
9727         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9728         succeeds but sets LC_CTYPE to "C", report a failure.
9729         * tests/test-setlocale2.sh: New file.
9730         * tests/test-setlocale2.c: New file.
9731         * modules/setlocale-tests (Files): Add the new files.
9732         (Makefile.am): Enable test-setlocale2.sh test.
9733         * doc/posix-functions/setlocale.texi: Mention workaround.
9734
9735 2011-02-11  Bruno Haible  <bruno@clisp.org>
9736
9737         Tests for module 'setlocale'.
9738         * modules/setlocale-tests: New file.
9739         * tests/test-setlocale1.sh: New file.
9740         * tests/test-setlocale1.c: New file.
9741
9742         New module 'setlocale'.
9743         * lib/locale.in.h (setlocale): New declaration.
9744         * lib/setlocale.c: New file, based on
9745         gettext/gettext-runtime/intl/setlocale.c.
9746         * m4/setlocale.m4: New file.
9747         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9748         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9749         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9750         REPLACE_SETLOCALE.
9751         * modules/setlocale: New file.
9752         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9753         * doc/posix-functions/setlocale.texi: Mention the new module.
9754
9755 2011-02-11  Bruno Haible  <bruno@clisp.org>
9756
9757         Prepare for locale dependent tests on mingw.
9758         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9759         because it has the wrong locale encoding.
9760         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9761         French_France.1252 instead of "fr".
9762         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9763         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9764         because it has the wrong locale encoding.
9765         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9766         native Windows, try Turkish_Turkey.65001.
9767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9768         Chinese_China.54936.
9769
9770         Prepare for locale dependent tests on mingw.
9771         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9772         differently.
9773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9774         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9775         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9776         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9777
9778 2011-02-11  Eric Blake  <eblake@redhat.com>
9779
9780         strptime: avoid compiler warnings
9781         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9782         compiler warnings about dead code.
9783         Reported by Daniel P. Berrange.
9784
9785 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9786
9787         doc: update users.txt
9788         * users.txt: Add rcs.
9789
9790 2011-02-10  John W. Eaton  <jwe@gnu.org>
9791
9792         doc: update users.txt
9793         * users.txt: Add octave.
9794
9795 2011-02-10  Jim Meyering  <meyering@redhat.com>
9796
9797         doc: update users.txt
9798         * users.txt: Add iwhd.
9799
9800 2011-02-09  Bruno Haible  <bruno@clisp.org>
9801
9802         gnulib-tool: Make copyright notice adjustment more robust.
9803         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9804         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9805         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9806         License".
9807         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9808
9809 2011-02-06  Bruno Haible  <bruno@clisp.org>
9810
9811         New module 'towctrans'.
9812         * modules/towctrans: New file.
9813         * lib/wctype.in.h (towctrans): New declaration.
9814         * lib/towctrans.c: New file.
9815         * lib/towctrans-impl.h: New file.
9816         * m4/towctrans.m4: New file.
9817         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9818         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9819         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9820         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9821         * doc/posix-functions/towctrans.texi: Mention the new module.
9822
9823 2011-02-06  Bruno Haible  <bruno@clisp.org>
9824
9825         New module 'wctrans'.
9826         * modules/wctrans: New file.
9827         * lib/wctype.in.h (wctrans): New declaration.
9828         * lib/wctrans.c: New file.
9829         * lib/wctrans-impl.h: New file.
9830         * m4/wctrans.m4: New file.
9831         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9832         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9833         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9834         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9835         * doc/posix-functions/wctrans.texi: Mention the new module.
9836
9837 2011-02-06  Bruno Haible  <bruno@clisp.org>
9838
9839         New module 'iswctype'.
9840         * modules/iswctype: New file.
9841         * lib/wctype.in.h (iswctype): New declaration.
9842         * lib/iswctype.c: New file.
9843         * lib/iswctype-impl.h: New file.
9844         * m4/iswctype.m4: New file.
9845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9847         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9848         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9849         * doc/posix-functions/iswctype.texi: Mention the new module and the
9850         HP-UX 11.00 problem.
9851
9852 2011-02-06  Bruno Haible  <bruno@clisp.org>
9853
9854         New module 'wctype'.
9855         * modules/wctype: Change to represent the wctype() substitute.
9856         * lib/wctype.in.h (wctype): New declaration.
9857         * lib/wctype.c: New file.
9858         * lib/wctype-impl.h: New file.
9859         * m4/wctype.m4: New file.
9860         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9861         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9862         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9863         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9864         * doc/posix-functions/wctype.texi: Mention the new module and the
9865         HP-UX 11.00 problem.
9866
9867 2011-02-06  Bruno Haible  <bruno@clisp.org>
9868
9869         wctype-h: Ensure wctype_t and wctrans_t are defined.
9870         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9871         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9872         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9873         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9874         HAVE_WCTRANS_T.
9875         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9876
9877 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         flock: fix license typo
9880
9881         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9882         omitted.
9883
9884 2011-02-08  Bruno Haible  <bruno@clisp.org>
9885
9886         Split large sed scripts, for HP-UX sed.
9887         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9888         to avoid HP-UX limit of 99 commands, in the near future.
9889         * modules/stdlib (Makefile.am): Likewise.
9890         * modules/unistd (Makefile.am): Likewise.
9891         * modules/wchar (Makefile.am): Likewise.
9892         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9893         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9894         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9895
9896 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9897             Bruno Haible  <bruno@clisp.org>
9898
9899         stdlib: improve random_r modularization
9900         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9901         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9902         you also need the random_r module to get this material right.
9903         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9904         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9905         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9906
9907 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         stdlib: don't depend on stdint
9910         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9911         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9912         be independent of whether stdint.h is needed.
9913         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9914         here, instead of ...
9915         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9916         struct random_data should be using the random_r module, not just
9917         the stdlib module (which wouldn't make sense: what package needs
9918         just struct random_data without also needing random_r?).
9919         * modules/stdlib (Depends-on): Remove stdint.
9920
9921         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9922         See the thread rooted at
9923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9924         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9925         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9926         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9927         __VMS)); previously it was always included (via fcntl--.h).
9928         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9929         hand; this is good enough for load averages.  Also, do not use
9930         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9931         flags directly if available and don't bother otherwise.  (Packages
9932         that need the extra reliability should use the modules that define
9933         these flags on older platforms that lack them.)
9934         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9935         fcntl-safer.
9936
9937 2011-02-08  Jim Meyering  <meyering@redhat.com>
9938
9939         di-set.h, ino-map.h: add multiple-inclusion guard
9940         Technically, the guard is required only for ino-map.h, due to its
9941         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9942         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9943         * lib/ino-map.h: Likewise.
9944
9945 2011-02-06  Bruno Haible  <bruno@clisp.org>
9946
9947         iswblank: Ensure declaration on glibc systems.
9948         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9949         * modules/iswblank (Dependencies): Add 'extensions'.
9950         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9951
9952 2011-02-06  Bruno Haible  <bruno@clisp.org>
9953
9954         New module 'iswblank'.
9955         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9956         * modules/iswblank: New file.
9957         * modules/wctype-h (Files): Remove lib/iswblank.c.
9958         (Makefile.am): Substitute GNULIB_ISWBLANK.
9959         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9960         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9961         (gl_WCTYPE_H_DEFAULTS): New macro.
9962         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9963         * modules/iswblank-tests: New file.
9964         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9965         * tests/test-wctype-h.c (main): Remove iswblank tests.
9966         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9967         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9968         of 'wctype-h'.
9969         * NEWS: Mention the change.
9970         * modules/mbchar (Depends-on): Add iswblank.
9971
9972 2011-02-08  Bruno Haible  <bruno@clisp.org>
9973
9974         di-set tests: Refactor.
9975         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9976         unnecessary includes.
9977         (ASSERT): Remove macro.
9978         (main): Make C90 compliant by avoiding variable declaration after
9979         statement.
9980         * modules/di-set-tests (Files): Add tests/macros.h.
9981
9982 2011-02-08  Bruno Haible  <bruno@clisp.org>
9983
9984         ino-map tests: Refactor.
9985         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9986         unnecessary includes.
9987         (ASSERT): Remove macro.
9988         (main): Make C90 compliant by avoiding variable declaration after
9989         statement.
9990         * modules/ino-map-tests (Files): Add tests/macros.h.
9991
9992 2011-02-08  Jim Meyering  <meyering@redhat.com>
9993
9994         di-set: add "const" to a cast
9995         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9996         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9997
9998 2011-02-06  Bruno Haible  <bruno@clisp.org>
9999
10000         Rename module 'wctype' to 'wctype-h'.
10001         * modules/wctype-h: Renamed from modules/wctype.
10002         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10003         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10004         (Files, Depends-on, Makefile.am): Update.
10005         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10006         (Files, Makefile.am): Update.
10007         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10008         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10009         * doc/posix-headers/wctype.texi: Update.
10010         * doc/posix-functions/iswalnum.texi: Update.
10011         * doc/posix-functions/iswalpha.texi: Update.
10012         * doc/posix-functions/iswblank.texi: Update.
10013         * doc/posix-functions/iswcntrl.texi: Update.
10014         * doc/posix-functions/iswdigit.texi: Update.
10015         * doc/posix-functions/iswgraph.texi: Update.
10016         * doc/posix-functions/iswlower.texi: Update.
10017         * doc/posix-functions/iswprint.texi: Update.
10018         * doc/posix-functions/iswpunct.texi: Update.
10019         * doc/posix-functions/iswspace.texi: Update.
10020         * doc/posix-functions/iswupper.texi: Update.
10021         * doc/posix-functions/iswxdigit.texi: Update.
10022         * doc/posix-functions/towlower.texi: Update.
10023         * doc/posix-functions/towupper.texi: Update.
10024         * NEWS: Mention the change.
10025         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10026         * modules/mbchar (Dependencies): Likewise.
10027         * modules/mbswidth (Dependencies): Likewise.
10028         * modules/quotearg (Dependencies): Likewise.
10029         * modules/regex (Dependencies): Likewise.
10030         * modules/wcscasecmp (Dependencies): Likewise.
10031         * modules/wcsncasecmp (Dependencies): Likewise.
10032         * modules/wcwidth (Dependencies): Likewise.
10033
10034 2011-02-06  Bruno Haible  <bruno@clisp.org>
10035
10036         New module 'wcswidth'.
10037         * modules/wcswidth: New file.
10038         * lib/wchar.in.h (wcswidth): New declaration.
10039         * lib/wcswidth.c: New file.
10040         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10041         * m4/wcswidth.m4: New file.
10042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10044         REPLACE_WCSWIDTH.
10045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10046         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10047         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10048         * doc/posix-functions/wcswidth.texi: Mention the new module.
10049
10050 2011-02-06  Bruno Haible  <bruno@clisp.org>
10051
10052         New module 'wcstok'.
10053         * modules/wcstok: New file.
10054         * lib/wchar.in.h (wcstok): New declaration.
10055         * lib/wcstok.c: New file.
10056         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10057         * m4/wcstok.m4: New file.
10058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10061         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10062         * doc/posix-functions/wcstok.texi: Mention the new module.
10063
10064 2011-02-06  Bruno Haible  <bruno@clisp.org>
10065
10066         New module 'wcsstr'.
10067         * modules/wcsstr: New file.
10068         * lib/wchar.in.h (wcsstr): New declaration.
10069         * lib/wcsstr.c: New file.
10070         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10071         * m4/wcsstr.m4: New file.
10072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10075         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10076         * doc/posix-functions/wcsstr.texi: Mention the new module.
10077
10078 2011-02-06  Bruno Haible  <bruno@clisp.org>
10079
10080         New module 'wcspbrk'.
10081         * modules/wcspbrk: New file.
10082         * lib/wchar.in.h (wcspbrk): New declaration.
10083         * lib/wcspbrk.c: New file.
10084         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10085         * m4/wcspbrk.m4: New file.
10086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10089         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10090         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10091
10092 2011-02-06  Bruno Haible  <bruno@clisp.org>
10093
10094         New module 'wcsspn'.
10095         * modules/wcsspn: New file.
10096         * lib/wchar.in.h (wcsspn): New declaration.
10097         * lib/wcsspn.c: New file.
10098         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10099         * m4/wcsspn.m4: New file.
10100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10103         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10104         * doc/posix-functions/wcsspn.texi: Mention the new module.
10105
10106 2011-02-06  Bruno Haible  <bruno@clisp.org>
10107
10108         New module 'wcscspn'.
10109         * modules/wcscspn: New file.
10110         * lib/wchar.in.h (wcscspn): New declaration.
10111         * lib/wcscspn.c: New file.
10112         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10113         * m4/wcscspn.m4: New file.
10114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10117         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10118         * doc/posix-functions/wcscspn.texi: Mention the new module.
10119
10120 2011-02-06  Bruno Haible  <bruno@clisp.org>
10121
10122         New module 'wcsrchr'.
10123         * modules/wcsrchr: New file.
10124         * lib/wchar.in.h (wcsrchr): New declaration.
10125         * lib/wcsrchr.c: New file.
10126         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10127         * m4/wcsrchr.m4: New file.
10128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10131         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10132         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10133
10134 2011-02-06  Bruno Haible  <bruno@clisp.org>
10135
10136         New module 'wcschr'.
10137         * modules/wcschr: New file.
10138         * lib/wchar.in.h (wcschr): New declaration.
10139         * lib/wcschr.c: New file.
10140         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10141         * m4/wcschr.m4: New file.
10142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10145         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10146         * doc/posix-functions/wcschr.texi: Mention the new module.
10147
10148 2011-02-06  Bruno Haible  <bruno@clisp.org>
10149
10150         New module 'wcsdup'.
10151         * modules/wcsdup: New file.
10152         * lib/wchar.in.h (wcsdup): New declaration.
10153         * lib/wcsdup.c: New file.
10154         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10155         * m4/wcsdup.m4: New file.
10156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10159         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10160         * doc/posix-functions/wcsdup.texi: Mention the new module.
10161
10162 2011-02-06  Bruno Haible  <bruno@clisp.org>
10163
10164         New module 'wcsxfrm'.
10165         * modules/wcsxfrm: New file.
10166         * lib/wchar.in.h (wcsxfrm): New declaration.
10167         * lib/wcsxfrm.c: New file.
10168         * lib/wcsxfrm-impl.h: New file.
10169         * m4/wcsxfrm.m4: New file.
10170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10173         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10174         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10175
10176 2011-02-06  Bruno Haible  <bruno@clisp.org>
10177
10178         New module 'wcscoll'.
10179         * modules/wcscoll: New file.
10180         * lib/wchar.in.h (wcscoll): New declaration.
10181         * lib/wcscoll.c: New file.
10182         * lib/wcscoll-impl.h: New file.
10183         * m4/wcscoll.m4: New file.
10184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10187         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10188         * doc/posix-functions/wcscoll.texi: Mention the new module.
10189
10190 2011-02-06  Bruno Haible  <bruno@clisp.org>
10191
10192         New module 'wcsncasecmp'.
10193         * modules/wcsncasecmp: New file.
10194         * lib/wchar.in.h (wcsncasecmp): New declaration.
10195         * lib/wcsncasecmp.c: New file.
10196         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10197         * m4/wcsncasecmp.m4: New file.
10198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10201         HAVE_WCSNCASECMP.
10202         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10203         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10204
10205 2011-02-06  Bruno Haible  <bruno@clisp.org>
10206
10207         New module 'wcscasecmp'.
10208         * modules/wcscasecmp: New file.
10209         * lib/wchar.in.h (wcscasecmp): New declaration.
10210         * lib/wcscasecmp.c: New file.
10211         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10212         * m4/wcscasecmp.m4: New file.
10213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10216         HAVE_WCSCASECMP.
10217         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10218         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10219
10220 2011-02-05  Bruno Haible  <bruno@clisp.org>
10221
10222         New module 'wcsncmp'.
10223         * modules/wcsncmp: New file.
10224         * lib/wchar.in.h (wcsncmp): New declaration.
10225         * lib/wcsncmp.c: New file.
10226         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10227         * m4/wcsncmp.m4: New file.
10228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10231         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10232         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10233
10234 2011-02-05  Bruno Haible  <bruno@clisp.org>
10235
10236         New module 'wcscmp'.
10237         * modules/wcscmp: New file.
10238         * lib/wchar.in.h (wcscmp): New declaration.
10239         * lib/wcscmp.c: New file.
10240         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10241         * m4/wcscmp.m4: New file.
10242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10245         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10246         * doc/posix-functions/wcscmp.texi: Mention the new module.
10247
10248 2011-02-05  Bruno Haible  <bruno@clisp.org>
10249
10250         New module 'wcsncat'.
10251         * modules/wcsncat: New file.
10252         * lib/wchar.in.h (wcsncat): New declaration.
10253         * lib/wcsncat.c: New file.
10254         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10255         * m4/wcsncat.m4: New file.
10256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10259         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10260         * doc/posix-functions/wcsncat.texi: Mention the new module.
10261
10262 2011-02-05  Bruno Haible  <bruno@clisp.org>
10263
10264         New module 'wcscat'.
10265         * modules/wcscat: New file.
10266         * lib/wchar.in.h (wcscat): New declaration.
10267         * lib/wcscat.c: New file.
10268         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10269         * m4/wcscat.m4: New file.
10270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10273         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10274         * doc/posix-functions/wcscat.texi: Mention the new module.
10275
10276 2011-02-05  Bruno Haible  <bruno@clisp.org>
10277
10278         New module 'wcpncpy'.
10279         * modules/wcpncpy: New file.
10280         * lib/wchar.in.h (wcpncpy): New declaration.
10281         * lib/wcpncpy.c: New file.
10282         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10283         * m4/wcpncpy.m4: New file.
10284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10286         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10287         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10288         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10289
10290 2011-02-05  Bruno Haible  <bruno@clisp.org>
10291
10292         New module 'wcsncpy'.
10293         * modules/wcsncpy: New file.
10294         * lib/wchar.in.h (wcsncpy): New declaration.
10295         * lib/wcsncpy.c: New file.
10296         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10297         * m4/wcsncpy.m4: New file.
10298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10301         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10302         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10303
10304 2011-02-05  Bruno Haible  <bruno@clisp.org>
10305
10306         New module 'wcpcpy'.
10307         * modules/wcpcpy: New file.
10308         * lib/wchar.in.h (wcpcpy): New declaration.
10309         * lib/wcpcpy.c: New file.
10310         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10311         * m4/wcpcpy.m4: New file.
10312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10314         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10315         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10316         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10317
10318 2011-02-05  Bruno Haible  <bruno@clisp.org>
10319
10320         New module 'wcscpy'.
10321         * modules/wcscpy: New file.
10322         * lib/wchar.in.h (wcscpy): New declaration.
10323         * lib/wcscpy.c: New file.
10324         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10325         * m4/wcscpy.m4: New file.
10326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10329         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10330         * doc/posix-functions/wcscpy.texi: Mention the new module.
10331
10332 2011-02-05  Bruno Haible  <bruno@clisp.org>
10333
10334         New module 'wcsnlen'.
10335         * modules/wcsnlen: New file.
10336         * lib/wchar.in.h (wcsnlen): New declaration.
10337         * lib/wcsnlen.c: New file.
10338         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10339         * m4/wcsnlen.m4: New file.
10340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10343         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10344         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10345
10346 2011-02-05  Bruno Haible  <bruno@clisp.org>
10347
10348         New module 'wcslen'.
10349         * modules/wcslen: New file.
10350         * lib/wchar.in.h (wcslen): New declaration.
10351         * lib/wcslen.c: New file.
10352         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10353         * m4/wcslen.m4: New file.
10354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10357         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10358         * doc/posix-functions/wcslen.texi: Mention the new module.
10359
10360 2011-02-05  Bruno Haible  <bruno@clisp.org>
10361
10362         New module 'wmemset'.
10363         * modules/wmemset: New file.
10364         * lib/wchar.in.h (wmemset): New declaration.
10365         * lib/wmemset.c: New file.
10366         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10367         * m4/wmemset.m4: New file.
10368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10370         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10371         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10372         * doc/posix-functions/wmemset.texi: Mention the new module.
10373
10374 2011-02-05  Bruno Haible  <bruno@clisp.org>
10375
10376         New module 'wmemmove'.
10377         * modules/wmemmove: New file.
10378         * lib/wchar.in.h (wmemmove): New declaration.
10379         * lib/wmemmove.c: New file.
10380         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10381         * m4/wmemmove.m4: New file.
10382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10385         HAVE_WMEMMOVE.
10386         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10387         * doc/posix-functions/wmemmove.texi: Mention the new module.
10388
10389 2011-02-05  Bruno Haible  <bruno@clisp.org>
10390
10391         New module 'wmemcpy'.
10392         * modules/wmemcpy: New file.
10393         * lib/wchar.in.h (wmemcpy): New declaration.
10394         * lib/wmemcpy.c: New file.
10395         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10396         * m4/wmemcpy.m4: New file.
10397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10399         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10400         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10401         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10402
10403 2011-02-05  Bruno Haible  <bruno@clisp.org>
10404
10405         New module 'wmemcmp'.
10406         * modules/wmemcmp: New file.
10407         * lib/wchar.in.h (wmemcmp): New declaration.
10408         * lib/wmemcmp.c: New file.
10409         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10410         * m4/wmemcmp.m4: New file.
10411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10413         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10414         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10415         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10416
10417 2011-02-07  Jim Meyering  <meyering@redhat.com>
10418
10419         di-set, ino-map: new modules, from coreutils
10420         * lib/di-set.c: New file.
10421         * lib/di-set.h: Likewise.
10422         * lib/ino-map.c: Likewise.
10423         * lib/ino-map.h: Likewise.
10424         * modules/di-set: Likewise.
10425         * modules/di-set-tests: Likewise.
10426         * modules/ino-map: Likewise.
10427         * modules/ino-map-tests: Likewise.
10428         * tests/test-di-set.c: Likewise.
10429         * tests/test-ino-map.c: Likewise.
10430
10431 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10432
10433         getloadavg: merge minor changes from Emacs
10434
10435         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10436         (getloadavg): Use memset, not bzero.
10437
10438         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10439         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10440         clash (bug#86).
10441
10442 2010-11-14  Bruno Haible  <bruno@clisp.org>
10443
10444         Allow multiple gnulib generated replacements to coexist.
10445         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10446         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10447         * lib/langinfo.in.h (nl_item): Likewise.
10448         * lib/math.in.h (_NaN, NAN): Likewise.
10449         * lib/netdb.in.h (struct addrinfo): Likewise.
10450         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10451         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10452         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10453         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10454         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10455         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10456         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10457         pthread_mutexattr_init, pthread_mutexattr_settype,
10458         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10459         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10460         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10461         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10462         * lib/sched.in.h (struct sched_param): Likewise.
10463         * lib/se-selinux.in.h (security_class_t, security_context_t,
10464         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10465         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10466         lsetfilecon, fsetfilecon, security_check_context,
10467         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10468         Likewise.
10469         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10470         Likewise.
10471         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10472         _gl_function_taking_int_returning_void_t, union sigval,
10473         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10474         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10475         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10476         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10477         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10478         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10479         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10480         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10481         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10482         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10483         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10484         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10485         socklen_t, rpl_fd_isset): Likewise.
10486         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10487         * lib/sys_time.in.h (struct timeval): Likewise.
10488         * lib/sys_times.in.h (struct tms): Likewise.
10489         * lib/sys_utsname.in.h (struct utsname):
10490         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10491         * lib/unistd.in.h (getpagesize): Likewise.
10492         * lib/wchar.in.h (mbstate_t): Likewise.
10493         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10494         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10495         towlower, towupper): Likewise.
10496         Reported by Sam Steingold <sds@gnu.org>.
10497
10498 2011-02-05  Eric Blake  <eblake@redhat.com>
10499
10500         unsetenv: work around Haiku issues
10501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10502         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10503
10504 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10505
10506         libposix: avoid calling error() within libposix
10507         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10508         is defined.
10509
10510 2011-02-05  Eric Blake  <eblake@redhat.com>
10511
10512         strerror_r-posix: port to cygwin
10513         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10514         implementation.
10515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10516         * tests/test-strerror_r.c (main): Fix test.
10517         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10518         issue.
10519
10520 2011-02-05  Bruno Haible  <bruno@clisp.org>
10521
10522         New module 'wmemchr'.
10523         * modules/wmemchr: New file.
10524         * lib/wchar.in.h (wmemchr): New declaration.
10525         * lib/wmemchr.c: New file.
10526         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10527         * m4/wmemchr.m4: New file.
10528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10530         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10531         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10532         * doc/posix-functions/wmemchr.texi: Mention the new module.
10533
10534 2011-02-04  Eric Blake  <eblake@redhat.com>
10535
10536         fdopendir: detect FreeBSD bug
10537         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10538         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10539
10540 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10541
10542         stdbool: do not define HAVE_STDBOOL_H
10543         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10544         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10545         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10546         imported from the latest Autoconf git.  It was motivated by Emacs,
10547         which uses gnulib but does not need HAVE_STDBOOL_H.
10548
10549 2011-02-04  Bruno Haible  <bruno@clisp.org>
10550
10551         wcsnrtombs: Prepare for new module wwcsnrtombs.
10552         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10553         * lib/wcsnrtombs.c: Include it.
10554         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10555
10556         wcsrtombs: Prepare for new module wwcsrtombs.
10557         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10558         * lib/wcsrtombs.c: Include it.
10559         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10560
10561         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10562         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10563         * lib/mbsnrtowcs.c: Include it.
10564         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10565
10566         mbsrtowcs: Prepare for new module mbsrtowwcs.
10567         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10568         * lib/mbsrtowcs.c: Include it.
10569         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10570
10571 2011-02-04  Bruno Haible  <bruno@clisp.org>
10572
10573         vasnprintf: Reduce use of malloc for small format strings.
10574         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10575         (arguments): Add room for the first 7 arguments.
10576         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10577         (char_directives, u8_directives, u16_directives, u32_directives): Add
10578         room for the first 7 directives.
10579         * lib/printf-parse.c: Include <string.h>.
10580         (PRINTF_PARSE): Change memory handling code so that it uses the first
10581         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10582         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10583         Reported by Pádraig Brady <P@draigbrady.com>.
10584
10585 2011-01-31  Eric Blake  <eblake@redhat.com>
10586
10587         dup2: work around Haiku bug
10588         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10589         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10590         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10591         * tests/test-dup2.c (main): Enhance test.
10592
10593 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10594
10595         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10596         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10597         declared by eglibc 2.11.2.
10598         * lib/stdio.in.h: Likewise.
10599
10600 2011-01-31  Eric Blake  <eblake@redhat.com>
10601
10602         ignore-value: add missing test dependency
10603         * tests/test-ignore-value.c: Revert previous change; stdio.h
10604         provides off_t.
10605         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10606
10607 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         mktime: clarify long_int width checking
10610         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10611         the top level, to make it clearer that the assumption about
10612         long_int width is being checked.  See
10613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10614
10615 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10616
10617         ignore-value: Fix self-test.
10618         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10619
10620 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10621
10622         TYPE_MAXIMUM: avoid theoretically undefined behavior
10623         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10624         negative number, which the C Standard says has undefined behavior.
10625         In practice this is not a problem, but might as well do it by the book.
10626         Reported by Rich Felker and Eric Blake; see
10627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10628         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10631         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10632         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10633         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10634
10635         mktime: #undef mktime before #defining it
10636         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10637
10638         mktime: systematically normalize tm_isdst comparisons
10639         * lib/mktime.c (isdst_differ): New function.
10640         (__mktime_internal): Use it systematically for all isdst comparisons.
10641         This completes the fix for libc BZ #6723, and removes the need for
10642         normalizing tm_isdst.  See
10643         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10644         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10645
10646         mktime: fix some integer overflow issues and sidestep the rest
10647
10648         This was prompted by a bug report by Benjamin Lindner for MinGW
10649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10650         His bug is due to signed integer overflow (0 - INT_MIN), and I
10651         I scanned through mktime.c looking for other integer overflow
10652         problems, fixing all the bugs I found.
10653
10654         Although the C Standard says the resulting code is still not safe
10655         in the presence of integer overflow, in practice it should be good
10656         enough for all real-world two's-complement implementations, except
10657         for debugging environments that deliberately trap on integer
10658         overflow (e.g., gcc -ftrapv).
10659
10660         * lib/mktime.c (WRAPV): New macro.
10661         (SHR): Also check that long_int and time_t shift right in the
10662         usual way, before using the fast-but-unportable method.
10663         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10664         used.  The code already assumed two's complement, so there's
10665         no need to test for alternatives.  All uses removed.
10666         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10667         the C standard.  Problem reported by Rich Felker in
10668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10669         (twos_complement_arithmetic): Also check long_int and time_t.
10670         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10671         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10672         (__mktime_internal): Avoid integer overflow with unary subtraction
10673         in two instances where -1 - X is an adequate replacement for -X,
10674         since the calculations are approximate.
10675
10676 2011-01-29  Eric Blake  <eblake@redhat.com>
10677
10678         mktime: avoid infinite loop
10679         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10680         type; behavior is still undefined but portable to all known targets.
10681         Reported by Rich Felker.
10682
10683 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10684
10685         rename, unlink, same-inode: Relicense.
10686         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10687         * modules/unlink (License): Likewise.
10688         * modules/same-inode (License): Likewise.
10689
10690 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10691
10692         mktime: avoid problems on NetBSD 5 / i386
10693         * lib/mktime.c (long_int): New type.  This works around a problem
10694         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10695         but time_t is 64 bits, and where I expect the existing code is
10696         wrong in some cases.
10697         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10698         (ydhms_diff): Bring back the compile-time check for wide-enough
10699         year and yday.
10700
10701         mktime: fix misspelling in comment
10702         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10703         This merges all recent glibc changes of importance.
10704
10705 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10706
10707         move-if-change: cope with concurrent mv of identical file.
10708         * build-aux/move-if-change (CMPPROG): Accept environment
10709         variable as an override for `cmp'.
10710         (usage): Document CMPPROG.
10711         Adjust comparison to drop stdout.  Cope with failure of mv if
10712         the target file exists and is identical to the source, for
10713         parallel builds.
10714         Report from H.J. Lu against binutils in PR binutils/12283.
10715
10716 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10717
10718         * users.txt: Mention sharutils.
10719
10720 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10721
10722         * users.txt: Mention OATH Toolkit.
10723
10724 2011-01-27  Bruno Haible  <bruno@clisp.org>
10725
10726         Prepare for supporting FreeBSD 10.
10727         * build-aux/config.libpath: Remove handling of freebsd1*.
10728
10729 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10730
10731         Prepare for supporting FreeBSD 10.
10732         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10733         match FreeBSD 10.0.
10734
10735 2011-01-27  Bruno Haible  <bruno@clisp.org>
10736
10737         vma-iter, get-rusage-as: Add OpenBSD support.
10738         * modules/vma-iter (configure.ac): Test for mquery.
10739         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10740         * lib/vma-iter.c: Include <sys/mman.h>.
10741         (vma_iterate): Add an implementation based on mquery().
10742         * lib/resource-ext.h (get_rusage_as): Update comments.
10743         * lib/get-rusage-as.c: Likewise.
10744         * lib/get-rusage-data.c: Likewise.
10745
10746 2011-01-26  Karl Berry  <karl@gnu.org>
10747
10748         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10749         variables to make it easier to override the makeinfo program used.
10750
10751 2011-01-26  Eric Blake  <eblake@redhat.com>
10752
10753         fcntl: work around Haiku F_DUPFD bugs
10754         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10755         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10756         cloexec bit on duplication.
10757         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10758
10759 2011-01-26  Bruno Haible  <bruno@clisp.org>
10760
10761         Enable memory leak tests on AIX.
10762         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10763         * tests/test-fprintf-posix3.c (main): Likewise.
10764
10765 2011-01-26  Bruno Haible  <bruno@clisp.org>
10766
10767         Tests for module 'get-rusage-data'.
10768         * modules/get-rusage-data-tests: New file.
10769         * tests/test-get-rusage-data.c: New file.
10770
10771         New module 'get-rusage-data'.
10772         * lib/resource-ext.h (get_rusage_data): New declaration.
10773         * lib/get-rusage-data.c: New file.
10774         * modules/get-rusage-data: New file.
10775
10776 2011-01-25  Bruno Haible  <bruno@clisp.org>
10777
10778         get-rusage-as: Allow for easier testing.
10779         * lib/resource-ext.h (get_rusage_as): Add comment.
10780         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10781         (main): New function for interactive testing.
10782
10783 2011-01-25  Bruno Haible  <bruno@clisp.org>
10784
10785         vma-iter: Treat Haiku like BeOS.
10786         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10787         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10788
10789 2011-01-25  Eric Blake  <eblake@redhat.com>
10790
10791         c-stack: fix regression on cygwin when libsigsegv is present
10792         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10793
10794 2011-01-24  Bruno Haible  <bruno@clisp.org>
10795
10796         vma-iter: Avoid empty intervals.
10797         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10798         on an empty interval.
10799
10800 2011-01-24  Jim Meyering  <meyering@redhat.com>
10801
10802         u64: remove unnecessary #include
10803         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10804
10805 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10806
10807         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10808         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10809
10810 2011-01-23  Bruno Haible  <bruno@clisp.org>
10811
10812         New module 'vma-iter'.
10813         * lib/vma-iter.h: New file.
10814         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10815         * modules/vma-iter: New file.
10816         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10817         for get_rusage_as_via_iterator.
10818         (vma_iterate_callback): New function.
10819         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10820         * modules/get-rusage-as (Depends-on): Add vma-iter.
10821
10822 2011-01-23  Bruno Haible  <bruno@clisp.org>
10823
10824         uninorm: Tweak includes.
10825         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10826         Reported by Jim Meyering.
10827
10828 2011-01-23  Bruno Haible  <bruno@clisp.org>
10829
10830         get-rusage-as: Improve on NetBSD.
10831         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10832         /proc, like on FreeBSD.
10833
10834 2011-01-23  Jim Meyering  <meyering@redhat.com>
10835
10836         xreadlink.h: remove unnecessary #include
10837         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10838
10839         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10840         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10841
10842 2011-01-23  Bruno Haible  <bruno@clisp.org>
10843
10844         get-rusage-as: Fix bug.
10845         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10846         original limit when aborting the first loop.
10847
10848 2011-01-23  Bruno Haible  <bruno@clisp.org>
10849
10850         wctype: Ensure valid C syntax.
10851         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10852         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10853
10854 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10855
10856         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10858         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10859         as they are needed only for configure's test case.
10860         This removes two unnecessary symbols from config.h.
10861
10862         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10863         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10865         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10866         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10867         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10868         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10869         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10870         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10871         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10872         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10874         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10876         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10878         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10879         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10880
10881 2011-01-21  Eric Blake  <eblake@redhat.com>
10882
10883         maintainer-makefile: work with older git for submodule check
10884         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10885         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10886         Reported by Matthias Bolte.
10887
10888         bootstrap: minor portability fixes
10889         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10890         (usage): Omit leading capital and trailing . on help phrases, per
10891         GNU Coding Standards.
10892         (check_versions, top level): Prefix messages with script name.
10893
10894 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10895
10896         bootstrap: support --no-git option
10897         * build-aux/bootstrap: Add --no-git option, to be used when
10898         --gnulib-srcdir points to the exact desired checkout.
10899
10900 2011-01-21  Eric Blake  <eblake@redhat.com>
10901
10902         strerror_r-posix: work with glibc 2.13
10903         * lib/strerror_r.c (strerror_r): Fix return type.
10904
10905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10906             Bruno Haible  <bruno@clisp.org>
10907
10908         uN_strstr: New unit tests.
10909         * modules/unistr/u8-strstr-tests: New file.
10910         * modules/unistr/u16-strstr-tests: New file.
10911         * modules/unistr/u32-strstr-tests: New file.
10912         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10913         * tests/unistr/test-u8-strstr.c: New file.
10914         * tests/unistr/test-u16-strstr.c: New file.
10915         * tests/unistr/test-u32-strstr.c: New file.
10916
10917 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10918             Bruno Haible  <bruno@clisp.org>
10919
10920         Make uN_strstr functions O(n) worst-case.
10921         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10922         16-bit and 32-bit unit cases, use the unibyte algorithm from
10923         lib/mbsstr.c.
10924         * lib/unistr/u8-strstr.c: Include <string.h>.
10925         (UNIT_IS_UINT8_T): New macro.
10926         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10927         (U_STRLEN, U_STRNLEN): New macros.
10928         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10929         (U_STRLEN, U_STRNLEN): New macros.
10930         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10931         (configure.ac): Update required libunistring version.
10932         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10933         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10934         malloca.
10935         (configure.ac): Update required libunistring version.
10936         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10937         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10938         malloca.
10939         (configure.ac): Update required libunistring version.
10940
10941 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10942             Bruno Haible  <bruno@clisp.org>
10943
10944         Prepare for faster uN_strstr functions.
10945         * lib/str-kmp.h: Support definable UNITs.
10946         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10947         needle_len argument.
10948         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10949         * lib/mbscasestr.c (mbscasestr): Likewise.
10950
10951 2011-01-21  Pádraig Brady <P@draigBrady.com>
10952
10953         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10954         * tests/test-malloca.c (main): Unset the environment variable
10955         to greatly speed up the test.
10956         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10957         * modules/malloca-tests: Depend on unsetenv.
10958
10959 2011-01-21  Pádraig Brady <P@draigBrady.com>
10960
10961         ignore-value: remove stdint dependency
10962         * lib/ignore-value.h: Remove <stdint.h>
10963         * modules/ignore-value: Remove stdint dependency.
10964
10965 2011-01-21  Jim Meyering  <meyering@redhat.com>
10966
10967         maint.mk: adjust variable name to be consistent with other gl_ vars
10968         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10969         to be lower case.
10970
10971 2011-01-20  Jim Meyering  <meyering@redhat.com>
10972
10973         maint.mk: make "check" depend on public-submodule-commit by default
10974         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10975
10976 2011-01-20  Bruno Haible  <bruno@clisp.org>
10977
10978         mbfile, mbiter: Complete change from 2008-12-21.
10979         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10980         * m4/mbiter.m4 (gl_MBITER): Likewise.
10981
10982 2011-01-20  Jim Meyering  <meyering@redhat.com>
10983
10984         init.sh: insert space between each function name and "()"
10985         * tests/init.sh: Make it a little easier to see that a function's
10986         name is "warn_", and not "warn" when looking at the first part of
10987         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10988
10989 2011-01-20  Jim Meyering  <meyering@redhat.com>
10990
10991         mountlist: clean up code formatting
10992         * lib/mountlist.c (read_file_system_list): Split a long line,
10993         correct bracing style, use NULL in place of "(struct statfs *)0",
10994         don't parenthesize return value, add spaces around "=" and after
10995         ";-in-for-stmt".
10996
10997 2011-01-14  Markus Duft <mduft@gentoo.org>
10998
10999         mountlist: add support for Interix
11000         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11001         Apply statvfs to all entries of /dev/fs.
11002         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11003         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11004
11005 2011-01-20  Jim Meyering  <meyering@redhat.com>
11006
11007         maint.mk: improve the public-submodule-commit rule
11008         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11009         to suppress printing of its commands... unless V=1.
11010         Add git submodule's --quiet option to suppress printing of e.g.,
11011         "Entering gnulib" output.
11012         "cd" into $(srcdir) before running git submodule.
11013
11014 2011-01-20  Bruno Haible  <bruno@clisp.org>
11015
11016         include_next: Fix bug introduced on 2011-01-18.
11017         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11018         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11019         ac_cv_header_... variable if the second argument is not 'check'.
11020         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11021         gl_NEXT_HEADERS_INTERNAL.
11022
11023 2011-01-20  Bruno Haible  <bruno@clisp.org>
11024
11025         Allow the user to avoid the GNULIB_TEST_* macros.
11026         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11027         Suggested by Paul Eggert.
11028
11029 2011-01-14  Jim Meyering  <meyering@redhat.com>
11030
11031         bootstrap: avoid failure when there is no .gitmodules file
11032         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11033         has been assigned to, even when its value is the empty string.
11034         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11035         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11036         Reported by John W. Eaton <jwe@gnu.org>.
11037
11038 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11039
11040         assume <ctype.h>, ..., <time.h> exist
11041         For years gnulib has been assuming the existence of the headers
11042         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11043         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11044         them, since they don't appear to be needed.
11045         * README (Portability guidelines): Document this.
11046         * lib/flock.c: Assume <fcntl.h> exists.
11047         * lib/regex_internal.h: Assume <locale.h> exists.
11048         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11050         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11051         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11052         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11053         * m4/regex.m4 (gl_REGEX): Likewise.
11054         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11055         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11056         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11057         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11058         * tests/test-argp.c: Likewise.
11059         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11060
11061         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11062         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11063         AA_APPLE_UNIVERSAL_BUILD.  See
11064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11065         * NEWS: Document this.
11066
11067 2011-01-19  Eric Blake  <eblake@redhat.com>
11068
11069         c-stack: assume stack overflow if SA_SIGINFO unsupported
11070         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11071         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11072         sigaction will work.
11073         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11074         behavior match Linux.
11075         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11076
11077         stdbool-tests: accomodate Haiku
11078         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11079
11080         binary-io: fix O_TEXT on Haiku
11081         * modules/binary-io (Depends-on): Add fcntl-h.
11082         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11083         than blindly undefining O_TEXT.
11084         Reported by Scott McCreary.
11085
11086 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11087
11088         include_next: do not check for standard headers like stddef.h
11089
11090         I found this problem when modifying Emacs to use gnulib.
11091         I noticed that it added HAVE_STDDEF_H to config.h, even though
11092         gnulib always assumes <stddef.h> exists as per README and this
11093         symbol is unnecessary.
11094         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11095         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11096         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11097         faster for headers like stddef.h that are known to exist.
11098         (gl_CHECK_NEXT_HEADERS): Use it.
11099         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11100         rather than gl_CHECK_NEXT_HEADERS.
11101         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11102         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11103
11104 2011-01-18  Eric Blake  <eblake@redhat.com>
11105
11106         ansi-c++-opt: skip C++ dependency style if C++ is unused
11107         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11108         tests when we know C++ compilation is not desired.
11109         Reported by Scott McCreary.
11110
11111 2011-01-18  Bruno Haible  <bruno@clisp.org>
11112
11113         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11114         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11115         (main): Perform test also when getrlimit and setrlimit don't exist or
11116         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11117         limiting the address space size using setrlimit, compare the address
11118         space size before and after the the test.
11119         * tests/test-dprintf-posix2.c: Likewise.
11120         * tests/test-fprintf-posix3.sh: Update skip messages.
11121         * tests/test-dprintf-posix2.sh: Likewise.
11122         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11123         * modules/dprintf-posix-tests (Depends-on): Likewise.
11124         Reported by Bruce Korb <bkorb@gnu.org> and
11125         Gary V. Vaughan <gary@gnu.org>.
11126
11127 2011-01-18  Bruno Haible  <bruno@clisp.org>
11128
11129         get-rusage-as: Improvement for Cygwin.
11130         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11131         areas that are merely reserved.
11132
11133 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11134
11135         strftime: remove dependencies on multibyte modules
11136
11137         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11138         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11139         only if __osf__ is defined, and I suspect OSF doesn't need these
11140         other modules.  If my guess is wrong, we'll need to come up with a
11141         variant of strftime that doesn't need the multibyte modules.
11142
11143         I discovered this problem when attempting modify Emacs to use the
11144         strftime module.  With the previous gnulib, this caused Emacs to
11145         need 31 new files, ranging from lib/config.charset to
11146         m4/wint_t.m4.  This was overkill and I expect would be offputting
11147         to the Emacs maintainers.  After this change, only 6 new files are
11148         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11149         stdbool.m4, and tm_gmtoff.m4.
11150
11151         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11152         Suggested by Bruno Haible in
11153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11154         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11155         and do not check for wchar.h.
11156         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11157         (Depends-on): Remove mbrlen, mbsinit, wchar.
11158
11159 2011-01-18  Bruno Haible  <bruno@clisp.org>
11160
11161         Tests for module 'get-rusage-as'.
11162         * modules/get-rusage-as-tests: New file.
11163         * tests/test-get-rusage-as.c: New file.
11164
11165         New module 'get-rusage-as'.
11166         * modules/get-rusage-as: New file.
11167         * lib/resource-ext.h: New file.
11168         * lib/get-rusage-as.c: New file.
11169
11170 2011-01-17  Eric Blake  <eblake@redhat.com>
11171
11172         sigaction: relax license from LGPLv3+ to LGPLv2+
11173         * modules/sigaction (License): Relax to LGPLv2+.
11174
11175 2011-01-14  Bruno Haible  <bruno@clisp.org>
11176
11177         filemode: Make function declarations usable in C++ mode.
11178         * lib/filemode.h: Enclose function declarations in extern "C" block.
11179         Reported by John W. Eaton <jwe@gnu.org>.
11180
11181 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11182
11183         save-cwd: no longer include "xgetcwd.h"
11184         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11185         This avoids a compilation failure in projects that use save-cwd
11186         without also using the xgetcwd module.
11187
11188 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11189
11190         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11191         This is so that a program like Emacs, which needs only dtoastr,
11192         does not have to bother with distributing and compiling ftoastr
11193         and ldtoastr.
11194         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11195         * modules/dtoastr, modules/ldtoastr: New files.
11196         * modules/ftoastr: Now works just for 'float'.
11197         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11198         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11199         dtoastr.c, ldtoastr.c.
11200
11201 2011-01-11  Jim Meyering  <meyering@redhat.com>
11202
11203         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11204         There is no need to work around the lack of the fchdir function,
11205         since gnulib can now provide a replacement when required.
11206         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11207         * modules/save-cwd (Depends-on): Add fchdir.
11208
11209 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         openat, save-cwd: avoid xmalloc
11212
11213         This removes a direct (but undocumented) dependency of openat on
11214         xalloc, along with an indirect dependency via save-cwd.  It also
11215         removes a dependency of save-cwd on xgetcwd, and thereby
11216         indirectly on xalloc.  This change causes the openat substitute
11217         to fall back on save_cwd when memory is tight, and for save_cwd to
11218         fail instead of dying when memory is tight, but that's good enough.
11219         Problem and initial idea for fix reported by Bastien Roucaries in
11220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11221
11222         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11223         xalloc.h (for xmalloc).
11224         (openat_proc_name): Use malloc, not xmalloc.
11225         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11226         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11227
11228         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11229         This avoids heap allocation for file names whose lengths are in
11230         the range 512..1023, with the upper bound increasing to at most
11231         4031 depending on the platform's PATH_MAX.  (We do not want
11232         pathmax.h here as it might supply a non-constant PATH_MAX.)
11233         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11234         Perhaps they should be moved to malloca.h?
11235         (OPENAT_BUFFER_SIZE): Use them.
11236
11237 2011-01-10  Bruno Haible  <bruno@clisp.org>
11238
11239         doc: Update users.txt.
11240         * users.txt: Add recutils.
11241
11242 2011-01-09  Karl Berry  <karl@gnu.org>
11243
11244         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11245
11246         * doc/configmake.texi: New file.
11247         * doc/gnulib.texi: Include it.
11248         * modules/configmake: Move documentation from here.
11249
11250 2011-01-09  Bruno Haible  <bruno@clisp.org>
11251
11252         Update to Unicode 6.0.0.
11253         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11254         (get_lbp): Update for Unicode 6.0.0.
11255         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11256         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11257         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11258         U+11001, U+11038..U+11046. Remove U+06DE.
11259         (uc_width): Fix bounds of planes.
11260         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11261         lib/uniwidth/width.c.
11262         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11263         trailing whitespace removed.
11264         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11265         without comments, but with the original copyright notice.
11266         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11267         * lib/unicase/ignorable.h: Likewise.
11268         * lib/unicase/tocasefold.h: Likewise.
11269         * lib/unicase/tolower.h: Likewise.
11270         * lib/unicase/totitle.h: Likewise.
11271         * lib/unicase/toupper.h: Likewise.
11272         * lib/unictype/bidi_of.h: Likewise.
11273         * lib/unictype/blocks.h: Likewise.
11274         * lib/unictype/categ_C.h: Likewise.
11275         * lib/unictype/categ_Cn.h: Likewise.
11276         * lib/unictype/categ_L.h: Likewise.
11277         * lib/unictype/categ_Ll.h: Likewise.
11278         * lib/unictype/categ_Lm.h: Likewise.
11279         * lib/unictype/categ_Lo.h: Likewise.
11280         * lib/unictype/categ_Lu.h: Likewise.
11281         * lib/unictype/categ_M.h: Likewise.
11282         * lib/unictype/categ_Mc.h: Likewise.
11283         * lib/unictype/categ_Me.h: Likewise.
11284         * lib/unictype/categ_Mn.h: Likewise.
11285         * lib/unictype/categ_N.h: Likewise.
11286         * lib/unictype/categ_Nd.h: Likewise.
11287         * lib/unictype/categ_No.h: Likewise.
11288         * lib/unictype/categ_P.h: Likewise.
11289         * lib/unictype/categ_Po.h: Likewise.
11290         * lib/unictype/categ_S.h: Likewise.
11291         * lib/unictype/categ_Sc.h: Likewise.
11292         * lib/unictype/categ_Sk.h: Likewise.
11293         * lib/unictype/categ_Sm.h: Likewise.
11294         * lib/unictype/categ_So.h: Likewise.
11295         * lib/unictype/categ_of.h: Likewise.
11296         * lib/unictype/combining.h: Likewise.
11297         * lib/unictype/ctype_alnum.h: Likewise.
11298         * lib/unictype/ctype_alpha.h: Likewise.
11299         * lib/unictype/ctype_graph.h: Likewise.
11300         * lib/unictype/ctype_lower.h: Likewise.
11301         * lib/unictype/ctype_print.h: Likewise.
11302         * lib/unictype/ctype_punct.h: Likewise.
11303         * lib/unictype/ctype_upper.h: Likewise.
11304         * lib/unictype/decdigit.h: Likewise.
11305         * lib/unictype/digit.h: Likewise.
11306         * lib/unictype/numeric.h: Likewise.
11307         * lib/unictype/pr_alphabetic.h: Likewise.
11308         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11309         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11310         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11311         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11312         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11313         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11314         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11315         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11316         * lib/unictype/pr_case_ignorable.h: Likewise.
11317         * lib/unictype/pr_cased.h: Likewise.
11318         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11319         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11320         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11321         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11322         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11323         * lib/unictype/pr_combining.h: Likewise.
11324         * lib/unictype/pr_composite.h: Likewise.
11325         * lib/unictype/pr_currency_symbol.h: Likewise.
11326         * lib/unictype/pr_decimal_digit.h: Likewise.
11327         * lib/unictype/pr_deprecated.h: Likewise.
11328         * lib/unictype/pr_format_control.h: Likewise.
11329         * lib/unictype/pr_grapheme_base.h: Likewise.
11330         * lib/unictype/pr_grapheme_extend.h: Likewise.
11331         * lib/unictype/pr_grapheme_link.h: Likewise.
11332         * lib/unictype/pr_id_continue.h: Likewise.
11333         * lib/unictype/pr_id_start.h: Likewise.
11334         * lib/unictype/pr_ideographic.h: Likewise.
11335         * lib/unictype/pr_lowercase.h: Likewise.
11336         * lib/unictype/pr_math.h: Likewise.
11337         * lib/unictype/pr_numeric.h: Likewise.
11338         * lib/unictype/pr_other_alphabetic.h: Likewise.
11339         * lib/unictype/pr_other_id_continue.h: Likewise.
11340         * lib/unictype/pr_other_math.h: Likewise.
11341         * lib/unictype/pr_punctuation.h: Likewise.
11342         * lib/unictype/pr_sentence_terminal.h: Likewise.
11343         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11344         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11345         * lib/unictype/pr_unified_ideograph.h: Likewise.
11346         * lib/unictype/pr_uppercase.h: Likewise.
11347         * lib/unictype/pr_xid_continue.h: Likewise.
11348         * lib/unictype/pr_xid_start.h: Likewise.
11349         * lib/unictype/scripts.h: Likewise.
11350         * lib/unictype/scripts_byname.gperf: Likewise.
11351         * lib/unictype/sy_java_ident.h: Likewise.
11352         * lib/unigbrk/gbrkprop.h: Likewise.
11353         * lib/unilbrk/lbrkprop1.h: Likewise.
11354         * lib/unilbrk/lbrkprop2.h: Likewise.
11355         * lib/uninorm/decomposition-table2.h: Likewise.
11356         * lib/uniwbrk/wbrkprop.h: Likewise.
11357         * tests/unicase/test-cased.c: Likewise.
11358         * tests/unicase/test-ignorable.c: Likewise.
11359         * tests/unicase/test-uc_tolower.c: Likewise.
11360         * tests/unicase/test-uc_totitle.c: Likewise.
11361         * tests/unicase/test-uc_toupper.c: Likewise.
11362         * tests/unictype/test-categ_C.c: Likewise.
11363         * tests/unictype/test-categ_Cn.c: Likewise.
11364         * tests/unictype/test-categ_L.c: Likewise.
11365         * tests/unictype/test-categ_Ll.c: Likewise.
11366         * tests/unictype/test-categ_Lm.c: Likewise.
11367         * tests/unictype/test-categ_Lo.c: Likewise.
11368         * tests/unictype/test-categ_Lu.c: Likewise.
11369         * tests/unictype/test-categ_M.c: Likewise.
11370         * tests/unictype/test-categ_Mc.c: Likewise.
11371         * tests/unictype/test-categ_Me.c: Likewise.
11372         * tests/unictype/test-categ_Mn.c: Likewise.
11373         * tests/unictype/test-categ_N.c: Likewise.
11374         * tests/unictype/test-categ_Nd.c: Likewise.
11375         * tests/unictype/test-categ_No.c: Likewise.
11376         * tests/unictype/test-categ_P.c: Likewise.
11377         * tests/unictype/test-categ_Po.c: Likewise.
11378         * tests/unictype/test-categ_S.c: Likewise.
11379         * tests/unictype/test-categ_Sc.c: Likewise.
11380         * tests/unictype/test-categ_Sk.c: Likewise.
11381         * tests/unictype/test-categ_Sm.c: Likewise.
11382         * tests/unictype/test-categ_So.c: Likewise.
11383         * tests/unictype/test-ctype_alnum.c: Likewise.
11384         * tests/unictype/test-ctype_alpha.c: Likewise.
11385         * tests/unictype/test-ctype_graph.c: Likewise.
11386         * tests/unictype/test-ctype_lower.c: Likewise.
11387         * tests/unictype/test-ctype_print.c: Likewise.
11388         * tests/unictype/test-ctype_punct.c: Likewise.
11389         * tests/unictype/test-ctype_upper.c: Likewise.
11390         * tests/unictype/test-decdigit.h: Likewise.
11391         * tests/unictype/test-digit.h: Likewise.
11392         * tests/unictype/test-numeric.h: Likewise.
11393         * tests/unictype/test-pr_alphabetic.c: Likewise.
11394         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11396         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11397         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11398         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11399         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11400         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11401         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11402         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11403         * tests/unictype/test-pr_cased.c: Likewise.
11404         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11405         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11406         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11407         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11408         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11409         * tests/unictype/test-pr_combining.c: Likewise.
11410         * tests/unictype/test-pr_composite.c: Likewise.
11411         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11412         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11413         * tests/unictype/test-pr_deprecated.c: Likewise.
11414         * tests/unictype/test-pr_format_control.c: Likewise.
11415         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11416         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11417         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11418         * tests/unictype/test-pr_id_continue.c: Likewise.
11419         * tests/unictype/test-pr_id_start.c: Likewise.
11420         * tests/unictype/test-pr_ideographic.c: Likewise.
11421         * tests/unictype/test-pr_lowercase.c: Likewise.
11422         * tests/unictype/test-pr_math.c: Likewise.
11423         * tests/unictype/test-pr_numeric.c: Likewise.
11424         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11425         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11426         * tests/unictype/test-pr_other_math.c: Likewise.
11427         * tests/unictype/test-pr_punctuation.c: Likewise.
11428         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11429         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11430         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11431         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11432         * tests/unictype/test-pr_uppercase.c: Likewise.
11433         * tests/unictype/test-pr_xid_continue.c: Likewise.
11434         * tests/unictype/test-pr_xid_start.c: Likewise.
11435         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11436         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11437         changes.
11438         * lib/unictype/categ_Cc.h: Likewise.
11439         * lib/unictype/categ_Cf.h: Likewise.
11440         * lib/unictype/categ_Co.h: Likewise.
11441         * lib/unictype/categ_Cs.h: Likewise.
11442         * lib/unictype/categ_Lt.h: Likewise.
11443         * lib/unictype/categ_Nl.h: Likewise.
11444         * lib/unictype/categ_Pc.h: Likewise.
11445         * lib/unictype/categ_Pd.h: Likewise.
11446         * lib/unictype/categ_Pe.h: Likewise.
11447         * lib/unictype/categ_Pf.h: Likewise.
11448         * lib/unictype/categ_Pi.h: Likewise.
11449         * lib/unictype/categ_Ps.h: Likewise.
11450         * lib/unictype/categ_Z.h: Likewise.
11451         * lib/unictype/categ_Zl.h: Likewise.
11452         * lib/unictype/categ_Zp.h: Likewise.
11453         * lib/unictype/categ_Zs.h: Likewise.
11454         * lib/unictype/ctype_blank.h: Likewise.
11455         * lib/unictype/ctype_cntrl.h: Likewise.
11456         * lib/unictype/ctype_digit.h: Likewise.
11457         * lib/unictype/ctype_space.h: Likewise.
11458         * lib/unictype/ctype_xdigit.h: Likewise.
11459         * lib/unictype/mirror.h: Likewise.
11460         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11461         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11462         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11463         * lib/unictype/pr_bidi_control.h: Likewise.
11464         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11465         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11466         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11467         * lib/unictype/pr_bidi_pdf.h: Likewise.
11468         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11469         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11470         * lib/unictype/pr_dash.h: Likewise.
11471         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11472         * lib/unictype/pr_diacritic.h: Likewise.
11473         * lib/unictype/pr_extender.h: Likewise.
11474         * lib/unictype/pr_hex_digit.h: Likewise.
11475         * lib/unictype/pr_hyphen.h: Likewise.
11476         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11477         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11478         * lib/unictype/pr_ignorable_control.h: Likewise.
11479         * lib/unictype/pr_iso_control.h: Likewise.
11480         * lib/unictype/pr_join_control.h: Likewise.
11481         * lib/unictype/pr_left_of_pair.h: Likewise.
11482         * lib/unictype/pr_line_separator.h: Likewise.
11483         * lib/unictype/pr_logical_order_exception.h: Likewise.
11484         * lib/unictype/pr_non_break.h: Likewise.
11485         * lib/unictype/pr_not_a_character.h: Likewise.
11486         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11487         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11488         * lib/unictype/pr_other_id_start.h: Likewise.
11489         * lib/unictype/pr_other_lowercase.h: Likewise.
11490         * lib/unictype/pr_other_uppercase.h: Likewise.
11491         * lib/unictype/pr_paired_punctuation.h: Likewise.
11492         * lib/unictype/pr_paragraph_separator.h: Likewise.
11493         * lib/unictype/pr_pattern_syntax.h: Likewise.
11494         * lib/unictype/pr_pattern_white_space.h: Likewise.
11495         * lib/unictype/pr_private_use.h: Likewise.
11496         * lib/unictype/pr_quotation_mark.h: Likewise.
11497         * lib/unictype/pr_radical.h: Likewise.
11498         * lib/unictype/pr_soft_dotted.h: Likewise.
11499         * lib/unictype/pr_space.h: Likewise.
11500         * lib/unictype/pr_titlecase.h: Likewise.
11501         * lib/unictype/pr_variation_selector.h: Likewise.
11502         * lib/unictype/pr_white_space.h: Likewise.
11503         * lib/unictype/pr_zero_width.h: Likewise.
11504         * lib/unictype/sy_c_ident.h: Likewise.
11505         * lib/unictype/sy_c_whitespace.h: Likewise.
11506         * lib/unictype/sy_java_whitespace.h: Likewise.
11507         * lib/uninorm/composition-table.gperf: Likewise.
11508         * lib/uninorm/decomposition-table1.h: Likewise.
11509         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11510         LB8.
11511         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11512         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11513         * modules/unictype/*: Bump version number of expected libunistring
11514         version.
11515
11516 2011-01-09  Bruno Haible  <bruno@clisp.org>
11517
11518         Update to Unicode 5.2.0.
11519         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11520         trailing whitespace removed.
11521
11522 2011-01-09  Bruno Haible  <bruno@clisp.org>
11523
11524         New Unicode character properties, from Unicode 5.2.0.
11525         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11526         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11527         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11528         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11529         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11530         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11531         uc_is_property_cased, uc_is_property_case_ignorable,
11532         uc_is_property_changes_when_lowercased,
11533         uc_is_property_changes_when_uppercased,
11534         uc_is_property_changes_when_titlecased,
11535         uc_is_property_changes_when_casefolded,
11536         uc_is_property_changes_when_casemapped): New declarations.
11537         * lib/unictype/pr_byname.gperf: Add the new properties.
11538         * modules/unictype/property-byname (Depends-on): Depend on the new
11539         properties modules.
11540         * modules/unictype/property-all (Depends-on): Likewise.
11541         * MODULES.html.sh (Unicode string functions): Add
11542         unictype/property-case-ignorable, unictype/property-cased,
11543         unictype/property-changes-when-casefolded,
11544         unictype/property-changes-when-casemapped,
11545         unictype/property-changes-when-lowercased,
11546         unictype/property-changes-when-titlecased,
11547         unictype/property-changes-when-uppercased.
11548
11549         New module 'unictype/property-changes-when-casemapped'.
11550         * modules/unictype/property-changes-when-casemapped: New file.
11551         * lib/unictype/pr_changes_when_casemapped.c: New file.
11552         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11553         generated by gen-uni-tables.
11554         * modules/unictype/property-changes-when-casemapped-tests: New file.
11555         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11556         automatically generated by gen-uni-tables.
11557
11558         New module 'unictype/property-changes-when-casefolded'.
11559         * modules/unictype/property-changes-when-casefolded: New file.
11560         * lib/unictype/pr_changes_when_casefolded.c: New file.
11561         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11562         generated by gen-uni-tables.
11563         * modules/unictype/property-changes-when-casefolded-tests: New file.
11564         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11565         automatically generated by gen-uni-tables.
11566
11567         New module 'unictype/property-changes-when-titlecased'.
11568         * modules/unictype/property-changes-when-titlecased: New file.
11569         * lib/unictype/pr_changes_when_titlecased.c: New file.
11570         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11571         generated by gen-uni-tables.
11572         * modules/unictype/property-changes-when-titlecased-tests: New file.
11573         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11574         automatically generated by gen-uni-tables.
11575
11576         New module 'unictype/property-changes-when-uppercased'.
11577         * modules/unictype/property-changes-when-uppercased: New file.
11578         * lib/unictype/pr_changes_when_uppercased.c: New file.
11579         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11580         generated by gen-uni-tables.
11581         * modules/unictype/property-changes-when-uppercased-tests: New file.
11582         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11583         automatically generated by gen-uni-tables.
11584
11585         New module 'unictype/property-changes-when-lowercased'.
11586         * modules/unictype/property-changes-when-lowercased: New file.
11587         * lib/unictype/pr_changes_when_lowercased.c: New file.
11588         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11589         generated by gen-uni-tables.
11590         * modules/unictype/property-changes-when-lowercased-tests: New file.
11591         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11592         automatically generated by gen-uni-tables.
11593
11594         New module 'unictype/property-case-ignorable'.
11595         * modules/unictype/property-case-ignorable: New file.
11596         * lib/unictype/pr_case_ignorable.c: New file.
11597         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11598         by gen-uni-tables.
11599         * modules/unictype/property-case-ignorable-tests: New file.
11600         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11601         generated by gen-uni-tables.
11602
11603         New module 'unictype/property-cased'.
11604         * modules/unictype/property-cased: New file.
11605         * lib/unictype/pr_cased.c: New file.
11606         * lib/unictype/pr_cased.h: New file, automatically generated by
11607         gen-uni-tables.
11608         * modules/unictype/property-cased-tests: New file.
11609         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11610         gen-uni-tables.
11611
11612 2011-01-09  Bruno Haible  <bruno@clisp.org>
11613
11614         Update to Unicode 5.2.0.
11615         * lib/gen-uni-tables.c (output_predicate, output_category,
11616         output_combclass, output_bidi_category, output_decimal_digit_test,
11617         output_decimal_digit, output_digit_test, output_digit,
11618         output_numeric_test, output_numeric, output_mirror, output_scripts,
11619         output_scripts_byname, output_blocks, output_ident_category): Fix
11620         comment header.
11621         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11622         get_wbp.
11623         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11624         items.
11625         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11626         Changes_When_Lowercased, Changes_When_Uppercased,
11627         Changes_When_Titlecased, Changes_When_Casefolded,
11628         Changes_When_Casemapped.
11629         (is_property_alphabetic, is_property_default_ignorable_code_point):
11630         Update for Unicode 5.2.0.
11631         (is_property_cased, is_property_case_ignorable,
11632         is_property_changes_when_lowercased,
11633         is_property_changes_when_uppercased,
11634         is_property_changes_when_titlecased,
11635         is_property_changes_when_casefolded,
11636         is_property_changes_when_casemapped): New functions.
11637         (output_properties): Output also the properties cased, case_ignorable,
11638         changes_when_lowercased, changes_when_uppercased,
11639         changes_when_titlecased, changes_when_casefolded,
11640         changes_when_casemapped.
11641         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11642         Unicode TR#11 revision 17 -> 19.
11643         (LBP_CP): New enumeration value.
11644         (LBP_*): Adjust values accordingly.
11645         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11646         TR#14 revision 22 -> 24.
11647         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11648         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11649         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11650         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11651         is_WBP_MIDLETTER.
11652         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11653         the code1 and code2 of each composition rule.
11654         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11655         * lib/unicase/ignorable.h: Likewise.
11656         * lib/unicase/tocasefold.h: Likewise.
11657         * lib/unicase/tolower.h: Likewise.
11658         * lib/unicase/totitle.h: Likewise.
11659         * lib/unicase/toupper.h: Likewise.
11660         * lib/unictype/bidi_of.h: Likewise.
11661         * lib/unictype/blocks.h: Likewise.
11662         * lib/unictype/categ_C.h: Likewise.
11663         * lib/unictype/categ_Cf.h: Likewise.
11664         * lib/unictype/categ_Cn.h: Likewise.
11665         * lib/unictype/categ_L.h: Likewise.
11666         * lib/unictype/categ_Ll.h: Likewise.
11667         * lib/unictype/categ_Lm.h: Likewise.
11668         * lib/unictype/categ_Lo.h: Likewise.
11669         * lib/unictype/categ_Lu.h: Likewise.
11670         * lib/unictype/categ_M.h: Likewise.
11671         * lib/unictype/categ_Mc.h: Likewise.
11672         * lib/unictype/categ_Mn.h: Likewise.
11673         * lib/unictype/categ_N.h: Likewise.
11674         * lib/unictype/categ_Nd.h: Likewise.
11675         * lib/unictype/categ_Nl.h: Likewise.
11676         * lib/unictype/categ_No.h: Likewise.
11677         * lib/unictype/categ_P.h: Likewise.
11678         * lib/unictype/categ_Pd.h: Likewise.
11679         * lib/unictype/categ_Po.h: Likewise.
11680         * lib/unictype/categ_S.h: Likewise.
11681         * lib/unictype/categ_Sc.h: Likewise.
11682         * lib/unictype/categ_So.h: Likewise.
11683         * lib/unictype/categ_of.h: Likewise.
11684         * lib/unictype/combining.h: Likewise.
11685         * lib/unictype/ctype_alnum.h: Likewise.
11686         * lib/unictype/ctype_alpha.h: Likewise.
11687         * lib/unictype/ctype_graph.h: Likewise.
11688         * lib/unictype/ctype_lower.h: Likewise.
11689         * lib/unictype/ctype_print.h: Likewise.
11690         * lib/unictype/ctype_punct.h: Likewise.
11691         * lib/unictype/ctype_upper.h: Likewise.
11692         * lib/unictype/decdigit.h: Likewise.
11693         * lib/unictype/digit.h: Likewise.
11694         * lib/unictype/numeric.h: Likewise.
11695         * lib/unictype/pr_alphabetic.h: Likewise.
11696         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11698         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11703         * lib/unictype/pr_combining.h: Likewise.
11704         * lib/unictype/pr_composite.h: Likewise.
11705         * lib/unictype/pr_currency_symbol.h: Likewise.
11706         * lib/unictype/pr_dash.h: Likewise.
11707         * lib/unictype/pr_decimal_digit.h: Likewise.
11708         * lib/unictype/pr_deprecated.h: Likewise.
11709         * lib/unictype/pr_diacritic.h: Likewise.
11710         * lib/unictype/pr_extender.h: Likewise.
11711         * lib/unictype/pr_grapheme_base.h: Likewise.
11712         * lib/unictype/pr_grapheme_extend.h: Likewise.
11713         * lib/unictype/pr_grapheme_link.h: Likewise.
11714         * lib/unictype/pr_id_continue.h: Likewise.
11715         * lib/unictype/pr_id_start.h: Likewise.
11716         * lib/unictype/pr_ideographic.h: Likewise.
11717         * lib/unictype/pr_ignorable_control.h: Likewise.
11718         * lib/unictype/pr_logical_order_exception.h: Likewise.
11719         * lib/unictype/pr_lowercase.h: Likewise.
11720         * lib/unictype/pr_numeric.h: Likewise.
11721         * lib/unictype/pr_other_alphabetic.h: Likewise.
11722         * lib/unictype/pr_punctuation.h: Likewise.
11723         * lib/unictype/pr_sentence_terminal.h: Likewise.
11724         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11725         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11726         * lib/unictype/pr_unified_ideograph.h: Likewise.
11727         * lib/unictype/pr_uppercase.h: Likewise.
11728         * lib/unictype/pr_xid_continue.h: Likewise.
11729         * lib/unictype/pr_xid_start.h: Likewise.
11730         * lib/unictype/pr_zero_width.h: Likewise.
11731         * lib/unictype/scripts.h: Likewise.
11732         * lib/unictype/scripts_byname.gperf: Likewise.
11733         * lib/unictype/sy_java_ident.h: Likewise.
11734         * lib/unigbrk/gbrkprop.h: Likewise.
11735         * lib/unilbrk/lbrkprop1.h: Likewise.
11736         * lib/unilbrk/lbrkprop2.h: Likewise.
11737         * lib/unilbrk/lbrktables.h: Likewise.
11738         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11739         LBP_CP. Implement rule LB30.
11740         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11741         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11742         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11743         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11744         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11745         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11746         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11747         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11748         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11749         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11750         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11751         bits instead of 16 bits in the code1 and code2 of each composition
11752         rule.
11753         (uc_composition): Update for Unicode 5.2.0.
11754         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11755         * lib/uninorm/decomposition-table2.h: Likewise.
11756         * lib/uniwbrk/wbrkprop.h: Likewise.
11757         * tests/unicase/test-cased.c: Likewise.
11758         * tests/unicase/test-ignorable.c: Likewise.
11759         * tests/unicase/test-uc_tolower.c: Likewise.
11760         * tests/unicase/test-uc_totitle.c: Likewise.
11761         * tests/unicase/test-uc_toupper.c: Likewise.
11762         * tests/unictype/test-categ_C.c: Likewise.
11763         * tests/unictype/test-categ_Cf.c: Likewise.
11764         * tests/unictype/test-categ_Cn.c: Likewise.
11765         * tests/unictype/test-categ_L.c: Likewise.
11766         * tests/unictype/test-categ_Ll.c: Likewise.
11767         * tests/unictype/test-categ_Lm.c: Likewise.
11768         * tests/unictype/test-categ_Lo.c: Likewise.
11769         * tests/unictype/test-categ_Lu.c: Likewise.
11770         * tests/unictype/test-categ_M.c: Likewise.
11771         * tests/unictype/test-categ_Mc.c: Likewise.
11772         * tests/unictype/test-categ_Mn.c: Likewise.
11773         * tests/unictype/test-categ_N.c: Likewise.
11774         * tests/unictype/test-categ_Nd.c: Likewise.
11775         * tests/unictype/test-categ_Nl.c: Likewise.
11776         * tests/unictype/test-categ_No.c: Likewise.
11777         * tests/unictype/test-categ_P.c: Likewise.
11778         * tests/unictype/test-categ_Pd.c: Likewise.
11779         * tests/unictype/test-categ_Po.c: Likewise.
11780         * tests/unictype/test-categ_S.c: Likewise.
11781         * tests/unictype/test-categ_Sc.c: Likewise.
11782         * tests/unictype/test-categ_So.c: Likewise.
11783         * tests/unictype/test-ctype_alnum.c: Likewise.
11784         * tests/unictype/test-ctype_alpha.c: Likewise.
11785         * tests/unictype/test-ctype_graph.c: Likewise.
11786         * tests/unictype/test-ctype_lower.c: Likewise.
11787         * tests/unictype/test-ctype_print.c: Likewise.
11788         * tests/unictype/test-ctype_punct.c: Likewise.
11789         * tests/unictype/test-ctype_upper.c: Likewise.
11790         * tests/unictype/test-decdigit.h: Likewise.
11791         * tests/unictype/test-digit.h: Likewise.
11792         * tests/unictype/test-numeric.h: Likewise.
11793         * tests/unictype/test-pr_alphabetic.c: Likewise.
11794         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11795         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11796         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11797         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11798         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11799         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11800         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11801         * tests/unictype/test-pr_combining.c: Likewise.
11802         * tests/unictype/test-pr_composite.c: Likewise.
11803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11804         * tests/unictype/test-pr_dash.c: Likewise.
11805         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11806         * tests/unictype/test-pr_deprecated.c: Likewise.
11807         * tests/unictype/test-pr_diacritic.c: Likewise.
11808         * tests/unictype/test-pr_extender.c: Likewise.
11809         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11810         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11811         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11812         * tests/unictype/test-pr_id_continue.c: Likewise.
11813         * tests/unictype/test-pr_id_start.c: Likewise.
11814         * tests/unictype/test-pr_ideographic.c: Likewise.
11815         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11816         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11817         * tests/unictype/test-pr_lowercase.c: Likewise.
11818         * tests/unictype/test-pr_numeric.c: Likewise.
11819         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11820         * tests/unictype/test-pr_punctuation.c: Likewise.
11821         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11822         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11823         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11824         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11825         * tests/unictype/test-pr_uppercase.c: Likewise.
11826         * tests/unictype/test-pr_xid_continue.c: Likewise.
11827         * tests/unictype/test-pr_xid_start.c: Likewise.
11828         * tests/unictype/test-pr_zero_width.c: Likewise.
11829         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11830         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11831         changed behaviour: line breaking is now disallowed between a letter
11832         or '=' and '('.
11833         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11834         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11835         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11836         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11837         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11838         lib/uniwidth/width.c.
11839         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11840         without comments, but with the original copyright notice.
11841         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11842         changes.
11843         * lib/unictype/categ_Cc.h: Likewise.
11844         * lib/unictype/categ_Co.h: Likewise.
11845         * lib/unictype/categ_Cs.h: Likewise.
11846         * lib/unictype/categ_Lt.h: Likewise.
11847         * lib/unictype/categ_Me.h: Likewise.
11848         * lib/unictype/categ_Pc.h: Likewise.
11849         * lib/unictype/categ_Pe.h: Likewise.
11850         * lib/unictype/categ_Pf.h: Likewise.
11851         * lib/unictype/categ_Pi.h: Likewise.
11852         * lib/unictype/categ_Ps.h: Likewise.
11853         * lib/unictype/categ_Sk.h: Likewise.
11854         * lib/unictype/categ_Sm.h: Likewise.
11855         * lib/unictype/categ_Z.h: Likewise.
11856         * lib/unictype/categ_Zl.h: Likewise.
11857         * lib/unictype/categ_Zp.h: Likewise.
11858         * lib/unictype/categ_Zs.h: Likewise.
11859         * lib/unictype/ctype_blank.h: Likewise.
11860         * lib/unictype/ctype_cntrl.h: Likewise.
11861         * lib/unictype/ctype_digit.h: Likewise.
11862         * lib/unictype/ctype_space.h: Likewise.
11863         * lib/unictype/ctype_xdigit.h: Likewise.
11864         * lib/unictype/mirror.h: Likewise.
11865         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11866         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11867         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11868         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11869         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11870         * lib/unictype/pr_bidi_control.h: Likewise.
11871         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11872         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11873         * lib/unictype/pr_bidi_pdf.h: Likewise.
11874         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11875         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11876         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11877         * lib/unictype/pr_format_control.h: Likewise.
11878         * lib/unictype/pr_hex_digit.h: Likewise.
11879         * lib/unictype/pr_hyphen.h: Likewise.
11880         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11881         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11882         * lib/unictype/pr_iso_control.h: Likewise.
11883         * lib/unictype/pr_join_control.h: Likewise.
11884         * lib/unictype/pr_left_of_pair.h: Likewise.
11885         * lib/unictype/pr_line_separator.h: Likewise.
11886         * lib/unictype/pr_math.h: Likewise.
11887         * lib/unictype/pr_non_break.h: Likewise.
11888         * lib/unictype/pr_not_a_character.h: Likewise.
11889         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11890         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11891         * lib/unictype/pr_other_id_continue.h: Likewise.
11892         * lib/unictype/pr_other_id_start.h: Likewise.
11893         * lib/unictype/pr_other_lowercase.h: Likewise.
11894         * lib/unictype/pr_other_math.h: Likewise.
11895         * lib/unictype/pr_other_uppercase.h: Likewise.
11896         * lib/unictype/pr_paired_punctuation.h: Likewise.
11897         * lib/unictype/pr_paragraph_separator.h: Likewise.
11898         * lib/unictype/pr_pattern_syntax.h: Likewise.
11899         * lib/unictype/pr_pattern_white_space.h: Likewise.
11900         * lib/unictype/pr_private_use.h: Likewise.
11901         * lib/unictype/pr_quotation_mark.h: Likewise.
11902         * lib/unictype/pr_radical.h: Likewise.
11903         * lib/unictype/pr_soft_dotted.h: Likewise.
11904         * lib/unictype/pr_space.h: Likewise.
11905         * lib/unictype/pr_titlecase.h: Likewise.
11906         * lib/unictype/pr_variation_selector.h: Likewise.
11907         * lib/unictype/pr_white_space.h: Likewise.
11908         * lib/unictype/sy_c_ident.h: Likewise.
11909         * lib/unictype/sy_c_whitespace.h: Likewise.
11910         * lib/unictype/sy_java_whitespace.h: Likewise.
11911         * modules/uni*/*: Bump version number of expected libunistring version.
11912         Reported by Simon Josefsson.
11913
11914 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11915
11916         useless-if-before-free: fix typo in --help and make the internal,
11917         automatic version date update process work once again.
11918         --help output contained a NUL character instead of the
11919         backslash-zero that was intended.  Also, the "must lie within
11920         the first 8 lines" line is on line 9, and hence not getting
11921         automatically updated.
11922         * build-aux/useless-if-before-free: Fix the former by adding a
11923         backslash, and the latter by condensing the three lines of what-it-does
11924         to a single line, leaving one line of slack for the future.
11925
11926 2011-01-09  Bruno Haible  <bruno@clisp.org>
11927
11928         uniwidth/width: Fix width of U+1D173..U+1D17A.
11929         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11930         symbolic_width, output_width_property_test): New functions.
11931         (main): Invoke output_nonspacing_property, output_width_property_test.
11932         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11933         U+1D173..U+1D17A.
11934         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11935         1.
11936         * modules/uniwidth/*: Bump version number of expected libunistring
11937         version.
11938         * modules/unilbrk/*: Likewise.
11939
11940 2011-01-08  Bruno Haible  <bruno@clisp.org>
11941
11942         uninorm tests: Preserve copyright of Unicode data file.
11943         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11944         Mention modifications.
11945
11946 2011-01-08  Bruno Haible  <bruno@clisp.org>
11947
11948         gen-uni-tables: Prepare for Unicode 5.2.0.
11949         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11950         (debug_output_lbp, output_lbp): Update.
11951
11952 2011-01-08  Bruno Haible  <bruno@clisp.org>
11953
11954         unilbrk: Clarify gen-uni-tables.c code.
11955         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11956         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11957         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11958
11959 2011-01-07  Bruno Haible  <bruno@clisp.org>
11960
11961         strtod: Restore errno when successfully parsing Infinity or NaN.
11962         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11963         restore the original errno.
11964
11965 2011-01-07  Bruno Haible  <bruno@clisp.org>
11966
11967         remove test: Avoid failure on HP-UX 11.
11968         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11969
11970 2011-01-07  Bruno Haible  <bruno@clisp.org>
11971
11972         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11973         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11974         error code.
11975
11976 2011-01-07  Pádraig Brady <P@draigBrady.com>
11977
11978         ignore-value: fixup comments, and add Eric Blake
11979         as an author since he rewrote the macros.
11980         * lib/ignore-value.h (ignore_value):  State that
11981         we now support aggregates.  Also specify exactly
11982         when the GCC warn_unused_result feature was added.
11983
11984 2011-01-06  Eric Blake  <eblake@redhat.com>
11985
11986         ignore-value: support aggregate types
11987         * lib/ignore-value.h (ignore_value): Provide separate gcc
11988         definition.
11989         * modules/ignore-value-tests: New test module.
11990         * tests/test-ignore-value.c: New test.
11991
11992         maint.mk: improve sc_prohibit_strcmp regex
11993         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11994         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11995         definition of STRNEQ.
11996
11997         signal: work around Haiku issue with SIGBUS
11998         * lib/siglist.h: Add comment.
11999         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12000         strsignal's favoring of SIGSEGV.
12001         * tests/test-signal.c (main): Avoid test failure.
12002         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12003         Reported by Scott McCreary.
12004
12005         maint.mk: add pre-release check to ensure submodule commits are public
12006         * top/maint.mk (public-submodule-commit): New rule.
12007         (submodule-checks): New variable.
12008         (alpha beta stable): Depend on the variable.
12009
12010 2011-01-05  Pádraig Brady <P@draigBrady.com>
12011         and Jim Meyering  <meyering@redhat.com>
12012
12013         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12014         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12015         (ATTRIBUTE_DEPRECATED): Define.
12016         (_ignore_case): New function.
12017         (ignore_value): New macro, to replace the old function.
12018         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12019         * modules/ignore-value (Depends-on): Add stdint.
12020
12021 2011-01-04  Eric Blake  <eblake@redhat.com>
12022
12023         doc: regenerate INSTALL
12024         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12025         @firstparagraphindent support, now that autoconf dropped it.
12026         (INSTALL_PRELUDE): Reinstate old macro.
12027         * doc/install.texi: Resync from autoconf.
12028         * doc/INSTALL: Reflect recent autoconf update.
12029         * doc/INSTALL.ISO: Likewise.
12030         * doc/INSTALL.UTF-8: Likewise.
12031         Reported by Karl Berry.
12032
12033 2011-01-04  Bruce Korb  <address@hidden>
12034
12035         git-version-gen: avoid a sub-shell
12036         * build-aux/git-version-gen: Redirect stderr in `...` via
12037         "exec 2>...", rather than via an added sub-shell.
12038
12039 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12040
12041         git-version-gen: use (...) rather than sh -c '...'
12042         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12043         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12044
12045 2011-01-03  Jim Meyering  <meyering@redhat.com>
12046
12047         git-version-gen: convert leading TABs to spaces
12048         * build-aux/git-version-gen: Expand leading TABs.
12049
12050         git-version-gen: handle failed "git rev-list"
12051         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12052         from git and proceeding as if it had succeeded but printed no SHA1
12053         checksums, suppress the diagnostic and handle the failure.
12054         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12055
12056         git-version-gen: include command name in one more diagnostic
12057         * build-aux/git-version-gen: When the required .tarball-version file
12058         was missing or unreadable, you might see the diagnostic from "cat",
12059         but no trace of the name of the invoking script.  Now, you still see
12060         the diagnostic from cat, but also get one from "git-version-gen: ".
12061         Inspired by a patch from Bruce Korb.
12062
12063         update-copyright: adjust test to match changed code
12064         * tests/test-update-copyright.sh: Change test's expected output
12065         to match new actual output.
12066
12067 2011-01-02  Bruno Haible  <bruno@clisp.org>
12068
12069         getlogin_r: Avoid test failure on HP-UX 11.
12070         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12071         ERANGE when the second argument is zero.
12072         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12073         portability problem.
12074
12075 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12076
12077         * build-aux/update-copyright: doc Simon's changes
12078
12079 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12080
12081         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12082         environment variable.
12083
12084 2011-01-02  Bruno Haible  <bruno@clisp.org>
12085
12086         unigbrk: Avoid gcc warnings.
12087         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12088         unused variable.
12089         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12090         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12091         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12092         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12093         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12094         Change type of first argument to 'const char *'.
12095         (main): Remove unused variable.
12096         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12097         type of first argument to 'const char *'.
12098         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12099         Likewise.
12100         (main): Change type of variable 's'.
12101         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12102         to 'int'.
12103
12104 2011-01-02  Bruno Haible  <bruno@clisp.org>
12105
12106         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12107         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12108         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12109         bug.
12110         * lib/pwrite.c: Undo 2010-12-31 patch.
12111         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12112
12113 2011-01-02  Bruno Haible  <bruno@clisp.org>
12114
12115         pread: Fix test whether it works.
12116         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12117
12118 2011-01-02  Bruno Haible  <bruno@clisp.org>
12119
12120         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12121         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12122         ends in "6". Don't require a specific month name. Try also the locale
12123         names found on HP-UX 11 and Solaris 7.
12124
12125 2011-01-02  Bruno Haible  <bruno@clisp.org>
12126
12127         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12128         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12129         C linkage.
12130         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12131
12132 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12133
12134         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12135         for consistency, since the "cluster" term is not used elsewhere.
12136         * lib/unigbrk.in.h: Update name.
12137         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12138         * lib/unigbrk/u16-grapheme-next.c: Update name.
12139         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12140         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12141         * lib/unigbrk/u32-grapheme-next.c: Update name.
12142         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12143         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12144         * lib/unigbrk/u8-grapheme-next.c: Update name.
12145         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12146         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12147         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12148         Suggested by Bruno Haible.
12149
12150 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12151
12152         Remove module 'u8-grapheme-len' as too redundant with
12153         'u8-grapheme-next'.
12154         * modules/unigbrk/u8-grapheme-len: Delete file.
12155         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12156         * lib/unigbrk.in.h: Remove prototype for deleted function.
12157         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12158         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12159
12160         Remove module 'u16-grapheme-len' as too redundant with
12161         'u16-grapheme-next'.
12162         * modules/unigbrk/u16-grapheme-len: Delete file.
12163         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12164         * lib/unigbrk.in.h: Remove prototype for deleted function.
12165         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12166         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12167
12168         Remove module 'u32-grapheme-len' as too redundant with
12169         'u32-grapheme-next'.
12170         * modules/unigbrk/u32-grapheme-len: Delete file.
12171         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12172         * lib/unigbrk.in.h: Remove prototype for deleted function.
12173         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12174         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12175
12176         Suggested by Bruno Haible.
12177
12178 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12179
12180         * unigbrk.in.h: Fix typo: "ben" => "been".
12181         Reported by Bruno Haible.
12182
12183 2011-01-01  Jim Meyering  <meyering@redhat.com>
12184
12185         maint: update almost all copyright ranges to include 2011
12186         Run the new "make update-copyright" rule.
12187
12188 2011-01-01  Jim Meyering  <meyering@redhat.com>
12189
12190         maint: update-copyright: exempt doc/INSTALL*
12191         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12192         since they are generated.  Suggested by Bruno Haible.
12193
12194 2011-01-01  Jim Meyering  <meyering@redhat.com>
12195
12196         maint: refine the update-copyright rule
12197         * Makefile (update-copyright): Also exclude any file that includes
12198         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12199         code that merely generates the comment.
12200
12201 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12202
12203         New module 'u8-grapheme-len'.
12204         * modules/unigbrk/u8-grapheme-len: New file.
12205         * modules/unigbrk/u8-grapheme-len-tests: New file.
12206         * lib/unigbrk.in.h: Add prototype for new function.
12207         * lib/unigbrk/u8-grapheme-len.c: New file.
12208         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12209
12210         New module 'u16-grapheme-len'.
12211         * modules/unigbrk/u16-grapheme-len: New file.
12212         * modules/unigbrk/u16-grapheme-len-tests: New file.
12213         * lib/unigbrk.in.h: Add prototype for new function.
12214         * lib/unigbrk/u16-grapheme-len.c: New file.
12215         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12216
12217         New module 'u32-grapheme-len'.
12218         * modules/unigbrk/u32-grapheme-len: New file.
12219         * modules/unigbrk/u32-grapheme-len-tests: New file.
12220         * lib/unigbrk.in.h: Add prototype for new function.
12221         * lib/unigbrk/u32-grapheme-len.c: New file.
12222         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12223
12224         New module 'u8-grapheme-next'.
12225         * modules/unigbrk/u8-grapheme-next: New file.
12226         * modules/unigbrk/u8-grapheme-next-tests: New file.
12227         * lib/unigbrk.in.h: Add prototype for new function.
12228         * lib/unigbrk/u8-grapheme-next.c: New file.
12229         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12230
12231         New module 'u16-grapheme-next'.
12232         * modules/unigbrk/u16-grapheme-next: New file.
12233         * modules/unigbrk/u16-grapheme-next-tests: New file.
12234         * lib/unigbrk.in.h: Add prototype for new function.
12235         * lib/unigbrk/u16-grapheme-next.c: New file.
12236         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12237
12238         New module 'u32-grapheme-next'.
12239         * modules/unigbrk/u32-grapheme-next: New file.
12240         * modules/unigbrk/u32-grapheme-next-tests: New file.
12241         * lib/unigbrk.in.h: Add prototype for new function.
12242         * lib/unigbrk/u32-grapheme-next.c: New file.
12243         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12244
12245         New module 'u8-grapheme-prev'.
12246         * modules/unigbrk/u8-grapheme-prev: New file.
12247         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12248         * lib/unigbrk.in.h: Add prototype for new function.
12249         * lib/unigbrk/u8-grapheme-prev.c: New file.
12250         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12251
12252         New module 'u16-grapheme-prev'.
12253         * modules/unigbrk/u16-grapheme-prev: New file.
12254         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12255         * lib/unigbrk.in.h: Add prototype for new function.
12256         * lib/unigbrk/u16-grapheme-prev.c: New file.
12257         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12258
12259         New module 'u32-grapheme-prev'.
12260         * modules/unigbrk/u32-grapheme-prev: New file.
12261         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12262         * lib/unigbrk.in.h: Add prototype for new function.
12263         * lib/unigbrk/u32-grapheme-prev.c: New file.
12264         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12265
12266         New module 'u8-grapheme-breaks'.
12267         * modules/unigbrk/u8-grapheme-breaks: New file.
12268         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12269         * lib/unigbrk.in.h: Add prototype for new function.
12270         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12271         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12272
12273         New module 'u16-grapheme-breaks'.
12274         * modules/unigbrk/u16-grapheme-breaks: New file.
12275         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12276         * lib/unigbrk.in.h: Add prototype for new function.
12277         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12278         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12279
12280         New module 'u32-grapheme-breaks'.
12281         * modules/unigbrk/u32-grapheme-breaks: New file.
12282         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12283         * lib/unigbrk.in.h: Add prototype for new function.
12284         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12285         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12286
12287         New module 'ulc-grapheme-breaks'.
12288         * modules/unigbrk/ulc-grapheme-breaks: New file.
12289         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12290         * m4/locale-ar.m4: New file.
12291         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12292         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12293         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12294
12295 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12296
12297         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12298         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12299         modified how this file was generated before I initially submitted
12300         the module, but failed to regenerate it.  This meant that several
12301         of the level2 entries were wrong.
12302         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12303         Remove the division-by-2 that is folded into the table now that
12304         gbrkprop.h has been regenerated properly.  Now -1 entries are
12305         handled correctly.
12306
12307         New module 'unigbrk/uc-gbrk-prop-tests'.
12308         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12309         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12310         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12311         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12312
12313 2011-01-01  Bruno Haible  <bruno@clisp.org>
12314
12315         Avoid use of hexadecimal escapes.
12316         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12317         instead of hexadecimal escapes.
12318
12319 2011-01-01  Jim Meyering  <meyering@redhat.com>
12320
12321         maint: new rule to update copyright year ranges
12322         * Makefile (update-copyright): New rule.
12323
12324         maint: indent with TABs in Makefile
12325         * Makefile: Expand leading sequences of spaces to TABs
12326
12327         version-etc: update the copyright year it reports
12328         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12329
12330 2010-12-31  Bruno Haible  <bruno@clisp.org>
12331
12332         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12333         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12334         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12335         zero.
12336
12337 2010-12-31  Bruno Haible  <bruno@clisp.org>
12338
12339         pwrite: Work around HP-UX 11.11 bug.
12340         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12341         works and set REPLACE_PWRITE if not.
12342         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12343         function.
12344         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12345
12346 2010-12-31  Bruno Haible  <bruno@clisp.org>
12347
12348         pread: Work around HP-UX 11 bugs.
12349         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12350         and set REPLACE_PREAD if not.
12351         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12352
12353 2010-12-31  Eric Blake  <eblake@redhat.com>
12354
12355         nl_langinfo: fix YESEXPR on Irix 6.5
12356         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12357         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12358         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12359         it.
12360
12361 2010-12-31  Bruno Haible  <bruno@clisp.org>
12362
12363         iconv: Document HP-UX 11 bug.
12364         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12365
12366 2010-12-31  Bruno Haible  <bruno@clisp.org>
12367
12368         ldexpl: Fix link error on HP-UX 11.
12369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12370         LDEXPL_LIBM, using $ISNANL_LIBM.
12371
12372 2010-12-31  Eric Blake  <eblake@redhat.com>
12373
12374         ftello: avoid compilation failure with SunStudio c89
12375         * lib/ftello.c (ftello): Use lseek, not llseek.
12376
12377         tests: avoid failing coreutils tests on cygwin
12378         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12379         (create_exe_shims_): Return 0 when skipping.
12380
12381 2010-12-31  Bruno Haible  <bruno@clisp.org>
12382
12383         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12384         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12385
12386 2010-12-31  Bruno Haible  <bruno@clisp.org>
12387
12388         waitpid: Fix link error in C++ mode.
12389         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12390
12391 2010-12-31  Bruno Haible  <bruno@clisp.org>
12392
12393         isnan: Use GCC built-ins when possible.
12394         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12395         __builtin_isnan.
12396         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12397         (isnan): Define using GCC built-ins for GCC >= 4.0.
12398
12399 2010-12-31  Bruno Haible  <bruno@clisp.org>
12400
12401         isnand: Fix mistake.
12402         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12403         __builtin_isnand.
12404
12405 2010-12-31  Bruno Haible  <bruno@clisp.org>
12406
12407         open: Avoid C++ error on HP-UX 11.
12408         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12409
12410 2010-12-31  Bruno Haible  <bruno@clisp.org>
12411
12412         time_r: Add missing declarations on HP-UX 11.
12413         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12414         instead of HAVE_LOCALTIME_R.
12415         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12416         HAVE_LOCALTIME_R always.
12417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12418         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12419         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12420         HAVE_LOCALTIME_R.
12421         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12422         * doc/posix-functions/localtime_r.texi: Likewise.
12423
12424 2010-12-29  Eric Blake  <eblake@redhat.com>
12425
12426         mountlist: tweak previous commit
12427         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12428         Reported by Paul Eggert.
12429
12430         mountlist: fix local drive detection on cygwin
12431         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12432         that works for cygwin.
12433
12434 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12435
12436         ftoastr, snprintf: ftoastr + snprintf module
12437         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12438         since the snprintf module now should be good enough here.
12439         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12440         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12441         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12442         GNULIB_SNPRINTF only for the test directory, and the latter
12443         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12444         seems to suffice by itself.
12445
12446 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12447
12448         alloca: one step towards thread-safety
12449         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12450         need for a static variable.  All callers changed.  This does not
12451         make the alloca replacement thread-safe, but it's one step.
12452
12453         tests: minor indenting change
12454         * tests/init.sh: Sync from coreutils housekeeping patch
12455         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12456         to keep lines within 80 columns.
12457
12458 2010-12-28  Jim Meyering  <meyering@redhat.com>
12459
12460         regex: don't infloop on persistent failing calloc
12461         * lib/regexec.c (build_trtable): Return failure indication upon
12462         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12463         In glibc, this was fixed for version 2.13:
12464         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12465
12466 2010-12-28  Bruno Haible  <bruno@clisp.org>
12467             Paul Eggert <eggert@cs.ucla.edu>
12468
12469         linkat: Make implementation robust against system behaviour variations.
12470         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12471         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12472         way, and to -2 if it needs a generic runtime test.
12473         * lib/linkat.c (solaris_optimized_link_immediate,
12474         solaris_optimized_link_follow): New functions.
12475         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12476         (check_same_link): Use it.
12477
12478 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12479
12480         New module 'unigbrk/base'.
12481         * modules/unigbrk/base: New file.
12482         * lib/unigbrk.in.h: New file.
12483
12484         New module 'unigbrk/uc-gbrk-prop'.
12485         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12486         * modules/unigbrk/uc-gbrk-prop: New file.
12487         * lib/unigbrk/gbrkprop.h: New file.
12488         * lib/unigbrk/uc-gbrk-prop.c: New file.
12489
12490         New module 'unigbrk/uc-is-grapheme-break'.
12491         * modules/unigbrk/uc-is-grapheme-break: New file.
12492         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12493         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12494         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12495         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12496         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12497
12498         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12499
12500 2010-12-27  Bruno Haible  <bruno@clisp.org>
12501
12502         linkat test: Avoid failure on Solaris 11 2010-11.
12503         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12504
12505 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12506
12507         utimens: work around glibc rounding bug on more platforms
12508         * lib/utimens.c (fdutimens): Work around rounding bug even if
12509         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12510         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12511
12512 2010-12-27  Bruno Haible  <bruno@clisp.org>
12513
12514         select tests: Improve comments.
12515         * tests/test-select.c (do_select): Add comments.
12516
12517 2010-12-27  Bruno Haible  <bruno@clisp.org>
12518
12519         select tests: Safer way of handling timeout.
12520         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12521         at every invocation.
12522
12523 2010-12-27  Bruno Haible  <bruno@clisp.org>
12524
12525         select tests: Use 'bool' where appropriate.
12526         * tests/test-select.c (connect_to_socket): Change argument type to
12527         'bool'.
12528
12529 2010-12-27  Bruno Haible  <bruno@clisp.org>
12530
12531         select tests: Use existing modules.
12532         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12533         (configure.ac): Don't test for unistd.h.
12534         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12535         declared in <unistd.h>.
12536
12537 2010-12-27  Bruno Haible  <bruno@clisp.org>
12538
12539         mbrtowc: Work around a Solaris 7 bug.
12540         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12541         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12542         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12543         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12544         MBRTOWC_NULL_ARG1_BUG.
12545         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12546         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12547         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12548         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12549
12550 2010-12-27  Jim Meyering  <meyering@redhat.com>
12551
12552         read-file.c: tweak syntax
12553         * lib/read-file.c (fread_file): Remove space after "*" in function
12554         definitions.
12555
12556 2010-12-27  Bruno Haible  <bruno@clisp.org>
12557
12558         times test: Avoid gcc warnings on OSF/1.
12559         * tests/test-times.c (main): Cast printf arguments from clock_t to
12560         'long int'.
12561
12562 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12563
12564         utimens: work around glibc rounding bug on older Linux kernels
12565         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12566         on Linux with a glibc whose utimes might not work, then work
12567         around a longstanding glibc bug involving rounding rather than
12568         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12570
12571 2010-12-26  Bruno Haible  <bruno@clisp.org>
12572
12573         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12574         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12575         _GL_CXXALIAS_SYS.
12576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12577
12578 2010-12-26  Bruno Haible  <bruno@clisp.org>
12579
12580         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12581         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12582         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12583         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12584         looking for the declaration.
12585         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12586         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12587         problem.
12588         * doc/posix-functions/inet_pton.texi: Likewise.
12589
12590 2010-12-26  Bruno Haible  <bruno@clisp.org>
12591
12592         arpa_inet: Use the common idioms with C++ support.
12593         * lib/arpa_inet.in.h: Include c++defs.h.
12594         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12595         support.
12596         * modules/arpa_inet (Depends-on): Add c++defs.
12597         (Makefile.am): Substitute the contents of c++defs.h.
12598         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12599         * modules/arpa_inet-c++-tests: New file.
12600         * tests/test-arpa_inet-c++.cc: New file.
12601
12602 2010-12-25  Bruno Haible  <bruno@clisp.org>
12603
12604         Fix more C++ link errors on Solaris 8.
12605         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12606         $(LIB_EACCESS).
12607         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12608         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12609         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12610         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12611         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12612
12613 2010-12-25  Bruno Haible  <bruno@clisp.org>
12614
12615         printf-posix: Fix link error when a non-GCC compiler is used.
12616         * lib/stdio.in.h (printf): When not using GCC, override printf
12617         correctly.
12618         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12619
12620 2010-12-25  Bruno Haible  <bruno@clisp.org>
12621
12622         strerror_r-posix: Update doc.
12623         * doc/posix-functions/strerror_r.texi: Update doc about the return
12624         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12625
12626 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         utimens: simplify the logic of the previous change
12629         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12630         This should not affect whether the test succeeds or fails.
12631
12632         utimens: configure better on hosts with NFS clock skew
12633         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12634         uses the clock of the local host.  It might use the clock of the
12635         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12636         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12637
12638 2010-12-25  Bruno Haible  <bruno@clisp.org>
12639
12640         ptsname test: Avoid failure on Solaris.
12641         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12642         open a pseudo-terminal; don't use BSD-style ptys.
12643         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12644
12645 2010-12-25  Bruno Haible  <bruno@clisp.org>
12646
12647         ptsname: Avoid ERANGE failure on some systems.
12648         * lib/ptsname.c (buffer): Increase size.
12649
12650 2010-12-25  Bruno Haible  <bruno@clisp.org>
12651
12652         rename, renameat: Avoid test failures at NFS mounted locations.
12653         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12654         so that subsequent mkdir calls succeed.
12655
12656 2010-12-25  Bruno Haible  <bruno@clisp.org>
12657
12658         iswblank: Fix C++ link error on Solaris 8.
12659         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12660         _GL_FUNCDECL_SYS.
12661
12662 2010-12-25  Bruno Haible  <bruno@clisp.org>
12663
12664         unistd: Fix C++ link error on Solaris 8.
12665         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12666
12667 2010-12-25  Bruno Haible  <bruno@clisp.org>
12668
12669         readlink doc: Mention an old glibc bug.
12670         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12671
12672 2010-12-25  Bruno Haible  <bruno@clisp.org>
12673
12674         fcntl-h: Fix for use of C++ on glibc systems.
12675         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12676         also on glibc systems in C++ mode.
12677         Reported by Gary V. Vaughan <gary@gnu.org>.
12678
12679 2010-12-25  Bruno Haible  <bruno@clisp.org>
12680
12681         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12682         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12683
12684 2010-12-25  Bruno Haible  <bruno@clisp.org>
12685
12686         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12687         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12688         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12689         test whether truncl works according to ISO C 99 with IEC 60559.
12690         * m4/truncl-ieee.m4: New file.
12691         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12692         m4/signbit.m4.
12693         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12694
12695 2010-12-25  Bruno Haible  <bruno@clisp.org>
12696
12697         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12698         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12699         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12700         test whether ceill works according to ISO C 99 with IEC 60559.
12701         * m4/ceill-ieee.m4: New file.
12702         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12703         m4/signbit.m4.
12704         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12705
12706 2010-12-25  Bruno Haible  <bruno@clisp.org>
12707
12708         Ensure all prerequisites of <wchar.h> are included.
12709         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12710         before <wchar.h>.
12711         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12712         gl_MBRLEN_NUL_RETVAL): Likewise.
12713         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12714         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12715         AC_FUNC_MBRTOWC): Likewise.
12716         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12717         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12718         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12719         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12720         Likewise.
12721         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12722         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12723         (gl_WCHAR_H): Improve comments.
12724         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12725
12726 2010-12-25  Bruno Haible  <bruno@clisp.org>
12727
12728         strtok_r: Fix C syntax error in autoconf macro.
12729         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12730         characters in test program.
12731
12732 2010-12-24  Bruno Haible  <bruno@clisp.org>
12733
12734         ceil, trunc, round: Fix gcc warnings.
12735         * lib/ceil.c (MIN): Undefine before redefining.
12736         * lib/trunc.c (MIN): Likewise.
12737         * lib/round.c (MIN): Likewise.
12738         Include <math.h> first.
12739
12740 2010-12-24  Bruno Haible  <bruno@clisp.org>
12741
12742         select tests: Avoid failures on OSF/1 5.1.
12743         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12744         failure of closing the last socket; it may fail with ECONNRESET.
12745
12746 2010-12-24  Eric Blake  <eblake@redhat.com>
12747
12748         stdint: avoid HP-UX 10.20 preprocessor bug
12749         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12750         than #if.
12751         * tests/test-floor2.c (main): Likewise.
12752         Reported by Peter O'Gorman.
12753
12754         pipe: make obsoletion transition easier
12755         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12756         * modules/pipe (Files): Include revived file.
12757         (Include): Drop reference, to mirror getdate's behavior.
12758
12759 2010-12-24  Bruno Haible  <bruno@clisp.org>
12760
12761         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12762         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12763         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12765
12766 2010-12-24  Bruno Haible  <bruno@clisp.org>
12767
12768         gethostname: Ensure declaration on NonStop Kernel.
12769         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12770         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12771
12772 2010-12-24  Bruno Haible  <bruno@clisp.org>
12773
12774         sys_select: Ensure all necessary types on NonStop Kernel.
12775         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12776         include <sys/time.h>.
12777         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12778         NonStop Kernel.
12779         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12780
12781 2010-12-24  Bruno Haible  <bruno@clisp.org>
12782
12783         sys_select: Remove unneeded include.
12784         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12785         have <sys/select.h>.
12786
12787 2010-12-24  Bruno Haible  <bruno@clisp.org>
12788
12789         gethostname: Provide a fallback for HOST_NAME_MAX.
12790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12791         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12792         instead.
12793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12794
12795 2010-12-24  Bruno Haible  <bruno@clisp.org>
12796
12797         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12798         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12799         (SA_RESTART): Likewise.
12800         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12801
12802 2010-12-24  Bruno Haible  <bruno@clisp.org>
12803
12804         signal: Define NSIG.
12805         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12806         * tests/test-signal.c (nsig): New variable.
12807         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12808
12809 2010-12-24  Bruno Haible  <bruno@clisp.org>
12810
12811         rename, renameat: Avoid test failures on OSF/1 5.1.
12812         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12813         alternative error codes.
12814         * tests/test-renameat.c (main): Likewise.
12815
12816 2010-12-24  Bruno Haible  <bruno@clisp.org>
12817
12818         *printf: Detect large precisions bug on Solaris 10/SPARC.
12819         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12820         by Paul Eggert.
12821         * tests/test-snprintf-posix.h (test_function): Add this test code here
12822         too.
12823         * tests/test-sprintf-posix.h (test_function): Likewise.
12824         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12825         * tests/test-vasprintf-posix.c (test_function): Likewise.
12826         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12827         around by gnulib.
12828         * doc/posix-functions/printf.texi: Likewise.
12829         * doc/posix-functions/snprintf.texi: Likewise.
12830         * doc/posix-functions/sprintf.texi: Likewise.
12831         * doc/posix-functions/vfprintf.texi: Likewise.
12832         * doc/posix-functions/vprintf.texi: Likewise.
12833         * doc/posix-functions/vsnprintf.texi: Likewise.
12834         * doc/posix-functions/vsprintf.texi: Likewise.
12835         * doc/posix-functions/dprintf.texi: Undo last commit.
12836         * doc/posix-functions/vdprintf.texi: Likewise.
12837
12838 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12839
12840         tests: port test-fdutimensat.c to Solaris 8
12841         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12842         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12843         On Solaris 8, it fails with errno == ENOSYS, because there is no
12844         futimens (so it can't use the fd), and there is no lutimens (so it
12845         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12846
12847         vsnprintf: make more consistent with snprintf; doc fixes
12848
12849         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12850         the byte count return problem was promoted from the snprintf-posix
12851         to the snprintf module.
12852         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12853         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12854         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12855         * tests/test-snprintf.c (main): Check the byte count returned.
12856         * tests/test-vsnprintf.c (main): Likewise.
12857
12858 2010-12-23  Eric Blake  <eblake@redhat.com>
12859
12860         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12861         * modules/sigpipe (License): Relax license.
12862
12863 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12864
12865         doc: document Solaris printf bug with large float precisions
12866         * doc/posix-functions/dprintf.texi (dprintf):
12867         * doc/posix-functions/fprintf.texi (fprintf):
12868         * doc/posix-functions/printf.texi (printf):
12869         * doc/posix-functions/snprintf.texi (snprintf):
12870         * doc/posix-functions/sprintf.texi (sprintf):
12871         * doc/posix-functions/vdprintf.texi (vdprintf):
12872         * doc/posix-functions/vfprintf.texi (vfprintf):
12873         * doc/posix-functions/vprintf.texi (vprintf):
12874         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12875         * doc/posix-functions/vsprintf.texi (vsprintf):
12876         Mention that these functions mishandle large floating point
12877         precisions on Solaris 10.  The same bug is also present in Solaris
12878         8, and I assume earlier.  This causes "cd gnulib-tests; make
12879         check" to fail on Solaris 8 (and I assume, later) when building
12880         the latest coreutils, in test-vasprintf-posix's call to
12881         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12882         the wide flavors (e.g., wprintf) so this patch just updates the
12883         documentation for the narrow ones.
12884
12885         test-posixtm.c: add two tests
12886         * tests/test-posixtm.c: Add two tests, to highlight the
12887         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12888         around this bug; this is merely to document it.
12889
12890 2010-12-22  Bruno Haible  <bruno@clisp.org>
12891
12892         getlogin_r: Work around portability problem on OSF/1.
12893         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12894         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12895         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12896         test for a truncated result.
12897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12898         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12899         * modules/getlogin_r (Depends-on): Add memchr.
12900         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12901
12902 2010-12-22  Bruno Haible  <bruno@clisp.org>
12903
12904         ptsname: Avoid test failure on OSF/1 5.1.
12905         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12906         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12907         (same_slave): New function.
12908         (main): Use it to compare ptsname's result with the expected file name.
12909
12910 2010-12-22  Bruno Haible  <bruno@clisp.org>
12911
12912         Port extended stdio modules to HP NonStop Kernel.
12913         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12914         macros.
12915         * lib/fbufmode.c: Update comments.
12916         * lib/fflush.c: Likewise.
12917         * lib/fpurge.c: Likewise.
12918         * lib/freadable.c: Likewise.
12919         * lib/freadahead.c: Likewise.
12920         * lib/freading.c: Likewise.
12921         * lib/freadptr.c: Likewise.
12922         * lib/freadseek.c: Likewise.
12923         * lib/fseeko.c: Likewise.
12924         * lib/fseterr.c: Likewise.
12925         * lib/fwritable.c: Likewise.
12926         * lib/fwriting.c: Likewise.
12927         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12928
12929 2010-12-22  Bruno Haible  <bruno@clisp.org>
12930
12931         ttyname_r: Work around bug on OSF/1 5.1.
12932         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12934         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12935         present.
12936         * lib/ttyname_r.c (ttyname_r): Update comments.
12937
12938 2010-12-22  Bruno Haible  <bruno@clisp.org>
12939
12940         round: Implement result sign according to IEEE 754.
12941         * lib/round.c (MIN, MINUS_ZERO): New macros.
12942         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12943         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12944         * tests/test-round-ieee.c (main): Likewise.
12945         * tests/test-roundl-ieee.c (main): Likewise.
12946
12947         trunc: Implement result sign according to IEEE 754.
12948         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12949         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12950         * tests/test-trunc2.c: Include minus-zero.h.
12951         (MINUS_ZERO): New macro.
12952         (trunc_reference): Keep in sync with lib/trunc.c.
12953         * tests/test-truncf2.c: Include minus-zero.h.
12954         (MINUS_ZERO): New macro.
12955         (truncf_reference): Keep in sync with lib/trunc.c.
12956         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12957         * tests/test-trunc-ieee.c (main): Likewise.
12958         * tests/test-truncl-ieee.c (main): Likewise.
12959
12960         ceil: Implement result sign according to IEEE 754.
12961         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12962         (FUNC): Return -0.0 for -1 < x < 0.
12963         * tests/test-ceil2.c: Include minus-zero.h.
12964         (MINUS_ZERO): New macro.
12965         (ceil_reference): Keep in sync with lib/ceil.c.
12966         * tests/test-ceilf2.c: Include minus-zero.h.
12967         (MINUS_ZERO): New macro.
12968         (ceilf_reference): Keep in sync with lib/ceil.c.
12969         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12970         * tests/test-ceil-ieee.c (main): Likewise.
12971         * tests/test-ceill-ieee.c (main): Likewise.
12972
12973         floor: Implement result sign according to IEEE 754.
12974         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12975         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12976         * tests/test-floorf2.c (floorf_reference): Likewise.
12977         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12978         * tests/test-floor-ieee.c (main): Likewise.
12979         * tests/test-floorl-ieee.c (main): Likewise.
12980
12981 2010-12-22  Bruno Haible  <bruno@clisp.org>
12982
12983         getaddrinfo: Update doc.
12984         * doc/posix-functions/gai_strerror.texi: Return type is also different
12985         on AIX and HP-UX.
12986
12987 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12988
12989         getaddrinfo, inet_ntop: Update doc for Solaris.
12990         * doc/posix-functions/gai_strerror.texi: Return type is also an
12991         issue on Solaris 9 and earlier.
12992         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12993         on Solaris 10 and earlier.
12994
12995 2010-12-21  Bruno Haible  <bruno@clisp.org>
12996
12997         New module 'roundl-ieee'.
12998         * modules/roundl-ieee: New file.
12999         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13000         test whether roundl works according to ISO C 99 with IEC 60559.
13001         * m4/roundl-ieee.m4: New file.
13002         * modules/roundl-ieee-tests: New file.
13003         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13004         * tests/test-roundl.c (main): Remove signbit tests.
13005         * modules/roundl-tests (Depends-on): Remove signbit.
13006         * doc/posix-functions/roundl.texi: Mention the new module.
13007
13008 2010-12-21  Bruno Haible  <bruno@clisp.org>
13009
13010         New module 'truncl-ieee'.
13011         * modules/truncl-ieee: New file.
13012         * modules/truncl-ieee-tests: New file.
13013         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13014         * tests/test-truncl.c (main): Remove signbit tests.
13015         * modules/truncl-tests (Depends-on): Remove signbit.
13016         * doc/posix-functions/truncl.texi: Mention the new module.
13017
13018 2010-12-21  Bruno Haible  <bruno@clisp.org>
13019
13020         New module 'ceill-ieee'.
13021         * modules/ceill-ieee: New file.
13022         * modules/ceill-ieee-tests: New file.
13023         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13024         * tests/test-ceill.c (main): Remove signbit tests.
13025         * modules/ceill-tests (Depends-on): Remove signbit.
13026         * doc/posix-functions/ceill.texi: Mention the new module.
13027
13028 2010-12-21  Bruno Haible  <bruno@clisp.org>
13029
13030         New module 'floorl-ieee'.
13031         * modules/floorl-ieee: New file.
13032         * modules/floorl-ieee-tests: New file.
13033         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13034         * tests/test-floorl.c (main): Remove signbit tests.
13035         * modules/floorl-tests (Depends-on): Remove signbit.
13036         * doc/posix-functions/floorl.texi: Mention the new module.
13037
13038 2010-12-21  Bruno Haible  <bruno@clisp.org>
13039
13040         New module 'round-ieee'.
13041         * modules/round-ieee: New file.
13042         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13043         whether round works according to ISO C 99 with IEC 60559.
13044         * m4/round-ieee.m4: New file.
13045         * modules/round-ieee-tests: New file.
13046         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13047         * tests/test-round1.c (main): Remove signbit tests.
13048         * modules/round-tests (Depends-on): Remove 'signbit'.
13049         * doc/posix-functions/round.texi: Mention the new module.
13050
13051 2010-12-21  Bruno Haible  <bruno@clisp.org>
13052
13053         New module 'trunc-ieee'.
13054         * modules/trunc-ieee: New file.
13055         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13056         whether trunc works according to ISO C 99 with IEC 60559.
13057         * m4/trunc-ieee.m4: New file.
13058         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13060         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13061         * modules/trunc-ieee-tests: New file.
13062         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13063         * tests/test-trunc1.c (main): Remove signbit tests.
13064         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13065         * doc/posix-functions/trunc.texi: Mention the new module.
13066
13067 2010-12-21  Bruno Haible  <bruno@clisp.org>
13068
13069         New module 'ceil-ieee'.
13070         * modules/ceil-ieee: New file.
13071         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13072         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13073         ISO C 99 with IEC 60559.
13074         * m4/ceil-ieee.m4: New file.
13075         * modules/ceil (Files): Add lib/ceil.c.
13076         (Depends-on): Add 'float'.
13077         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13078         * lib/math.in.h (ceil): New declaration.
13079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13080         REPLACE_CEIL.
13081         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13082         * modules/ceil-ieee-tests: New file.
13083         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13084         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13085         * doc/posix-functions/ceil.texi: Mention the new module.
13086
13087 2010-12-21  Bruno Haible  <bruno@clisp.org>
13088
13089         New module 'floor-ieee'.
13090         * modules/floor-ieee: New file.
13091         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13092         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13093         ISO C 99 with IEC 60559.
13094         * m4/floor-ieee.m4: New file.
13095         * modules/floor (Files): Add lib/floor.c.
13096         (Depends-on): Add 'float'.
13097         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13098         * lib/math.in.h (floor): New declaration.
13099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13100         REPLACE_FLOOR.
13101         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13102         * modules/floor-ieee-tests: New file.
13103         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13104         * tests/test-math-c++.cc: Check the signature of 'floor'.
13105         * doc/posix-functions/floor.texi: Mention the new module.
13106
13107 2010-12-21  Bruno Haible  <bruno@clisp.org>
13108
13109         New module 'roundf-ieee'.
13110         * modules/roundf-ieee: New file.
13111         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13112         test whether roundf works according to ISO C 99 with IEC 60559.
13113         * m4/roundf-ieee.m4: New file.
13114         * modules/roundf-ieee-tests: New file.
13115         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13116         * tests/test-roundf1.c (main): Remove signbit tests.
13117         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13118         * doc/posix-functions/roundf.texi: Mention the new module.
13119
13120 2010-12-21  Bruno Haible  <bruno@clisp.org>
13121
13122         New module 'truncf-ieee'.
13123         * modules/truncf-ieee: New file.
13124         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13125         test whether truncf works according to ISO C 99 with IEC 60559.
13126         * m4/truncf-ieee.m4: New file.
13127         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13129         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13130         * modules/truncf-ieee-tests: New file.
13131         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13132         * tests/test-truncf1.c (main): Remove signbit tests.
13133         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13134         * doc/posix-functions/truncf.texi: Mention the new module.
13135
13136 2010-12-21  Bruno Haible  <bruno@clisp.org>
13137
13138         New module 'ceilf-ieee'.
13139         * modules/ceilf-ieee: New file.
13140         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13141         test whether ceilf works according to ISO C 99 with IEC 60559.
13142         * m4/ceilf-ieee.m4: New file.
13143         * modules/ceilf-ieee-tests: New file.
13144         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13145         * tests/test-ceilf1.c (main): Remove signbit tests.
13146         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13147         * doc/posix-functions/ceilf.texi: Mention the new module.
13148
13149 2010-12-21  Bruno Haible  <bruno@clisp.org>
13150
13151         New module 'floorf-ieee'.
13152         * modules/floorf-ieee: New file.
13153         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13154         test whether floorf works according to ISO C 99 with IEC 60559.
13155         * m4/floorf-ieee.m4: New file.
13156         * modules/floorf-ieee-tests: New file.
13157         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13158         * tests/test-floorf1.c (main): Remove signbit tests.
13159         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13160         * doc/posix-functions/floorf.texi: Mention the new module.
13161
13162 2010-12-21  Bruno Haible  <bruno@clisp.org>
13163
13164         Support for minus zero in autoconf macros.
13165         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13166         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13167         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13168         * tests/minus-zero.h: Update comments.
13169
13170 2010-12-21  Bruno Haible  <bruno@clisp.org>
13171
13172         Tests for module 'ceil'.
13173         * modules/ceil-tests: New file.
13174         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13175         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13176
13177 2010-12-21  Bruno Haible  <bruno@clisp.org>
13178
13179         Tests for module 'floor'.
13180         * modules/floor-tests: New file.
13181         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13182         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13183
13184 2010-12-21  Bruno Haible  <bruno@clisp.org>
13185
13186         math: Fix indentation.
13187         * lib/math.in.h (floorf): Fix indentation.
13188
13189 2010-12-21  Bruno Haible  <bruno@clisp.org>
13190
13191         Fix cross-compilation guesses on Solaris.
13192         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13193         not match "solaris2.10".
13194         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13195         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13196         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13197
13198 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13201         This fixes a problem observed with the latest coreutils snapshot
13202         that caused a test to fail on Solaris 8.  src/csplit.c's call
13203         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13204         earlier, instead of returning the number of bytes that would have
13205         been generated; this causes csplit to incorrectly report memory
13206         exhaustion.
13207         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13208         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13209         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13210         comments to match.
13211         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13212         Fix typo in matching older versions of Solaris: "solaris2.10"
13213         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13214         only for guessing while cross-compiling.
13215         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13216
13217 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13218
13219         ftoastr: fix comment again
13220         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13222         Also, simplify example a bit by using flags = 0.
13223
13224 2010-12-20  Bruno Haible  <bruno@clisp.org>
13225
13226         round*, trunc*: Update documentation regarding glibc.
13227         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13228         * doc/posix-functions/round.texi: Likewise.
13229         * doc/posix-functions/roundl.texi: Likewise.
13230         * doc/posix-functions/truncf.texi: Likewise.
13231         * doc/posix-functions/trunc.texi: Likewise.
13232         * doc/posix-functions/truncl.texi: Likewise.
13233
13234 2010-12-20  Bruno Haible  <bruno@clisp.org>
13235
13236         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13237         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13238         * doc/posix-functions/round.texi: Likewise.
13239         * doc/posix-functions/roundl.texi: Likewise.
13240
13241 2010-12-20  Bruno Haible  <bruno@clisp.org>
13242
13243         ttyname_r: Add missing declaration on HP-UX 11.
13244         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13245         HAVE_TTYNAME_R.
13246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13247         declared. Set HAVE_TTYNAME_R always.
13248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13249         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13250         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13251         HAVE_TTYNAME_R.
13252         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13253
13254 2010-12-20  Bruno Haible  <bruno@clisp.org>
13255
13256         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13257         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13258         * doc/posix-functions/getlogin_r.texi: Likewise.
13259         * tests/test-getlogin.c: Include <errno.h>.
13260         (main): Avoid test failure on HP-UX 11.11.
13261         * tests/test-getlogin_r.c (main): Likewise.
13262
13263 2010-12-20  Bruno Haible  <bruno@clisp.org>
13264
13265         getlogin_r: Add missing declaration on HP-UX 11.
13266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13267         declared also when it exists as a function.
13268         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13269
13270 2010-12-20  Bruno Haible  <bruno@clisp.org>
13271
13272         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13273         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13274         through wcrtomb.
13275
13276 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13277
13278         ftoastr: fix comment
13279         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13281
13282 2010-12-19  Bruno Haible  <bruno@clisp.org>
13283
13284         isnan: Ensure it is a macro.
13285         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13286         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13287         Solaris.
13288
13289 2010-12-19  Bruno Haible  <bruno@clisp.org>
13290
13291         ldexpl test: Fix link error on OSF/1 5.1.
13292         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13293
13294 2010-12-19  Bruno Haible  <bruno@clisp.org>
13295
13296         wctype: Make it work in C++ mode on OSF/1 5.1.
13297         * lib/wctype.in.h (iswblank): Declare but not define here.
13298         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13299         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13300         * modules/wctype (Files): Add lib/iswblank.c.
13301
13302 2010-12-19  Bruno Haible  <bruno@clisp.org>
13303
13304         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13305         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13306         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13307
13308 2010-12-19  Bruno Haible  <bruno@clisp.org>
13309
13310         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13312         _POSIX_PII_SOCKET.
13313         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13314         * doc/posix-functions/recvfrom.texi: Likewise.
13315         * doc/posix-functions/send.texi: Likewise.
13316         * doc/posix-functions/sendto.texi: Likewise.
13317
13318 2010-12-19  Bruno Haible  <bruno@clisp.org>
13319
13320         tcgetsid: Add missing declaration on OSF/1 5.1.
13321         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13322         HAVE_TCGETSID.
13323         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13324         Don't set HAVE_TCGETSID.
13325         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13326         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13327         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13328         HAVE_TCGETSID.
13329         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13330
13331 2010-12-19  Bruno Haible  <bruno@clisp.org>
13332
13333         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13334         * lib/stdio.in.h: During the include_next statement, let recursive
13335         includes of this file include only the system header file.
13336
13337 2010-12-19  Bruno Haible  <bruno@clisp.org>
13338
13339         iconv_open: Fix regression from 2010-12-04.
13340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13341         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13342
13343 2010-12-19  Bruno Haible  <bruno@clisp.org>
13344
13345         stdbool test: Avoid a gcc warning.
13346         * tests/test-stdbool.c (main): Fail if e1 is false.
13347         Reported by Jim Meyering.
13348
13349 2010-12-19  Jim Meyering  <meyering@redhat.com>
13350
13351         setenv: restore to working order
13352         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13353         mistakenly removed.
13354         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13355         HAVE_SETENV.
13356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13357         HAVE_SETENV.
13358
13359 2010-12-19  Bruno Haible  <bruno@clisp.org>
13360
13361         Document some different function declarations on OSF/1 5.1.
13362         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13363         * doc/posix-functions/inet_ntop.texi: Likewise.
13364         * doc/posix-functions/gethostname.texi: Likewise.
13365         * lib/unistd.in.h (gethostname): Update comment.
13366
13367 2010-12-19  Bruno Haible  <bruno@clisp.org>
13368
13369         doc: Mention vasprintf-posix module.
13370         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13371         the 'vasprintf-posix' module.
13372         * doc/glibc-functions/vasprintf.texi: Likewise.
13373
13374 2010-12-19  Bruno Haible  <bruno@clisp.org>
13375
13376         unsetenv: Add missing declaration on OSF/1 5.1.
13377         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13379         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13381         not HAVE_UNSETENV.
13382         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13383         HAVE_UNSETENV.
13384         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13385
13386 2010-12-19  Bruno Haible  <bruno@clisp.org>
13387
13388         setenv: Add missing declaration on OSF/1 5.1.
13389         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13390         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13391         declared. Don't set HAVE_SETENV.
13392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13393         not HAVE_SETENV.
13394         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13395         HAVE_SETENV.
13396         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13397
13398 2010-12-19  Bruno Haible  <bruno@clisp.org>
13399
13400         nl_langinfo tests: Avoid gcc warning.
13401         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13402
13403 2010-12-19  Bruno Haible  <bruno@clisp.org>
13404
13405         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13406         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13407         _GL_CXXALIAS_SYS.
13408
13409 2010-12-19  Bruno Haible  <bruno@clisp.org>
13410
13411         stdbool: Relax test.
13412         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13413         address to 'bool' work in static initializer, for compilers other than
13414         GCC.
13415
13416 2010-12-19  Bruno Haible  <bruno@clisp.org>
13417
13418         ftello: Add missing declaration on OSF/1 5.1.
13419         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13420         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13422         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13423         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13424
13425 2010-12-19  Bruno Haible  <bruno@clisp.org>
13426
13427         fseeko: Add missing declaration on OSF/1 5.1.
13428         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13431         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13432         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13433
13434 2010-12-19  Bruno Haible  <bruno@clisp.org>
13435
13436         fchdir: Add missing declaration on OSF/1 5.1.
13437         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13440         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13441         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13442
13443 2010-12-19  Bruno Haible  <bruno@clisp.org>
13444
13445         relocatable-prog-wrapper: Separate from relocatable-prog.
13446         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13447         uninstall-relocwrapper rule here.
13448         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13449         Reported by Ian Beckwith <ianb@erislabs.net>.
13450
13451 2010-12-19  Bruno Haible  <bruno@clisp.org>
13452
13453         unistr/u8-mbsnlen: Add missing dependency.
13454         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13455         Reported by Ian Beckwith <ianb@erislabs.net>.
13456
13457 2010-12-19  Bruno Haible  <bruno@clisp.org>
13458
13459         iconv: Make it possible again to use this module without 'iconv-h'.
13460         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13461         if it is not defined.
13462         Reported by Ian Beckwith <ianb@erislabs.net>.
13463
13464 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         acl: port to Solaris 8 when copying from tmpfs to ufs
13467         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13468         error number.  Problem observed on Solaris 8 with latest
13469         coreutils, with "mv A B", where A is on a tmpfs file system and B
13470         is on a ufs file system.  This caused coreutils' mv/part-symlink
13471         test to fail.
13472
13473         tests: set fail=0 at start
13474         * tests/init.sh (setup_): Move fail=0 initialization here ...
13475         (mktempd_): ... from here, so that tests can rely on fail being
13476         set to 0 initially.  This fixes a problem in coreutils; see:
13477         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13478
13479 2010-12-18  Bruno Haible  <bruno@clisp.org>
13480
13481         memmem-simple: Stylistic changes.
13482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13483         Fix preprocessor directive indentation.
13484
13485 2010-12-15  Pádraig Brady <P@draigBrady.com>
13486
13487         memmem, memmem-simple: reorganize and expand empty needle check
13488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13489         functional checks to memmem-simple so that one has a fully functional
13490         memmem by using just this module.
13491         Restrict the performance only check to the memmem module.
13492         Also expand the empty needle check to ensure the correct
13493         pointer is returned, not just a non NULL pointer.
13494         * doc/glibc-functions/memmem.texi: Rearrange the portability
13495         documentation to correlate with the rearranged checks.
13496         Clarify exactly how the memmem and memmem-simple modules
13497         relate to each other.
13498
13499 2010-12-15  Pádraig Brady <P@draigBrady.com>
13500             Bruno Haible  <bruno@clisp.org>
13501
13502         Improve cross-compilation guesses for uClibc.
13503         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13504         that uClibc does not have the glibc bug.
13505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13506         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13507
13508 2010-12-14  Eric Blake  <eblake@redhat.com>
13509
13510         configmake: provide fallbacks for oldest supported autotools
13511         * m4/configmake.m4: New file.
13512         * modules/configmake (Files): Ship it.
13513         (configure.ac): Use it to guarantee fallbacks.
13514
13515 2010-12-13  Pádraig Brady <P@draigBrady.com>
13516
13517         read-file: Improve handling of large files
13518         * lib/read-file.c (fread_file): Minimize realloc()s
13519         for regular files, and better manage sizes around SIZE_MAX.
13520
13521 2010-12-13  Eric Blake  <eblake@redhat.com>
13522
13523         cloexec, fcntl: relax license
13524         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13525         consent from all contributors.
13526         * modules/fcntl (License): Likewise.
13527
13528 2010-12-10  Bruno Haible  <bruno@clisp.org>
13529
13530         Tests for module 'pipe-posix'.
13531         * modules/pipe-posix-tests: New file.
13532         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13533
13534 2010-12-10  Bruno Haible  <bruno@clisp.org>
13535
13536         pipe-posix: Make it work in C++ mode.
13537         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13538         (pipe): Use common idiom, not a macro definition.
13539         * lib/pipe.c: New file.
13540         * m4/pipe.m4: New file.
13541         * modules/pipe-posix (Description): Enhance.
13542         (Files): Add lib/pipe.c, m4/pipe.m4.
13543         (configure.ac): Invoke gl_FUNC_PIPE.
13544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13545         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13546         * tests/test-unistd-c++.cc: Check the signature of pipe.
13547
13548 2010-12-10  Bruno Haible  <bruno@clisp.org>
13549
13550         Rename module 'pipe' to 'spawn-pipe'.
13551         * modules/spawn-pipe: New file, renamed from modules/pipe.
13552         (Files, configure.ac, Makefile.am): Update.
13553         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13554         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13555         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13556         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13557         "spawn-pipe.h" instead of "pipe.h".
13558         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13559         to gl_SPAWN_PIPE.
13560         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13561         (Files, Makefile.am): Update.
13562         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13563         Update.
13564         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13565         Include "spawn-pipe.h" instead of "pipe.h".
13566         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13567         * lib/javacomp.c: Likewise.
13568         * lib/javaversion.c: Likewise.
13569         * lib/pipe-filter-gi.c: Likewise.
13570         * lib/pipe-filter-ii.c: Likewise.
13571         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13572         * modules/javacomp (Depends-on): Likewise.
13573         * modules/javaversion (Depends-on): Likewise.
13574         * modules/pipe-filter-gi (Depends-on): Likewise.
13575         * modules/pipe-filter-ii (Depends-on): Likewise.
13576         * MODULES.html.sh (Executing programs): Update.
13577         * NEWS: Mention the change.
13578
13579 2010-12-10  Eric Blake  <eblake@redhat.com>
13580
13581         pipe-posix: new module
13582         * modules/pipe-posix: New file.
13583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13584         (gl_UNISTD_H): Check for declaration.
13585         * modules/unistd (Makefile.am): Substitute it.
13586         * lib/unistd.in.h (pipe): Provide it for mingw.
13587         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13588         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13589
13590 2010-12-07  Bruno Haible  <bruno@clisp.org>
13591
13592         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13593         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13594         u8_strcmp_gnu.
13595         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13596
13597 2010-12-06  Bruno Haible  <bruno@clisp.org>
13598
13599         Update internal documentation.
13600         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13601
13602 2010-12-04  Bruno Haible  <bruno@clisp.org>
13603
13604         Put more information about failed tests into the test return codes.
13605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13606         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13607         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13609         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13611         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13612         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13613         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13616         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13617         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13618         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13619         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13620         returns a bit mask.
13621         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13622         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13623         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13624         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13629         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13632         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13633         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13634         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13635         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13636         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13637         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13638         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13640         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13642         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13643         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13644         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13645         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13646         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13647         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13648         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13649         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13650         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13651         gl_PRINTF_PRECISION): Likewise.
13652         * m4/regex.m4 (gl_REGEX): Likewise.
13653         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13655         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13656         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13657         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13659         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13661         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13662         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13664         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13665         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13667         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13668         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13669         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13672         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13673         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13674         enumerated value.
13675         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13676
13677 2010-12-04  Bruno Haible  <bruno@clisp.org>
13678
13679         Update for Solaris 11 2010-11.
13680         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13681         Express, released in November 2010.
13682
13683 2010-12-04  Bruno Haible  <bruno@clisp.org>
13684
13685         nproc: Relax license.
13686         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13687         and Paul Eggert.
13688         Requested by Ludovic Courtès <ludo@gnu.org>.
13689
13690 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13691
13692         utimecmp: fine-grained src to nearby coarse-grained dest
13693
13694         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13695         and the source is on a file system with higher-resolution time
13696         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13697         not work, and the time stamps are close together, the algorithm to
13698         determine the exact resolution from the read-back mtime was buggy:
13699         it had a "!=" where it should have had an "==".  This bug has been
13700         in the code ever since it was introduced to gnulib.
13701         Problem reported by Dan Jacobson in
13702         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13703
13704 2010-11-30  Bruno Haible  <bruno@clisp.org>
13705
13706         strerror_r-posix: Fix autoconf test.
13707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13708
13709 2010-11-28  Bruno Haible  <bruno@clisp.org>
13710             Paul Eggert  <eggert@cs.ucla.edu>
13711
13712         Tests for module 'getdomainname'.
13713         * modules/getdomainname-tests: New file.
13714         * tests/test-getdomainname.c: New file, based on
13715         tests/test-gethostname.c.
13716
13717 2010-11-28  Bruno Haible  <bruno@clisp.org>
13718             Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         getdomainname: Use the system function when possible.
13721         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13722         (getdomainname): Replace if needed. Provide the declaration if it is
13723         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13724         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13725         (getdomainname): When the system has getdomainname, call the system
13726         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13727         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13728         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13729         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13730         the function if its second argument is of type 'int' or if it is found
13731         in libnsl.
13732         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13733         <sys/systeminfo.h> and sysinfo().
13734         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13736         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13737         HAVE_GETDOMAINNAME.
13738         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13739         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13740         * doc/glibc-functions/getdomainname.texi: Document the problems with
13741         the getdomainname declaration.
13742
13743 2010-11-28  Bruno Haible  <bruno@clisp.org>
13744
13745         sys_socket: Ensure ss_family field on AIX.
13746         * lib/sys_socket.in.h (ss_family): New macro definition.
13747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13748         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13749         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13750         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13751         * modules/sys_socket (Makefile.am): Substitute
13752         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13753         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13754
13755 2010-11-27  Bruno Haible  <bruno@clisp.org>
13756
13757         readline: Improve configure output.
13758         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13759         "checking for readline..." result understandable.
13760
13761 2010-11-27  Bruno Haible  <bruno@clisp.org>
13762
13763         *printf-posix: Detect a bug on Solaris 10/x86.
13764         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13765         for floating-point output.
13766         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13767         directive.
13768         * tests/test-snprintf-posix.h (test_function): Likewise.
13769         * tests/test-sprintf-posix.h (test_function): Likewise.
13770         * tests/test-vasprintf-posix.c (test_function): Likewise.
13771         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13772         * doc/posix-functions/printf.texi: Likewise.
13773         * doc/posix-functions/snprintf.texi: Likewise.
13774         * doc/posix-functions/sprintf.texi: Likewise.
13775         * doc/posix-functions/vfprintf.texi: Likewise.
13776         * doc/posix-functions/vprintf.texi: Likewise.
13777         * doc/posix-functions/vsnprintf.texi: Likewise.
13778         * doc/posix-functions/vsprintf.texi: Likewise.
13779         * doc/glibc-functions/obstack_printf.texi: Likewise.
13780         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13781
13782 2010-11-27  Bruno Haible  <bruno@clisp.org>
13783
13784         Fix link error when module libunistring-optional is in use.
13785         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13786         * modules/striconveha-tests (Makefile.am): Likewise.
13787
13788 2010-11-27  Bruno Haible  <bruno@clisp.org>
13789
13790         regex: Mention link dependencies.
13791         * modules/regex (Link): New section.
13792         * modules/rpmatch (Link): Likewise.
13793         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13794
13795 2010-11-27  Bruno Haible  <bruno@clisp.org>
13796
13797         ftoastr: Fix compilation error on Solaris.
13798         * lib/ftoastr.c: Include <config.h>.
13799
13800 2010-11-27  Bruno Haible  <bruno@clisp.org>
13801
13802         getloadavg: Update documentation.
13803         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13804
13805 2010-11-27  Bruno Haible  <bruno@clisp.org>
13806
13807         sys_socket: Fix test whether the functions are declared.
13808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13809         not <sys/select.h>.
13810
13811 2010-11-27  Bruno Haible  <bruno@clisp.org>
13812
13813         getpass: Make sure to get system declaration on some platforms.
13814         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13815         gl_USE_SYSTEM_EXTENSIONS.
13816         * modules/getpass (Depends-on): Add extensions.
13817
13818 2010-11-26  Bruno Haible  <bruno@clisp.org>
13819
13820         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13821         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13822         'iconv' module is present.
13823         (ICONV_CONST): New macro.
13824         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13825         ICONV_CONST.
13826         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13827         set ICONV_CONST.
13828         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13829         here.
13830         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13831         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13832         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13833         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13834         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13835         present.
13836
13837 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13838
13839         ftoastr: comment fix
13840         * lib/ftoastr.c: "little" -> "little or no" in comment
13841
13842 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13843
13844         stdint: port to GCC 4.3 + OSX + Octave
13845         On this platform, stdint.h is buggy and defines int64_t to long
13846         long int.  The replacement defined it to long int, causing
13847         problems with C++ style name mangling.  Instead, trust the system
13848         definition if INT64_MAX is defined, and likewise for the unsigned
13849         variant.   Problem reported by Jarno Rajahalme in
13850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13851         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13852         and don't mess with int64_t and INT64_MAX in this case.
13853         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13854
13855 2010-11-24  Bruno Haible  <bruno@clisp.org>
13856
13857         doc: Corrections regarding MacOS X 10.4 and 10.5.
13858         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13859         MacOS X.
13860         Reported by Simon Josefsson.
13861
13862 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13863
13864         Uninstall ".bin" files installed by relocwrapper.
13865         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13866         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13867         unless it is already there.
13868
13869 2010-11-21  Bruno Haible  <bruno@clisp.org>
13870
13871         Update for NetBSD 5.0.
13872         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13873         NetBSD; the test fails on NetBSD 5.0.
13874         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13875         about NetBSD.
13876
13877 2010-11-21  Bruno Haible  <bruno@clisp.org>
13878
13879         Update for HP-UX 11.23 and HP-UX 11.31.
13880         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13881         HP-UX.
13882
13883 2010-11-21  Bruno Haible  <bruno@clisp.org>
13884
13885         Update for MacOS X 10.5.
13886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13887         MacOS X; the test fails on MacOS X 10.5.8.
13888         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13889         about MacOS X.
13890
13891 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13892
13893         bootstrap: add bootstrap_sync option.
13894         See discussion at
13895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13897         * build-aux/bootstrap: Accept --bootstrap-sync to update
13898         bootstrap if it is not identical to the local gnulib's
13899         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13900         enable this by default.  Accept --no-bootstrap-sync to disable
13901         it.
13902
13903 2010-11-20  Bruno Haible  <bruno@clisp.org>
13904
13905         Ensure that <features.h> is included before __GLIBC__ is tested.
13906         * lib/printf-parse.h: Include <features.h>.
13907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13908         Reported by Mike Frysinger <vapier@gentoo.org>.
13909
13910         Ensure that <features.h> is included before __GLIBC__ is tested.
13911         * lib/wchar.in.h: Include <features.h>.
13912         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13913         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13914         Reported by Mike Frysinger <vapier@gentoo.org>.
13915
13916         Ensure that <features.h> is included before __GLIBC__ is tested.
13917         * lib/arpa_inet.in.h: Include <features.h>.
13918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13919         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13920         Reported by Mike Frysinger <vapier@gentoo.org>.
13921
13922         Ensure that <features.h> is included before __GLIBC__ is tested.
13923         * build-aux/link-warning.h: Include <features.h>.
13924         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13925         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13926         Reported by Mike Frysinger <vapier@gentoo.org>.
13927
13928         Ensure that <features.h> is included before __GLIBC__ is tested.
13929         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13930         Reported by Mike Frysinger <vapier@gentoo.org>.
13931
13932 2010-11-20  Bruno Haible  <bruno@clisp.org>
13933
13934         memmem: Fix autoconf test.
13935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13936
13937 2010-11-20  Bruno Haible  <bruno@clisp.org>
13938
13939         Port to uClibc.
13940         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13941         * lib/fcntl.in.h: Likewise.
13942         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13943         * lib/mbrtowc.c (mbrtowc): Likewise.
13944         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13945         * lib/strerror_r.c: Likewise.
13946         * lib/unistr/u8-strnlen.c: Likewise.
13947         * lib/vasnprintf.c (decimal_point_char): Likewise.
13948         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13949         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13950         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13951         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13952         * tests/test-sigaction.c (handler, main): Likewise.
13953         * lib/freading.h: Treat uClibc like a non-glibc platform.
13954         * lib/freading.c: Likewise.
13955         * lib/gettext.h: Likewise.
13956         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13957         Likewise.
13958         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13959         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13960         * lib/propername.c (proper_name_utf8): Likewise.
13961         * lib/spawn.in.h: Likewise.
13962         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13963         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13964         mem_cd_iconveh_internal): Likewise.
13965         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13966         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13967         strstr, strcasestr): Likewise.
13968         * lib/unicodeio.c (unicode_to_mb): Likewise.
13969         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13970         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13971         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13972         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13973         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13974         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13975         * lib/unistr/u8-stpncpy.c: Likewise.
13976         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13977         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13979         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13980         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13981         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13982         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13985         Likewise.
13986         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13987         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13988         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13991         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13992         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13993         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13994         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13995         * tests/test-striconveha.c (main): Likewise.
13996         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13997         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13998         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13999         * doc/posix-functions/getline.texi: Likewise.
14000         Reported by Mike Frysinger <vapier@gentoo.org>.
14001
14002 2010-11-20  Bruno Haible  <bruno@clisp.org>
14003
14004         nproc: Fix condition.
14005         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14006         HAVE_PTHREAD_AFFINITY_NP.
14007
14008 2010-11-20  Bruno Haible  <bruno@clisp.org>
14009
14010         Fix a comment.
14011         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14012
14013 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14014
14015         ftoastr: don't assume snprintf
14016         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14017         Implement a subset of snprintf here, by using sprintf safely.
14018         * modules/ftoastr (Depends-on): Remove snprintf.
14019
14020 2010-11-19  Jim Meyering  <meyering@redhat.com>
14021
14022         test-rename.h: fix compilation failure
14023         * tests/test-rename.h (test_rename): Add omitted "}".
14024
14025 2010-11-17  Jim Meyering  <meyering@redhat.com>
14026
14027         maint.mk: add a URL discussing the no-@acronym policy
14028         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14029
14030 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14031
14032         ftoastr: depend on snprintf, improve comments
14033         * lib/ftoastr.c: Also mention Loitsch's draft.
14034         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14035         needed in the current implementation, but it might simplify
14036         speeding up the code later.
14037         * modules/ftoastr: Depend on snprintf; this improves portability.
14038         Suggested by Bruno Haible in the same email.
14039
14040         ftoastr: port to hosts lacking strtof and strtold
14041         Problem reported by Bruno Haible in
14042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14043         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14044         environment and strtold (and presumably strtof) are not available.
14045         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14046         (configure.ac): Require gl_C99_STRTOLD.
14047
14048 2010-11-18  Bruno Haible  <bruno@clisp.org>
14049
14050         c-strtold: Avoid link error on AIX 7.
14051         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14052         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14053         (gl_C_STRTOLD): Test whether strtold_l exists.
14054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14055
14056 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         intprops: new macro INT_BITS_STRLEN_BOUND
14059         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14060         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14061         not exposed.  Also, it uses a slightly tighter bound than before;
14062         though this makes no practical difference, we might as well be as
14063         tight as we easily can.
14064
14065         ftoastr: new module, for lossless conversion of floats to short strings
14066         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14067         * modules/ftoastr: New files.
14068
14069 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14070
14071         bootstrap: port to Solaris sed
14072         * build-aux/bootstrap (get_version): Port to Solaris sed.
14073         See Ralf Wildenhues's note in
14074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14075
14076 2010-11-14  Jim Meyering  <meyering@redhat.com>
14077
14078         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14079         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14080         and move definition closer to sole use.
14081
14082 2010-11-13  Jim Meyering  <meyering@redhat.com>
14083
14084         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14085         Now we require at least autoconf-2.59, which means the work-around
14086         is no longer needed.
14087         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14089         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14090         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14091         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14092
14093 2010-11-13  Bruno Haible  <bruno@clisp.org>
14094
14095         rename, renameat: Avoid test failures at NFS mounted locations.
14096         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14097         functions.
14098         (test_rename): Use assert_nonexistent.
14099         * tests/test-rename.c: Include <dirent.h>.
14100         * tests/test-renameat.c: Likewise.
14101         Reported by Gary V. Vaughan <gary@gnu.org>.
14102
14103         rename, renameat: Document Linux bug with NFS
14104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14105         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14106         * doc/posix-functions/renameat.texi: Likewise.
14107         Suggested by Eric Blake.
14108
14109 2010-11-13  Bruno Haible  <bruno@clisp.org>
14110
14111         rename test: Add comments.
14112         * tests/test-rename.h (test_rename): Add structure and comments.
14113
14114 2010-11-13  Eric Blake  <eblake@redhat.com>
14115
14116         maintainer-makefile: cover a few more files
14117         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14118         scripts generated within C files, for libvirt.
14119
14120 2010-11-13  Bruno Haible  <bruno@clisp.org>
14121
14122         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14123         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14124         character, return the number of bytes that belong together, not always
14125         1.
14126         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14127         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14128         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14129         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14130         number of bytes of an invalid character.
14131         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14132         (main): Invoke it.
14133         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14134         results.
14135         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14136         malformed byte sequences.
14137         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14138         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14139         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14140         Reported by Ben Pfaff and Paolo Bonzini.
14141
14142 2010-11-13  Bruno Haible  <bruno@clisp.org>
14143
14144         openat: Work around glibc bug with fchownat() and empty file names.
14145         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14146         (gl_FUNC_FCHOWNAT): Invoke it.
14147         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14148         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14149         Reported by Gary V. Vaughan <gary@gnu.org>.
14150
14151 2010-11-13  Bruno Haible  <bruno@clisp.org>
14152
14153         openat: Ensure autoconf macro ordering.
14154         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14155         gl_USE_SYSTEM_EXTENSIONS.
14156         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14157
14158 2010-11-13  Bruno Haible  <bruno@clisp.org>
14159
14160         Update comments.
14161         * lib/unistr/u8-check.c: Update file name in comments.
14162         * lib/unistr/u8-mblen.c: Likewise.
14163         * lib/unistr/u8-prev.c: Likewise.
14164         * lib/unistr/u8-strmblen.c: Likewise.
14165         * lib/unistr/u8-strmbtouc.c: Likewise.
14166
14167 2010-11-13  Jim Meyering  <meyering@redhat.com>
14168
14169         tests: avoid test failure on Solaris 10 due to lack of PATH export
14170         * tests/test-update-copyright.sh: Don't forget to export PATH.
14171
14172         init.sh: ensure that IFS is defined, just in case...
14173         * tests/init.sh (setup_): Ensure that IFS is defined,
14174         so that saving and restoring it works as expected.  This
14175         appears to be useful at least for an old version of dash
14176         from a long time ago (RH 6).  See here for details:
14177         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14178
14179         maint.mk: tighten "test a == b" check
14180         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14181         test to files that contain something like #!/bin/sh.
14182         Without this, coreutils would get two false positives in
14183         the comments of C source files.
14184
14185 2010-11-12  Eric Blake  <eblake@redhat.com>
14186
14187         bootstrap: fix typo in previous attempt
14188         * build-aux/bootstrap (buildreq): Correct the grouping.
14189         Reported by Paul Eggert.
14190
14191         maintainer-makefile: prohibit test x == x
14192         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14193         Based on a report by Matthias Bolte.
14194
14195         bootstrap: allow FreeBSD gzip
14196         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14197         which has no '.' and goes to stderr.
14198         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14199         Reported by Matthias Bolte.
14200
14201         maintainer-makefile: check for i18n setup
14202         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14203         will likely work.
14204
14205 2010-11-12  Bruno Haible  <bruno@clisp.org>
14206
14207         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14208         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14209         * lib/nanosleep.c (nanosleep): Likewise.
14210
14211 2010-11-11  Bruno Haible  <bruno@clisp.org>
14212
14213         fcntl-h: Fix for use of C++ on glibc systems.
14214         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14215         also on glibc systems in C++ mode.
14216         Reported by Gary V. Vaughan <gary@gnu.org>.
14217
14218 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14219
14220         mknod: avoid false failure with dash
14221         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14222
14223 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14224
14225         unlink: Fix "is it should" typo in diagnostic.
14226         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14228
14229 2010-11-11  Bruno Haible  <bruno@clisp.org>
14230
14231         Tests for module 'strerror_r-posix'.
14232         * modules/strerror_r-posix-tests: New file.
14233         * tests/test-strerror_r.c: New file.
14234         * tests/test-string-c++.cc: Check the signature of strerror_r.
14235
14236         New module 'strerror_r-posix'.
14237         * lib/string.in.h (strerror_r): New declaration.
14238         * lib/strerror_r.c: New file.
14239         * m4/strerror_r.m4: New file.
14240         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14241         of strerror_r.
14242         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14243         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14244         * modules/strerror_r-posix: New file.
14245         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14246         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14247         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14248         portability problems.
14249
14250 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14251
14252         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14253         line is also considered for output. Quoted function name in shell
14254         command, so temporary files for functions like MyClass::operator()
14255         are removed correctly without errors.
14256
14257 2010-11-09  Bruno Haible  <bruno@clisp.org>
14258
14259         * doc/posix-functions/strerror.texi: List more failing platforms.
14260
14261         * doc/posix-functions/strerror.texi: Add a comment.
14262
14263 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14264
14265         fdopendir: fix bug on MacOS X when low on file descriptors
14266
14267         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14268         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14269         All callers changed.
14270         (fdopendir): Invoke save_cwd at the top level, not after using
14271         multiple dup() calls to use up file descriptors.  Then retry
14272         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14273         less than the maximum number of open file descriptors, because
14274         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14275         on Mac OS X 10.6.4 for tar 1.24
14276         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14277         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14278         and for tar 1.25
14279         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14280
14281 2010-11-07  Bruno Haible  <bruno@clisp.org>
14282
14283         vasnprintf: Support I flag on glibc systems.
14284         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14285         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14286         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14287         snprintf function.
14288         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14289         glibc systems.
14290         * tests/test-vasnprintf-posix3.c: New file.
14291         * modules/vasnprintf-posix-tests (Files): Add it.
14292         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14293
14294 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14295
14296         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14297         * MODULES.html.sh: For compiler warnings, use name
14298         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14299
14300 2010-11-05  Eric Blake  <eblake@redhat.com>
14301
14302         ceil, floor: avoid spurious failure with icc
14303         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14304         [denormals-as-zero] when optimizing without -mieee-fp option.
14305         * tests/test-floorf2.c (floorf_reference): Likewise.
14306         * tests/test-ceilf1.c (dummy): New function.
14307         (main): Use it to outsmart icc's optimization.
14308         * tests/test-floorf1.c (dummy, main): Likewise.
14309
14310         tests: require working signbit
14311         * modules/ceilf-tests (Depends-on): Add signbit.
14312         * modules/ceill-tests (Depends-on): Likewise.
14313         * modules/floorf-tests (Depends-on): Likewise.
14314         * modules/floorl-tests (Depends-on): Likewise.
14315         * modules/round-tests (Depends-on): Likewise.
14316         * modules/roundf-tests (Depends-on): Likewise.
14317         * modules/roundl-tests (Depends-on): Likewise.
14318         * modules/trunc-tests (Depends-on): Likewise.
14319         * modules/truncf-tests (Depends-on): Likewise.
14320         * modules/truncl-tests (Depends-on): Likewise.
14321
14322         strtod: work around icc bug
14323         * lib/strtod.c (minus_zero): Define to working value.
14324         (strtod): Use it to avoid icc bug.
14325
14326         copysign: enhance tests
14327         * modules/copysign-tests (Files): Add minus-zero.h.
14328         * tests/test-copysign.c (main): Also test zeros.
14329
14330 2010-11-04  Eric Blake  <eblake@redhat.com>
14331
14332         ceil, floor, round, trunc: enhance tests of -0
14333         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14334         * tests/test-ceill.c (main): Likewise.
14335         * tests/test-floorf1.c (main): Likewise.
14336         * tests/test-floorl.c (main): Likewise.
14337         * tests/test-round1.c (main): Likewise.
14338         * tests/test-roundf1.c (main): Likewise.
14339         * tests/test-roundl.c (main): Likewise.
14340         * tests/test-trunc1.c (main): Likewise.
14341         * tests/test-truncf1.c (main): Likewise.
14342         * tests/test-truncl.c (main): Likewise.
14343
14344 2010-11-04  Eric Blake  <eblake@redhat.com>
14345
14346         frexp, tests: work around ICC bug with -zero
14347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14348         works with more compilers.
14349         * tests/minus-zero.h: New file.
14350         * modules/ceilf-tests (Files): Include it.
14351         * modules/ceill-tests (Files): Likewise.
14352         * modules/floorf-tests (Files): Likewise.
14353         * modules/floorl-tests (Files): Likewise.
14354         * modules/frexp-nolibm-tests (Files): Likewise.
14355         * modules/frexp-tests (Files): Likewise.
14356         * modules/frexpl-nolibm-tests (Files): Likewise.
14357         * modules/frexpl-tests (Files): Likewise.
14358         * modules/isnan-tests (Files): Likewise.
14359         * modules/isnand-nolibm-tests (Files): Likewise.
14360         * modules/isnand-tests (Files): Likewise.
14361         * modules/isnanf-nolibm-tests (Files): Likewise.
14362         * modules/isnanf-tests (Files): Likewise.
14363         * modules/isnanl-nolibm-tests (Files): Likewise.
14364         * modules/isnanl-tests (Files): Likewise.
14365         * modules/round-tests (Files): Likewise.
14366         * modules/roundf-tests (Files): Likewise.
14367         * modules/roundl-tests (Files): Likewise.
14368         * modules/ldexpl-tests (Files): Likewise.
14369         * modules/signbit-tests (Files): Likewise.
14370         * modules/snprintf-posix-tests (Files): Likewise.
14371         * modules/sprintf-posix-tests (Files): Likewise.
14372         * modules/strtod-tests (Files): Likewise.
14373         * modules/trunc-tests (Files): Likewise.
14374         * modules/truncf-tests (Files): Likewise.
14375         * modules/truncl-tests (Files): Likewise.
14376         * modules/vsnprintf-posix-tests (Files): Likewise.
14377         * modules/vsprintf-posix-tests (Files): Likewise.
14378         * modules/vasnprintf-posix-tests (Files): Likewise.
14379         * modules/vasprintf-posix-tests (Files): Likewise.
14380         * tests/test-ceilf1.c (main): Use it.
14381         * tests/test-ceill.c (main): Likewise.
14382         * tests/test-floorf1.c (main): Likewise.
14383         * tests/test-floorl.c (main): Likewise.
14384         * tests/test-frexp.c (main): Likewise.
14385         * tests/test-frexpl.c (main): Likewise.
14386         * tests/test-isnan.c (main): Likewise.
14387         * tests/test-isnand.h (main): Likewise.
14388         * tests/test-isnanf.h (main): Likewise.
14389         * tests/test-isnanl.h (main): Likewise.
14390         * tests/test-ldexpl.c (main): Likewise.
14391         * tests/test-round.c (main): Likewise.
14392         * tests/test-roundf.c (main): Likewise.
14393         * tests/test-roundl.c (main): Likewise.
14394         * tests/test-signbit.c (test_signbitf, test_signbitd)
14395         (test_signbitl): Likewise.
14396         * tests/test-snprintf-posix.h (test_function): Likewise.
14397         * tests/test-sprintf-posix.h (test_function): Likewise.
14398         * tests/test-strtod.c (main): Likewise.
14399         * tests/test-trunc1.c (main): Likewise.
14400         * tests/test-truncf1.c (main): Likewise.
14401         * tests/test-truncl.c (main): Likewise.
14402
14403         isnanl: work around icc bug
14404         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14405
14406 2010-11-03  Eric Blake  <eblake@redhat.com>
14407
14408         tests: fix compiler warnings
14409         * tests/test-getopt.h (test_getopt): Fix condition.
14410         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14411         * tests/test-pipe2.c (main): Likewise.
14412         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14413
14414         utimens: fix broken m4 test
14415         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14416
14417 2010-10-28  Bruno Haible  <bruno@clisp.org>
14418
14419         posix_spawn*, getdtablesize: Relax license.
14420         * modules/posix_spawn (License): Change to LGPLv2+.
14421         * modules/posix_spawnp (License): Likewise.
14422         * modules/posix_spawn-internal (License): Likewise.
14423         * modules/posix_spawnattr_init (License): Likewise.
14424         * modules/posix_spawnattr_getflags (License): Likewise.
14425         * modules/posix_spawnattr_setflags (License): Likewise.
14426         * modules/posix_spawnattr_getpgroup (License): Likewise.
14427         * modules/posix_spawnattr_setpgroup (License): Likewise.
14428         * modules/posix_spawnattr_getschedparam (License): Likewise.
14429         * modules/posix_spawnattr_setschedparam (License): Likewise.
14430         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14431         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14432         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14433         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14434         * modules/posix_spawnattr_getsigmask (License): Likewise.
14435         * modules/posix_spawnattr_setsigmask (License): Likewise.
14436         * modules/posix_spawnattr_destroy (License): Likewise.
14437         * modules/posix_spawn_file_actions_init (License): Likewise.
14438         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14439         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14440         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14441         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14442         * modules/getdtablesize (License): Likewise.
14443         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14444
14445 2010-10-26  Bruno Haible  <bruno@clisp.org>
14446
14447         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14448         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14449         Cygwin and mingw.
14450         Suggested by Eric Blake.
14451
14452 2010-10-26  Bruno Haible  <bruno@clisp.org>
14453
14454         stdio: Work around compilation error due to renameat() on Solaris 10.
14455         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14456         * lib/renameat.c: Don't include <unistd.h> here.
14457         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14458         Reported by Paul Eggert and Eric Blake.
14459
14460 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         renameat: port to Solaris 10, which declares renameat in unistd.h
14463
14464         * lib/renameat.c: Include unistd.h before stdio.h, because
14465         Solaris 10 declares renameat in unistd.h.  Problem encountered
14466         when building GNU tar 1.24 on Solaris 10.
14467
14468 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14469
14470         fdopendir: fix C89 compilation
14471         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14472         compilers.
14473
14474 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14475
14476         inttostr: simplify by removing unnecessary redundancy
14477         * lib/anytostr.c: Don't include verify.h.
14478         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14479         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14480         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14481         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14482         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14483         Likewise.
14484         * modules/inttostr (Depends-on): Remove 'verify'.
14485
14486 2010-10-23  Bruno Haible  <bruno@clisp.org>
14487
14488         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14489         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14490         Reported by Eric Blake.
14491
14492 2010-10-23  Bruno Haible  <bruno@clisp.org>
14493
14494         Tests: Fix LOCALE_JA on MirBSD 10.
14495         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14496         to an UTF-8 locale.
14497         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14499         Reported by Eric Blake.
14500
14501 2010-10-21  Bruno Haible  <bruno@clisp.org>
14502
14503         nl_langinfo test: Avoid test failure on NetBSD 5.
14504         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14505         Reported by Eric Blake.
14506
14507 2010-10-21  Eric Blake  <eblake@redhat.com>
14508
14509         c-stack: work around libsigsegv 2.8 bug
14510         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14511         overflow on at least PowerPC64.
14512
14513 2010-10-17  Bruno Haible  <bruno@clisp.org>
14514
14515         userspec: Drop redundant file.
14516         * modules/userspec (Files): Remove lib/inttostr.h.
14517
14518 2010-10-17  Bruno Haible  <bruno@clisp.org>
14519
14520         nl_langinfo tests: Silence some warnings.
14521         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14522         Reported by Jim Meyering.
14523
14524 2010-10-17  Bruno Haible  <bruno@clisp.org>
14525
14526         Make use of GCC's attribute __alloc_size__.
14527         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14528         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14529         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14530         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14531         __alloc_size__.
14532         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14533         Suggested by Jim Meyering.
14534
14535 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14536
14537         bootstrap: anchor .gitignore entries.
14538         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14539         with...
14540         (insert_vc_ignore): ... this new function, which prepends `/' to
14541         all .gitignore entries before passing them to
14542         insert_sorted_if_absent.
14543
14544 2010-10-16  Bruno Haible  <bruno@clisp.org>
14545
14546         nextafter: Fix configure check.
14547         * modules/nextafter (configure.ac): Correct expected prototype.
14548
14549 2010-10-16  Bruno Haible  <bruno@clisp.org>
14550
14551         termios: Update documentation.
14552         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14553
14554 2010-10-16  Bruno Haible  <bruno@clisp.org>
14555
14556         tests: Make them compile with TinyCC.
14557         * tests/test-strstr.c (main): Remove parentheses around array
14558         initializer.
14559
14560 2010-10-15  Eric Blake  <eblake@redhat.com>
14561
14562         ignore-value: make header idempotent
14563         * lib/ignore-value.h: Add double-inclusion guards.
14564         Reported by Stefan Berger.
14565
14566 2010-10-15  Jim Meyering  <meyering@redhat.com>
14567
14568         GNUmakefile: handle "stable" target, not "major"
14569         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14570         lists in maint.mk and announce-gen.  Without this, "make stable"
14571         would fail to ensure that $(VERSION) is up to date.
14572
14573 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14574
14575         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14576         & co.
14577
14578 2010-10-14  Bruno Haible  <bruno@clisp.org>
14579
14580         vasnprintf: Don't set errno to 0.
14581         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14582         block that sets it to 0.
14583         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14584
14585 2010-10-14  Bruno Haible  <bruno@clisp.org>
14586
14587         socketlib: Fix.
14588         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14589         gl_PREREQ_SYS_H_WINSOCK2.
14590         Reported by Ian Beckwith <ianb@erislabs.net>.
14591
14592 2010-10-13  Jim Meyering  <meyering@redhat.com>
14593
14594         test-select-stdin.c: avoid warn_unused_result warnings
14595         * tests/test-select-stdin.c: Include "macros.h".
14596         ASSERT that read and fflush succeed.
14597
14598 2010-10-13  Jim Meyering  <meyering@redhat.com>
14599
14600         git-version-gen: do require git-VC'd files in cwd
14601         * build-aux/git-version-gen: Reject a git version string
14602         if there are no commits associated with the current directory.
14603         This avoids an unlikely false-positive (unrelated dir whose parent
14604         repository also contains a tag matching v*), as pointed out
14605         by Giuseppe Scrivano in
14606         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14607
14608 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14609
14610         argv-iter: omit nonconforming declaration
14611         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14612         enum arg_iter_err declaration, which doesn't conform to C99.
14613         Solaris 10 cc warns about this.
14614
14615 2010-10-13  Eric Blake  <eblake@redhat.com>
14616
14617         termios: fix compilation on mingw
14618         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14619         (gl_TERMIOS_H): Adjust it on mingw.
14620         * modules/termios (Makefile.am): Substitute new key.
14621         * lib/termios.in.h (includes): Make include_next conditional.
14622         * doc/posix-headers/termios.texi (termios.h): Update
14623         documentation.
14624         Reported by Daniel P. Berrange.
14625
14626 2010-10-13  Jim Meyering  <meyering@redhat.com>
14627
14628         git-version-gen: don't require that .git/ be in the current dir
14629         * build-aux/git-version-gen: Adjust this script so that it works
14630         when run from any working directory beneath the top-level .git/-
14631         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14633
14634         test-select: avoid warn_unused_result warnings
14635         * tests/test-select.c: Include "macros.h".
14636         ASSERT that each call to read, write, and pipe succeeds.
14637         While not technically required, also check each "close".
14638         * modules/select-tests (Files): Add tests/macros.h.
14639
14640         test-symlinkat: remove declaration of unused local
14641         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14642
14643         test-inttostr: avoid shadowing warnings
14644         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14645         and use malloc rather than the stack for the same reason as
14646         mentioned in the comment justifying the other allocation.
14647
14648 2010-10-11  Bruno Haible  <bruno@clisp.org>
14649
14650         stdlib: Allow multiple gnulib generated replacements to coexist.
14651         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14652         Reported by Sam Steingold <sds@gnu.org>.
14653
14654 2010-10-11  Jim Meyering  <meyering@redhat.com>
14655
14656         fix a documentation typo
14657         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14658
14659 2010-10-11  Eric Blake  <eblake@redhat.com>
14660
14661         futimens: work around Solaris 11 bug
14662         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14663         * tests/test-futimens.h (test_futimens): Enhance, rather than
14664         weaken test.
14665         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14666
14667 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         Indentation.
14670         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14671         higher-level operators more to the left.
14672
14673 2010-10-11  Jim Meyering  <meyering@redhat.com>
14674
14675         test-futimens: avoid unwarranted test failure on Solaris 5.11
14676         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14677         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14678         because it tries to dereference the NULL name argument.
14679
14680 2010-10-11  Bruno Haible  <bruno@clisp.org>
14681
14682         Indentation.
14683         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14684         indentation.
14685
14686 2010-10-11  Jim Meyering  <meyering@redhat.com>
14687
14688         spawn.in.h: make indentation consistent with parentheses
14689         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14690         Make indentation consistent with parentheses.
14691
14692 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14693
14694         Fix mismatched parens in previous commit
14695         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14696         parens.
14697
14698 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14699
14700         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14701
14702         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14703         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14704         * lib/malloca.c: Include "verify.h".
14705         (verify1): Remove, replacing with a verify call.
14706         * lib/relocwrapper.c (verify1): Likewise.
14707         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14708         Likewise.
14709         * modules/malloca (Depends-on): Add 'verify'.
14710         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14711         * modules/vasnprintf (Depends-on): Add 'verify'.
14712         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14713         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14714         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14715         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14716         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14717         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14718         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14719
14720         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14721
14722         Formerly the style was sometimes 2*X - 1, because the C standard
14723         was wrongly thought to disallow ?: in integral constant expressions.
14724         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14725         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14726         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14727         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14728         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14729         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14730         verify that time_t cannot be floating.
14731
14732 2010-10-08  Eric Blake  <eblake@redhat.com>
14733
14734         time: enforce recent POSIX ruling that time_t is integral
14735         * lib/time.in.h (__time_t_must_be_integral): Detect any
14736         problematic systems, allowing the rest of gnulib to assume POSIX.
14737
14738 2010-10-08  Jim Meyering  <meyering@redhat.com>
14739
14740         fdopendir: fix a bug on systems lacking openat and /proc support
14741         OpenBSD 4.7 is one such system.  The most noticeable effect was
14742         failure of any application making nontrivial use of fts: rm, du,
14743         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14744           ./rm: traversal failed: `a': Bad file descriptor
14745         Debugging that, you see that even though FD 6 was closed just
14746         prior to the opendir call in fd_clone_opendir, its resulting
14747         dir->dd_fd was 8, rather than the expected value of 6:
14748
14749         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14750         93                close (fd);
14751         (gdb) n
14752         94                dir = fd_clone_opendir (dupfd);
14753         (gdb) n
14754         95                saved_errno = errno;
14755         (gdb) p dir->dd_fd
14756         $11 = 8
14757
14758         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14759         The problem is that on OpenBSD, fd_clone_opendir has to resort
14760         to using the old-style save/restore CWD mechanism, due to its
14761         lack of openat/proc support, and *that* would steal the FD (6)
14762         that opendir was supposed to use.
14763
14764         The fix is to squirrel away the desired FD so that save_cwd uses a
14765         different one, and then free the dest FD right before calling opendir.
14766         That guarantees opendir will use the required file descriptor.
14767
14768         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14769
14770 2010-10-08  Bruno Haible  <bruno@clisp.org>
14771
14772         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14773         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14774
14775 2010-10-08  Bruno Haible  <bruno@clisp.org>
14776
14777         nanosleep: Make replacement POSIX compliant.
14778         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14779         is out of range.
14780         Reported by Jim Meyering.
14781
14782 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         bootstrap: add hook for altering gnulib.mk, for Bison
14785         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14786         the Bison bootstrapping process can rewrite file names and variables
14787         in this file before later parts of 'bootstrap' use the file.
14788         Bison wants to include lib/gnulib.mk from the top-level makefile,
14789         so it needs the file names in this file to be relative to the top
14790         level, not relative to lib; plus it needs variable names to be
14791         rewritten.
14792         (slurp): Use the new function.
14793
14794         bootstrap: reformat for readability
14795         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14796
14797 2010-10-08  Eric Blake  <eblake@redhat.com>
14798
14799         docs: update cygwin progress
14800         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14801         1.7.7.
14802         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14803         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14804         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14805         * doc/posix-functions/carg.texi (carg): Likewise.
14806         * doc/posix-functions/cargf.texi (cargf): Likewise.
14807         * doc/posix-functions/casin.texi (casin): Likewise.
14808         * doc/posix-functions/casinf.texi (casinf): Likewise.
14809         * doc/posix-functions/casinh.texi (casinh): Likewise.
14810         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14811         * doc/posix-functions/catan.texi (catan): Likewise.
14812         * doc/posix-functions/catanf.texi (catanf): Likewise.
14813         * doc/posix-functions/catanh.texi (catanh): Likewise.
14814         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14815         * doc/posix-functions/ccos.texi (ccos): Likewise.
14816         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14817         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14818         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14819         * doc/posix-functions/cexp.texi (cexp): Likewise.
14820         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14821         * doc/posix-functions/cimag.texi (cimag): Likewise.
14822         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14823         * doc/posix-functions/clog.texi (clog): Likewise.
14824         * doc/posix-functions/clogf.texi (clogf): Likewise.
14825         * doc/posix-functions/conj.texi (conj): Likewise.
14826         * doc/posix-functions/conjf.texi (conjf): Likewise.
14827         * doc/posix-functions/cpow.texi (cpow): Likewise.
14828         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14829         * doc/posix-functions/cproj.texi (cproj): Likewise.
14830         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14831         * doc/posix-functions/creal.texi (creal): Likewise.
14832         * doc/posix-functions/crealf.texi (crealf): Likewise.
14833         * doc/posix-functions/csin.texi (csin): Likewise.
14834         * doc/posix-functions/csinf.texi (csinf): Likewise.
14835         * doc/posix-functions/csinh.texi (csinh): Likewise.
14836         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14837         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14838         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14839         * doc/posix-functions/ctan.texi (ctan): Likewise.
14840         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14841         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14842         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14843         * doc/posix-headers/complex.texi (complex.h): Likewise.
14844
14845 2010-10-07  Jim Meyering  <meyering@redhat.com>
14846
14847         parse-datetime: avoid compilation failure on OpenBSD 4.7
14848         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14849         This works around a compilation failure on OpenBSD 4.7:
14850         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14851
14852 2010-10-07  Eric Blake  <eblake@redhat.com>
14853
14854         docs: update cygwin progress
14855         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14856         1.7.6.
14857         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14858         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14859         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14860         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14861         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14862         Likewise.
14863         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14864         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14865         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14866         Likewise.
14867         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14868         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14869         Likewise.
14870         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14871         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14872         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14873         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14874         Likewise.
14875         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14876         Likewise.
14877         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14878
14879         docs: update parse-datetime history
14880         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14881         documentation of this function's history and alternatives.
14882
14883         cygwin: use more robust version check
14884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14885         exclude an eventual cygwin 1.9.1.
14886         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14888         (gl_FUNC_STRCASESTR): Likewise.
14889         Reported by Bruno Haible.
14890
14891 2010-10-06  Bruno Haible  <bruno@clisp.org>
14892
14893         string, sys_select: Avoid #including large headers unless necessary.
14894         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14895         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14896         OSF/1, BeOS, Haiku.
14897         Reported by Jim Meyering.
14898
14899 2010-10-05  Eric Blake  <eblake@redhat.com>
14900
14901         memmem, strstr, strcasestr: fix bug with long periodic needle
14902         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14903         periodic needle having false positive.
14904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14905         and cygwin 1.7.7.
14906         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14908         (gl_FUNC_STRCASESTR): Likewise.
14909         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14910         * tests/test-memmem.c (main): Expose the bug.
14911         * tests/test-strcasestr.c (main): Likewise.
14912         * tests/test-strstr.c (main): Likewise.
14913         * tests/test-c-strcasestr.c (main): Likewise.
14914         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14915         * doc/posix-functions/strstr.texi (strstr): Likewise.
14916         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14917         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14918
14919 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14920
14921         parse-datetime: do some more renaming
14922         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14923         parse_datetime, not get_date.  Mention the renaming.
14924         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14925         in comments.
14926         * m4/bison.m4: Likewise.
14927
14928 2010-10-05  Eric Blake  <eblake@redhat.com>
14929
14930         parse-datetime: better name than get_date
14931         * NEWS: Reword the deprecation notice.
14932         * modules/get_date: Rename to modules/parse-datetime.
14933         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14934         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14935         * lib/get_date.y: Rename to lib/parse-datetime.y.
14936         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14937         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14938         * doc/getdate.texi: Provide fallback wrapper.
14939         * lib/getdate.h: Move guts, and wrap...
14940         * lib/parse-datetime.h: ...new file.
14941         * lib/parse-datetime.y (get_date): Rename...
14942         (parse_datetime): ...to this.
14943         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14944         (gl_PARSE_DATETIME): ...to this.
14945         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14946         documentation.
14947         * modules/getdate (Files): Provide fallback docs and header.
14948         (Notice, Depends-on): Update references.
14949         * tests/test-parse-datetime.c: Likewise.
14950         * DEPENDENCIES: Likewise.
14951         * MODULES.html.sh (Date and time <time.h>): Likewise.
14952         * doc/parse-datetime.texi (Date input formats)
14953         (Authors of parse_datetime): Likewise.
14954         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14955         (Include): Likewise.
14956         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14957         * gnulib-tool: Likewise.
14958         * m4/bison.m4 (gl_BISON): Likewise.
14959         Suggested by Bruno Haible.
14960
14961 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14962
14963         more ports to Solaris tr, which needs [] around ranges
14964         * gnulib-tool: Solaris tr needs [] around ranges.
14965         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14966         * tests/test-pipe-filter-gi1.c (main): Likewise.
14967         * tests/test-pipe-filter-ii1.c (main): Likewise.
14968
14969 2010-10-05  Eric Blake  <eblake@redhat.com>
14970
14971         bootstrap: fix Solaris regression
14972         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14973         around ranges.
14974         Reported by Pádraig Brady.
14975
14976         bootstrap: work with pkg-config
14977         * build-aux/bootstrap (check_versions): Also transliterate - in
14978         prerequisite name.
14979         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14980         prerequisites that were already found, to avoid confusion.
14981         Reported by Justin Clift.
14982
14983         faccessat: remove unused wrappers
14984         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14985         presence of these wrappers dragged in -lgen on Solaris.
14986         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14987
14988 2010-10-05  Jim Meyering  <meyering@redhat.com>
14989
14990         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14991         * Makefile (sc_pragma_columns): New syntax-check rule.
14992
14993 2010-10-04  Bruno Haible  <bruno@clisp.org>
14994
14995         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14996         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14997         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14998         Reported by Bruce Korb and Eric Blake.
14999
15000 2010-10-04  Bruno Haible  <bruno@clisp.org>
15001
15002         threadlib: Make option --with-libpth-prefix work.
15003         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15004         use $LIBPTH, not just -lpth.
15005
15006 2010-10-04  Bruno Haible  <bruno@clisp.org>
15007
15008         Avoid line length limitation from HP NonStop system header files.
15009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15010         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15011         * lib/ctype.in.h: Likewise.
15012         * lib/dirent.in.h: Likewise.
15013         * lib/errno.in.h: Likewise.
15014         * lib/fcntl.in.h: Likewise.
15015         * lib/float.in.h: Likewise.
15016         * lib/getopt.in.h: Likewise.
15017         * lib/iconv.in.h: Likewise.
15018         * lib/inttypes.in.h: Likewise.
15019         * lib/langinfo.in.h: Likewise.
15020         * lib/locale.in.h: Likewise.
15021         * lib/math.in.h: Likewise.
15022         * lib/netdb.in.h: Likewise.
15023         * lib/netinet_in.in.h: Likewise.
15024         * lib/poll.in.h: Likewise.
15025         * lib/pthread.in.h: Likewise.
15026         * lib/pty.in.h: Likewise.
15027         * lib/sched.in.h: Likewise.
15028         * lib/se-selinux.in.h: Likewise.
15029         * lib/search.in.h: Likewise.
15030         * lib/signal.in.h: Likewise.
15031         * lib/spawn.in.h: Likewise.
15032         * lib/stdarg.in.h: Likewise.
15033         * lib/stddef.in.h: Likewise.
15034         * lib/stdint.in.h: Likewise.
15035         * lib/stdio.in.h: Likewise.
15036         * lib/stdlib.in.h: Likewise.
15037         * lib/string.in.h: Likewise.
15038         * lib/strings.in.h: Likewise.
15039         * lib/sys_file.in.h: Likewise.
15040         * lib/sys_ioctl.in.h: Likewise.
15041         * lib/sys_select.in.h: Likewise.
15042         * lib/sys_socket.in.h: Likewise.
15043         * lib/sys_stat.in.h: Likewise.
15044         * lib/sys_time.in.h: Likewise.
15045         * lib/sys_times.in.h: Likewise.
15046         * lib/sys_utsname.in.h: Likewise.
15047         * lib/sys_wait.in.h: Likewise.
15048         * lib/sysexits.in.h: Likewise.
15049         * lib/termios.in.h: Likewise.
15050         * lib/time.in.h: Likewise.
15051         * lib/unistd.in.h: Likewise.
15052         * lib/wchar.in.h: Likewise.
15053         * lib/wctype.in.h: Likewise.
15054         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15055         * modules/ctype (Makefile.am): Likewise.
15056         * modules/dirent (Makefile.am): Likewise.
15057         * modules/errno (Makefile.am): Likewise.
15058         * modules/fcntl-h (Makefile.am): Likewise.
15059         * modules/float (Makefile.am): Likewise.
15060         * modules/getopt-posix (Makefile.am): Likewise.
15061         * modules/iconv-h (Makefile.am): Likewise.
15062         * modules/inttypes (Makefile.am): Likewise.
15063         * modules/langinfo (Makefile.am): Likewise.
15064         * modules/locale (Makefile.am): Likewise.
15065         * modules/math (Makefile.am): Likewise.
15066         * modules/netdb (Makefile.am): Likewise.
15067         * modules/netinet_in (Makefile.am): Likewise.
15068         * modules/poll-h (Makefile.am): Likewise.
15069         * modules/pthread (Makefile.am): Likewise.
15070         * modules/pty (Makefile.am): Likewise.
15071         * modules/sched (Makefile.am): Likewise.
15072         * modules/search (Makefile.am): Likewise.
15073         * modules/selinux-h (Makefile.am): Likewise.
15074         * modules/signal (Makefile.am): Likewise.
15075         * modules/spawn (Makefile.am): Likewise.
15076         * modules/stdarg (Makefile.am): Likewise.
15077         * modules/stddef (Makefile.am): Likewise.
15078         * modules/stdint (Makefile.am): Likewise.
15079         * modules/stdio (Makefile.am): Likewise.
15080         * modules/stdlib (Makefile.am): Likewise.
15081         * modules/string (Makefile.am): Likewise.
15082         * modules/strings (Makefile.am): Likewise.
15083         * modules/sys_file (Makefile.am): Likewise.
15084         * modules/sys_ioctl (Makefile.am): Likewise.
15085         * modules/sys_select (Makefile.am): Likewise.
15086         * modules/sys_socket (Makefile.am): Likewise.
15087         * modules/sys_stat (Makefile.am): Likewise.
15088         * modules/sys_time (Makefile.am): Likewise.
15089         * modules/sys_times (Makefile.am): Likewise.
15090         * modules/sys_utsname (Makefile.am): Likewise.
15091         * modules/sys_wait (Makefile.am): Likewise.
15092         * modules/sysexits (Makefile.am): Likewise.
15093         * modules/termios (Makefile.am): Likewise.
15094         * modules/time (Makefile.am): Likewise.
15095         * modules/unistd (Makefile.am): Likewise.
15096         * modules/wchar (Makefile.am): Likewise.
15097         * modules/wctype (Makefile.am): Likewise.
15098
15099 2010-10-04  Bruno Haible  <bruno@clisp.org>
15100
15101         read-file tests: Avoid a test failure on NonStop Kernel.
15102         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15103         a regular file.
15104         Reported by Joachim Schmitz <schmitz@hp.com>.
15105
15106 2010-10-03  Bruno Haible  <bruno@clisp.org>
15107
15108         gnulib-tool: Fixes for --create-testdir with --libtool.
15109         * gnulib-tool (func_get_automake_snippet): Don't augment
15110         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15111         an executable.
15112         (func_create_testdir): Handle module 'alloca' like func_import.
15113         Reported by Bruce Korb <bruce.korb@gmail.com>.
15114
15115 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15116
15117         Avoid some lines longer than 80 characters.
15118         * lib/stdint.in.h: Break long comment lines.
15119         * lib/math.in.h: Likewise.
15120         (_GL_NUM_UINT_WORDS): New macro, for readability.
15121         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15122         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15123         * lib/stdlib.in.h: Likewise.
15124         * lib/spawn.in.h: Likewise.
15125         * lib/sys_socket.in.h: Update an URL.
15126         * lib/sys_stat.in.h: Break long line.
15127
15128 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15129
15130         Improve pmccabe2html.
15131         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15132         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15133         when the sources change. Remove the line in the HTML about "Used
15134         ranges" (which implied that there might be other unused ranges),
15135         rename "Resume" to "Summary" (easier to understand for more users).
15136         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15137         styles, and some unnecessary blank lines.
15138
15139 2010-10-03  Bruno Haible  <bruno@clisp.org>
15140             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15141
15142         acl: Add support for ACLs on NonStop Kernel.
15143         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15144         Check whether the function aclsort() exists.
15145         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15146         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15147         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15148         (acl_nontrivial [HAVE_ACLSORT]: New function.
15149         (file_has_acl): Implement for NonStop Kernel.
15150         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15151         (qset_acl): Implement for NonStop Kernel.
15152         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15153         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15154         (main): Implement for NonStop Kernel.
15155         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15156         Kernel. Handle this flavor.
15157         * tests/test-set-mode-acl.sh: Likewise.
15158         * tests/test-copy-acl.sh: Likewise.
15159         * tests/test-copy-file.sh: Likewise.
15160
15161 2010-10-03  Bruno Haible  <bruno@clisp.org>
15162
15163         Info about ACLs on NonStop Kernel.
15164         * doc/acl-resources.txt: Add info about NonStop Kernel.
15165         References by Joachim Schmitz <schmitz@hp.com>.
15166
15167 2010-10-02  Bruno Haible  <bruno@clisp.org>
15168
15169         Define missing EDQUOT on NonStop Kernel.
15170         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15171         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15172         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15173         missing.
15174         * doc/posix-headers/errno.texi: Mention the NSK bug.
15175         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15176         Reported by Joachim Schmitz <schmitz@hp.com>.
15177
15178 2010-10-02  Bruno Haible  <bruno@clisp.org>
15179
15180         Update doc for POSIX:2008.
15181         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15182         Update URL of POSIX specification.
15183
15184 2010-10-02  Bruno Haible  <bruno@clisp.org>
15185
15186         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15187         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15188         from gnulib, not from Automake.
15189
15190 2010-10-02  Bruno Haible  <bruno@clisp.org>
15191
15192         New module 'system-posix'.
15193         * modules/system-posix: New file.
15194         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15195         module is present.
15196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15197         GNULIB_SYSTEM_POSIX.
15198         * modules/stdlib (Depends-on): Remove sys_wait.
15199         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15200         * doc/posix-functions/system.texi: Mention the new module.
15201         * doc/posix-headers/stdlib.texi: Likewise.
15202         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15203         define test_sys_wait_macros to a no-op.
15204         Reported by Sam Steingold <sds@gnu.org>.
15205
15206 2010-09-30  Bruno Haible  <bruno@clisp.org>
15207
15208         More renaming from 'getdate' to 'get_date'.
15209         * doc/get_date.texi: Renamed from doc/getdate.texi.
15210         * modules/get_date (Files): Update.
15211         * MODULES.html.sh (Date and time <time.h>): Update.
15212         * DEPENDENCIES: Update.
15213         * gnulib-tool: Update comment.
15214         * m4/bison.m4 (gl_BISON): Likewise.
15215         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15216
15217 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15218
15219         bootstrap: support ACLOCAL_FLAGS during aclocal
15220         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15221         can add additional -I dir for third-party .m4 files.
15222
15223 2010-09-30  Eric Blake  <eblake@redhat.com>
15224
15225         bootstrap: use glibtoolize on MacOS
15226         * build-aux/bootstrap (check_versions): Convert libtool into
15227         libtoolize.
15228         (tool search): Move libtool check earlier, and look for
15229         glibtoolize for MacOS.
15230         (gnulib_tool_options): Auto-add --libtool when appropriate.
15231         Reported by Justin Clift.
15232
15233         poll: fix typo that broke test on MacOS
15234         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15235         Reported by Justin Clift.
15236
15237         getdate: rename to get_date
15238         Note: getdate.h is not renamed, to minimize client impact.
15239         * modules/getdate: Mark obsolete.  Move old contents...
15240         * modules/get_date: ...to new module name.
15241         * modules/getdate-tests: Move...
15242         * modules/get_date-tests: ...here.
15243         * m4/getdate.m4: Move...
15244         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15245         * lib/getdate.y: Move...
15246         * lib/get_date.y: ...here.
15247         * tests/test-getdate.c: Move...
15248         * tests/test-get_date.c: ...here.
15249         * doc/posix-functions/getdate.texi (getdate): Update name.
15250         * NEWS: Mention the change.
15251
15252 2010-09-29  Bruno Haible  <bruno@clisp.org>
15253
15254         Separate the module 'waitpid' from the module 'sys_wait'.
15255         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15256         present.
15257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15258         gl_MODULE_INDICATOR_FOR_TESTS.
15259         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15260         * modules/sys_wait (Depends-on): Remove waitpid.
15261         (Makefile.am): Substitute GNULIB_WAITPID.
15262         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15263         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15264         signature only if the 'waitpid' module is present.
15265         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15266         * NEWS: Mention the change.
15267         * modules/grantpt (Depends-on): Add waitpid.
15268         * modules/wait-process (Depends-on): Likewise.
15269
15270 2010-09-29  Bruno Haible  <bruno@clisp.org>
15271
15272         More tests for module 'sys_wait'.
15273         * modules/sys_wait-c++-tests: New file.
15274         * tests/test-sys_wait-c++.cc: New file.
15275         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15276         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15277
15278 2010-09-29  Bruno Haible  <bruno@clisp.org>
15279
15280         New module 'waitpid'.
15281         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15282         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15283         Don't include <process.h>.
15284         (waitpid): Declare only, using modern idiom.
15285         * m4/waitpid.m4: New file.
15286         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15287         * modules/waitpid: New file.
15288         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15289         (Makefile.am): Update.
15290         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15291
15292 2010-09-28  Bruno Haible  <bruno@clisp.org>
15293
15294         poll: Assume ANSI C.
15295         * lib/poll.c (poll): Use an ANSI C declaration.
15296
15297 2010-09-28  Bruno Haible  <bruno@clisp.org>
15298
15299         poll-h: Create poll.h on all platforms.
15300         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15301         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15302         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15303         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15304         (gl_REPLACE_POLL_H): Don't set POLL_H.
15305         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15306         * modules/poll-h (Depends-on): Add include_next.
15307         (Makefile.am): Create poll.h unconditionally. Substitute also
15308         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15309
15310 2010-09-28  Bruno Haible  <bruno@clisp.org>
15311
15312         Tests for module 'poll-h'.
15313         * modules/poll-h-c++-tests: New file.
15314         * tests/test-poll-h-c++.cc: New file.
15315
15316         Tests for module 'poll-h'.
15317         * modules/poll-h-tests: New file.
15318         * tests/test-poll-h.c: New file.
15319
15320 2010-09-28  Bruno Haible  <bruno@clisp.org>
15321
15322         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15323         * modules/poll-h (Depends-on): Add 'extensions'.
15324
15325 2010-09-28  Bruno Haible  <bruno@clisp.org>
15326
15327         New module 'poll-h'.
15328         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15329         (poll): Use modern idiom.
15330         * modules/poll-h: New file.
15331         * modules/poll (Files): Remove lib/poll.in.h.
15332         (Depends-on): Add poll-h.
15333         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15334         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15335         * m4/poll_h.m4: New file.
15336         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15337         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15338         and invoke gl_REPLACE_POLL_H.
15339         * lib/poll.c: Use common idiom.
15340         * tests/test-poll.c: Likewise.
15341         * doc/posix-headers/poll.texi: Mention the poll-h module.
15342         Suggested by Eric Blake.
15343
15344 2010-09-26  Bruno Haible  <bruno@clisp.org>
15345
15346         sys_wait: Implement WSTOPSIG.
15347         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15348         Reported by Simon Josefsson.
15349
15350 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15351
15352         stdlib, sys_wait: Avoid compilation error on mingw.
15353         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15354
15355 2010-09-26  Bruno Haible  <bruno@clisp.org>
15356
15357         stdlib tests: Avoid code duplication.
15358         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15359         * modules/sys_wait-tests (Files): Likewise.
15360         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15361         * tests/test-stdlib.c: Include test-sys_wait.h.
15362         (main): Invoke test_sys_wait_macros.
15363         * tests/test-sys_wait.c: Include test-sys_wait.h.
15364         (main): Invoke test_sys_wait_macros.
15365
15366 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15367
15368         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15369         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15370         sure Windows sockets are working before calling getaddrinfo.
15371         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15372         * doc/gnulib.texi (Windows sockets): Fix typo.
15373
15374 2010-09-25  Bruno Haible  <bruno@clisp.org>
15375
15376         Tests for module 'regex-quote'.
15377         * modules/regex-quote-tests: New file.
15378         * tests/test-regex-quote.c: New file.
15379
15380         New module 'regex-quote'.
15381         * lib/regex-quote.h: New file.
15382         * lib/regex-quote.c: New file.
15383         * modules/regex-quote: New file.
15384         Suggested by Reuben Thomas <rrt@sc3d.org>.
15385
15386 2010-09-24  Bruno Haible  <bruno@clisp.org>
15387
15388         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15389         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15390
15391 2010-09-23  Bruno Haible  <bruno@clisp.org>
15392
15393         setenv: Relax license.
15394         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15395         Blake.
15396         Requested by Eric Blake.
15397
15398 2010-09-22  Bruno Haible  <bruno@clisp.org>
15399
15400         termios: Relax license.
15401         * modules/termios (License): Change to LGPLv2+.
15402         Requested by Eric Blake.
15403
15404 2010-09-22  Bruno Haible  <bruno@clisp.org>
15405
15406         threadlib: Allow the package to change the default to 'no'.
15407         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15408         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15409         Reported by Paul Eggert.
15410
15411 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15412             Bruno Haible  <bruno@clisp.org>
15413
15414         Fix endless loop in mbmemcasecoll.
15415         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15416         byte.
15417         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15418
15419 2010-09-22  Bruno Haible  <bruno@clisp.org>
15420
15421         Tests for module 'memcoll'.
15422         * modules/memcoll-tests: New file.
15423         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15424
15425         memcoll, xmemcoll: Clarify size vs. length.
15426         * modules/memcoll.c (memcoll0): Clarify specification.
15427         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15428         passed to collate_error.
15429
15430 2010-09-22  Bruno Haible  <bruno@clisp.org>
15431
15432         Tests for module 'memcasecmp'.
15433         * modules/memcasecmp-tests: New file.
15434         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15435
15436 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15437
15438         * lib/pthread.in.h: Add split double-inclusion guard, and include
15439         system <pthread.h> if there is one.  Use @@-style as in other
15440         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15441         pthread.h doesn't.
15442         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15443         (pthread_mutexattr_settype, pthread_mutex_trylock):
15444         New static inline functions, if there's no system <pthread.h>.
15445         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15446         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15447         Approximate with mutexes if the system lacks spinlocks, as in
15448         MacOS.
15449         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15450         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15451         @@-style.  Check for spinlocks separately.
15452         (gl_PTHREAD_DEFAULTS): New macro.
15453         * modules/pthread: Redo to use a more typical style for in.h files.
15454
15455 2010-09-21  Eric Blake  <eblake@redhat.com>
15456
15457         net_if: enhance tests
15458         * tests/test-net_if.c (main): Move signature checks earlier.
15459         Print failures to stderr.
15460         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15461         Document the bug that we do not yet fix.
15462
15463 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15464
15465         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15466         about gnulib, not GSS.
15467
15468 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15469
15470         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15471         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15472         for Emacs.
15473         * build-aux/pmccabe2html: Make Makefile.am example code more
15474         cut-and-paste friendly.
15475
15476 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15477
15478         * tests/test-net_if.c: New file.
15479         * modules/net_if-tests: New file.
15480
15481 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15482
15483         pthread: add pthread_spin_destroy
15484         * lib/pthread.in.h (pthread_spin_destroy): New function.
15485
15486 2010-09-19  Bruno Haible  <bruno@clisp.org>
15487
15488         gnulib-tool: Fix --help output.
15489         * gnulib-tool (func_usage): Fix help message.
15490         Reported by Reuben Thomas <rrt@sc3d.org>.
15491
15492 2010-09-18  Jim Meyering  <meyering@redhat.com>
15493
15494         maint.mk: avoid unexpanded \n in two diagnostics
15495         * top/maint.mk (sc_prohibit_always_true_header_tests):
15496         Don't use a literal \n in a halt=... assignment.  It would not be
15497         expanded, and the two \n bytes would appear in the diagnostic output
15498         rather than the desired newline.  Use halt=$$(printf ... instead.
15499         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15500
15501 2010-09-18  Bruno Haible  <bruno@clisp.org>
15502
15503         netinet_in: Doc tweak.
15504         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15505         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15506
15507 2010-09-18  Jim Meyering  <meyering@redhat.com>
15508
15509         init.sh: correct an outdated comment
15510         * tests/init.sh (create_exe_shims_):  s/function/alias/
15511
15512         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15513         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15514         a file named "*.exe" is removed between the glob expansion and the
15515         processing of that oddly named file.
15516
15517 2010-09-17  Eric Blake  <eblake@redhat.com>
15518
15519         mirbsd: add some more support
15520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15521         in BSD family.
15522         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15523         devices as OpenBSD.
15524         * m4/host-os.m4 (mirbsd): Add MirBSD.
15525
15526         tests: fix unportable assumption on sys/wait.h
15527         * tests/test-sys_wait.c (main): Relax test.
15528         * tests/test-stdlib.c (main): Likewise.
15529
15530         init.sh: accomodate directory with no .exes
15531         * tests/init.sh: Accomodate directory containing only scripts.
15532
15533         tests: avoid compiler warning
15534         * tests/test-stdlib.c (main): Use the variable.
15535
15536         fdutimens, fdutimensat: update signature, again
15537         * lib/utimens.h (gl_futimens): Delete, and move signature...
15538         (fdutimens): ...here.
15539         (fdutimensat): Rearrange signature.
15540         (lutimensat): Rename variable for clarity.
15541         * lib/fdutimensat.c (fdutimensat): Update signature.
15542         * lib/utimens.c (fdutimens): Likewise.
15543         (gl_futimens): Delete.
15544         (utimens, lutimens): Update callers.
15545         * lib/futimens.c (futimens): Likewise.
15546         * tests/test-fdutimensat.c: Likewise.
15547         * tests/test-utimens.c: Likewise.
15548         * tests/test-futimens.h: Update comment.
15549         * NEWS: Mention this.
15550         Suggested by Paul Eggert.
15551
15552 2010-09-17  Bruno Haible  <bruno@clisp.org>
15553
15554         Take over the maintenance of some older macros from Autoconf.
15555         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15556         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15557         GNU Autoconf.
15558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15559         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15560
15561 2010-09-17  Eric Blake  <eblake@redhat.com>
15562
15563         fdutimensat: drop atflag validation
15564         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15565         with valid fd, to close a race scenario where futimens is
15566         unsupported and FILE was replaced by a symlink.
15567         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15568         accordingly.
15569         Suggested by Paul Eggert.
15570
15571 2010-09-16  Bruno Haible  <bruno@clisp.org>
15572
15573         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15574         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15575
15576 2010-09-16  Bruno Haible  <bruno@clisp.org>
15577
15578         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15579         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15580         login_tty exists.
15581         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15582
15583 2010-09-16  Bruno Haible  <bruno@clisp.org>
15584
15585         login_tty: Make the replacement code work on BSD systems.
15586         * lib/login_tty.c: Include <sys/ioctl.h>.
15587         (login_tty): Use ioctl TIOCSCTTY when available.
15588         * modules/login_tty (Depends-on): Add sys_ioctl.
15589         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15590
15591 2010-09-16  Bruno Haible  <bruno@clisp.org>
15592
15593         login_tty: Stricter unit test.
15594         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15595         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15596         and tcgetsid() after login_tty.
15597         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15598
15599 2010-09-16  Bruno Haible  <bruno@clisp.org>
15600
15601         New module 'tcgetsid'.
15602         * lib/tcgetsid.c: New file.
15603         * m4/tcgetsid.m4: New file.
15604         * modules/tcgetsid: New file.
15605         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15606         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15607         GNULIB_TCGETSID, HAVE_TCGETSID.
15608         * lib/termios.in.h: Include <sys/types.h>.
15609         (tcgetsid): New declaration.
15610         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15611         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15612         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15613         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15614
15615 2010-09-16  Bruno Haible  <bruno@clisp.org>
15616
15617         Tests for module 'termios'.
15618         * modules/termios-c++-tests: New file.
15619         * modules/termios-tests: New file.
15620         * tests/test-termios-c++.cc: New file.
15621         * tests/test-termios.c: New file.
15622
15623         New module 'termios'.
15624         * modules/termios: New file.
15625         * lib/termios.in.h: New file.
15626         * m4/termios_h.m4: New file.
15627         * doc/posix-headers/termios.texi: Mention the new module.
15628
15629 2010-09-16  Eric Blake  <eblake@redhat.com>
15630
15631         fdutimensat: add an atflag parameter
15632         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15633         * lib/utimens.h (fdutimensat): Update prototype.
15634         * tests/test-fdutimensat.c: Adjust test to match.
15635         * NEWS: Document the change.
15636         Suggested by Paul Eggert.
15637
15638 2010-09-16  Bruno Haible  <bruno@clisp.org>
15639
15640         Fix typos in comments.
15641         * lib/striconveh.h: Fix typo in comment.
15642         * lib/login_tty.c (login_tty): Likewise.
15643
15644 2010-09-15  Bruno Haible  <bruno@clisp.org>
15645
15646         stdlib: clarify MirBSD WEXITSTATUS bug
15647         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15648         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15649
15650 2010-09-15  Eric Blake  <eblake@redhat.com>
15651
15652         stdlib: work around MirBSD WEXITSTATUS bug
15653         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15654         * modules/stdlib (Depends-on): Add sys_wait.
15655         * tests/test-sys_wait.c (main): Enhance test.
15656         * tests/test-stdlib.c (main): Likewise.
15657         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15658
15659         docs: mention MacOS issue with WEXITSTATUS(constant)
15660         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15661         issue.
15662         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15663
15664         strnlen: add tests
15665         * modules/strnlen-tests: New file.
15666         * tests/test-strnlen.c: Likewise.
15667
15668 2010-09-14  Bruno Haible  <bruno@clisp.org>
15669
15670         unistr/base: Avoid link errors when module 'libunistring' is also used.
15671         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15672         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15673         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15674         Declare also when HAVE_LIBUNISTRING is set.
15675         Reported by Pádraig Brady <P@draigbrady.com>.
15676
15677 2010-09-14  Eric Blake  <eblake@redhat.com>
15678
15679         test-rawmemchr: make more robust
15680         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15681         (Depends-on, configure.ac): Add needed prerequisites to use it.
15682         * modules/memchr-tests (Files, Depends-on, configure.ac):
15683         Likewise, to avoid implicit reliance on memchr module prereqs.
15684         * tests/test-memchr.c (main): Ensure proper masking.
15685         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15686         reads.
15687
15688         memchr: detect glibc Alpha bug
15689         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15690         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15691         Alpha.
15692         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15693         * tests/test-memchr.c (main): Enhance test.
15694         Reported by Nelson H. F. Beebe.
15695
15696 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15697
15698         fts, getcwd, glob: audit for dirfd returning -1
15699         * lib/fts.c (opendir): Remove #define; no longer used.
15700         (opendirat): New arg PDIR_FD.  All callers changed.
15701         (fts_build, _opendir2): Use new opendirat to avoid the need for
15702         dirfd, or for checking whether dirfd returns a negative value.
15703         Don't use opendir; always use openat followed by fdopendir.
15704         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15705         it.
15706         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15707         returns -1 here.
15708         * modules/fts (Depends-on): Remove dirfd.
15709         * modules/getcwd (Depends-on): Likewise.
15710
15711 2010-09-13  Eric Blake  <eblake@redhat.com>
15712
15713         float: fix broken MirBSD header
15714         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15715         * doc/posix-headers/float.texi (float.h): Document it.
15716
15717 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15718
15719         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15720         * lib/fts.c (opendirat): New arg extra_flags.
15721         (__opendir2): Use it to avoid following symlinks when opening
15722         a directory, if symlinks are not supposed to be followed.  See
15723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15724
15725         fdopendir: preserve argument fd before returning
15726         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15727         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15728         (fdopendir): Use them, arranging for FD to be open to the same
15729         directory that it was when it started.  (It might be temporarily
15730         closed while fdopendir is running, so this not thread- or
15731         signal-safe.)  Be careful to do the right thing even when file
15732         descriptors are scarce and dup fails with errno == EMFILE.  See
15733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15734
15735 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15736
15737         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15738         * NEWS: Document change.
15739         * m4/regex.m4: Disable test for regoff_t size.
15740
15741 2010-09-13  Jim Meyering  <meyering@redhat.com>
15742
15743         fts: don't operate on an invalid file descriptor after failed dup
15744         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15745         negative file descriptor.
15746
15747 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         savedir: add streamsavedir, deprecate fdsavedir
15750         * NEWS: Mention deprecation of fdsavedir.
15751         * lib/savedir.c (streamsavedir): New extern function, whose name
15752         ends in "savedir" to be consistent with the others.  This differs
15753         from savedirstream in that it doesn't close its argument.  The
15754         next version of GNU tar will use this instead of fdsavedir, to
15755         avoid some race conditions and conserve file descriptors.
15756         (savedirstream): Reimplement as a wrapper around streamsavedir.
15757         (fdsavedir): Add a comment deprecating this function.  As far as
15758         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15759         * lib/savedir.h (streamsavedir): New decl.
15760         (fdsavedir): Add a comment deprecating this.
15761
15762 2010-09-10  Bruno Haible  <bruno@clisp.org>
15763
15764         langinfo: Fix last commit.
15765         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15766         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15768
15769 2010-09-10  Bruno Haible  <bruno@clisp.org>
15770
15771         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15772         * lib/progreloc.c (O_EXEC): Define fallback.
15773
15774 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15775
15776         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15777         * NEWS: Document recent changes to fcntl-h.
15778         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15779         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15780         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15781         Similarly for O_SEARCH; this last was already true, but not documented.
15782         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15783         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15784         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15785         Likewise.
15786         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15787         is zero, not whether it is defined.
15788         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15789         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15790         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15791
15792 2010-09-10  Bruno Haible  <bruno@clisp.org>
15793
15794         langinfo, nl_langinfo: Fix for IRIX 5.3.
15795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15796         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15797         HAVE_LANGINFO_YESEXPR.
15798         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15799         HAVE_LANGINFO_YESEXPR.
15800         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15801         HAVE_LANGINFO_T_FMT_AMPM is 0.
15802         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15803         HAVE_LANGINFO_YESEXPR is 0.
15804         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15805         NOEXPR.
15806         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15807         * doc/posix-functions/nl_langinfo.texi: Likewise.
15808         Reported by Eric Blake.
15809
15810 2010-09-10  Bruno Haible  <bruno@clisp.org>
15811
15812         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15813         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15814         on FreeBSD 8.0 and OpenBSD 4.6.
15815         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15816         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15817         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15818         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15819         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15820         ac_includes_default.
15821         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15822
15823 2010-09-09  Eric Blake  <eblake@redhat.com>
15824
15825         strsignal: work around NetBSD bug
15826         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15827         * lib/string.in.h (includes): Likewise.
15828         * doc/posix-functions/strsignal.texi (strsignal): Document the
15829         bug.
15830         Reported by Nelson H. F. Beebe.
15831
15832         gnulib-tool: work with NetBSD /bin/sh
15833         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15834         (func_get_description, func_get_comment, func_get_status)
15835         (func_get_notice, func_get_applicability, func_get_filelist)
15836         (func_get_dependencies, func_get_autoconf_early_snippet)
15837         (func_get_autoconf_snippet, func_get_automake_snippet)
15838         (func_get_include_directive, func_get_link_directive)
15839         (func_get_license, func_get_maintainer, func_import): Avoid
15840         shell syntax errors from parsing syntax extensions.
15841
15842 2010-09-09  Bruno Haible  <bruno@clisp.org>
15843
15844         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15845         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15846         a reliable way to determine whether the 'alias' command works.
15847
15848 2010-09-08  Jim Meyering  <meyering@redhat.com>
15849
15850         init.sh: penalize a set-x-impaired shell; don't disqualify it
15851         * tests/init.sh: Too many shells corrupt application stderr when
15852         you set -x, so we can't afford to disqualify them, since at least
15853         on Irix-6.5, that would disqualify all bourne shells.
15854         Instead, use a two-pass approach.
15855         On the first pass, try to find a shell that meets the stricter
15856         condition that set -x does not corrupt stderr.
15857         If no shell meets the stricter condition, retest each candidate
15858         shell, but without that extra condition.  Finally, when
15859         VERBOSE=yes is requested and set -x might cause trouble, simply
15860         issue a warning and refrain from enabling debug output.
15861
15862 2010-09-08  Eric Blake  <eblake@redhat.com>
15863
15864         unsetenv: fix OpenBSD bug
15865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15866         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15867         documentation.
15868         Reported by Jim Meyering.
15869
15870         strtod: work around IRIX 6.5 bug
15871         * lib/strtod.c (strtod): Reparse number on shorter string if
15872         exponent parse was invalid.
15873         * tests/test-strtod.c (main): Add check for "0x1p 2".
15874         Reported by Tom G. Christensen.
15875
15876         getopt: optimize previous patch
15877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15878         empty variable.  Speed up awk script.
15879         Reported by Paolo Bonzini.
15880
15881 2010-09-08  Jim Meyering  <meyering@redhat.com>
15882
15883         test.sh: disqualify shells for which set -x corrupts stderr
15884         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15885         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15886         appear in stderr output.  For example, this command:
15887             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15888         prints "P=1" on those two systems:
15889
15890 2010-09-08  Bruno Haible  <bruno@clisp.org>
15891
15892         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15893         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15894         commands, because some shells ignore redirections when there is an
15895         error in the command lookup.
15896         Reported by Eric Blake.
15897
15898 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15899
15900         * lib/regex.h: Fix a mention of `regex_compile' (should be
15901         `re_compile_pattern').
15902         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15903         (re_set_registers): Correct name of parameter in comment.
15904
15905         * doc/regex.texi: Add documentation for missing syntax flags.
15906         Remove commented-out documentation of defunct syntax option
15907         RE_NO_EMPTY_ALTS.
15908         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15909         Add documentation of re_set_registers.
15910         Document trick to re-use a pattern buffer by setting fastmap manually.
15911         Update documentation of struct re_pattern_buffer per public members.
15912         Uncomment documentation of equivalence class operators and
15913         collating symbol operators, since they are now implemented,
15914         Explain leftmost-longest matching in relation to alternatives.
15915         Tidy documentation of substring matching.
15916         Remove POSIX documentation, which is done better in
15917         glibc, and refer the reader there. Keep BSD API documentation, as
15918         that is not readily available elsewhere.
15919
15920 2010-09-07  Eric Blake  <eblake@redhat.com>
15921
15922         getopt: handle POSIXLY_CORRECT set but not exported
15923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15924         export state of POSIXLY_CORRECT, due to bash set -o posix.
15925         Reported by Dustin J. Mitchell.
15926
15927 2010-09-05  Bruno Haible  <bruno@clisp.org>
15928
15929         gnulib-tool: Highlight the changed options.
15930         * gnulib-tool (func_usage): Display the --import, --add-import,
15931         --remove-import explanations in bold font.
15932
15933 2010-09-06  Karl Berry  <karl@gnu.org>
15934
15935         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15936
15937 2010-09-05  Bruno Haible  <bruno@clisp.org>
15938
15939         uniwidth/width: Update comment.
15940         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15941         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15942
15943 2010-09-05  Bruno Haible  <bruno@clisp.org>
15944
15945         isinf, isnan: Relax license.
15946         * modules/isinf (License): Change from GPL to LGPL, with consent from
15947         Ben Pfaff.
15948         * modules/isnan (License): Likewise.
15949         Requested by Ludovic Courtès.
15950
15951 2010-09-04  Bruno Haible  <bruno@clisp.org>
15952
15953         gnulib-tool: Help migration from --import to --add-import or --update.
15954         * gnulib-tool: Emit a verbose error message when --import is used
15955         without any module name.
15956
15957 2010-09-04  Bruno Haible  <bruno@clisp.org>
15958
15959         Update doc about gnulib-tool.
15960         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15961         'gnulib-tool --update' in more detail.
15962         Reported by Eric Blake.
15963
15964 2010-09-04  Bruno Haible  <bruno@clisp.org>
15965
15966         gnulib-tool: Change --import. New options --add/remove-import.
15967         * gnulib-tool: New options --add-import, --remove-import.
15968         (func_usage): Document them.
15969         (have_associative): Define always.
15970         (func_import): In import mode, don't merge the specified settings with
15971         the cached settings. Implement remove-import mode.
15972         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15973         Explain when to use them versus --import.
15974         (Simple update): Use --add-import instead of --import.
15975         * NEWS: Mention the change.
15976
15977 2010-09-04  Bruno Haible  <bruno@clisp.org>
15978
15979         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15980         separate gnulib.mk.
15981
15982 2010-09-04  Bruno Haible  <bruno@clisp.org>
15983
15984         gnulib-tool: Don't talk about CVS any more.
15985         * gnulib-tool (func_usage, func_import): Write "version control"
15986         instead of CVS.
15987
15988 2010-09-04  Jim Meyering  <meyering@redhat.com>
15989
15990         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15991         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15992         false positives (whose names may be ill-chosen) when searching
15993         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15994         would cause a false-positive.
15995
15996         avoid coreutils "make distcheck" failure
15997         Coreutils tests with an absolute build directory name that contains
15998         a space.  Not quoting this directory name caused a failure.
15999         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16000         * tests/test-vc-list-files-cvs.sh: Likewise.
16001
16002 2010-09-04  Bruno Haible  <bruno@clisp.org>
16003
16004         gnulib-tool: Avoid error when run in a package without Makefile.am.
16005         * gnulib-tool: When collecting the m4dirs in a package that does not
16006         have a Makefile.am, eliminate those directories that contain no
16007         gnulib-cache.m4. Fix expression that counts these directories.
16008
16009 2010-09-04  Bruno Haible  <bruno@clisp.org>
16010
16011         update-copyright test: Improve output when perl is missing or too old.
16012         * tests/test-update-copyright.sh: Move test of Perl version down after
16013         the test whether Perl exists. Provide an explanation relating Perl's
16014         error message to Automake's SKIP: message.
16015
16016 2010-09-04  Bruno Haible  <bruno@clisp.org>
16017
16018         Don't augment PATH in TESTS_ENVIRONMENT.
16019         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16020         set abs_aux_dir instead of augmenting PATH.
16021         * modules/vc-list-files-tests (Makefile.am): Likewise.
16022         * tests/test-update-copyright.sh: Augment PATH here.
16023         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16024         path_prepend_.
16025         * tests/test-vc-list-files-git.sh: Likewise.
16026
16027 2010-09-04  Jim Meyering  <meyering@redhat.com>
16028
16029         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16030         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16031
16032 2010-09-04  Bruno Haible  <bruno@clisp.org>
16033
16034         strdup: Fix compilation error in C++ mode.
16035         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16036         the macro.
16037
16038 2010-09-04  Bruno Haible  <bruno@clisp.org>
16039
16040         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16041         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16042         macro into a function.
16043         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16044
16045 2010-09-04  Bruno Haible  <bruno@clisp.org>
16046
16047         Set PATH_SEPARATOR the same way autoconf does.
16048         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16049         the value of PATH_SEPARATOR the same way autoconf-generated configure
16050         scripts do.
16051         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16052         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16053
16054 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16055
16056         Set PATH_SEPARATOR the same way autoconf does.
16057         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16058         the same way autoconf-generated configure scripts do.
16059         * posix-modules: Likewise.
16060
16061 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16062
16063         hash: fix safe_hasher const typo
16064         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16065         const; otherwise, there is a type error later.
16066
16067 2010-09-02  Jim Meyering  <meyering@redhat.com>
16068
16069         test-update-copyright.sh: require perl 5.8.0
16070         * tests/test-update-copyright.sh: Require 5.8.0,
16071         which Tom G. Christensen has confirmed is adequate,
16072         while 5.6.1 is not.
16073
16074 2010-09-02  Eric Blake  <eblake@redhat.com>
16075
16076         tests: init.sh improvements for re-exec'ing with zsh
16077         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16078         -vx through shell re-exec.
16079         Reported by Tom G. Christensen.
16080
16081         wctype: fix typo in previous commit
16082         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16083         Reported by Ludovic Courtès.
16084
16085 2010-09-02  Jim Meyering  <meyering@redhat.com>
16086
16087         test-update-copyright.sh: skip test if Perl is too old
16088         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16089         Reported by Tom G. Christensen.
16090
16091 2010-09-02  Bruno Haible  <bruno@clisp.org>
16092
16093         wctype: Avoid compilation error on IRIX 6.5.30.
16094         * lib/wctype.in.h (iswblank): Declare with a replacement if
16095         REPLACE_ISWBLANK is set.
16096         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16097         declared. Set REPLACE_ISWBLANK.
16098         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16099         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16100         * doc/posix-headers/wctype.texi: Likewise.
16101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16102
16103 2010-09-01  Bruno Haible  <bruno@clisp.org>
16104
16105         New module 'socketlib'.
16106         * modules/socketlib: New file.
16107         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16108         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16109         * modules/sockets (Depends-on): Add socketlib.
16110         Suggested by Sam Steingold <sds@gnu.org>.
16111
16112 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16113
16114         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16115
16116         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16117         when one needs search access to a directory but not read access.
16118         On systems where it is available, it works in some cases where
16119         O_RDONLY does not, namely on directories that are searchable but
16120         not readable, and which need only to be searchable.  If O_SEARCH
16121         is not available, fall back to the traditional method of using
16122         O_RDONLY.
16123
16124         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16125         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16126         when opening a directory that needs only to be searchable.
16127         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16128         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16129         * lib/openat-proc.c (openat_proc_name): Likewise.
16130         * lib/openat.c (openat_needs_fchdir): Likewise.
16131         * lib/save-cwd.c (save_cwd): Likewise.
16132         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16133
16134 2010-08-28  Bruno Haible  <bruno@clisp.org>
16135
16136         New module 'host-cpu-c-abi'.
16137         * modules/host-cpu-c-abi: New file.
16138         * m4/host-cpu-c-abi.m4: New file, based on part of
16139         clisp/src/m4/general.m4.
16140         Requested by Sam Steingold <sds@gnu.org>.
16141
16142 2010-08-31  Eric Blake  <eblake@redhat.com>
16143         and Jim Meyering  <meyering@redhat.com>
16144
16145         hash: factor, and guard against misbehaving hasher function
16146         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16147         of table->hasher's return value.  Also protect against a hash value
16148         so large that adding it to table->bucket results in a NULL pointer.
16149         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16150         Use it in place of open-coded check-and-abort.
16151
16152 2010-08-30  Bruno Haible  <bruno@clisp.org>
16153
16154         hash: silence spurious clang warning
16155         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16156         Reported by Eric Blake.
16157
16158 2010-08-30  Eric Blake  <eblake@redhat.com>
16159
16160         strstr, memmem, strcasestr: avoid leaked shell message
16161         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16162         FreeBSD.
16163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16165
16166         tests: silence clang warning
16167         * tests/test-malloca.c (do_allocation): Avoid dead store.
16168
16169 2010-08-29  Bruno Haible  <bruno@clisp.org>
16170
16171         gettext: Fix recent mistake.
16172         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16173
16174 2010-08-29  Bruno Haible  <bruno@clisp.org>
16175
16176         selinux-h: Offer a --without-selinux option.
16177         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16178         --without-selinux was specified, skip all tests and define
16179         HAVE_SELINUX_SELINUX_H to 0.
16180         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16181         set LIB_SELINUX to empty.
16182         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16183         gl_LIBSELINUX. If --without-selinux was specified, replace
16184         selinux/context.h.
16185         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16186
16187 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16188             Bruno Haible  <bruno@clisp.org>
16189
16190         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16191         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16192         of HAVE_REALLOC.
16193         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16194         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16195         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16196         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16197
16198 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16199             Bruno Haible  <bruno@clisp.org>
16200
16201         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16202         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16203         HAVE_CALLOC.
16204         * lib/xmalloc.c: Update accordingly.
16205         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16206         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16207         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16208
16209 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16210             Bruno Haible  <bruno@clisp.org>
16211
16212         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16213         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16214         HAVE_MALLOC.
16215         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16216         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16217         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16218
16219 2010-08-29  Bruno Haible  <bruno@clisp.org>
16220
16221         Update modules list.
16222         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16223         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16224         (String handling <string.h>): Add astrxfrm.
16225         (File system functions): Add readlinkat.
16226
16227 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16228
16229         Tests for module 'realloc-gnu'.
16230         * modules/realloc-gnu-tests: New file.
16231         * tests/test-realloc-gnu.c: New file.
16232
16233         Tests for module 'calloc-gnu'.
16234         * modules/calloc-gnu-tests: New file.
16235         * tests/test-calloc-gnu.c: New file.
16236
16237         Tests for module 'malloc-gnu'.
16238         * modules/malloc-gnu-tests: New file.
16239         * tests/test-malloc-gnu.c: New file.
16240
16241 2010-08-28  Bruno Haible  <bruno@clisp.org>
16242
16243         Rename module 'realloc' -> 'realloc-gnu'.
16244         * modules/realloc-gnu: New file, copied from modules/realloc.
16245         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16246         obsolete.
16247         * modules/mgetgroups (Depends-on): Update.
16248         * doc/posix-functions/realloc.texi: Update.
16249         * NEWS: Mention the change.
16250
16251         Rename module 'calloc' -> 'calloc-gnu'.
16252         * modules/calloc-gnu: New file, copied from modules/calloc.
16253         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16254         obsolete.
16255         * doc/posix-functions/calloc.texi: Update.
16256         * NEWS: Mention the change.
16257
16258         Rename module 'malloc' -> 'malloc-gnu'.
16259         * modules/malloc-gnu: New file, copied from modules/malloc.
16260         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16261         obsolete.
16262         * modules/argp (Depends-on): Update.
16263         * modules/regex (Depends-on): Update.
16264         * doc/posix-functions/malloc.texi: Update.
16265         * NEWS: Mention the change.
16266
16267 2010-08-28  Eric Blake  <eblake@redhat.com>
16268
16269         pread, pwrite: add missing dependency
16270         * modules/pread (Depends-on): Add extensions.
16271         * modules/pwrite (Depends-on): Likewise.
16272
16273 2010-08-28  Bruno Haible  <bruno@clisp.org>
16274
16275         unistr/u*-strchr: Fix tests dependencies.
16276         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16277         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16278         Reported by Ian Beckwith <ianb@erislabs.net>.
16279
16280 2010-08-28  Bruno Haible  <bruno@clisp.org>
16281
16282         read-file: Don't occupy too much unused memory.
16283         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16284
16285 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16286             Eric Blake  <eblake@redhat.com>
16287             Bruno Haible  <bruno@clisp.org>
16288
16289         read-file: Avoid memory reallocations with regular files.
16290         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16291         (fread_file): With regular files, use the remaining length as the
16292         initial buffer size.  Check against overflow.
16293         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16294         sys_stat.
16295
16296 2010-08-28  Bruno Haible  <bruno@clisp.org>
16297
16298         ftello: Relax license.
16299         * modules/ftello (License): Relax to LGPLv2+.
16300         Reported by Eric Blake.
16301
16302 2010-08-28  Bruno Haible  <bruno@clisp.org>
16303
16304         Avoid relocwrapper link errors due to gnulib replacement functions.
16305         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16306         function.
16307         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16308
16309 2010-08-28  Bruno Haible  <bruno@clisp.org>
16310
16311         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16312         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16313         defined.
16314         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16315         Suggested by Eric Blake.
16316
16317 2010-08-28  Bruno Haible  <bruno@clisp.org>
16318
16319         sys_socket, netdb: Ensure socklen_t gets defined.
16320         * modules/sys_socket (Depends-on): Add socklen.
16321         * modules/netdb (Depends-on): Likewise.
16322         * modules/getaddrinfo (Depends-on): Remove socklen.
16323         * modules/getsockopt (Depends-on): Likewise.
16324         * modules/setsockopt (Depends-on): Likewise.
16325         * tests/test-sys_socket.c: Check that socklen_t is defined.
16326         * tests/test-netdb.c: Likewise.
16327         * m4/socklen.m4: Update comments.
16328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16329
16330 2010-08-27  Eric Blake  <eblake@redhat.com>
16331
16332         login_tty: add missing dependency
16333         * modules/login_tty (Depends-on): Add pty.
16334
16335 2010-08-26  Eric Blake  <eblake@redhat.com>
16336
16337         lib-symbol-versions: fix m4 quoting
16338         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16339         format for AC_LINK_IFELSE.
16340
16341         glob: fix compile test
16342         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16343
16344         btowc: fix missing file
16345         * modules/btowc (Files): Also ship locale-fr.m4.
16346
16347         lseek: fix link test
16348         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16349         AC_LINK_IFELSE.
16350
16351         include_next: silence autoconf 2.68 warning
16352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16353         AC_COMPILE_IFELSE as special.
16354         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16355         autoconf < 2.68.
16356
16357         acl: fix compilation test
16358         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16359         AC_COMPILE_IFELSE.
16360
16361 2010-08-26  Bruno Haible  <bruno@clisp.org>
16362
16363         Modernize AC_TRY_RUN invocations.
16364         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16365         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16366         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16367         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16368         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16369         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16370         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16372         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16373         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16374         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16375         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16376         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16377         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16378         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16379         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16380         gl_MBRLEN_NUL_RETVAL): Likewise.
16381         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16382         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16383         Likewise.
16384         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16385         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16386         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16387         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16388         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16389         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16390         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16391         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16392         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16393         Likewise.
16394         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16395         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16397         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16400         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16401         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16402         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16404
16405 2010-08-26  Bruno Haible  <bruno@clisp.org>
16406
16407         Modernize AC_TRY_LINK invocations.
16408         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16409         AC_TRY_LINK.
16410         * m4/argp.m4 (gl_ARGP): Likewise.
16411         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16412         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16413         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16415         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16416         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16417         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16418         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16419         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16420         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16421         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16422         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16423         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16424         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16425         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16426         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16427         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16428         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16429         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16430         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16431         Likewise.
16432         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16433         Likewise.
16434         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16435         Likewise.
16436         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16438         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16439         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16440         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16441         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16442         * m4/servent.m4 (gl_SERVENT): Likewise.
16443         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16444         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16445         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16446         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16447         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16448         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16451         * modules/tsearch-tests (configure.ac): Likewise.
16452
16453 2010-08-26  Bruno Haible  <bruno@clisp.org>
16454
16455         Modernize AC_TRY_COMPILE invocations.
16456         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16457         AC_TRY_COMPILE.
16458         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16459         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16460         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16461         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16462         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16463         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16464         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16465         * m4/lock.m4 (gl_LOCK): Likewise.
16466         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16468         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16469         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16470         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16471         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16472         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16474         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16475         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16476         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16477         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16478         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16479         extraneous semicolon.
16480
16481 2010-08-26  Jim Meyering  <meyering@redhat.com>
16482
16483         stat-time: relax license LGPL
16484         * modules/stat-time (License): Change from GPL to LGPL,
16485         with consent from all contributors, for use in libguile.
16486         Requested by Ludovic Courtès.
16487
16488 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16489
16490         poll: return immediately on POLLHUP.
16491         * lib/poll.c (poll): Always set timeout before wait_timeout is
16492         computed.
16493
16494 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16495
16496         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16497         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16498         rmdir ("dir/.//"), unlinkat.
16499
16500 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16501
16502         stdbool: avoid spurious failure with modern xlc
16503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16504
16505 2010-08-24  Bruno Haible  <bruno@clisp.org>
16506
16507         getloadavg: simplify code
16508         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16509         gl_have_func. Update comments.
16510
16511 2010-08-24  Eric Blake  <eblake@redhat.com>
16512
16513         getloadavg: don't define SVR4 on cygwin
16514         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16515         only define SVR4 when -lkvm is required.
16516         Reported by Yaakov Selkowitz.
16517
16518 2010-08-24  Bruno Haible  <bruno@clisp.org>
16519
16520         priv-set: fix comment
16521         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16522
16523 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         priv-set: fix comments
16526         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16527         to match code, as suggested by David Bartley in:
16528         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16529
16530 2010-08-23  Eric Blake  <eblake@redhat.com>
16531
16532         stdbool: avoid rejecting clang
16533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16534         * tests/test-stdbool.c: Enable more tests if using the system
16535         <stdbool.h> instead of the gnulib replacement.
16536         (main): Move xlc bug test to a runtime test for all compilers.
16537         Reported by Anders Kaseorg.
16538
16539         argz: fix shell quoting issue
16540         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16541         Reported by Charles Wilson.
16542
16543 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16544             Erik Faye-Lund <kusmabite@gmail.com>
16545
16546         poll, select: handle ERROR_BROKEN_PIPE.
16547         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16548         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16549         * lib/select.c (win32_compute_revents): Do not mark a pipe
16550         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16551
16552 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16553
16554         fts: allow compilation with C++
16555         * lib/fts_.h: Specify extern "C" linkage with C++.
16556
16557 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16558
16559         Fix gnulib-tool sed script de-commentation for AIX sed.
16560         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16561         sed.
16562
16563 2010-08-17  Eric Blake  <eblake@redhat.com>
16564
16565         test-stddef: test for (some) offsetof bugs
16566         * tests/test-stddef.c: Enhance test to ensure correct type of
16567         offsetof.
16568         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16569         that we are not fixing at this time.
16570
16571 2010-08-15  Bruno Haible  <bruno@clisp.org>
16572
16573         stpncpy: Allow stpncpy to be defined as a macro.
16574         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16575         if it's already correctly declared.
16576         * lib/string.in.h (stpncpy): Undefine before redefining.
16577         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16578
16579 2010-08-14  Bruno Haible  <bruno@clisp.org>
16580
16581         Rename module 'memxfrm' to 'amemxfrm'.
16582         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16583         (amemxfrm): Renamed from memxfrm.
16584         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16585         (amemxfrm): Renamed from memxfrm.
16586         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16587         * NEWS: Mention the change.
16588         * MODULES.html.sh (String handling <string.h>): Update.
16589         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16590         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16591         * lib/unicase/u16-casexfrm.c: Likewise.
16592         * lib/unicase/u32-casexfrm.c: Likewise.
16593         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16594         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16595         * lib/uninorm/u16-normxfrm.c: Likewise.
16596         * lib/uninorm/u32-normxfrm.c: Likewise.
16597         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16598         memxfrm.
16599         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16600         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16601         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16602         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16603         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16604         Suggested by Paul Eggert.
16605
16606 2010-08-14  Bruno Haible  <bruno@clisp.org>
16607
16608         Tests for module 'astrxfrm'.
16609         * modules/astrxfrm-tests: New file.
16610         * tests/test-astrxfrm.c: New file.
16611
16612         New module 'astrxfrm'.
16613         * lib/astrxfrm.h: New file.
16614         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16615         * modules/astrxfrm: New file.
16616
16617 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16618
16619         regex: Tweak doc.
16620         * doc/regex.texi (Overview): Don't mention regex.c.
16621         (GNU Regular Expression Compiling): Likewise.
16622         (Match-end-of-line Operator): Mention 'not_eol'.
16623
16624 2010-08-14  Brian Gough  <bjg@gnu.org>
16625             Bruno Haible  <bruno@clisp.org>
16626
16627         git-merge-changelog: add doc relating to use with bzr and hg.
16628         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16629
16630 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16631
16632         pthread: fix pthread.h creation for srcdir != builddir
16633         * modules/pthread (Makefile.am): Fix the rule to work also in a
16634         non-srcdir build.
16635
16636 2010-08-13  Karl Berry  <karl@gnu.org>
16637
16638         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16639         * doc/posix-*/*: force line break before @url of POSIX
16640         specifications.
16641         Suggested by Werner Lemberg.
16642
16643 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         strtod: fix const diagnostic
16646         * lib/strtod.c (strtod): Don't assign const char * to char *,
16647         as this elicits a warning from GCC when warnings are enabled.
16648
16649 2010-08-10  Pádraig Brady <P@draigbrady.com>
16650         and Eric Blake  <eblake@redhat.com>
16651
16652         copy-acl: ignore ENOTSUP on HP-UX
16653         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16654         so that it is available for HP-UX.
16655         * lib/copy-acl.c (qcopy_acl): Use it.
16656         Reported by Patrick M. Callahan.
16657
16658 2010-08-10  Eric Blake  <eblake@redhat.com>
16659
16660         open, chown: relax license
16661         * modules/open (License): Change to LGPLv2+, with consent by all
16662         authors, for use in augeas.
16663         * modules/chown (License): Likewise.
16664         * modules/lchown (Likewise): Likewise.
16665         Requested by Adam Stokes.
16666
16667 2010-08-09  Karl Berry  <karl@gnu.org>
16668
16669         * build-aux/ar-lib: new file, import from Automake.
16670         * config/srclist.txt: autocheck for updates.
16671
16672 2010-08-09  Eric Blake  <eblake@redhat.com>
16673
16674         readlinkat: adjust client modules
16675         * modules/areadlinkat (Depends-on): Use readlinkat, not
16676         symlinkat.
16677         * modules/areadlinkat-with-size (Depends-on): Likewise.
16678
16679         mknod: be more vocal about danger of running tests as root
16680         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16681         root, since that is just asking for problems.
16682         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16683
16684         readlinkat: split into its own module
16685         * modules/symlinkat: Split readlinkat...
16686         * modules/readlinkat: ...into separate module.
16687         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16688         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16689         * lib/symlinkat.c (readlinkat): Move...
16690         * lib/readlinkat.c: ...into new file.
16691         * modules/symlinkat-tests: Split readlinkat test...
16692         * modules/readlinkat-tests: ...into separate module.
16693         * tests/test-symlinkat.c: Split...
16694         * tests/test-readlinkat.c: ...into new file.
16695         * NEWS: Document the split.
16696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16697         * lib/unistd.in.h (readlinkat): Likewise.
16698         Suggested by Bruno Haible.
16699
16700 2010-08-08  Bruno Haible  <bruno@clisp.org>
16701
16702         memxfrm: Speed up.
16703         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16704         that usually only one call to strxfrm is necessary for each string
16705         part.
16706         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16707
16708 2010-08-07  Karl Berry  <karl@gnu.org>
16709
16710         * doc/posix-headers/limits.texi,
16711         * doc/posix-functions/malloc.texi,
16712         * doc/posix-functions/strsignal.texi: missing @item.
16713         * doc/ld-version-script.texi: spurious leading i.
16714         * doc/regex.texi (Interval Operators): no commas inside @var.
16715
16716 2010-08-01  Bruno Haible  <bruno@clisp.org>
16717
16718         Integrate the regex documentation.
16719         * doc/gnulib.texi: Define 'cn' index.
16720         (Regular expressions): New a chapter that includes regex.texi and
16721         regexprops-generic.texi.
16722         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16723         syntax.
16724
16725         Whitespace cleanup.
16726         * doc/regex.texi: Remove trailing spaces.
16727
16728         Add regex documentation.
16729         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16730         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16731         Written by Kathy A. Hargreaves and Karl Berry.
16732
16733 2010-08-01  Bruno Haible  <bruno@clisp.org>
16734
16735         link: Update documentation.
16736         * doc/posix-functions/link.texi: Update regarding Solaris.
16737
16738 2010-07-31  Bruno Haible  <bruno@clisp.org>
16739
16740         Update modules list.
16741         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16742         (String handling <string.h>): Add memcmp2, memxfrm.
16743         (Container data structures): Add xlist, xsublist, xoset.
16744         (Core language properties): Add alignof, unused-parameter.
16745         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16746         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16747         (Unibyte characters <ctype.h>): New section.
16748         (String handling <string.h>): New section.
16749         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16750         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16751         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16752         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16753         tan, tanh, tanl, y0, y1, yn.
16754         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16755         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16756         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16757         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16758         unlockpt, vdprintf, vdprintf-posix.
16759         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16760         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16761         xconcat-filename.
16762         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16763         getdtablesize, pipe2, pipe2-safer.
16764         (Security): New section.
16765         (Networking functions): Add accept4.
16766         (Signal handling): Add sigpipe.
16767         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16768         mbmemcasecoll.
16769         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16770         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16771         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16772         pipe-filter-ii.
16773         (Misc): Add argp-version-etc, login_tty, parse-duration.
16774
16775 2010-07-31  Bruno Haible  <bruno@clisp.org>
16776
16777         Improve doc in MODULES.html.
16778         * modules/linkat (Description): Add the word "function".
16779         * modules/mkfifo (Description): Likewise.
16780         * modules/mknod (Description): Likewise.
16781         * modules/remove (Description): Likewise.
16782         * modules/renameat (Description): Likewise.
16783         * modules/stat (Description): Likewise.
16784         * modules/symlink (Description): Likewise.
16785         * modules/unlink (Description): Likewise.
16786
16787 2010-07-31  Bruno Haible  <bruno@clisp.org>
16788
16789         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16790         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16791         option --enable/disable-c++ instead of --enable/disable-cxx.
16792         * NEWS: Mention the change.
16793
16794 2010-07-31  Bruno Haible  <bruno@clisp.org>
16795
16796         readlink, areadlink: Relax test a bit.
16797         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16798         alternative to ENOTDIR.
16799         * tests/test-areadlink.h (test_areadlink): Likewise.
16800         Reported by Rainer Tammer.
16801
16802 2010-07-31  Bruno Haible  <bruno@clisp.org>
16803
16804         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16805         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16806         character, perform the search using U_STRCHR.
16807         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16808         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16809         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16810         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16811         Suggested by Paolo Bonzini.
16812
16813 2010-07-31  Bruno Haible  <bruno@clisp.org>
16814
16815         unistr/u*-strstr: Fix dependencies.
16816         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16817         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16818         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16819
16820 2010-07-31  Bruno Haible  <bruno@clisp.org>
16821
16822         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16823         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16824         the beginning of the loop.
16825         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16826         cases in 'switch' statement.
16827
16828         unistr/u8-strchr: Fix several bugs.
16829         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16830         the string. When not found, return NULL, not a pointer near the end.
16831
16832         More tests for unistr/u8-strchr.
16833         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16834         that the function does not read past the first occurrence of the byte
16835         being searched.
16836         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16837         * tests/unistr/test-u16-strchr.c (main): New function.
16838         * tests/unistr/test-u32-strchr.c (main): New function.
16839
16840 2010-07-31  Bruno Haible  <bruno@clisp.org>
16841
16842         posix-modules: Ignore backup files of documentation files.
16843         * posix-modules: grep only through files named *.texi.
16844
16845 2010-07-31  Bruno Haible  <bruno@clisp.org>
16846
16847         symlinkat: Fix documentation.
16848         * doc/posix-functions/readlinkat.texi: Fix module name.
16849
16850 2010-07-31  Bruno Haible  <bruno@clisp.org>
16851
16852         fchownat: Replace also when chown has the trailing slash bug.
16853         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16854         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16855         introduced on 2010-04-10.
16856         Reported by Rainer Tammer.
16857
16858 2010-07-31  Bruno Haible  <bruno@clisp.org>
16859
16860         linkat: Work around AIX 7.1 bug.
16861         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16862         whether linkat handles trailing slash correctly. If not, replace linkat
16863         and define LINKAT_TRAILING_SLASH_BUG.
16864         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16865         check whether (fd1,file1) points to a directory if file1 or file2 ends
16866         in a slash. Code taken from lib/link.c.
16867         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16868         Reported by Rainer Tammer.
16869
16870 2010-07-31  Bruno Haible  <bruno@clisp.org>
16871
16872         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16873         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16874         This disables an xlc optimization that was causing wrong test results.
16875         Reported by Rainer Tammer.
16876
16877 2010-07-31  Bruno Haible  <bruno@clisp.org>
16878
16879         iconv: Work around AIX 6.1..7.1 bug.
16880         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16881         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16882         cross-compiling, guess no on all versions of AIX.
16883         Reported by Rainer Tammer.
16884
16885 2010-07-31  Bruno Haible  <bruno@clisp.org>
16886
16887         readlink: Relax test a bit.
16888         * tests/test-readlink.h (test_readlink): Allow different errno value
16889         when readlink is called with a file name that ends in / and refers to
16890         a file.
16891         Suggested by Eric Blake.
16892         Reported by Rainer Tammer.
16893
16894 2010-07-31  Bruno Haible  <bruno@clisp.org>
16895
16896         copysign: Does not require -lm on glibc systems.
16897         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16898         gl_COMMON_DOUBLE_MATHFUNC.
16899         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16900
16901 2010-07-31  Bruno Haible  <bruno@clisp.org>
16902
16903         duplocale: Work around AIX 7.1 bug.
16904         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16905         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16906         * lib/duplocale.c (rpl_duplocale): Update comment.
16907         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16908         Reported by Rainer Tammer.
16909
16910 2010-07-30  Bruno Haible  <bruno@clisp.org>
16911
16912         dirfd: Avoid link error on AIX 7.1.
16913         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16914         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16915         exist, set REPLACE_DIRFD.
16916         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16917         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16918         * doc/posix-functions/dirfd.texi: Update.
16919         Reported by Rainer Tammer.
16920
16921 2010-07-30  Eric Blake  <eblake@redhat.com>
16922
16923         strtod: next round of AIX fixes
16924         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16925         exponent.
16926         * tests/test-strtod.c (main): Enhance tests.
16927         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16928         Reported by Rainer Tammer.
16929
16930         futimens: fix configure check
16931         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16932         Reported by Bruno Haible.
16933
16934 2010-07-30  Bruno Haible  <bruno@clisp.org>
16935
16936         getline: Update regarding AIX.
16937         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16938         Reported by Rainer Tammer.
16939
16940 2010-07-30  Bruno Haible  <bruno@clisp.org>
16941
16942         wcwidth: Drop replacement on AIX 7.
16943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16944         AIX 7.
16945         Reported by Rainer Tammer.
16946
16947 2010-07-30  Bruno Haible  <bruno@clisp.org>
16948
16949         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16950         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16951         a 'char *'.
16952         Reported by Rainer Tammer.
16953
16954 2010-07-30  Bruno Haible  <bruno@clisp.org>
16955
16956         unlink: Update regarding AIX.
16957         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16958         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16959         Reported by Rainer Tammer.
16960
16961 2010-07-30  Bruno Haible  <bruno@clisp.org>
16962
16963         symlink: Update regarding AIX.
16964         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16965         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16966         Reported by Rainer Tammer.
16967
16968 2010-07-30  Bruno Haible  <bruno@clisp.org>
16969
16970         strndup: Update regarding AIX.
16971         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16972         AIX 7.
16973         Reported by Rainer Tammer.
16974
16975 2010-07-30  Bruno Haible  <bruno@clisp.org>
16976
16977         stat: Update regarding AIX.
16978         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16979         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16980         Reported by Rainer Tammer.
16981
16982 2010-07-30  Bruno Haible  <bruno@clisp.org>
16983
16984         truncl: Fix autoconf test.
16985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16986         whether truncl works.
16987         Reported by Rainer Tammer.
16988
16989 2010-07-30  Bruno Haible  <bruno@clisp.org>
16990
16991         round: Update regarding AIX.
16992         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16993         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16994         Reported by Rainer Tammer.
16995
16996 2010-07-30  Bruno Haible  <bruno@clisp.org>
16997
16998         rename: Update regarding AIX.
16999         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17000         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17001         Reported by Rainer Tammer.
17002
17003 2010-07-30  Bruno Haible  <bruno@clisp.org>
17004
17005         printf.m4: Update regarding AIX.
17006         * m4/printf.m4: Update comments regarding AIX.
17007         Reported by Rainer Tammer.
17008
17009 2010-07-30  Bruno Haible  <bruno@clisp.org>
17010
17011         iconv: Update regarding AIX.
17012         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17013         AIX 7.
17014         Reported by Rainer Tammer.
17015
17016 2010-07-30  Bruno Haible  <bruno@clisp.org>
17017
17018         getopt: Update regarding AIX.
17019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17020         no on AIX.
17021         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17022         Reported by Rainer Tammer.
17023
17024 2010-07-30  Bruno Haible  <bruno@clisp.org>
17025
17026         ldexpl; Update regarding AIX.
17027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17028         on AIX 7.
17029         Reported by Rainer Tammer.
17030
17031 2010-07-30  Bruno Haible  <bruno@clisp.org>
17032
17033         frexpl: Update regarding AIX.
17034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17035         on AIX 7.
17036         Reported by Rainer Tammer.
17037
17038 2010-07-30  Bruno Haible  <bruno@clisp.org>
17039
17040         open, fopen: Update regarding AIX.
17041         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17042         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17043         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17044         * doc/posix-functions/fopen.texi: Likewise.
17045         Reported by Rainer Tammer.
17046
17047 2010-07-30  Bruno Haible  <bruno@clisp.org>
17048
17049         chown: Update doc regarding AIX.
17050         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17051         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17052         Reported by Rainer Tammer.
17053
17054 2010-07-30  Eric Blake  <eblake@redhat.com>
17055
17056         strtod: fix bug in replacement function on AIX
17057         * lib/strtod.c (strtod): Special case broken "0x" parse in
17058         underlying strtod.
17059         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17060         * doc/posix-functions/strtod.texi (strtod): Likewise.
17061         Reported by Rainer Tammer.
17062
17063 2010-07-30  Bruno Haible  <bruno@clisp.org>
17064
17065         mbrlen: Fix cross-compilation guess for AIX.
17066         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17067         guess. Leftover from 2008-12-22.
17068
17069 2010-07-30  Bruno Haible  <bruno@clisp.org>
17070
17071         mbrtowc: Fix cross-compilation guess for AIX.
17072         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17073         guess. Leftover from 2008-12-21.
17074
17075 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17076
17077         init.sh: work around trap limitation of some shells
17078         * tests/init.sh (setup_): Move exit trap outside of shell function.
17079
17080 2010-07-29  Eric Blake  <eblake@redhat.com>
17081
17082         strtod: aid debugging
17083         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17084         understanding why strtod is rejected.
17085
17086 2010-07-28  Bruno Haible  <bruno@clisp.org>
17087
17088         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17089         * lib/unistr/u8-chr.c: Include <string.h>.
17090         * tests/unistr/test-u8-chr.c: Likewise.
17091         * tests/unistr/test-u16-chr.c: Likewise.
17092         * tests/unistr/test-u32-chr.c: Likewise.
17093         * tests/unistr/test-u8-strchr.c: Likewise.
17094         * tests/unistr/test-u16-strchr.c: Likewise.
17095         * tests/unistr/test-u32-strchr.c: Likewise.
17096         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17097         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17098         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17099         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17100
17101 2010-07-28  Bruno Haible  <bruno@clisp.org>
17102
17103         Use spaces for indentation, not tabs.
17104         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17105
17106 2010-07-27  Bruno Haible  <bruno@clisp.org>
17107
17108         mbspcasecmp: Fix function specification.
17109         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17110         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17111         Reported by Eric Blake <eblake@redhat.com>.
17112
17113 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17114
17115         timespec: use cast and not conditional, as truncation isn't possible
17116         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17117         instead of a conditional.  Comment about the situation in more detail.
17118         This undoes most of the 2009-10-29 patch.
17119
17120 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17121
17122         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17123         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17124         * lib/unistr/u8-strchr.c: Likewise.
17125         * modules/unistr/u8-chr: Depend on memchr.
17126
17127         unistr/u*-strchr: add tests
17128         * modules/unistr/u8-strchr-tests: New file.
17129         * modules/unistr/u16-strchr-tests: New file.
17130         * modules/unistr/u32-strchr-tests: New file.
17131         * tests/unistr/test-strchr.h: New file.
17132         * tests/unistr/test-u8-strchr.c: New file.
17133         * tests/unistr/test-u16-strchr.c: New file.
17134         * tests/unistr/test-u32-strchr.c: New file.
17135
17136         unistr/u*-chr: test multibyte sequences more
17137         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17138         test vector.
17139         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17140         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17141         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17142
17143         unistr/u*-chr: test multibyte sequences
17144         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17145
17146         unistr/u*-chr: prepare for multibyte tests
17147         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17148         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17149         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17150         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17151         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17152         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17153
17154 2010-07-18  Bruno Haible  <bruno@clisp.org>
17155
17156         unistr/u8-strchr: Optimize non-ASCII argument case.
17157         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17158         because the first byte often matches anyway.
17159         Reported by Pádraig Brady <P@draigbrady.com>.
17160
17161 2010-07-15  Karl Berry  <karl@gnu.org>
17162
17163         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17164
17165 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17166
17167         getcwd: on Solaris, work better if ancestors are inaccessible
17168         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17169         buffer and size, try again with a large buffer.  This works better
17170         on Solaris, since its getcwd succeeds even if the path to the root
17171         is inaccessible, and this is helpful in common cases such as .zfs
17172         hidden directories.  Problem reported by J Chapman Flack in
17173         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17174         Use system getcwd if it's declared, not merely if it's partly
17175         working; use the partly-working test only to avoid needless effort
17176         if the system getcwd fails.
17177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17178         comment that was already obsolete and is now even more obsolete.
17179         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17180         now might call strdup.
17181
17182 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17183
17184         pthread: Add enough so that coreutils/src/sort.c compiles.
17185         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17186         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17187         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17188         Include <sys/types.h>, in case it defines pthread_t.
17189         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17190         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17191         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17192         (pthread_rwlockattr_t, pthread_spinlock_t):
17193         New typedefs, if HAVE_PTHREAD_T is not defined.
17194         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17195         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17196         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17197         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17198         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17199         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17200         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17201         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17202         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17203         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17204         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17205         New macros.
17206         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17207         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17208         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17209         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17210         (pthread_spin_unlock): New dummy functions.
17211         (pthread_create): Return EAGAIN; don't set errno.
17212         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17213         require AC_C_INLINE.
17214         * modules/pthread (Depends-on): Add sched, time.
17215         (pthread.h): Use AM_V_GEN.
17216
17217 2010-07-13  Bruno Haible  <bruno@clisp.org>
17218
17219         striconveh: Don't malloc memory if the result buffer is sufficient.
17220         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17221         buffer if its size is sufficient.
17222         Reported by Ludovic Courtès <ludo@gnu.org>.
17223
17224 2010-07-13  Bruno Haible  <bruno@clisp.org>
17225
17226         strtod: Add safety check.
17227         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17228
17229 2010-07-12  Bruno Haible  <bruno@clisp.org>
17230
17231         Unify tests that set gl_cv_func_ldexpl_no_libm.
17232         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17233         gl_FUNC_LDEXPL.
17234         (gl_FUNC_LDEXPL): Invoke it.
17235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17236
17237 2010-07-12  Bruno Haible  <bruno@clisp.org>
17238
17239         Unify tests that set gl_cv_func_ldexp_no_libm.
17240         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17241         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17242         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17243         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17244         * modules/strtod (Files): Add m4/ldexp.m4.
17245
17246 2010-07-12  Bruno Haible  <bruno@clisp.org>
17247
17248         Unify tests that set gl_cv_func_frexpl_no_libm.
17249         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17250         gl_FUNC_FREXPL_NO_LIBM.
17251         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17252         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17253
17254 2010-07-12  Bruno Haible  <bruno@clisp.org>
17255
17256         Unify tests that set gl_cv_func_frexp_no_libm.
17257         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17258         gl_FUNC_FREXP_NO_LIBM.
17259         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17261
17262 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17263
17264         memcoll: clarify sizes versus lengths, document better, and tweak perf
17265         * lib/memcoll.c (strcoll_loop, memcoll0):
17266         Improve quality of descriptive comments.  Name variables
17267         consistently as to whether they are lengths (which do not include
17268         terminating null) versus sizes (which do).
17269         * lib/xmemcoll.c (xmemcoll0): Likewise.
17270         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17271         returned when s1size == 0; this is easier to compile and saves
17272         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17273
17274 2010-07-12  Bruno Haible  <bruno@clisp.org>
17275
17276         Tests for module '_Exit'.
17277         * modules/_Exit-tests: New file.
17278         * tests/test-_Exit.sh: New file.
17279         * tests/test-_Exit.c: New file.
17280
17281         New module '_Exit'.
17282         * lib/stdlib.in.h (__attribute__): New macro.
17283         (_Exit): New declaration.
17284         * lib/_Exit.c: New file.
17285         * m4/_Exit.m4: New file.
17286         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17287         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17288         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17289         * modules/_Exit: New file.
17290         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17291         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17292
17293 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17294
17295         strtod: make it more-accurate typically, and don't require libm
17296         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17297         Include limits.h.  Don't include string.h.
17298         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17299         (locale_isspace): New function, so that no casts are needed to
17300         check whether *s is a space.
17301         (ldexp): Provide an unused dummy if not available.
17302         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17303         (strtod): Use them.  This implementation prefers to use the
17304         underlying strtod if available, falling back on our own code
17305         only to fix known bugs.  This is more likely to produce an
17306         accurate result.  Also, it avoids the use of libm functions.
17307         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17308         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17309         was absent, but it caused a test failure with coreutils.
17310         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17311         with libm.
17312         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17313         * modules/strtod-tests (Makefile.am): Likewise.
17314
17315 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17316             Bruno Haible  <bruno@clisp.org>
17317
17318         unistr/u8-strchr: Optimize ASCII argument case.
17319         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17320
17321 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17322
17323         (x)memcoll: minor tweaks
17324         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17325         is after the type that it qualifies.
17326         (memcoll0): Likewise.
17327         * lib/memcoll.h (memcoll0): Likewise.
17328         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17329         * lib/xmemcoll.h (xmemcoll0): Likewise.
17330         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17331         differs from memcoll in that the NUL byte is part of the argument.
17332         Omit the abort-checks, as performance is a real issue here.  Plus,
17333         the checks were wrong anyway (an off-by-one error).  Omit local
17334         variable 'diff', as it's a bit clearer that way.
17335         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17336         no longer needed.
17337
17338 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17339
17340         (x)memcoll: speedup when input is known to be NUL delimited
17341         * lib/memcoll.c: Include stdlib.
17342         (memcoll0): New function.
17343         (strcoll_loop): New function, refactored for use in both memcoll
17344         and memcoll0.
17345         * lib/memcoll.h (memcoll0): Add prototype.
17346         * lib/xmemcoll.c (xmemcoll0): New function.
17347         (collate_error): New function, refactored for use in both xmemcoll
17348         and xmemcoll0.
17349         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17350         * m4/memcoll.m4: add inline invocation.
17351
17352 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17353
17354         * build-aux/bootstrap: Remove any local translations
17355         from the translation project synchronization directory,
17356         so that local only translations are not distributed.
17357
17358 2010-07-04  Bruno Haible  <bruno@clisp.org>
17359
17360         fsusage: Clarify which code applies to which platforms.
17361         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17362         platform.
17363         * lib/fsusage.c (get_fs_usage): Likewise.
17364
17365 2010-07-04  Bruno Haible  <bruno@clisp.org>
17366
17367         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17368         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17369         Reported by Martin Lambers <marlam@marlam.de>.
17370
17371 2010-07-04  Jim Meyering  <meyering@redhat.com>
17372
17373         hash: once again explicitly disallow insertion of NULL
17374         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17375         inserting a NULL pointer cannot work with these functions.
17376         Add a comment with details.
17377         This reverts part of the 2010-07-01 commit, 5bef1a35
17378         "hash: extend module to deal with non-pointer keys".
17379
17380 2010-07-01  Bruno Haible  <bruno@clisp.org>
17381
17382         stdbool: Update doc.
17383         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17384         Info from Christian Weisgerber <naddy@mips.inka.de>.
17385
17386 2010-07-01  Jim Meyering  <meyering@redhat.com>
17387
17388         hash: extend module to deal with non-pointer keys
17389         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17390         but that allows insertion of non-pointer entries.
17391         Do not disallow an ENTRY value of NULL.
17392         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17393         * lib/hash.h (hash_insert0): Declare.
17394
17395 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17396
17397         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17398         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17399         not present (i.e. with autoconf 2.59 and when using gettextize, not
17400         gnulib), require AC_GNU_SOURCE instead.
17401
17402 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17403
17404         idpriv-drop: Fix tests.
17405         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17406         not to the test-idpriv-droptemp program.
17407
17408 2010-06-29  Bruno Haible  <bruno@clisp.org>
17409
17410         string: Fix syntax error with g++ 2.96.
17411         * lib/string.in.h (__pure__): Remove definition.
17412         (_GL_ATTRIBUTE_PURE): New macro.
17413         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17414         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17415         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17416
17417 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17418
17419         unitypes: Fix bug introduced on 2010-05-18.
17420         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17421
17422 2010-06-22  Eric Blake  <eblake@redhat.com>
17423
17424         memmem: slight optimization
17425         * lib/str-two-way.h (critical_factorization): Update comments.
17426         Reduce work during factorization phase.
17427         Reported by Carlos Bueno <carlos@bueno.org>.
17428
17429 2010-06-21  Bruno Haible  <bruno@clisp.org>
17430
17431         Fix HAVE_CALLOC_POSIX misnomer.
17432         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17433         !HAVE_CALLOC_POSIX.
17434         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17435         HAVE_CALLOC_POSIX.
17436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17437         instead of HAVE_CALLOC_POSIX.
17438         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17439         HAVE_CALLOC_POSIX.
17440
17441         Use modern idiom for calloc() replacement.
17442         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17443         AC_FUNC_CALLOC.
17444         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17445         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17446         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17447         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17448         (gl_REPLACE_CALLOC): New macro.
17449
17450 2010-06-21  Bruno Haible  <bruno@clisp.org>
17451
17452         Fix HAVE_REALLOC_POSIX misnomer.
17453         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17454         !HAVE_REALLOC_POSIX.
17455         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17456         HAVE_REALLOC_POSIX.
17457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17458         instead of HAVE_REALLOC_POSIX.
17459         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17460         HAVE_REALLOC_POSIX.
17461
17462         Use modern idiom for realloc() replacement.
17463         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17464         AC_FUNC_REALLOC.
17465         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17466         Autoconf's AC_FUNC_REALLOC.
17467         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17468         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17469         (gl_REPLACE_REALLOC): New macro.
17470         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17471
17472 2010-06-21  Bruno Haible  <bruno@clisp.org>
17473
17474         Fix HAVE_MALLOC_POSIX misnomer.
17475         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17476         !HAVE_MALLOC_POSIX.
17477         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17478         HAVE_MALLOC_POSIX.
17479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17480         instead of HAVE_MALLOC_POSIX.
17481         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17482         HAVE_MALLOC_POSIX.
17483
17484         Use modern idiom for malloc() replacement.
17485         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17486         AC_FUNC_MALLOC.
17487         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17488         Autoconf's AC_FUNC_MALLOC.
17489         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17490         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17491         (gl_REPLACE_MALLOC): New macro.
17492         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17493
17494 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17495
17496         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17497         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17498         This macro takes 3 arguments, not 4.
17499
17500 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17501
17502         ipv6: fix detection under mingw
17503         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17504         in6_addr.
17505
17506 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17507
17508         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17509         that strtod() works when cross-compiling to a glibc version known
17510         to work.
17511
17512 2010-06-15  Bruno Haible  <bruno@clisp.org>
17513
17514         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17515
17516 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17517
17518         select: Correct timeout.
17519         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17520
17521 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17522
17523         git-version-gen: init shell var to avoid env var influence
17524         * build-aux/git-version-gen (v): Init shell var to empty.
17525
17526 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17527
17528         priv-set: Don't assume that priv.h exists merely because getppriv does.
17529         See Jan Andersen's bug report about AIX 5L in
17530         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17531         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17532         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17533         * lib/priv-set.h: Likewise.
17534         * tests/test-priv-set.c: Likewise.
17535
17536 2010-06-13  Bruno Haible  <bruno@clisp.org>
17537
17538         relocatable: Make it easier to test whether to install wrappers.
17539         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17540         RELOCATABLE_VIA_WRAPPER.
17541
17542 2010-06-13  Bruno Haible  <bruno@clisp.org>
17543
17544         gnulib-tool: Display specified modules and dependencies differently.
17545         * gnulib-tool (func_show_module_list): New function.
17546         (func_import, func_create_testdir): Invoke it.
17547         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17548
17549 2010-06-13  Bruno Haible  <bruno@clisp.org>
17550
17551         gnulib-tool: Align code of func_import and func_create_testdir.
17552         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17553         specified_modules.
17554
17555 2010-06-12  Jim Meyering  <meyering@redhat.com>
17556
17557         test-inttostr: avoid spurious failure on Solaris 9
17558         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17559         to accept "%ju".  Reported by Bruno Haible.
17560
17561 2010-06-11  Jim Meyering  <meyering@redhat.com>
17562
17563         test-sys_socket: mark variables as used more readably
17564         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17565         as "used" explicitly via (void) statement casts.  This is more
17566         readable than using them in an artificial return expression.
17567         Suggestion from Bruno Haible.
17568
17569 2010-06-11  Bruno Haible  <bruno@clisp.org>
17570
17571         Avoid some more warnings from "gcc -Wwrite-strings".
17572         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17573         to 'const char *'.
17574         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17575         * tests/test-c-strcasestr.c (main): Likewise.
17576         * tests/test-mbscasestr1.c (main): Likewise.
17577         * tests/test-mbscasestr2.c (main): Likewise.
17578         * tests/test-memmem.c (main): Likewise.
17579         * tests/test-strstr.c (main): Likewise.
17580         * tests/test-strcasestr.c (main): Likewise.
17581
17582 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17583
17584         init.sh: change framework_failure_ to fail with status 99, not 1
17585         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17586         automake's parallel-tests rule that this is an unexpected failure,
17587         even if the test is listed in XFAIL_TESTS.
17588
17589 2010-06-11  Jim Meyering  <meyering@redhat.com>
17590
17591         test-inttostr: avoid warnings about 4-6KB literal strings
17592         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17593         Include "macros.h", for its definition of ASSERT.
17594         (CK): s/assert/ASSERT/
17595         * modules/inttostr-tests (Files): Add macros.h.
17596
17597         init.sh: don't use $ME_ or skip_ before they are defined
17598         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17599         their first uses.  Also hoist their companions: warn_, fail_,
17600         framework_failure_, $stderr_fileno.  Prompted by a patch from
17601         Stefano Lattarini.
17602
17603         test-sys_socket: avoid set-but-not-used warnings from gcc
17604         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17605         avoid warning about set-but-not-used variables.
17606
17607         test-xvasprintf: avoid 'const' discard warnings
17608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17609         "const" when assigning from literal strings.
17610         (test_xasprintf): Add "void" in function argument list to placate
17611         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17612
17613         tests: avoid compilation warnings in argmatch and exclude tests...
17614         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17615         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17616         Since it always exits, declare with the "noreturn" attribute.
17617         * tests/test-argmatch.c: Likewise.
17618
17619         tests: avoid 'const' discard warnings in mbsstr tests
17620         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17621         * tests/test-mbsstr2.c (main): Likewise.
17622
17623         test-verify: avoid warning from gcc's -Wmissing-declarations
17624         * tests/test-verify.c (function): Declare to be static.
17625
17626         test-inttostr.c: include <string.h> for use of strcmp
17627         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17628
17629         test-linkat: avoid failed assertion on "other" architectures
17630         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17631         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17632         sparc: https://bugs.launchpad.net/bugs/591968
17633
17634 2010-06-11  Jim Meyering  <meyering@redhat.com>
17635
17636         printf.m4: avoid autoconf's "Expanded Before Required" warning
17637         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17638         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17639         autoconf warning.
17640
17641 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17642
17643         Replacement header templates are now named with ".in", not "_".
17644         * doc/gnulib-intro.texi: Correct.
17645
17646 2010-06-10  Jim Meyering  <meyering@redhat.com>
17647
17648         inttostr-tests: depend on snprintf, not snprintf-posix
17649         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17650         snprintf-posix, to avoid this aclocal failure:
17651           missing file gnulib-tests/vasnprintf.c
17652           configure.ac:45: error: expected source file, required through \
17653           AC_LIBSOURCES, not found
17654
17655 2010-06-10  Jim Meyering  <meyering@redhat.com>
17656
17657         inttostr: add a new function, inttostr, and tests
17658         The namesake function was not available.  The existence of the
17659         template file, inttostr.c makes its addition nontrivial.
17660         * lib/anytostr.c: Rename from inttostr.c.
17661         (anytostr): Rename from inttostr.
17662         * lib/inttostr.c: New file.
17663         * modules/inttostr (Files): Add anytostr.c.
17664         (Makefile.am): Set lib_SOURCES instead of ...
17665         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17666         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17667         * lib/offtostr.c: Likewise.
17668         * lib/uinttostr.c: Likewise.
17669         * lib/umaxtostr.c: Likewise.
17670         * modules/inttostr-tests: New file.
17671         * tests/test-inttostr.c: New file.  Test these functions.
17672
17673 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17674             Bruno Haible  <bruno@clisp.org>
17675
17676         Add "Extending Gnulib" chapter to manual.
17677         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17678         chapter.
17679         (Extending Gnulib): New chapter.
17680         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17681         chapter.
17682
17683 2010-06-09  Bruno Haible  <bruno@clisp.org>
17684
17685         Avoid relocwrapper link errors due to gnulib replacement functions.
17686         * lib/areadlink.c: Use the system's malloc, realloc functions.
17687         (areadlink): Set errno to ENOMEM explicitly.
17688         * modules/areadlink (Depends-on): Remove malloc-posix.
17689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17690
17691 2010-06-09  Bruno Haible  <bruno@clisp.org>
17692
17693         Avoid relocwrapper link errors due to gnulib replacement functions.
17694         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17695         * lib/malloca.c: Likewise.
17696         * lib/relocatable.c: Likewise.
17697         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17698         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17699         * lib/setenv.c: Use the system's malloc, realloc functions.
17700         * lib/strerror.c: Use the system's sprintf function.
17701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17702
17703 2010-06-04  Bruno Haible  <bruno@clisp.org>
17704
17705         Prefer documented low-level autoconf macro names.
17706         * m4/lib-link.m4: Use m4_translit instead of translit.
17707         * m4/environ.m4: Likewise.
17708         * m4/mathfunc.m4: Likewise.
17709         * m4/onceonly.m4: Likewise.
17710         * m4/stdint.m4: Likewise.
17711         Suggested by Eric Blake.
17712
17713 2010-06-04  Martin Lambers  <marlam@marlam.de>
17714             Bruno Haible  <bruno@clisp.org>
17715
17716         havelib: Allow library names with '+' characters.
17717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17718         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17719
17720 2010-06-09  Bruno Haible  <bruno@clisp.org>
17721
17722         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17723         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17724         realloc failed.
17725
17726 2010-06-08  Peter Simons  <simons@cryp.to>
17727
17728         maint.mk: make the news-check rule more configurable
17729         * top/maint.mk (news-check-lines-spec): New variable.
17730         (news-check): Use "sed -n 1,10p" in place of "head".
17731
17732 2010-06-07  Jim Meyering  <meyering@redhat.com>
17733
17734         do-release-commit-and-tag: fix typo in --help
17735         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17736
17737         regex: avoid new dead-code warning with gcc-4.6.0
17738         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17739         if-block containing a while-loop.  It's been unused for at least
17740         5 years.
17741
17742 2010-06-05  Bruno Haible  <bruno@clisp.org>
17743
17744         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17745         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17746
17747 2010-06-04  Bruno Haible  <bruno@clisp.org>
17748
17749         Update to GNU gettext 0.18.1.
17750         * modules/gettext (configure.ac): Require gettext infrastructure from
17751         version 0.18.1.
17752
17753 2010-06-03  Bruno Haible  <bruno@clisp.org>
17754
17755         Don't use AC_LIBOBJ with file names in subdirectories.
17756         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17757         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17758         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17759         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17760         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17761         gl_LIBUNISTRING_LIBSOURCE.
17762         (Makefile.am): Augment lib_SOURCES here, conditionally.
17763         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17764
17765 2010-06-03  Bruno Haible  <bruno@clisp.org>
17766
17767         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17768         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17769         expansion does not end with a newline.
17770         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17771         unnecessary newline.
17772
17773 2010-06-03  Bruno Haible  <bruno@clisp.org>
17774
17775         Reduce dependencies.
17776         * tests/test-quotearg.h: New file, extracted from
17777         tests/test-quotearg.c.
17778         * tests/test-quotearg-simple.c: New file, extracted from
17779         tests/test-quotearg.c.
17780         * tests/test-quotearg.c: Don't include <ctype.h>.
17781         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17782         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17783         use_quote_double_quotes, use_quotearg_colon): Moved to
17784         tests/test-quotearg.h.
17785         (results_g, flag_results, custom_quotes, custom_results): Moved
17786         to tests/test-quotearg-simple.c.
17787         (main): Moved the part that does not depend on gettext to
17788         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17789         performed.
17790         * modules/quotearg-simple: New file.
17791         * modules/quotearg-simple-tests: New file.
17792         * modules/quotearg (Depends-on): Add quotearg-simple.
17793         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17794         (Files): Add tests/test-quotearg.h.
17795         Reported by Paolo Bonzini.
17796
17797 2010-06-03  Bruno Haible  <bruno@clisp.org>
17798
17799         Reduce dependencies.
17800         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17801
17802 2010-06-03  Bruno Haible  <bruno@clisp.org>
17803
17804         time: Undefine more broken macros.
17805         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17806         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17807         Reported by Eric Blake.
17808
17809 2010-06-03  Bruno Haible  <bruno@clisp.org>
17810
17811         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17812         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17813         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17814         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17815         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17816         Reported by Ludovic Courtès <ludo@gnu.org>.
17817
17818 2010-06-02  Eric Blake  <eblake@redhat.com>
17819
17820         time: work with mingw + pthreads-win32 library
17821         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17822         if timespec is defined only in pthread.h.
17823         * modules/time (Makefile.am): Substitute it.
17824         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17825         <pthread.h>, when needed.
17826         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17827         from the library.
17828
17829 2010-05-31  Bruno Haible  <bruno@clisp.org>
17830
17831         Avoid expanding two macros in the wrong order.
17832         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17833         gl_LIBUNISTRING if it is defined.
17834         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17835         autoconf >= 2.64.
17836         Reported by Ludovic Courtès <ludo@gnu.org>.
17837
17838 2010-05-27  Jim Meyering  <meyering@redhat.com>
17839
17840         maint.mk: also prohibit "#undef" of always-defined symbols
17841         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17842         Allow more than one space before the symbol name.
17843         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17844         the regexp uses alternation.
17845
17846 2010-05-26  Eric Blake  <eblake@redhat.com>
17847
17848         maint.mk: avoid echo -e
17849         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17850         Convert all uses of echo -* to printf.
17851         Reported by Matthias Bolte.
17852
17853 2010-05-25  Bruno Haible  <bruno@clisp.org>
17854
17855         Update to GNU gettext 0.18, part 2.
17856         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17857         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17858
17859 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17860
17861         Add missing include in test-pwrite.c.
17862         * tests/test-pwrite.c: Include string.h, for strcmp.
17863
17864 2010-05-24  Bruno Haible  <bruno@clisp.org>
17865
17866         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17867
17868 2010-05-24  Bruno Haible  <bruno@clisp.org>
17869
17870         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17871         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17872         iconveh_error argument.
17873         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17874         U_STRCONV_TO_LOCALE.
17875         * lib/unistr/u16-strcoll.c: Likewise.
17876         * lib/unistr/u32-strcoll.c: Likewise.
17877         * modules/unistr/u8-strcoll (Depends-on): Add
17878         uniconv/u8-strconv-to-enc, localcharset. Remove
17879         uniconv/u8-strconv-to-locale.
17880         (configure.ac): Bump version number.
17881         * modules/unistr/u16-strcoll (Depends-on): Add
17882         uniconv/u16-strconv-to-enc, localcharset. Remove
17883         uniconv/u16-strconv-to-locale.
17884         (configure.ac): Bump version number.
17885         * modules/unistr/u32-strcoll (Depends-on): Add
17886         uniconv/u32-strconv-to-enc, localcharset. Remove
17887         uniconv/u32-strconv-to-locale.
17888         (configure.ac): Bump version number.
17889
17890 2010-05-24  Bruno Haible  <bruno@clisp.org>
17891
17892         Avoid a test failure on NetBSD 5.0.
17893         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17894         an iconv() bug.
17895
17896 2010-05-24  Bruno Haible  <bruno@clisp.org>
17897
17898         Adjust #include directive style.
17899         * modules/regex (Includes): Recommend to write <regex.h>.
17900
17901 2010-05-24  Bruno Haible  <bruno@clisp.org>
17902
17903         regex: Don't require alloca.
17904         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17905         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17906         only inside if (0).
17907
17908 2010-05-23  Jim Meyering  <meyering@redhat.com>
17909
17910         test-renameat.c: include <sys/stat.h>
17911         * tests/test-renameat.c: Include <sys/stat.h>; required for
17912         definition of S_IS* macros.
17913
17914 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17915
17916         Update maintainer documentation for 'relocatable-prog' module.
17917         * doc/relocatable-maint.texi: Update.
17918         Comments by Bruno Haible.
17919
17920 2010-05-23  Bruno Haible  <bruno@clisp.org>
17921
17922         git-merge-changelog: Enable --split-merged-entry by default.
17923         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17924         (usage): Don't mention this option any more.
17925         Reported by Ralf Wildenhues.
17926
17927 2010-05-23  Jim Meyering  <meyering@redhat.com>
17928
17929         test-pwrite: do not leave behind a test file named "out"
17930         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17931         The trivial-looking use of init.sh is really necessary.
17932         It ensures that the temporary file, "out", is created in
17933         a temporary directory, and removed upon termination.
17934         * tests/test-pwrite.sh: Re-add file.
17935         * modules/pwrite-tests: Reference it.
17936
17937 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17938
17939         Fix output redirection buglet in init.sh.
17940         * tests/init.sh: Fix redirection of stderr.
17941
17942 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17943
17944         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17945
17946 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17947
17948         * modules/valgrind-tests: New file.
17949         * m4/valgrind-tests.m4: New file.
17950         * doc/valgrind-tests.texi: New file.
17951         * doc/gnulib.texi (Running self-tests under valgrind): New
17952         section.
17953
17954 2010-05-19  Bruno Haible  <bruno@clisp.org>
17955
17956         Clean up dead code in recent commit.
17957         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17958         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17959         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17960         Suggested by Paolo Bonzini.
17961
17962 2010-05-19  Bruno Haible  <bruno@clisp.org>
17963
17964         Avoid valgrind error reports from libunistring.
17965         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17966         * modules/libunistring (Files): Add it.
17967         * modules/libunistring-optional (Files): Likewise.
17968
17969 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17970             Bruno Haible  <bruno@clisp.org>
17971
17972         New module 'libunistring-optional'.
17973         * modules/libunistring-optional: New file.
17974         * m4/libunistring-base.m4: New file.
17975         * m4/libunistring-optional.m4: New file.
17976         * lib/unicase.in.h: Renamed from lib/unicase.h.
17977         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17978         * lib/unictype.in.h: Renamed from lib/unictype.h.
17979         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17980         * lib/uniname.in.h: Renamed from lib/uniname.h.
17981         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17982         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17983         * lib/unistr.in.h: Renamed from lib/unistr.h.
17984         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17985         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17986         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17987         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17988         gl_LIBUNISTRING. If the library was found, determine the installed
17989         version and set LIBUNISTRING_VERSION.
17990         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17991         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17992         handle a configuration option --with-included-libunistring.
17993         * modules/libunistring (Files): Add m4/absolute-header.m4.
17994         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17995         Add m4/libunistring-base.m4.
17996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17997         (Makefile.am): Build unicase.h from unicase.in.h.
17998         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17999         Add m4/libunistring-base.m4.
18000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18001         (Makefile.am): Build uniconv.h from uniconv.in.h.
18002         * modules/unictype/base (Files): Use unictype.in.h instead of
18003         unictype.h. Add m4/libunistring-base.m4.
18004         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18005         (Makefile.am): Build unictype.h from unictype.in.h.
18006         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18007         Add m4/libunistring-base.m4.
18008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18009         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18010         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18011         Add m4/libunistring-base.m4.
18012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18013         (Makefile.am): Build uniname.h from uniname.in.h.
18014         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18015         Add m4/libunistring-base.m4.
18016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18017         (Makefile.am): Build uninorm.h from uninorm.in.h.
18018         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18019         unistdio.h. Add m4/libunistring-base.m4.
18020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18021         (Makefile.am): Build unistdio.h from unistdio.in.h.
18022         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18023         Add m4/libunistring-base.m4.
18024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18025         (Makefile.am): Build unistr.h from unistr.in.h.
18026         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18027         Add m4/libunistring-base.m4.
18028         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18029         (Makefile.am): Build unitypes.h from unitypes.in.h.
18030         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18031         Add m4/libunistring-base.m4.
18032         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18033         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18034         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18035         uniwidth.h. Add m4/libunistring-base.m4.
18036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18037         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18038         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18039         instead of augmenting lib_SOURCES.
18040         * modules/unicase/empty-suffix-context: Likewise.
18041         * modules/unicase/locale-language: Likewise.
18042         * modules/unicase/tolower: Likewise.
18043         * modules/unicase/totitle: Likewise.
18044         * modules/unicase/toupper: Likewise.
18045         * modules/unicase/u8-casecmp: Likewise.
18046         * modules/unicase/u8-casecoll: Likewise.
18047         * modules/unicase/u8-casefold: Likewise.
18048         * modules/unicase/u8-casexfrm: Likewise.
18049         * modules/unicase/u8-ct-casefold: Likewise.
18050         * modules/unicase/u8-ct-tolower: Likewise.
18051         * modules/unicase/u8-ct-totitle: Likewise.
18052         * modules/unicase/u8-ct-toupper: Likewise.
18053         * modules/unicase/u8-is-cased: Likewise.
18054         * modules/unicase/u8-is-casefolded: Likewise.
18055         * modules/unicase/u8-is-lowercase: Likewise.
18056         * modules/unicase/u8-is-titlecase: Likewise.
18057         * modules/unicase/u8-is-uppercase: Likewise.
18058         * modules/unicase/u8-prefix-context: Likewise.
18059         * modules/unicase/u8-suffix-context: Likewise.
18060         * modules/unicase/u8-tolower: Likewise.
18061         * modules/unicase/u8-totitle: Likewise.
18062         * modules/unicase/u8-toupper: Likewise.
18063         * modules/unicase/u16-casecmp: Likewise.
18064         * modules/unicase/u16-casecoll: Likewise.
18065         * modules/unicase/u16-casefold: Likewise.
18066         * modules/unicase/u16-casexfrm: Likewise.
18067         * modules/unicase/u16-ct-casefold: Likewise.
18068         * modules/unicase/u16-ct-tolower: Likewise.
18069         * modules/unicase/u16-ct-totitle: Likewise.
18070         * modules/unicase/u16-ct-toupper: Likewise.
18071         * modules/unicase/u16-is-cased: Likewise.
18072         * modules/unicase/u16-is-casefolded: Likewise.
18073         * modules/unicase/u16-is-lowercase: Likewise.
18074         * modules/unicase/u16-is-titlecase: Likewise.
18075         * modules/unicase/u16-is-uppercase: Likewise.
18076         * modules/unicase/u16-prefix-context: Likewise.
18077         * modules/unicase/u16-suffix-context: Likewise.
18078         * modules/unicase/u16-tolower: Likewise.
18079         * modules/unicase/u16-totitle: Likewise.
18080         * modules/unicase/u16-toupper: Likewise.
18081         * modules/unicase/u32-casecmp: Likewise.
18082         * modules/unicase/u32-casecoll: Likewise.
18083         * modules/unicase/u32-casefold: Likewise.
18084         * modules/unicase/u32-casexfrm: Likewise.
18085         * modules/unicase/u32-ct-casefold: Likewise.
18086         * modules/unicase/u32-ct-tolower: Likewise.
18087         * modules/unicase/u32-ct-totitle: Likewise.
18088         * modules/unicase/u32-ct-toupper: Likewise.
18089         * modules/unicase/u32-is-cased: Likewise.
18090         * modules/unicase/u32-is-casefolded: Likewise.
18091         * modules/unicase/u32-is-lowercase: Likewise.
18092         * modules/unicase/u32-is-titlecase: Likewise.
18093         * modules/unicase/u32-is-uppercase: Likewise.
18094         * modules/unicase/u32-prefix-context: Likewise.
18095         * modules/unicase/u32-suffix-context: Likewise.
18096         * modules/unicase/u32-tolower: Likewise.
18097         * modules/unicase/u32-totitle: Likewise.
18098         * modules/unicase/u32-toupper: Likewise.
18099         * modules/unicase/ulc-casecmp: Likewise.
18100         * modules/unicase/ulc-casecoll: Likewise.
18101         * modules/unicase/ulc-casexfrm: Likewise.
18102         * modules/uniconv/u8-conv-from-enc: Likewise.
18103         * modules/uniconv/u8-conv-to-enc: Likewise.
18104         * modules/uniconv/u8-strconv-from-enc: Likewise.
18105         * modules/uniconv/u8-strconv-from-locale: Likewise.
18106         * modules/uniconv/u8-strconv-to-enc: Likewise.
18107         * modules/uniconv/u8-strconv-to-locale: Likewise.
18108         * modules/uniconv/u16-conv-from-enc: Likewise.
18109         * modules/uniconv/u16-conv-to-enc: Likewise.
18110         * modules/uniconv/u16-strconv-from-enc: Likewise.
18111         * modules/uniconv/u16-strconv-from-locale: Likewise.
18112         * modules/uniconv/u16-strconv-to-enc: Likewise.
18113         * modules/uniconv/u16-strconv-to-locale: Likewise.
18114         * modules/uniconv/u32-conv-from-enc: Likewise.
18115         * modules/uniconv/u32-conv-to-enc: Likewise.
18116         * modules/uniconv/u32-strconv-from-enc: Likewise.
18117         * modules/uniconv/u32-strconv-from-locale: Likewise.
18118         * modules/uniconv/u32-strconv-to-enc: Likewise.
18119         * modules/uniconv/u32-strconv-to-locale: Likewise.
18120         * modules/unictype/bidicategory-byname: Likewise.
18121         * modules/unictype/bidicategory-name: Likewise.
18122         * modules/unictype/bidicategory-of: Likewise.
18123         * modules/unictype/bidicategory-test: Likewise.
18124         * modules/unictype/block-list: Likewise.
18125         * modules/unictype/block-test: Likewise.
18126         * modules/unictype/category-C: Likewise.
18127         * modules/unictype/category-Cc: Likewise.
18128         * modules/unictype/category-Cf: Likewise.
18129         * modules/unictype/category-Cn: Likewise.
18130         * modules/unictype/category-Co: Likewise.
18131         * modules/unictype/category-Cs: Likewise.
18132         * modules/unictype/category-L: Likewise.
18133         * modules/unictype/category-Ll: Likewise.
18134         * modules/unictype/category-Lm: Likewise.
18135         * modules/unictype/category-Lo: Likewise.
18136         * modules/unictype/category-Lt: Likewise.
18137         * modules/unictype/category-Lu: Likewise.
18138         * modules/unictype/category-M: Likewise.
18139         * modules/unictype/category-Mc: Likewise.
18140         * modules/unictype/category-Me: Likewise.
18141         * modules/unictype/category-Mn: Likewise.
18142         * modules/unictype/category-N: Likewise.
18143         * modules/unictype/category-Nd: Likewise.
18144         * modules/unictype/category-Nl: Likewise.
18145         * modules/unictype/category-No: Likewise.
18146         * modules/unictype/category-P: Likewise.
18147         * modules/unictype/category-Pc: Likewise.
18148         * modules/unictype/category-Pd: Likewise.
18149         * modules/unictype/category-Pe: Likewise.
18150         * modules/unictype/category-Pf: Likewise.
18151         * modules/unictype/category-Pi: Likewise.
18152         * modules/unictype/category-Po: Likewise.
18153         * modules/unictype/category-Ps: Likewise.
18154         * modules/unictype/category-S: Likewise.
18155         * modules/unictype/category-Sc: Likewise.
18156         * modules/unictype/category-Sk: Likewise.
18157         * modules/unictype/category-Sm: Likewise.
18158         * modules/unictype/category-So: Likewise.
18159         * modules/unictype/category-Z: Likewise.
18160         * modules/unictype/category-Zl: Likewise.
18161         * modules/unictype/category-Zp: Likewise.
18162         * modules/unictype/category-Zs: Likewise.
18163         * modules/unictype/category-and: Likewise.
18164         * modules/unictype/category-and-not: Likewise.
18165         * modules/unictype/category-byname: Likewise.
18166         * modules/unictype/category-name: Likewise.
18167         * modules/unictype/category-none: Likewise.
18168         * modules/unictype/category-of: Likewise.
18169         * modules/unictype/category-or: Likewise.
18170         * modules/unictype/category-test: Likewise.
18171         * modules/unictype/combining-class: Likewise.
18172         * modules/unictype/ctype-alnum: Likewise.
18173         * modules/unictype/ctype-alpha: Likewise.
18174         * modules/unictype/ctype-blank: Likewise.
18175         * modules/unictype/ctype-cntrl: Likewise.
18176         * modules/unictype/ctype-digit: Likewise.
18177         * modules/unictype/ctype-graph: Likewise.
18178         * modules/unictype/ctype-lower: Likewise.
18179         * modules/unictype/ctype-print: Likewise.
18180         * modules/unictype/ctype-punct: Likewise.
18181         * modules/unictype/ctype-space: Likewise.
18182         * modules/unictype/ctype-upper: Likewise.
18183         * modules/unictype/ctype-xdigit: Likewise.
18184         * modules/unictype/decimal-digit: Likewise.
18185         * modules/unictype/digit: Likewise.
18186         * modules/unictype/mirror: Likewise.
18187         * modules/unictype/numeric: Likewise.
18188         * modules/unictype/property-alphabetic: Likewise.
18189         * modules/unictype/property-ascii-hex-digit: Likewise.
18190         * modules/unictype/property-bidi-arabic-digit: Likewise.
18191         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18192         * modules/unictype/property-bidi-block-separator: Likewise.
18193         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18194         * modules/unictype/property-bidi-common-separator: Likewise.
18195         * modules/unictype/property-bidi-control: Likewise.
18196         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18197         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18198         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18199         * modules/unictype/property-bidi-european-digit: Likewise.
18200         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18201         * modules/unictype/property-bidi-left-to-right: Likewise.
18202         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18203         * modules/unictype/property-bidi-other-neutral: Likewise.
18204         * modules/unictype/property-bidi-pdf: Likewise.
18205         * modules/unictype/property-bidi-segment-separator: Likewise.
18206         * modules/unictype/property-bidi-whitespace: Likewise.
18207         * modules/unictype/property-byname: Likewise.
18208         * modules/unictype/property-combining: Likewise.
18209         * modules/unictype/property-composite: Likewise.
18210         * modules/unictype/property-currency-symbol: Likewise.
18211         * modules/unictype/property-dash: Likewise.
18212         * modules/unictype/property-decimal-digit: Likewise.
18213         * modules/unictype/property-default-ignorable-code-point: Likewise.
18214         * modules/unictype/property-deprecated: Likewise.
18215         * modules/unictype/property-diacritic: Likewise.
18216         * modules/unictype/property-extender: Likewise.
18217         * modules/unictype/property-format-control: Likewise.
18218         * modules/unictype/property-grapheme-base: Likewise.
18219         * modules/unictype/property-grapheme-extend: Likewise.
18220         * modules/unictype/property-grapheme-link: Likewise.
18221         * modules/unictype/property-hex-digit: Likewise.
18222         * modules/unictype/property-hyphen: Likewise.
18223         * modules/unictype/property-id-continue: Likewise.
18224         * modules/unictype/property-id-start: Likewise.
18225         * modules/unictype/property-ideographic: Likewise.
18226         * modules/unictype/property-ids-binary-operator: Likewise.
18227         * modules/unictype/property-ids-trinary-operator: Likewise.
18228         * modules/unictype/property-ignorable-control: Likewise.
18229         * modules/unictype/property-iso-control: Likewise.
18230         * modules/unictype/property-join-control: Likewise.
18231         * modules/unictype/property-left-of-pair: Likewise.
18232         * modules/unictype/property-line-separator: Likewise.
18233         * modules/unictype/property-logical-order-exception: Likewise.
18234         * modules/unictype/property-lowercase: Likewise.
18235         * modules/unictype/property-math: Likewise.
18236         * modules/unictype/property-non-break: Likewise.
18237         * modules/unictype/property-not-a-character: Likewise.
18238         * modules/unictype/property-numeric: Likewise.
18239         * modules/unictype/property-other-alphabetic: Likewise.
18240         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18241         * modules/unictype/property-other-grapheme-extend: Likewise.
18242         * modules/unictype/property-other-id-continue: Likewise.
18243         * modules/unictype/property-other-id-start: Likewise.
18244         * modules/unictype/property-other-lowercase: Likewise.
18245         * modules/unictype/property-other-math: Likewise.
18246         * modules/unictype/property-other-uppercase: Likewise.
18247         * modules/unictype/property-paired-punctuation: Likewise.
18248         * modules/unictype/property-paragraph-separator: Likewise.
18249         * modules/unictype/property-pattern-syntax: Likewise.
18250         * modules/unictype/property-pattern-white-space: Likewise.
18251         * modules/unictype/property-private-use: Likewise.
18252         * modules/unictype/property-punctuation: Likewise.
18253         * modules/unictype/property-quotation-mark: Likewise.
18254         * modules/unictype/property-radical: Likewise.
18255         * modules/unictype/property-sentence-terminal: Likewise.
18256         * modules/unictype/property-soft-dotted: Likewise.
18257         * modules/unictype/property-space: Likewise.
18258         * modules/unictype/property-terminal-punctuation: Likewise.
18259         * modules/unictype/property-test: Likewise.
18260         * modules/unictype/property-titlecase: Likewise.
18261         * modules/unictype/property-unassigned-code-value: Likewise.
18262         * modules/unictype/property-unified-ideograph: Likewise.
18263         * modules/unictype/property-uppercase: Likewise.
18264         * modules/unictype/property-variation-selector: Likewise.
18265         * modules/unictype/property-white-space: Likewise.
18266         * modules/unictype/property-xid-continue: Likewise.
18267         * modules/unictype/property-xid-start: Likewise.
18268         * modules/unictype/property-zero-width: Likewise.
18269         * modules/unictype/scripts: Likewise.
18270         * modules/unictype/syntax-c-ident: Likewise.
18271         * modules/unictype/syntax-c-whitespace: Likewise.
18272         * modules/unictype/syntax-java-ident: Likewise.
18273         * modules/unictype/syntax-java-whitespace: Likewise.
18274         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18275         * modules/unilbrk/u8-width-linebreaks: Likewise.
18276         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18277         * modules/unilbrk/u16-width-linebreaks: Likewise.
18278         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18279         * modules/unilbrk/u32-width-linebreaks: Likewise.
18280         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18281         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18282         * modules/uniname/uniname: Likewise.
18283         * modules/uninorm/canonical-decomposition: Likewise.
18284         * modules/uninorm/composition: Likewise.
18285         * modules/uninorm/decomposing-form: Likewise.
18286         * modules/uninorm/decomposition: Likewise.
18287         * modules/uninorm/filter: Likewise.
18288         * modules/uninorm/nfc: Likewise.
18289         * modules/uninorm/nfd: Likewise.
18290         * modules/uninorm/nfkc: Likewise.
18291         * modules/uninorm/nfkd: Likewise.
18292         * modules/uninorm/u8-normalize: Likewise.
18293         * modules/uninorm/u8-normcmp: Likewise.
18294         * modules/uninorm/u8-normcoll: Likewise.
18295         * modules/uninorm/u8-normxfrm: Likewise.
18296         * modules/uninorm/u16-normalize: Likewise.
18297         * modules/uninorm/u16-normcmp: Likewise.
18298         * modules/uninorm/u16-normcoll: Likewise.
18299         * modules/uninorm/u16-normxfrm: Likewise.
18300         * modules/uninorm/u32-normalize: Likewise.
18301         * modules/uninorm/u32-normcmp: Likewise.
18302         * modules/uninorm/u32-normcoll: Likewise.
18303         * modules/uninorm/u32-normxfrm: Likewise.
18304         * modules/unistdio/u8-asnprintf: Likewise.
18305         * modules/unistdio/u8-asprintf: Likewise.
18306         * modules/unistdio/u8-snprintf: Likewise.
18307         * modules/unistdio/u8-sprintf: Likewise.
18308         * modules/unistdio/u8-u8-asnprintf: Likewise.
18309         * modules/unistdio/u8-u8-asprintf: Likewise.
18310         * modules/unistdio/u8-u8-snprintf: Likewise.
18311         * modules/unistdio/u8-u8-sprintf: Likewise.
18312         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18313         * modules/unistdio/u8-u8-vasprintf: Likewise.
18314         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18315         * modules/unistdio/u8-u8-vsprintf: Likewise.
18316         * modules/unistdio/u8-vasnprintf: Likewise.
18317         * modules/unistdio/u8-vasprintf: Likewise.
18318         * modules/unistdio/u8-vsnprintf: Likewise.
18319         * modules/unistdio/u8-vsprintf: Likewise.
18320         * modules/unistdio/u16-asnprintf: Likewise.
18321         * modules/unistdio/u16-asprintf: Likewise.
18322         * modules/unistdio/u16-snprintf: Likewise.
18323         * modules/unistdio/u16-sprintf: Likewise.
18324         * modules/unistdio/u16-u16-asnprintf: Likewise.
18325         * modules/unistdio/u16-u16-asprintf: Likewise.
18326         * modules/unistdio/u16-u16-snprintf: Likewise.
18327         * modules/unistdio/u16-u16-sprintf: Likewise.
18328         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18329         * modules/unistdio/u16-u16-vasprintf: Likewise.
18330         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18331         * modules/unistdio/u16-u16-vsprintf: Likewise.
18332         * modules/unistdio/u16-vasnprintf: Likewise.
18333         * modules/unistdio/u16-vasprintf: Likewise.
18334         * modules/unistdio/u16-vsnprintf: Likewise.
18335         * modules/unistdio/u16-vsprintf: Likewise.
18336         * modules/unistdio/u32-asnprintf: Likewise.
18337         * modules/unistdio/u32-asprintf: Likewise.
18338         * modules/unistdio/u32-snprintf: Likewise.
18339         * modules/unistdio/u32-sprintf: Likewise.
18340         * modules/unistdio/u32-u32-asnprintf: Likewise.
18341         * modules/unistdio/u32-u32-asprintf: Likewise.
18342         * modules/unistdio/u32-u32-snprintf: Likewise.
18343         * modules/unistdio/u32-u32-sprintf: Likewise.
18344         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18345         * modules/unistdio/u32-u32-vasprintf: Likewise.
18346         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18347         * modules/unistdio/u32-u32-vsprintf: Likewise.
18348         * modules/unistdio/u32-vasnprintf: Likewise.
18349         * modules/unistdio/u32-vasprintf: Likewise.
18350         * modules/unistdio/u32-vsnprintf: Likewise.
18351         * modules/unistdio/u32-vsprintf: Likewise.
18352         * modules/unistdio/ulc-asnprintf: Likewise.
18353         * modules/unistdio/ulc-asprintf: Likewise.
18354         * modules/unistdio/ulc-fprintf: Likewise.
18355         * modules/unistdio/ulc-snprintf: Likewise.
18356         * modules/unistdio/ulc-sprintf: Likewise.
18357         * modules/unistdio/ulc-vasnprintf: Likewise.
18358         * modules/unistdio/ulc-vasprintf: Likewise.
18359         * modules/unistdio/ulc-vfprintf: Likewise.
18360         * modules/unistdio/ulc-vsnprintf: Likewise.
18361         * modules/unistdio/ulc-vsprintf: Likewise.
18362         * modules/unistr/u8-check: Likewise.
18363         * modules/unistr/u8-chr: Likewise.
18364         * modules/unistr/u8-cmp: Likewise.
18365         * modules/unistr/u8-cmp2: Likewise.
18366         * modules/unistr/u8-cpy: Likewise.
18367         * modules/unistr/u8-cpy-alloc: Likewise.
18368         * modules/unistr/u8-endswith: Likewise.
18369         * modules/unistr/u8-mblen: Likewise.
18370         * modules/unistr/u8-mbsnlen: Likewise.
18371         * modules/unistr/u8-mbtouc: Likewise.
18372         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18373         * modules/unistr/u8-mbtoucr: Likewise.
18374         * modules/unistr/u8-move: Likewise.
18375         * modules/unistr/u8-next: Likewise.
18376         * modules/unistr/u8-prev: Likewise.
18377         * modules/unistr/u8-set: Likewise.
18378         * modules/unistr/u8-startswith: Likewise.
18379         * modules/unistr/u8-stpcpy: Likewise.
18380         * modules/unistr/u8-stpncpy: Likewise.
18381         * modules/unistr/u8-strcat: Likewise.
18382         * modules/unistr/u8-strchr: Likewise.
18383         * modules/unistr/u8-strcmp: Likewise.
18384         * modules/unistr/u8-strcoll: Likewise.
18385         * modules/unistr/u8-strcpy: Likewise.
18386         * modules/unistr/u8-strcspn: Likewise.
18387         * modules/unistr/u8-strdup: Likewise.
18388         * modules/unistr/u8-strlen: Likewise.
18389         * modules/unistr/u8-strmblen: Likewise.
18390         * modules/unistr/u8-strmbtouc: Likewise.
18391         * modules/unistr/u8-strncat: Likewise.
18392         * modules/unistr/u8-strncmp: Likewise.
18393         * modules/unistr/u8-strncpy: Likewise.
18394         * modules/unistr/u8-strnlen: Likewise.
18395         * modules/unistr/u8-strpbrk: Likewise.
18396         * modules/unistr/u8-strrchr: Likewise.
18397         * modules/unistr/u8-strspn: Likewise.
18398         * modules/unistr/u8-strstr: Likewise.
18399         * modules/unistr/u8-strtok: Likewise.
18400         * modules/unistr/u8-to-u16: Likewise.
18401         * modules/unistr/u8-to-u32: Likewise.
18402         * modules/unistr/u8-uctomb: Likewise.
18403         * modules/unistr/u16-check: Likewise.
18404         * modules/unistr/u16-chr: Likewise.
18405         * modules/unistr/u16-cmp: Likewise.
18406         * modules/unistr/u16-cmp2: Likewise.
18407         * modules/unistr/u16-cpy: Likewise.
18408         * modules/unistr/u16-cpy-alloc: Likewise.
18409         * modules/unistr/u16-endswith: Likewise.
18410         * modules/unistr/u16-mblen: Likewise.
18411         * modules/unistr/u16-mbsnlen: Likewise.
18412         * modules/unistr/u16-mbtouc: Likewise.
18413         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18414         * modules/unistr/u16-mbtoucr: Likewise.
18415         * modules/unistr/u16-move: Likewise.
18416         * modules/unistr/u16-next: Likewise.
18417         * modules/unistr/u16-prev: Likewise.
18418         * modules/unistr/u16-set: Likewise.
18419         * modules/unistr/u16-startswith: Likewise.
18420         * modules/unistr/u16-stpcpy: Likewise.
18421         * modules/unistr/u16-stpncpy: Likewise.
18422         * modules/unistr/u16-strcat: Likewise.
18423         * modules/unistr/u16-strchr: Likewise.
18424         * modules/unistr/u16-strcmp: Likewise.
18425         * modules/unistr/u16-strcoll: Likewise.
18426         * modules/unistr/u16-strcpy: Likewise.
18427         * modules/unistr/u16-strcspn: Likewise.
18428         * modules/unistr/u16-strdup: Likewise.
18429         * modules/unistr/u16-strlen: Likewise.
18430         * modules/unistr/u16-strmblen: Likewise.
18431         * modules/unistr/u16-strmbtouc: Likewise.
18432         * modules/unistr/u16-strncat: Likewise.
18433         * modules/unistr/u16-strncmp: Likewise.
18434         * modules/unistr/u16-strncpy: Likewise.
18435         * modules/unistr/u16-strnlen: Likewise.
18436         * modules/unistr/u16-strpbrk: Likewise.
18437         * modules/unistr/u16-strrchr: Likewise.
18438         * modules/unistr/u16-strspn: Likewise.
18439         * modules/unistr/u16-strstr: Likewise.
18440         * modules/unistr/u16-strtok: Likewise.
18441         * modules/unistr/u16-to-u32: Likewise.
18442         * modules/unistr/u16-to-u8: Likewise.
18443         * modules/unistr/u16-uctomb: Likewise.
18444         * modules/unistr/u32-check: Likewise.
18445         * modules/unistr/u32-chr: Likewise.
18446         * modules/unistr/u32-cmp: Likewise.
18447         * modules/unistr/u32-cmp2: Likewise.
18448         * modules/unistr/u32-cpy: Likewise.
18449         * modules/unistr/u32-cpy-alloc: Likewise.
18450         * modules/unistr/u32-endswith: Likewise.
18451         * modules/unistr/u32-mblen: Likewise.
18452         * modules/unistr/u32-mbsnlen: Likewise.
18453         * modules/unistr/u32-mbtouc: Likewise.
18454         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18455         * modules/unistr/u32-mbtoucr: Likewise.
18456         * modules/unistr/u32-move: Likewise.
18457         * modules/unistr/u32-next: Likewise.
18458         * modules/unistr/u32-prev: Likewise.
18459         * modules/unistr/u32-set: Likewise.
18460         * modules/unistr/u32-startswith: Likewise.
18461         * modules/unistr/u32-stpcpy: Likewise.
18462         * modules/unistr/u32-stpncpy: Likewise.
18463         * modules/unistr/u32-strcat: Likewise.
18464         * modules/unistr/u32-strchr: Likewise.
18465         * modules/unistr/u32-strcmp: Likewise.
18466         * modules/unistr/u32-strcoll: Likewise.
18467         * modules/unistr/u32-strcpy: Likewise.
18468         * modules/unistr/u32-strcspn: Likewise.
18469         * modules/unistr/u32-strdup: Likewise.
18470         * modules/unistr/u32-strlen: Likewise.
18471         * modules/unistr/u32-strmblen: Likewise.
18472         * modules/unistr/u32-strmbtouc: Likewise.
18473         * modules/unistr/u32-strncat: Likewise.
18474         * modules/unistr/u32-strncmp: Likewise.
18475         * modules/unistr/u32-strncpy: Likewise.
18476         * modules/unistr/u32-strnlen: Likewise.
18477         * modules/unistr/u32-strpbrk: Likewise.
18478         * modules/unistr/u32-strrchr: Likewise.
18479         * modules/unistr/u32-strspn: Likewise.
18480         * modules/unistr/u32-strstr: Likewise.
18481         * modules/unistr/u32-strtok: Likewise.
18482         * modules/unistr/u32-to-u16: Likewise.
18483         * modules/unistr/u32-to-u8: Likewise.
18484         * modules/unistr/u32-uctomb: Likewise.
18485         * modules/uniwbrk/u8-wordbreaks: Likewise.
18486         * modules/uniwbrk/u16-wordbreaks: Likewise.
18487         * modules/uniwbrk/u32-wordbreaks: Likewise.
18488         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18489         * modules/uniwbrk/wordbreak-property: Likewise.
18490         * modules/uniwidth/u8-strwidth: Likewise.
18491         * modules/uniwidth/u8-width: Likewise.
18492         * modules/uniwidth/u16-strwidth: Likewise.
18493         * modules/uniwidth/u16-width: Likewise.
18494         * modules/uniwidth/u32-strwidth: Likewise.
18495         * modules/uniwidth/u32-width: Likewise.
18496         * modules/uniwidth/width: Likewise.
18497         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18498         with $(LIBUNISTRING).
18499         * modules/unicase/ignorable-tests: Likewise.
18500         * modules/unicase/locale-language-tests: Likewise.
18501         * modules/unicase/tolower-tests: Likewise.
18502         * modules/unicase/totitle-tests: Likewise.
18503         * modules/unicase/toupper-tests: Likewise.
18504         * modules/unicase/u8-casecmp-tests: Likewise.
18505         * modules/unicase/u8-casecoll-tests: Likewise.
18506         * modules/unicase/u8-casefold-tests: Likewise.
18507         * modules/unicase/u8-is-cased-tests: Likewise.
18508         * modules/unicase/u8-is-casefolded-tests: Likewise.
18509         * modules/unicase/u8-is-lowercase-tests: Likewise.
18510         * modules/unicase/u8-is-titlecase-tests: Likewise.
18511         * modules/unicase/u8-is-uppercase-tests: Likewise.
18512         * modules/unicase/u8-tolower-tests: Likewise.
18513         * modules/unicase/u8-totitle-tests: Likewise.
18514         * modules/unicase/u8-toupper-tests: Likewise.
18515         * modules/unicase/u16-casecmp-tests: Likewise.
18516         * modules/unicase/u16-casecoll-tests: Likewise.
18517         * modules/unicase/u16-casefold-tests: Likewise.
18518         * modules/unicase/u16-is-cased-tests: Likewise.
18519         * modules/unicase/u16-is-casefolded-tests: Likewise.
18520         * modules/unicase/u16-is-lowercase-tests: Likewise.
18521         * modules/unicase/u16-is-titlecase-tests: Likewise.
18522         * modules/unicase/u16-is-uppercase-tests: Likewise.
18523         * modules/unicase/u16-tolower-tests: Likewise.
18524         * modules/unicase/u16-totitle-tests: Likewise.
18525         * modules/unicase/u16-toupper-tests: Likewise.
18526         * modules/unicase/u32-casecmp-tests: Likewise.
18527         * modules/unicase/u32-casecoll-tests: Likewise.
18528         * modules/unicase/u32-casefold-tests: Likewise.
18529         * modules/unicase/u32-is-cased-tests: Likewise.
18530         * modules/unicase/u32-is-casefolded-tests: Likewise.
18531         * modules/unicase/u32-is-lowercase-tests: Likewise.
18532         * modules/unicase/u32-is-titlecase-tests: Likewise.
18533         * modules/unicase/u32-is-uppercase-tests: Likewise.
18534         * modules/unicase/u32-tolower-tests: Likewise.
18535         * modules/unicase/u32-totitle-tests: Likewise.
18536         * modules/unicase/u32-toupper-tests: Likewise.
18537         * modules/unicase/ulc-casecmp-tests: Likewise.
18538         * modules/unicase/ulc-casecoll-tests: Likewise.
18539         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18540         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18541         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18542         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18543         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18544         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18545         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18546         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18547         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18548         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18549         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18550         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18551         * modules/unictype/bidicategory-byname-tests: Likewise.
18552         * modules/unictype/bidicategory-name-tests: Likewise.
18553         * modules/unictype/bidicategory-of-tests: Likewise.
18554         * modules/unictype/bidicategory-test-tests: Likewise.
18555         * modules/unictype/block-list-tests: Likewise.
18556         * modules/unictype/block-of-tests: Likewise.
18557         * modules/unictype/block-test-tests: Likewise.
18558         * modules/unictype/category-C-tests: Likewise.
18559         * modules/unictype/category-Cc-tests: Likewise.
18560         * modules/unictype/category-Cf-tests: Likewise.
18561         * modules/unictype/category-Cn-tests: Likewise.
18562         * modules/unictype/category-Co-tests: Likewise.
18563         * modules/unictype/category-Cs-tests: Likewise.
18564         * modules/unictype/category-L-tests: Likewise.
18565         * modules/unictype/category-Ll-tests: Likewise.
18566         * modules/unictype/category-Lm-tests: Likewise.
18567         * modules/unictype/category-Lo-tests: Likewise.
18568         * modules/unictype/category-Lt-tests: Likewise.
18569         * modules/unictype/category-Lu-tests: Likewise.
18570         * modules/unictype/category-M-tests: Likewise.
18571         * modules/unictype/category-Mc-tests: Likewise.
18572         * modules/unictype/category-Me-tests: Likewise.
18573         * modules/unictype/category-Mn-tests: Likewise.
18574         * modules/unictype/category-N-tests: Likewise.
18575         * modules/unictype/category-Nd-tests: Likewise.
18576         * modules/unictype/category-Nl-tests: Likewise.
18577         * modules/unictype/category-No-tests: Likewise.
18578         * modules/unictype/category-P-tests: Likewise.
18579         * modules/unictype/category-Pc-tests: Likewise.
18580         * modules/unictype/category-Pd-tests: Likewise.
18581         * modules/unictype/category-Pe-tests: Likewise.
18582         * modules/unictype/category-Pf-tests: Likewise.
18583         * modules/unictype/category-Pi-tests: Likewise.
18584         * modules/unictype/category-Po-tests: Likewise.
18585         * modules/unictype/category-Ps-tests: Likewise.
18586         * modules/unictype/category-S-tests: Likewise.
18587         * modules/unictype/category-Sc-tests: Likewise.
18588         * modules/unictype/category-Sk-tests: Likewise.
18589         * modules/unictype/category-Sm-tests: Likewise.
18590         * modules/unictype/category-So-tests: Likewise.
18591         * modules/unictype/category-Z-tests: Likewise.
18592         * modules/unictype/category-Zl-tests: Likewise.
18593         * modules/unictype/category-Zp-tests: Likewise.
18594         * modules/unictype/category-Zs-tests: Likewise.
18595         * modules/unictype/category-and-not-tests: Likewise.
18596         * modules/unictype/category-and-tests: Likewise.
18597         * modules/unictype/category-byname-tests: Likewise.
18598         * modules/unictype/category-name-tests: Likewise.
18599         * modules/unictype/category-none-tests: Likewise.
18600         * modules/unictype/category-of-tests: Likewise.
18601         * modules/unictype/category-or-tests: Likewise.
18602         * modules/unictype/category-test-withtable-tests: Likewise.
18603         * modules/unictype/combining-class-tests: Likewise.
18604         * modules/unictype/ctype-alnum-tests: Likewise.
18605         * modules/unictype/ctype-alpha-tests: Likewise.
18606         * modules/unictype/ctype-blank-tests: Likewise.
18607         * modules/unictype/ctype-cntrl-tests: Likewise.
18608         * modules/unictype/ctype-digit-tests: Likewise.
18609         * modules/unictype/ctype-graph-tests: Likewise.
18610         * modules/unictype/ctype-lower-tests: Likewise.
18611         * modules/unictype/ctype-print-tests: Likewise.
18612         * modules/unictype/ctype-punct-tests: Likewise.
18613         * modules/unictype/ctype-space-tests: Likewise.
18614         * modules/unictype/ctype-upper-tests: Likewise.
18615         * modules/unictype/ctype-xdigit-tests: Likewise.
18616         * modules/unictype/decimal-digit-tests: Likewise.
18617         * modules/unictype/digit-tests: Likewise.
18618         * modules/unictype/mirror-tests: Likewise.
18619         * modules/unictype/numeric-tests: Likewise.
18620         * modules/unictype/property-alphabetic-tests: Likewise.
18621         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18622         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18623         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18624         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18625         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18626         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18627         * modules/unictype/property-bidi-control-tests: Likewise.
18628         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18629         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18630         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18631         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18632         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18633         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18634         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18635         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18636         * modules/unictype/property-bidi-pdf-tests: Likewise.
18637         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18638         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18639         * modules/unictype/property-byname-tests: Likewise.
18640         * modules/unictype/property-combining-tests: Likewise.
18641         * modules/unictype/property-composite-tests: Likewise.
18642         * modules/unictype/property-currency-symbol-tests: Likewise.
18643         * modules/unictype/property-dash-tests: Likewise.
18644         * modules/unictype/property-decimal-digit-tests: Likewise.
18645         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18646         * modules/unictype/property-deprecated-tests: Likewise.
18647         * modules/unictype/property-diacritic-tests: Likewise.
18648         * modules/unictype/property-extender-tests: Likewise.
18649         * modules/unictype/property-format-control-tests: Likewise.
18650         * modules/unictype/property-grapheme-base-tests: Likewise.
18651         * modules/unictype/property-grapheme-extend-tests: Likewise.
18652         * modules/unictype/property-grapheme-link-tests: Likewise.
18653         * modules/unictype/property-hex-digit-tests: Likewise.
18654         * modules/unictype/property-hyphen-tests: Likewise.
18655         * modules/unictype/property-id-continue-tests: Likewise.
18656         * modules/unictype/property-id-start-tests: Likewise.
18657         * modules/unictype/property-ideographic-tests: Likewise.
18658         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18659         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18660         * modules/unictype/property-ignorable-control-tests: Likewise.
18661         * modules/unictype/property-iso-control-tests: Likewise.
18662         * modules/unictype/property-join-control-tests: Likewise.
18663         * modules/unictype/property-left-of-pair-tests: Likewise.
18664         * modules/unictype/property-line-separator-tests: Likewise.
18665         * modules/unictype/property-logical-order-exception-tests: Likewise.
18666         * modules/unictype/property-lowercase-tests: Likewise.
18667         * modules/unictype/property-math-tests: Likewise.
18668         * modules/unictype/property-non-break-tests: Likewise.
18669         * modules/unictype/property-not-a-character-tests: Likewise.
18670         * modules/unictype/property-numeric-tests: Likewise.
18671         * modules/unictype/property-other-alphabetic-tests: Likewise.
18672         * modules/unictype/property-other-default-ignorable-code-point-tests:
18673         Likewise.
18674         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18675         * modules/unictype/property-other-id-continue-tests: Likewise.
18676         * modules/unictype/property-other-id-start-tests: Likewise.
18677         * modules/unictype/property-other-lowercase-tests: Likewise.
18678         * modules/unictype/property-other-math-tests: Likewise.
18679         * modules/unictype/property-other-uppercase-tests: Likewise.
18680         * modules/unictype/property-paired-punctuation-tests: Likewise.
18681         * modules/unictype/property-paragraph-separator-tests: Likewise.
18682         * modules/unictype/property-pattern-syntax-tests: Likewise.
18683         * modules/unictype/property-pattern-white-space-tests: Likewise.
18684         * modules/unictype/property-private-use-tests: Likewise.
18685         * modules/unictype/property-punctuation-tests: Likewise.
18686         * modules/unictype/property-quotation-mark-tests: Likewise.
18687         * modules/unictype/property-radical-tests: Likewise.
18688         * modules/unictype/property-sentence-terminal-tests: Likewise.
18689         * modules/unictype/property-soft-dotted-tests: Likewise.
18690         * modules/unictype/property-space-tests: Likewise.
18691         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18692         * modules/unictype/property-test-tests: Likewise.
18693         * modules/unictype/property-titlecase-tests: Likewise.
18694         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18695         * modules/unictype/property-unified-ideograph-tests: Likewise.
18696         * modules/unictype/property-uppercase-tests: Likewise.
18697         * modules/unictype/property-variation-selector-tests: Likewise.
18698         * modules/unictype/property-white-space-tests: Likewise.
18699         * modules/unictype/property-xid-continue-tests: Likewise.
18700         * modules/unictype/property-xid-start-tests: Likewise.
18701         * modules/unictype/property-zero-width-tests: Likewise.
18702         * modules/unictype/scripts-tests: Likewise.
18703         * modules/unictype/syntax-c-ident-tests: Likewise.
18704         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18705         * modules/unictype/syntax-java-ident-tests: Likewise.
18706         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18707         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18708         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18709         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18710         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18711         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18712         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18713         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18714         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18715         * modules/uniname/uniname-tests: Likewise.
18716         * modules/uninorm/canonical-decomposition-tests: Likewise.
18717         * modules/uninorm/compat-decomposition-tests: Likewise.
18718         * modules/uninorm/composition-tests: Likewise.
18719         * modules/uninorm/decomposing-form-tests: Likewise.
18720         * modules/uninorm/decomposition-tests: Likewise.
18721         * modules/uninorm/filter-tests: Likewise.
18722         * modules/uninorm/nfc-tests: Likewise.
18723         * modules/uninorm/nfd-tests: Likewise.
18724         * modules/uninorm/nfkc-tests: Likewise.
18725         * modules/uninorm/nfkd-tests: Likewise.
18726         * modules/uninorm/u8-normcmp-tests: Likewise.
18727         * modules/uninorm/u8-normcoll-tests: Likewise.
18728         * modules/uninorm/u16-normcmp-tests: Likewise.
18729         * modules/uninorm/u16-normcoll-tests: Likewise.
18730         * modules/uninorm/u32-normcmp-tests: Likewise.
18731         * modules/uninorm/u32-normcoll-tests: Likewise.
18732         * modules/unistdio/u8-asnprintf-tests: Likewise.
18733         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18734         * modules/unistdio/u8-vasprintf-tests: Likewise.
18735         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18736         * modules/unistdio/u8-vsprintf-tests: Likewise.
18737         * modules/unistdio/u16-asnprintf-tests: Likewise.
18738         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18739         * modules/unistdio/u16-vasprintf-tests: Likewise.
18740         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18741         * modules/unistdio/u16-vsprintf-tests: Likewise.
18742         * modules/unistdio/u32-asnprintf-tests: Likewise.
18743         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18744         * modules/unistdio/u32-vasprintf-tests: Likewise.
18745         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18746         * modules/unistdio/u32-vsprintf-tests: Likewise.
18747         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18748         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18749         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18750         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18751         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18752         * modules/unistr/u8-check-tests: Likewise.
18753         * modules/unistr/u8-chr-tests: Likewise.
18754         * modules/unistr/u8-cmp-tests: Likewise.
18755         * modules/unistr/u8-cmp2-tests: Likewise.
18756         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18757         * modules/unistr/u8-cpy-tests: Likewise.
18758         * modules/unistr/u8-mblen-tests: Likewise.
18759         * modules/unistr/u8-mbsnlen-tests: Likewise.
18760         * modules/unistr/u8-mbtouc-tests: Likewise.
18761         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18762         * modules/unistr/u8-mbtoucr-tests: Likewise.
18763         * modules/unistr/u8-move-tests: Likewise.
18764         * modules/unistr/u8-next-tests: Likewise.
18765         * modules/unistr/u8-prev-tests: Likewise.
18766         * modules/unistr/u8-set-tests: Likewise.
18767         * modules/unistr/u8-stpcpy-tests: Likewise.
18768         * modules/unistr/u8-stpncpy-tests: Likewise.
18769         * modules/unistr/u8-strcat-tests: Likewise.
18770         * modules/unistr/u8-strcmp-tests: Likewise.
18771         * modules/unistr/u8-strcoll-tests: Likewise.
18772         * modules/unistr/u8-strcpy-tests: Likewise.
18773         * modules/unistr/u8-strdup-tests: Likewise.
18774         * modules/unistr/u8-strlen-tests: Likewise.
18775         * modules/unistr/u8-strmblen-tests: Likewise.
18776         * modules/unistr/u8-strmbtouc-tests: Likewise.
18777         * modules/unistr/u8-strncat-tests: Likewise.
18778         * modules/unistr/u8-strncmp-tests: Likewise.
18779         * modules/unistr/u8-strncpy-tests: Likewise.
18780         * modules/unistr/u8-strnlen-tests: Likewise.
18781         * modules/unistr/u8-to-u16-tests: Likewise.
18782         * modules/unistr/u8-to-u32-tests: Likewise.
18783         * modules/unistr/u8-uctomb-tests: Likewise.
18784         * modules/unistr/u16-check-tests: Likewise.
18785         * modules/unistr/u16-chr-tests: Likewise.
18786         * modules/unistr/u16-cmp-tests: Likewise.
18787         * modules/unistr/u16-cmp2-tests: Likewise.
18788         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18789         * modules/unistr/u16-cpy-tests: Likewise.
18790         * modules/unistr/u16-mblen-tests: Likewise.
18791         * modules/unistr/u16-mbsnlen-tests: Likewise.
18792         * modules/unistr/u16-mbtouc-tests: Likewise.
18793         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18794         * modules/unistr/u16-mbtoucr-tests: Likewise.
18795         * modules/unistr/u16-move-tests: Likewise.
18796         * modules/unistr/u16-next-tests: Likewise.
18797         * modules/unistr/u16-prev-tests: Likewise.
18798         * modules/unistr/u16-set-tests: Likewise.
18799         * modules/unistr/u16-stpcpy-tests: Likewise.
18800         * modules/unistr/u16-stpncpy-tests: Likewise.
18801         * modules/unistr/u16-strcat-tests: Likewise.
18802         * modules/unistr/u16-strcmp-tests: Likewise.
18803         * modules/unistr/u16-strcoll-tests: Likewise.
18804         * modules/unistr/u16-strcpy-tests: Likewise.
18805         * modules/unistr/u16-strdup-tests: Likewise.
18806         * modules/unistr/u16-strlen-tests: Likewise.
18807         * modules/unistr/u16-strmblen-tests: Likewise.
18808         * modules/unistr/u16-strmbtouc-tests: Likewise.
18809         * modules/unistr/u16-strncat-tests: Likewise.
18810         * modules/unistr/u16-strncmp-tests: Likewise.
18811         * modules/unistr/u16-strncpy-tests: Likewise.
18812         * modules/unistr/u16-strnlen-tests: Likewise.
18813         * modules/unistr/u16-to-u32-tests: Likewise.
18814         * modules/unistr/u16-to-u8-tests: Likewise.
18815         * modules/unistr/u16-uctomb-tests: Likewise.
18816         * modules/unistr/u32-check-tests: Likewise.
18817         * modules/unistr/u32-chr-tests: Likewise.
18818         * modules/unistr/u32-cmp-tests: Likewise.
18819         * modules/unistr/u32-cmp2-tests: Likewise.
18820         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18821         * modules/unistr/u32-cpy-tests: Likewise.
18822         * modules/unistr/u32-mblen-tests: Likewise.
18823         * modules/unistr/u32-mbsnlen-tests: Likewise.
18824         * modules/unistr/u32-mbtouc-tests: Likewise.
18825         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18826         * modules/unistr/u32-mbtoucr-tests: Likewise.
18827         * modules/unistr/u32-move-tests: Likewise.
18828         * modules/unistr/u32-next-tests: Likewise.
18829         * modules/unistr/u32-prev-tests: Likewise.
18830         * modules/unistr/u32-set-tests: Likewise.
18831         * modules/unistr/u32-stpcpy-tests: Likewise.
18832         * modules/unistr/u32-stpncpy-tests: Likewise.
18833         * modules/unistr/u32-strcat-tests: Likewise.
18834         * modules/unistr/u32-strcmp-tests: Likewise.
18835         * modules/unistr/u32-strcoll-tests: Likewise.
18836         * modules/unistr/u32-strcpy-tests: Likewise.
18837         * modules/unistr/u32-strdup-tests: Likewise.
18838         * modules/unistr/u32-strlen-tests: Likewise.
18839         * modules/unistr/u32-strmblen-tests: Likewise.
18840         * modules/unistr/u32-strmbtouc-tests: Likewise.
18841         * modules/unistr/u32-strncat-tests: Likewise.
18842         * modules/unistr/u32-strncmp-tests: Likewise.
18843         * modules/unistr/u32-strncpy-tests: Likewise.
18844         * modules/unistr/u32-strnlen-tests: Likewise.
18845         * modules/unistr/u32-to-u16-tests: Likewise.
18846         * modules/unistr/u32-to-u8-tests: Likewise.
18847         * modules/unistr/u32-uctomb-tests: Likewise.
18848         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18849         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18850         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18851         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18852         * modules/uniwidth/u8-strwidth-tests: Likewise.
18853         * modules/uniwidth/u8-width-tests: Likewise.
18854         * modules/uniwidth/u16-strwidth-tests: Likewise.
18855         * modules/uniwidth/u16-width-tests: Likewise.
18856         * modules/uniwidth/u32-strwidth-tests: Likewise.
18857         * modules/uniwidth/u32-width-tests: Likewise.
18858         * modules/uniwidth/width-tests: Likewise.
18859
18860 2010-05-18  Richard Jones  <rjones@redhat.com>
18861
18862         doc: users.txt: list hivex
18863         * users.txt: Add hivex.
18864
18865 2010-05-18  Richard Jones  <rjones@redhat.com>
18866
18867         doc: users.txt: list febootstrap
18868         * users.txt: Add febootstrap.
18869
18870 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18871
18872         bootstrap: fix an error when gnulib is not used as a git submodule
18873         * build-aux/bootstrap (gnulib_path): If its length is zero then
18874         assign "gnulib" to it.
18875         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18876
18877 2010-05-16  Bruno Haible  <bruno@clisp.org>
18878
18879         Avoid autoconf warnings about AM_ICONV.
18880         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18881         2.64.
18882
18883 2010-05-16  Bruno Haible  <bruno@clisp.org>
18884
18885         absolute-header: Make the macro usable in more situations.
18886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18887         from gl_ABSOLUTE_HEADER.
18888         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18889
18890 2010-05-16  James Youngman  <jay@gnu.org>
18891
18892         doc: update users.txt
18893         * users.txt: Add CSSC.
18894
18895 2010-05-16  Jim Meyering  <meyering@redhat.com>
18896
18897         init.sh: fix an error in the previous change; add more comments
18898         * tests/init.sh: Compare exit code in loop against 9, not 2.
18899         Patch by Bruno Haible.
18900         Make the two tests more similar by adding an empty "then" clause.
18901         Add comments.
18902
18903         init.sh: avoid unnecessary shell re-exec
18904         * tests/init.sh: Improve the re-exec-required check to first test the
18905         current shell.  If it passes the test, do not search for a shell that
18906         does pass, and do not re-exec.  This test is particularly contorted to
18907         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18908         of $(...) evokes a syntax error and causes immediate shell exit with
18909         status 2.  Bruno Haible reported that the re-exec made it impossible
18910         to single-step through any init.sh-using script.
18911
18912 2010-05-16  Bruno Haible  <bruno@clisp.org>
18913
18914         Fix collision between gnulib's and libintl's printf replacements.
18915         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18916         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18917         (printf): When using GNU C, map the __printf__ function to rpl_printf
18918         via __asm__. When not using GNU C, define rpl_printf instead of
18919         __printf__.
18920         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18921         commit.
18922         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18923         commit.
18924         * m4/asm-underscore.m4: New file.
18925         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18926         * modules/stdio (Files): Add m4/asm-underscore.m4.
18927         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18928         Reported by Ben Pfaff.
18929
18930 2010-05-16  Bruno Haible  <bruno@clisp.org>
18931
18932         verify: Avoid skipping the test on openSUSE 11.0.
18933         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18934
18935 2010-05-13  Bruno Haible  <bruno@clisp.org>
18936
18937         Avoid useless warnings from G++.
18938         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18939         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18941
18942 2010-05-11  Jim Meyering  <meyering@redhat.com>
18943
18944         maint.mk: tweak preceding change
18945         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18946         regexps tighter by anchoring at EOL, and make the new group "shy"
18947         for slightly decreased overhead.
18948
18949 2010-05-11  Eric Blake  <eblake@redhat.com>
18950
18951         maint.mk: gnulib doesn't guarantee NSIG
18952         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18953
18954 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18955
18956         test-pwrite.c: Remove unused variable declaration.
18957         * tests/test-pwrite.c (main): Remove read_buf declaration.
18958
18959         Remove useless test-pwrite.sh file.
18960         * tests/test-pwrite.sh: Delete file.
18961         * modules/pwrite-tests: Remove references.
18962         Reported by Bruno Haible.
18963
18964 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18965
18966         init.sh: fix a typo
18967         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18968
18969 2010-05-10  Jim Meyering  <meyering@redhat.com>
18970
18971         maint.mk: avoid using a temporary file in the always-defined-macros check
18972         * top/maint.mk (.re-defmac): Remove rule.
18973         (gl_trap_): Remove definition.
18974         (sc_prohibit_always-defined_macros): Rewrite not to create and
18975         depend on a temporary file.  Instead, depend on GNU grep's ability
18976         to read a list of regular expressions from stdin when given "-f -".
18977
18978 2010-05-09  Bruno Haible  <bruno@clisp.org>
18979
18980         Update to GNU gettext 0.18, part 1.
18981         * m4/gettext.m4: Update to GNU gettext 0.18.
18982         * m4/intl.m4: Likewise.
18983         * m4/po.m4: Likewise.
18984         * modules/gettext (Files): Add m4/fcntl-o.m4.
18985         (configure.ac): Require gettext infrastructure from version 0.18.
18986
18987 2010-05-09  Jim Meyering  <meyering@redhat.com>
18988
18989         init.sh: enable MALLOC_PERTURB_
18990         * tests/init.sh: Enable glibc's malloc-perturbing option.
18991
18992         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18993         With my recent change in init.sh from the two-line form:
18994             -#   : ${srcdir=.}
18995             -#   . "$srcdir/init.sh"; path_prepend_ .
18996             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18997         I noticed that using the one-line form would cause this test
18998         to fail with a false-positive, or to stop working altogether,
18999         depending on whether help-version changed or all the tests did.
19000         * top/maint.mk (_hv_regex): Remove this definition.
19001         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19002         (_hv_regex_strong): Use a stronger regex to check for conformance.
19003         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19004         Give a separate diagnostic for lack of conforming use.
19005
19006         maint.mk: prohibit definition of symbols defined by gnulib
19007         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19008         definition of symbols defined by gnulib.
19009
19010 2010-05-09  Bruno Haible  <bruno@clisp.org>
19011
19012         acl: Avoid test failure on Cygwin-hosted mingw.
19013         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19014
19015 2010-05-09  Bruno Haible  <bruno@clisp.org>
19016
19017         error: Use system's fcntl function.
19018         * lib/error.c (fcntl): Undefine.
19019
19020 2010-05-09  Jim Meyering  <meyering@redhat.com>
19021
19022         verify: adjust formatting to be more consistent
19023         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19024         argument-list '('s, and after one comma.
19025
19026 2010-05-09  Bruno Haible  <bruno@clisp.org>
19027
19028         error: More reliable output on mingw.
19029         * lib/error.c: Include <windows.h>.
19030         (is_open): New function.
19031         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19032         defined.
19033
19034 2010-05-09  Bruno Haible  <bruno@clisp.org>
19035
19036         vasnprintf: Fix syntax errors in libintl build on mingw.
19037         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19038         pad_ourselves and prec_ourselves after use.
19039
19040 2010-05-08  Bruno Haible  <bruno@clisp.org>
19041
19042         * lib/config.charset: Update comments for Cygwin 1.7.
19043         * lib/localcharset.c: Likewise.
19044
19045 2010-05-07  Jim Meyering  <meyering@redhat.com>
19046
19047         init.sh: improve comments
19048         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19049         . "${srcdir=.}/init.sh"; path_prepend_ .
19050         Add a note about path_prepend_ and the alternative of using
19051         TESTS_ENVIRONMENT.
19052
19053 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19054
19055         exclude: Unescape hashed patterns in wildcard mode.
19056         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19057         to the hash list.
19058         * tests/test-exclude8.sh: New test case.
19059         * modules/exclude-tests: Add new test.
19060
19061 2010-05-05  Eric Blake  <eblake@redhat.com>
19062
19063         verify: automate tests
19064         * modules/verify-tests: New module.
19065         * tests/test-verify.sh: New file.
19066         * tests/test-verify.c: Guard each negative test with a unique id.
19067         Also avoid warning about unused left hand of comma expressions.
19068
19069 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         Further improvements to verify.h, suggested by Eric Blake.
19072         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19073         the GL_* versions, to avoid collision with OpenGL.
19074         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19075         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19076         than testing merely whether it's defined.
19077
19078         Modify verify.h to pacify gcc -Wredundant_decls.
19079         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19080         These use the prefix "GL_" since they're likely to be useful elsewhere.
19081         We may need to break them out into a different .h file.
19082         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19083         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19084         of verify_function__.
19085
19086 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19087
19088         Tests for module pwrite.
19089         * modules/pwrite-tests: New file.
19090         * tests/test-pwrite.sh: New file.
19091         * tests/test-pwrite.c: New file.
19092
19093         New module pwrite.
19094         * lib/unistd.in.h (pwrite): New declaration.
19095         * lib/pwrite.c: New file, from glibc with modifications.
19096         * m4/pwrite.m4: New file.
19097         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19098         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19099         REPLACE_PWRITE.
19100         * modules/pwrite: New file.
19101         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19102         REPLACE_PWRITE.
19103         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19104         * doc/posix-functions/pwrite.texi: Mention the new module.
19105
19106 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19107
19108         pread: Update documentation.
19109         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19110
19111 2010-05-04  Eric Blake  <eblake@redhat.com>
19112
19113         docs: update cygwin progress
19114         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19115         this bug.
19116         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19117         Added in cygwin 1.7.2.
19118         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19119         Likewise.
19120         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19121         Likewise.
19122         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19123         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19124         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19125         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19126         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19127         Mention nproc module.
19128         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19129         bug in cygwin 1.7.5 addition.
19130         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19131         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19132         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19133         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19134         1.7.5.
19135         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19136         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19137         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19138         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19139         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19140         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19141         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19142         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19143         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19144         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19145         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19146         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19147         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19148         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19149         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19150         Likewise.
19151         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19152         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19153         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19154         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19155         Likewise.
19156         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19157         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19158         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19159         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19160         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19161         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19162         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19163         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19164         Likewise.
19165         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19166         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19167         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19168         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19169         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19170         Likewise.
19171         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19172         Likewise.
19173         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19174         Likewise.
19175         * doc/glibc-functions/xdrrec_endofrecord.texi
19176         (xdrrec_endofrecord): Likewise.
19177         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19178         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19179         Likewise.
19180         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19181         Likewise.
19182
19183 2010-05-04  Jim Meyering  <meyering@redhat.com>
19184
19185         gendocs.sh: make its "-s FILE" option more useful
19186         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19187         $PACKAGE to reflect the probably-different basename of "FILE".
19188
19189 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19190
19191         bootstrap: don't ignore download_po_files failure
19192         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19193         failure.
19194
19195 2010-05-03  Jim Meyering  <meyering@redhat.com>
19196
19197         maint.mk: allow to pass options to gendocs.sh
19198         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19199         (gendocs_options_): New overridable variable.
19200
19201         gnu-web-doc-update: don't ignore configure or build failure
19202         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19203
19204         announce-gen: backslash-escape '@'s in --help output
19205         * build-aux/announce-gen: Fix syntax errors.
19206
19207         maint.mk, announce-gen: allow project-specific announcement mail headers
19208         * top/maint.mk (translation_project_): Define default.
19209         (announcement_Cc_, announcement_mail_headers_): Likewise.
19210         (announcement): Invoke announce-gen with new --mail-headers option.
19211         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19212
19213         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19214         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19215         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19216         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19217         line in the "err2" output file when running "make check" in verbose
19218         mode (i.e., with set -x enabled).
19219
19220 2010-05-03  Bruno Haible  <bruno@clisp.org>
19221
19222         wctob: Fix for weird platforms.
19223         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19224         argument value.
19225
19226 2010-05-03  Jim Meyering  <meyering@redhat.com>
19227
19228         maint.mk: prohibit unwarranted use of <strings.h>
19229         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19230         strings.h in a file that does not also use strcasecmp, strncasecmp,
19231         ffs or ffsll.
19232
19233         maint.mk: remove obsolete comments
19234         * top/maint.mk: Remove stale, commented-out rules.
19235
19236 2010-05-02  Bruno Haible  <bruno@clisp.org>
19237
19238         wcwidth: Declare also when it's aliased.
19239         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19240         macro.
19241
19242 2010-05-02  Bruno Haible  <bruno@clisp.org>
19243
19244         Fix regression from 2010-04-25.
19245         * gnulib-tool (func_modules_transitive_closure): Check the status of
19246         all modules, not only of the tests that are of the form foo-tests where
19247         foo is a module.
19248
19249 2010-05-02  Bruno Haible  <bruno@clisp.org>
19250
19251         wctob: Work around nasty Cygwin 1.7.2 bug.
19252         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19253         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19254
19255 2010-05-01  Bruno Haible  <bruno@clisp.org>
19256
19257         fpurge: Sharper test.
19258         * tests/test-fpurge.c (main): Add one more ftell check.
19259         * modules/fpurge-tests (Depends-on): Add ftell.
19260         Suggested by Eric Blake.
19261
19262 2010-05-01  Bruno Haible  <bruno@clisp.org>
19263
19264         ftello: Another test.
19265         * tests/test-ftello3.c: New file.
19266         * modules/ftello-tests (Files): Add it.
19267         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19268         MOSTLYCLEANFILES.
19269
19270         ftell: Another test.
19271         * tests/test-ftell3.c: New file.
19272         * modules/ftell-tests (Files): Add it.
19273         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19274         MOSTLYCLEANFILES.
19275
19276 2010-05-01  Bruno Haible  <bruno@clisp.org>
19277
19278         ftell, ftello: Work around Solaris bug.
19279         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19280         * lib/ftello.c: Include stdio-impl.h.
19281         (ftello): On Solaris, when _IOWRT is set, compute the result without
19282         looking at _IOREAD.
19283         * modules/ftello (Files): Add lib/stdio-impl.h.
19284         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19285         * doc/posix-functions/ftello.texi: Likewise.
19286         Reported by Eric Blake.
19287
19288 2010-05-01  Bruno Haible  <bruno@clisp.org>
19289
19290         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19291         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19292         the _IOWRT flag is also set.
19293
19294 2010-05-01  Bruno Haible  <bruno@clisp.org>
19295
19296         Fix doc about a HP-UX stdio bug.
19297         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19298         * doc/posix-functions/ftello.texi: Likewise.
19299
19300 2010-05-01  Bruno Haible  <bruno@clisp.org>
19301
19302         lseek test: Fix failure on Solaris.
19303         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19304         output.
19305
19306 2010-04-30  Jim Meyering  <meyering@redhat.com>
19307
19308         bootstrap: don't ignore failure to generate po*/Makevars
19309         * build-aux/bootstrap (with_gettext): Don't ignore failure
19310         to create po/Makevars or runtime-po/Makevars.
19311
19312 2010-04-29  Eric Blake  <eblake@redhat.com>
19313
19314         headers: relax license to LGPLv2+
19315         * modules/fcntl-h (License): Relax license.
19316         * modules/getopt-posix (License): Likewise.
19317         * modules/locale (License): Likewise.
19318         * modules/math (License): Likewise.
19319         * modules/pty (License): Likewise.
19320         * modules/sched (License): Likewise.
19321         * modules/search (License): Likewise.
19322         * modules/spawn (License): Likewise.
19323         * modules/stdarg (License): Likewise.
19324         * modules/sysexits (License): Likewise.
19325
19326 2010-04-29  Jim Meyering  <meyering@redhat.com>
19327
19328         inttypes: relax license to LGPLv2+
19329         * modules/inttypes (License): Relax license.
19330
19331 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19332
19333         * top/maint.mk (indent): Run twice to produce idempotent results.
19334
19335 2010-04-28  Bruno Haible  <bruno@clisp.org>
19336
19337         getdate: Generate getdate.c in the source directory.
19338         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19339         MOSTLYCLEANFILES.
19340         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19341
19342 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19343
19344         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19345         is not declared as a const *; avoid warnings in that case.
19346
19347 2010-04-28  Eric Blake  <eblake@redhat.com>
19348
19349         canonicalize-lgpl: avoid compiler warning
19350         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19351         declaration' / 'extraneous semicolon' warning with some compilers.
19352         Reported by Andreas Gruenbacher.
19353
19354 2010-04-28  Jim Meyering  <meyering@redhat.com>
19355
19356         init.sh: ensure a more reliable exit status when exiting via trap
19357         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19358         Inspired by patches from Dmitry V. Levin.
19359         Also trap on signal 3 (SIGQUIT).
19360
19361 2010-04-27  Bruno Haible  <bruno@clisp.org>
19362
19363         Update doc about utimes().
19364         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19365         'utimens' module.
19366         Reported by Andreas Gruenbacher <agruen@suse.de>.
19367
19368 2010-04-27  Eric Blake  <eblake@redhat.com>
19369
19370         full-read, full-write: relax license
19371         * modules/full-read (License): Drop to LGPLv2+.
19372         * modules/full-write (License): Likewise.
19373         * modules/safe-read (License): Likewise.
19374         * modules/safe-write (License): Likewise.
19375
19376         pthread: mention library for linking
19377         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19378
19379 2010-04-27  Jim Meyering  <meyering@redhat.com>
19380
19381         maint.mk: fix a bug introduced in last change
19382         * top/maint.mk (gl_assured_headers_): Now that all names are on
19383         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19384         is not anchored to end of word, it should be adequate.
19385
19386         maint.mk: avoid side-effect in latest syntax-check
19387         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19388         to run commands via $(shell...), and hence to incur cost only when
19389         the new rule is actually run.
19390
19391         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19392         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19393         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19394         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19395         (gl_assured_headers_, az_, AZ_): Define.
19396         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19397
19398 2010-04-26  Jim Meyering  <jim@meyering.net>
19399             Bruno Haible  <bruno@clisp.org>
19400
19401         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19402         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19403         Prompted by an exchange with Gilles Espinasse.
19404
19405 2010-04-26  Jim Meyering  <meyering@redhat.com>
19406
19407         git-version-gen: aesthetic tweak
19408         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19409         so that the command remains on a single line.
19410
19411 2010-04-26  Eric Blake  <eblake@redhat.com>
19412
19413         git-version-gen: allow use on EBCDIC hosts
19414         * build-aux/git-version-gen (dirty): Use literal rather than tying
19415         ourselves to ascii.
19416         Reported by Steve Goetze.
19417
19418 2010-04-25  Bruno Haible  <bruno@clisp.org>
19419
19420         netdb: Add support for GNULIB_POSIXCHECK.
19421         * lib/netdb.in.h: Include warn-on-use.h.
19422         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19423         functions are used when GNULIB_POSIXCHECK is defined and the
19424         getaddrinfo module is not in use.
19425         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19426         freeaddrinfo, gai_strerror, getnameinfo are declared.
19427         * modules/netdb (Depends-on): Add warn-on-use.
19428         (Makefile.am): Include warn-on-use.h in netdb.h.
19429
19430 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19431
19432         build: avoid "make check" failure without .git/ directory
19433         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19434         there is no .git/ directory.
19435
19436 2010-04-25  Bruno Haible  <bruno@clisp.org>
19437
19438         ptsname: Fix misuse of ttyname_r.
19439         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19440         of errno.
19441
19442 2010-04-25  Bruno Haible  <bruno@clisp.org>
19443
19444         ttyname_r: Make it work on Solaris 10.
19445         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19446         if the system function has the POSIX declaration. Test whether the
19447         function fails if the buffer is less than 128 bytes large.
19448         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19449         system's ttyname_r function. Provide a reasonably large buffer.
19450         * modules/ttyname_r (Depends-on): Add extensions.
19451         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19452
19453 2010-04-25  Bruno Haible  <bruno@clisp.org>
19454
19455         Use the 'extensions' module for some more functions on Solaris.
19456         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19457         module.
19458         * doc/posix-functions/ctime_r.texi: Likewise.
19459         * doc/posix-functions/getgrgid_r.texi: Likewise.
19460         * doc/posix-functions/getgrnam_r.texi: Likewise.
19461         * doc/posix-functions/getpwnam_r.texi: Likewise.
19462         * doc/posix-functions/getpwuid_r.texi: Likewise.
19463         * doc/posix-functions/readdir_r.texi: Likewise.
19464         * doc/posix-functions/sigwait.texi: Likewise.
19465         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19466         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19467
19468 2010-04-25  Bruno Haible  <bruno@clisp.org>
19469
19470         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19471         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19472         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19473         * lib/ttyname_r.c: Include <limits.h>.
19474         (ttyname_r): Define using the system's ttyname_r function, if it exists
19475         and not on Solaris.
19476         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19477         set.
19478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19479         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19480         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19481         Reported by Simon Josefsson.
19482
19483 2010-04-25  Bruno Haible  <bruno@clisp.org>
19484
19485         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19486         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19487         * doc/posix-functions/ctime_r.texi: Likewise.
19488         * doc/posix-functions/getgrgid_r.texi: Likewise.
19489         * doc/posix-functions/getgrnam_r.texi: Likewise.
19490         * doc/posix-functions/getlogin_r.texi: Likewise.
19491         * doc/posix-functions/getpwnam_r.texi: Likewise.
19492         * doc/posix-functions/getpwuid_r.texi: Likewise.
19493         * doc/posix-functions/readdir_r.texi: Likewise.
19494         * doc/posix-functions/sigwait.texi: Likewise.
19495         * doc/posix-functions/ttyname_r.texi: Likewise.
19496         Reported by Simon Josefsson.
19497
19498 2010-04-25  Bruno Haible  <bruno@clisp.org>
19499
19500         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19501         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19502         also to --create-testdir.
19503         (func_acceptable): Don't consider the status of *-tests modules here.
19504         (func_modules_transitive_closure): Consider it here, before including a
19505         test module.
19506         (func_import, func_create_testdir): Set inc_all_direct_tests,
19507         inc_all_indirect_tests.
19508         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19509         --create-testdir and --create-megatestdir.
19510
19511 2010-04-25  Bruno Haible  <bruno@clisp.org>
19512
19513         gnulib-tool: Add --without-*-tests options.
19514         * gnulib-tool (func_usage): Document the --without-*-tests options.
19515         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19516         excl_unportable_tests): New variables.
19517         Fail if they are specified with --import or --update.
19518         (func_acceptable): Respect the excl_*_tests variables.
19519         (func_import): Set the excl_*_tests variables to empty.
19520
19521 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19522             Bruno Haible  <bruno@clisp.org>
19523
19524         Work around a MacOS X 10.4 bug with openpty.
19525         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19526         * tests/test-openpty.c (main): Close the master side explicitly.
19527
19528 2010-04-25  Bruno Haible  <bruno@clisp.org>
19529
19530         strnlen: Fix a C++ test error on MacOS X and Solaris.
19531         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19532         the function is not declared.
19533         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19534         Simon Josefsson.
19535
19536 2010-04-24  Bruno Haible  <bruno@clisp.org>
19537
19538         Avoid a gcc warning.
19539         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19540         of correct type for %08lx directive.
19541         Reported by Eric Blake.
19542
19543 2010-04-24  Bruno Haible  <bruno@clisp.org>
19544
19545         vasnprintf: Correct errno value in case of out-of-memory.
19546         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19547         or sprintf. Use the errno value from SNPRINTF or sprintf.
19548         Reported by Ian Beckwith <ianb@erislabs.net>.
19549
19550 2010-04-24  Bruno Haible  <bruno@clisp.org>
19551
19552         ansi-c++-opt: Find correct compiler when cross-compiling.
19553         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19554         AC_CHECK_PROGS.
19555         Reported by Simon Josefsson.
19556
19557 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19558
19559         vc-list-files: Add support for subversion
19560         * build-aux/vc-list-files: Use "svn list" to generate the list of
19561         files controlled by subversion.
19562
19563 2010-04-23  Jim Meyering  <meyering@redhat.com>
19564
19565         vc-list-files tests: convert to use init.sh
19566         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19567         path_prepend_.
19568         Use Exit, not exit.
19569         Use skip_ rather than open coding it.
19570         Remove trap set-up and compare definitions.
19571         * tests/test-vc-list-files-git.sh: Likewise.
19572         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19573
19574 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19575
19576         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19577         backup files.
19578
19579 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19580
19581         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19582
19583 2010-04-20  Eric Blake  <eblake@redhat.com>
19584
19585         tests: be robust to ignored SIGPIPE
19586         * tests/test-select-in.sh: Consume all output.
19587         * tests/test-lseek.sh: Check correct exit status, while avoiding
19588         EPIPE.
19589
19590 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19591             Bruno Haible  <bruno@clisp.org>
19592
19593         visibility: Don't use -fvisibility if it leads to a warning.
19594         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19595         yes, don't pretend that visibility works if it leads to a warning.
19596         Reported by Mike Gran <spk121@yahoo.com>.
19597
19598 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19599
19600         * build-aux/bootstrap: Use "git -h" for testing for supported options
19601         instead of "git --help".  The short-form option only shows a summary,
19602         and doesn't layout the full man page.  Grep for the full option name
19603         in the summary, too.
19604
19605 2010-04-19  Bruno Haible  <bruno@clisp.org>
19606
19607         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19608         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19609         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19610         mention of RELOCATABLE_STRIP.
19611         Reported by Sylvain Beucler <beuc@beuc.net>.
19612
19613 2010-04-19  Bruno Haible  <bruno@clisp.org>
19614
19615         * lib/diffseq.h: Fix typo in comment.
19616         Reported by Eric Blake.
19617
19618 2010-04-19  Bruno Haible  <bruno@clisp.org>
19619
19620         ioctl: Move autoconf macro to a .m4 file.
19621         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19622         * modules/ioctl (Files): Add it.
19623         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19624         Reported by Ian Beckwith <ianb@erislabs.net>.
19625
19626 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19627             Bruno Haible  <bruno@clisp.org>
19628
19629         diffseq: Accommodate use-case with abstract arrays.
19630         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19631         is not defined.
19632         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19633         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19634
19635 2010-04-18  Bruno Haible  <bruno@clisp.org>
19636
19637         * doc/posix-headers/stdbool.texi: More precise wording.
19638
19639 2010-04-17  Jim Meyering  <meyering@redhat.com>
19640
19641         maint.mk: use gnu-style indentation in an embedded perl script
19642         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19643         Rename variable: s/two/last_two_bytes/
19644
19645 2010-04-16  Eric Blake  <eblake@redhat.com>
19646
19647         test-stdbool: skip test that fails with Solaris CC
19648         * tests/test-stdbool.c (f): Skip test that causes compilation
19649         error under buggy C++ compiler.
19650         * lib/stdbool.in.h: Document the limitation.
19651         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19652
19653         setenv: allow compilation with C++
19654         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19655         register keyword.
19656
19657         stdint: allow test to pass with C++
19658         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19659
19660         getopt: allow compilation with C++
19661         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19662         struct.
19663         * lib/getopt.c (_getopt_internal_r): Use correct type.
19664         Reported by Dagobert Michelson, via Joel E. Denny.
19665
19666 2010-04-16  Bruno Haible  <bruno@clisp.org>
19667
19668         Override netdb.h always.
19669         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19670         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19671         Reported by Ludovic Courtès <ludo@gnu.org>.
19672
19673 2010-04-15  Bruno Haible  <bruno@clisp.org>
19674
19675         openpty: Fix mistake from 2010-03-21.
19676         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19677         Reported by Simon Josefsson.
19678
19679 2010-04-15  Eric Blake  <eblake@redhat.com>
19680
19681         test-forkpty: fix expected signature
19682         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19683         Reported by Simon Josefsson.
19684
19685 2010-04-15  Jim Meyering  <meyering@redhat.com>
19686
19687         maint.mk: texinfo_suffix_re_: correct the default regexp
19688         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19689
19690         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19691         make it configurable via texinfo_suffix_re_.
19692
19693 2010-04-14  Eric Blake  <eblake@redhat.com>
19694
19695         strtok_r: relax license to LGPLv2+
19696         * modules/strtok_r (License): Relax license.
19697         Reported by Matthias Bolte.
19698
19699 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19700
19701         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19702         version 1.4.4 by default instead of requiring the libgcrypt
19703         version used during build.  This makes it possible to use the
19704         application with older but still binary compatible libgcrypt
19705         versions.
19706
19707 2010-04-13  Eric Blake  <eblake@redhat.com>
19708
19709         getopt-gnu: match recent glibc fixes and posix ruling
19710         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19711         '+' handling, when requesting extensions.
19712         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19713         'W;' handling.
19714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19715         * doc/posix-functions/getopt.texi (getopt): Document this.
19716         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19717         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19718         Likewise.
19719
19720         getopt: merge bug fixes from glibc
19721         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19722         diagnostics.  Honor '+:' correctly.  Reject ';'.
19723
19724         getopt-posix: detect MacOS bug
19725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19726         optind when missing a required argument.
19727         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19728         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19729         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19730         Likewise.
19731
19732         getopt-posix: avoid spurious failure on Solaris
19733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19734         an indicator that setting optind=1 is sufficient for reset.
19735
19736         getopt-posix: avoid spurious failure on FreeBSD
19737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19738         in POSIX mode, since the m4 test uses it.
19739
19740         gnulib-tool: silence warning on BSD sh
19741         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19742
19743 2010-04-13  Jim Meyering  <meyering@redhat.com>
19744
19745         doc: users.txt: GNU patch now uses gnulib
19746         * users.txt: Add patch.
19747
19748 2010-04-12  Jim Meyering  <meyering@redhat.com>
19749
19750         maint.mk: generate more concise timing data for syntax-check rules
19751         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19752         " done" from each line that reports a syntax-check test duration.
19753
19754 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19755
19756         git-version-gen: use "git update-index..." rather than "git status"
19757         * build-aux/git-version-gen: Use git update-index --refresh, not
19758         "git status".  With some versions of git, "git status" would fail
19759         to update the index and result in an unwarranted "-dirty" suffix.
19760
19761 2010-04-11  Jim Meyering  <meyering@redhat.com>
19762
19763         openat: correct formatting (no semantic change)
19764         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19765         Suggested by Bruno Haible.
19766
19767 2010-04-11  Bruno Haible  <bruno@clisp.org>
19768
19769         Stricter declaration checking in testdirs.
19770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19771         If for_tests is true, augment AM_CPPFLAGS to define
19772         GNULIB_STRICT_CHECKING.
19773         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19774         GNULIB_STRICT_CHECKING is defined, verify that the function is
19775         declared.
19776
19777 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19778             Bruno Haible  <bruno@clisp.org>
19779
19780         libunistring: Improve configure output.
19781         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19782         Don't say "consider installing GNU libunistring" when checking again
19783         with libiconv.
19784
19785 2010-04-11  Bruno Haible  <bruno@clisp.org>
19786
19787         libunistring: Correct value of $LTLIBUNISTRING.
19788         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19789         correct the value of $LTLIBUNISTRING.
19790
19791 2010-04-11  Bruno Haible  <bruno@clisp.org>
19792
19793         havelib: Add static libraries to LIBS in the right order.
19794         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19795         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19796
19797 2010-04-11  Bruno Haible  <bruno@clisp.org>
19798
19799         libunistring: Detect libunistring also when it depends on libiconv.
19800         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19801         the second AC_LIB_HAVE_LINKFLAGS invocation.
19802
19803 2010-04-11  James Youngman  <jay@gnu.org>
19804
19805         close-stream: declare local scalars to be "const"
19806         * lib/close-stream.c (close_stream): Make boolean variables const
19807         to document the fact that we set but do not change them.
19808
19809 2010-04-11  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19812
19813 2010-04-11  Jim Meyering  <meyering@redhat.com>
19814
19815         maint.mk: don't include dist-check.mk
19816         * top/maint.mk: Remove bogus include directive.
19817
19818         maint.mk: improve empty-line-at-EOF check
19819         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19820         solution, rather than tail+Perl-based one.  The latter would read
19821         a few kilobytes from the end of each file, and did not handle empty
19822         files properly.
19823
19824         maint.mk: print the elapsed time for each syntax-check rule
19825         * top/maint.mk (sc_m_rules_): Save start time in a file.
19826         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19827         (local-check): Interpose the .z rules
19828
19829 2010-04-11  Jim Meyering  <meyering@redhat.com>
19830
19831         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19832         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19833         empty file with one that ends in an empty line.
19834
19835 2010-04-10  Bruno Haible  <bruno@clisp.org>
19836
19837         mkdir: Make it work on mingw64.
19838         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19839         * lib/mkdir.c: Update comment.
19840         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19841
19842 2010-04-10  Bruno Haible  <bruno@clisp.org>
19843
19844         Don't override improved macro from newer autoconf.
19845         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19846         autoconf >= 2.62.
19847         Reported by Joel E. Denny <jdenny@clemson.edu>.
19848
19849 2010-04-10  Jim Meyering  <meyering@redhat.com>
19850
19851         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19852         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19853
19854         maint.mk: correct a diagnostic
19855         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19856         in diagnostic; now use $prohibit.
19857
19858 2010-04-10  Bruno Haible  <address@hidden>
19859
19860         fchownat: Fix a C++ test error on Solaris 8.
19861         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19862         the function does not exist.
19863
19864 2010-04-10  Bruno Haible  <bruno@clisp.org>
19865
19866         vasnprintf: Add more tests.
19867         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19868         (test_function): Test converting an invalid wide string.
19869
19870         vasnprintf: Correct handling of unconvertible wide string arguments.
19871         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19872         VASNPRINTF.
19873         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19874         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19875         smaller than the expected maximum need for the directive. Set errno to
19876         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19877         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19879         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19880         * modules/vasnprintf (Files): Add m4/printf.m4.
19881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19882
19883 2010-04-10  Bruno Haible  <bruno@clisp.org>
19884
19885         vasnprintf: Fix crash in %ls directive.
19886         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19887         string is passed as argument to %ls, with no precision and no width.
19888         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19889
19890 2010-04-10  Bruno Haible  <bruno@clisp.org>
19891
19892         vasnprintf: Fix multiple test failures on mingw.
19893         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19894         _snprintf, or snwprintf, not _snwprintf.
19895
19896 2010-04-10  Bruno Haible  <bruno@clisp.org>
19897
19898         write: Fix a C++ test error on mingw.
19899         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19900
19901 2010-04-10  Bruno Haible  <bruno@clisp.org>
19902
19903         vasnprintf test: Reduce code duplication.
19904         * tests/test-vasnprintf.c (test_function): New function, extracted from
19905         test_vasnprintf.
19906         (test_vasnprintf, test_asnprintf): Invoke it.
19907
19908 2010-04-10  Bruno Haible  <bruno@clisp.org>
19909
19910         strnlen: Fix warning in C++ mode on MacOS X.
19911         * lib/string.in.h (strnlen): Use the modern idiom.
19912         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19913         defining strnlen as a macro already in <config.h>.
19914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19915         REPLACE_STRNLEN.
19916         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19917         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19918
19919 2010-04-08  James Youngman  <jay@gnu.org>
19920
19921         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19922         the example.
19923
19924 2010-04-09  Jim Meyering  <meyering@redhat.com>
19925
19926         maint.mk: print better diagnostic when there is no $(_hv_file)
19927         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19928         announce that when $(_hv_file) (aka help-version) does not exist.
19929
19930         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19931         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19932         not try to interpret its random input bytes.  Jarno Rajahalme reported
19933         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19934         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19935         (mktempd_): Likewise, just in case.
19936
19937         ftruncate: add two years to projected module removal date: 2012
19938         * m4/ftruncate.m4: Adjust comments.
19939
19940         ftruncate: mark module as obsolete; even MinGW provides it, now
19941         * modules/ftruncate (Status): Obsolete.
19942         (Notice): Say that.
19943         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19945
19946 2010-04-08  Bruno Haible  <bruno@clisp.org>
19947
19948         Fix side effects from tests-related modules.
19949         * modules/dprintf-posix (Comment): New section.
19950         * modules/fprintf-posix (Comment): Likewise.
19951         * modules/obstack-printf-posix (Comment): Likewise.
19952         * modules/printf-posix (Comment): Likewise.
19953         * modules/snprintf-posix (Comment): Likewise.
19954         * modules/sprintf-posix (Comment): Likewise.
19955         * modules/vasnprintf-posix (Comment): Likewise.
19956         * modules/vasprintf-posix (Comment): Likewise.
19957         * modules/vdprintf-posix (Comment): Likewise.
19958         * modules/vfprintf-posix (Comment): Likewise.
19959         * modules/vprintf-posix (Comment): Likewise.
19960         * modules/vsnprintf-posix (Comment): Likewise.
19961         * modules/vsprintf-posix (Comment): Likewise.
19962         * modules/xprintf-posix (Comment): Likewise.
19963         * modules/xvasprintf-posix (Comment): Likewise.
19964         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19965         * modules/floorf-tests (Depends-on): Likewise.
19966         * modules/round-tests (Depends-on): Likewise.
19967         * modules/roundf-tests (Depends-on): Likewise.
19968         * modules/trunc-tests (Depends-on): Likewise.
19969         * modules/truncf-tests (Depends-on): Likewise.
19970         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19971         'fprintf-posix' module is not present.
19972         * tests/test-floorf2.c (check): Likewise.
19973         * tests/test-trunc2.c (check): Likewise.
19974         * tests/test-truncf2.c (check): Likewise.
19975         * tests/test-round2.c (equal): Likewise.
19976         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19977
19978 2010-04-07  Karl Berry  <karl@gnu.org>
19979
19980         * config/srclist.txt,
19981         * config/srclistvars.sh,
19982         * config/srclist-update: doc fixes.
19983
19984 2010-04-07  Jim Meyering  <meyering@redhat.com>
19985
19986         maint.mk: add a PATH crosschecking syntax-check rule
19987         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19988         Useful if you use a test like the one in help-version (coreutils,
19989         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19990         printed by prog --version.
19991
19992 2010-04-06  Bruno Haible  <bruno@clisp.org>
19993
19994         Fix link error on mingw.
19995         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19996         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19997
19998 2010-04-06  Bruno Haible  <bruno@clisp.org>
19999
20000         Assume rmdir exists.
20001         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20002
20003 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20004
20005         doc: update users.txt
20006         * users.txt: Add gcal.
20007
20008 2010-04-06  Jim Meyering  <meyering@redhat.com>
20009
20010         init.sh: simply unset TMPDIR rather than risking env -i
20011         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20012         although it probably works fine on all Unix-based systems, some
20013         systems (Cygwin?) cannot tolerate a totally cleared environment.
20014         Suggestion from Eric Blake.
20015
20016 2010-04-06  Jim Meyering  <meyering@redhat.com>
20017
20018         init.sh: portability fix: use env's POSIX-specified -i option not -u
20019         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20020         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20021
20022 2010-04-05  Bruno Haible  <bruno@clisp.org>
20023
20024         btowc: Work around Cygwin 1.7.2 bug.
20025         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20026         does not map NUL to 0.
20027         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20028
20029 2010-04-05  Bruno Haible  <bruno@clisp.org>
20030
20031         Make the multithread modules work on Cygwin 1.7.2.
20032         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20033         imported symbols can be declared weak, so that it returns "no" on
20034         Cygwin 1.7.2.
20035
20036 2010-04-05  Bruno Haible  <bruno@clisp.org>
20037
20038         Use the module 'strncat'.
20039         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20040
20041         Tests for module 'strncat'.
20042         * modules/strncat-tests: New file.
20043         * tests/test-strncat.c: New file.
20044
20045         New module 'strncat'.
20046         * lib/string.in.h (strncat): New declaration.
20047         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20048         * m4/strncat.m4: New file, based on m4/memchr.m4.
20049         * modules/strncat: New file.
20050         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20051         is declared.
20052         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20053         REPLACE_STRNCAT.
20054         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20055         REPLACE_STRNCAT.
20056         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20057         module.
20058         * tests/test-string-c++.cc: Check signature of strncat.
20059
20060 2010-04-05  Jim Meyering  <meyering@redhat.com>
20061
20062         xstrtoumax-tests: convert to use init.sh
20063         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20064         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20065         Use Exit, not exit.
20066         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20067
20068         xstrtoimax-tests: convert to use init.sh
20069         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20070         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20071         Use Exit, not exit.
20072         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20073
20074 2010-04-05  Bruno Haible  <bruno@clisp.org>
20075
20076         sys_socket: Avoid #define replacements in C++ mode.
20077         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20078         warning to the function if possible, rather than #defining the symbol
20079         to a dysfunctional alias.
20080
20081 2010-04-05  Bruno Haible  <bruno@clisp.org>
20082
20083         fseeko: Fix C++ test error on mingw.
20084         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20085         gl_FUNC_FSEEKO.
20086         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20087         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20088         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20089         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20090
20091 2010-04-05  Bruno Haible  <bruno@clisp.org>
20092
20093         duplocale: Improve test output.
20094         * tests/test-duplocale.c (main): Print reason for skipped test.
20095
20096 2010-04-05  Bruno Haible  <bruno@clisp.org>
20097
20098         Assume rmdir exists.
20099         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20100         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20101
20102 2010-04-05  Bruno Haible  <bruno@clisp.org>
20103
20104         Fix link error on Solaris 8 with cc.
20105         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20106
20107 2010-04-05  Bruno Haible  <bruno@clisp.org>
20108
20109         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20110         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20111
20112 2010-04-05  Bruno Haible  <bruno@clisp.org>
20113
20114         vasprintf: Update documentation.
20115         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20116
20117 2010-04-05  Bruno Haible  <bruno@clisp.org>
20118
20119         ptsname: Improve test.
20120         * tests/test-ptsname.c (main): Also try the various master names of BSD
20121         systems.
20122
20123 2010-04-05  Bruno Haible  <bruno@clisp.org>
20124
20125         memchr: Avoid a possible C++ test error.
20126         * lib/string.in.h (memchr): Provide declaration if function is missing.
20127         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20128         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20130         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20131
20132 2010-04-05  Bruno Haible  <bruno@clisp.org>
20133
20134         strtok_r: Improve idiom.
20135         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20136         AC_LIBOBJ is used.
20137
20138 2010-04-05  Bruno Haible  <bruno@clisp.org>
20139
20140         strdup: Improve idiom.
20141         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20142         AC_LIBOBJ is used.
20143         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20144         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20145         when AC_LIBOBJ is used.
20146
20147 2010-04-05  Bruno Haible  <bruno@clisp.org>
20148
20149         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20151         don't set REPLACE_MBSINIT to 1.
20152         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20153         don't set REPLACE_MBRTOWC to 1.
20154         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20155         exist, don't set REPLACE_MBSRTOWCS to 1.
20156         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20157         exist, don't set REPLACE_MBSNRTOWCS to 1.
20158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20159         don't set REPLACE_WCRTOMB to 1.
20160         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20161         exist, don't set REPLACE_WCSRTOMBS to 1.
20162         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20163         exist, don't set REPLACE_WCSNRTOMBS to 1.
20164
20165 2010-04-05  Bruno Haible  <bruno@clisp.org>
20166
20167         ldexpl: Improve idiom.
20168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20169         make sure to set HAVE_DECL_LDEXPL to 0.
20170
20171 2010-04-05  Jim Meyering  <meyering@redhat.com>
20172
20173         xstrtol-tests: convert to use init.sh
20174         * modules/xstrtol-tests (Files): Add tests/init.sh.
20175         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20176         Use Exit, not exit.
20177         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20178
20179         atexit-tests: convert to use init.sh
20180         * modules/atexit-tests (Files): Add tests/init.sh.
20181         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20182         Use Exit, not exit.
20183         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20184
20185         init.sh: fix typo
20186         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20187
20188         init.sh: make it easier for a test script to write to the tty, ...
20189         when using automake's parallel-tests mode.
20190         * tests/init.sh (stderr_fileno_): Define overridable variable.
20191         (warn_): New function, to use it.
20192         (fail_, skip_, framework_failure_): Use warn_.
20193
20194 2010-04-04  Bruno Haible  <bruno@clisp.org>
20195
20196         btowc: Avoid warning.
20197         * lib/btowc.c: Include <stdlib.h>.
20198         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20199
20200 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20201             Bruno Haible  <bruno@clisp.org>
20202
20203         wchar: Port to NetBSD 1.5.
20204         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20205         * lib/wctype.in.h (WEOF): Likewise.
20206
20207 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20208             Bruno Haible  <bruno@clisp.org>
20209
20210         Port extended stdio to NetBSD 1.5.
20211         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20212         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20213         older.
20214
20215 2010-04-04  Bruno Haible  <bruno@clisp.org>
20216
20217         string: Remove unused substitution.
20218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20219         HAVE_DECL_STRERROR.
20220         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20221
20222 2010-04-04  Bruno Haible  <bruno@clisp.org>
20223
20224         strtod: Avoid a possible C++ test error.
20225         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20226         set REPLACE_STRTOD.
20227
20228 2010-04-04  Bruno Haible  <bruno@clisp.org>
20229
20230         strerror: Update documentation.
20231         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20232
20233 2010-04-04  Bruno Haible  <bruno@clisp.org>
20234
20235         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20236         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20237         _GL_CXXALIAS_SYS_CAST.
20238
20239 2010-04-04  Bruno Haible  <bruno@clisp.org>
20240
20241         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20242         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20243         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20244         REPLACE_FREXPL to 1.
20245         * doc/posix-functions/frexpl.texi: Update documentation.
20246
20247 2010-04-04  Bruno Haible  <bruno@clisp.org>
20248
20249         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20250         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20251
20252 2010-04-04  Bruno Haible  <bruno@clisp.org>
20253
20254         Implement nanosleep for native Windows.
20255         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20256
20257 2010-04-04  Bruno Haible  <bruno@clisp.org>
20258
20259         math: Fix some C++ test errors on Solaris 8.
20260         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20261
20262 2010-04-04  Bruno Haible  <bruno@clisp.org>
20263
20264         math: Fix some C++ test errors on Cygwin.
20265         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20266         truncl): Provide declaration if the system does not have it.
20267         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20268         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20269         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20270         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20271         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20272         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20273         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20274         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20275         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20276         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20277         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20278         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20279         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20280         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20281         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20282         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20284         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20285         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20286         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20287         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20288         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20289
20290 2010-04-04  Bruno Haible  <bruno@clisp.org>
20291
20292         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20293         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20294         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20295         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20297         * m4/isinf.m4 (gl_ISINF): Likewise.
20298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20299
20300 2010-04-04  Bruno Haible  <bruno@clisp.org>
20301
20302         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20303         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20304
20305 2010-04-04  Bruno Haible  <bruno@clisp.org>
20306
20307         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20308         * modules/tmpfile (configure.ac): Update.
20309
20310         tmpfile: Fix C++ test error on mingw.
20311         * lib/stdio.in.h (tmpfile): New declaration.
20312         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20313         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20314         * modules/tmpfile (Depends-on): Add stdio.
20315         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20316         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20317         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20318         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20319         REPLACE_TMPFILE.
20320         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20321
20322 2010-04-04  Bruno Haible  <bruno@clisp.org>
20323
20324         ioctl: Fix C++ test error on mingw.
20325         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20326         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20327         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20328
20329 2010-04-03  Bruno Haible  <bruno@clisp.org>
20330
20331         wcwidth: Fix C++ test error on mingw.
20332         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20334         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20335
20336 2010-04-03  Bruno Haible  <bruno@clisp.org>
20337
20338         nanosleep: Fix C++ test error on mingw.
20339         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20340         * lib/time.in.h (nanosleep): Use modern idiom.
20341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20342         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20343         REPLACE_NANOSLEEP to 1.
20344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20345         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20346
20347 2010-04-03  Bruno Haible  <bruno@clisp.org>
20348
20349         strptime: Fix C++ test error on mingw.
20350         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20351         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20352         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20353         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20354         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20355         not REPLACE_STRPTIME.
20356         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20357         REPLACE_STRPTIME.
20358
20359 2010-04-03  Bruno Haible  <bruno@clisp.org>
20360
20361         timegm: Fix C++ test error on mingw.
20362         * lib/time.in.h (timegm): Use modern idiom.
20363         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20364         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20366         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20367
20368 2010-04-03  Bruno Haible  <bruno@clisp.org>
20369
20370         timegm: Assume declaration if function exists.
20371         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20372         if it exists. Don't clobber ac_cv_func_timegm.
20373
20374 2010-04-03  Bruno Haible  <bruno@clisp.org>
20375
20376         time_r: Fix C++ test error on mingw.
20377         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20378         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20379         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20381         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20382
20383 2010-04-03  Bruno Haible  <bruno@clisp.org>
20384
20385         time_r: Minor updates.
20386         * modules/time_r (Description): Mention the provided functions.
20387         * lib/time_r.c: Don't include <string.h>.
20388         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20389         * doc/posix-functions/localtime_r.texi: Likewise.
20390
20391 2010-04-03  Bruno Haible  <bruno@clisp.org>
20392
20393         time: Fix regression introduced on 2010-03-08.
20394         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20395         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20396
20397 2010-04-03  Jim Meyering  <meyering@redhat.com>
20398
20399         maint.mk: don't silently disable project-specific syntax-check rules
20400         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20401         that they need to convert their project-specific syntax-check rules
20402         to use the new _sc_search_regexp.
20403
20404 2010-04-03  Bruno Haible  <bruno@clisp.org>
20405
20406         fchdir: Fix regression introduced on 2010-03-08.
20407         * lib/unistd.in.h (fchdir): Fix declaration.
20408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20410         REPLACE_FCHDIR.
20411         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20412         REPLACE_FCHDIR.
20413
20414 2010-04-03  Bruno Haible  <bruno@clisp.org>
20415
20416         getpagesize: Fix C++ test error on mingw.
20417         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20418         system does not declare the function.
20419         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20420         declared.
20421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20422         HAVE_DECL_GETPAGESIZE.
20423         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20424
20425 2010-04-03  Bruno Haible  <bruno@clisp.org>
20426
20427         stdio: Make C++ tests work on mingw.
20428         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20429         does not declare the function.
20430
20431 2010-04-03  Bruno Haible  <bruno@clisp.org>
20432
20433         ftello: Fix C++ test error on mingw.
20434         * lib/stdio.in.h (ftello): Use modern idiom.
20435         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20436         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20437         is missing and that it needs to be replaced.
20438         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20440         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20441
20442 2010-04-03  Bruno Haible  <bruno@clisp.org>
20443
20444         fseeko: Fix C++ test error on mingw.
20445         * lib/stdio.in.h (fseeko): Use modern idiom.
20446         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20448         is missing and that it needs to be replaced.
20449         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20451         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20452
20453 2010-04-03  Bruno Haible  <bruno@clisp.org>
20454
20455         mkstemp: Fix C++ test error on mingw.
20456         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20458         function is missing and that it needs to be replaced.
20459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20460         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20461
20462 2010-04-03  Bruno Haible  <bruno@clisp.org>
20463
20464         stpncpy: Fix C++ test error on mingw.
20465         * lib/string.in.h (stpncpy): Use modern idiom.
20466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20467         function is missing and that it needs to be replaced.
20468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20469         REPLACE_STPNCPY.
20470         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20471
20472 2010-04-03  Bruno Haible  <bruno@clisp.org>
20473
20474         sys_stat: Fix C++ test error on mingw.
20475         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20476         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20477
20478 2010-04-03  Bruno Haible  <bruno@clisp.org>
20479
20480         pty: Update doc.
20481         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20482
20483 2010-04-03  Bruno Haible  <bruno@clisp.org>
20484
20485         unistd: Fix C++ test error on mingw.
20486         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20487
20488 2010-04-03  Bruno Haible  <bruno@clisp.org>
20489
20490         Update doc regarding mingw.
20491         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20492         * doc/glibc-functions/login_tty.texi: Likewise.
20493         * doc/glibc-functions/forkpty.texi: Likewise.
20494
20495 2010-04-03  Bruno Haible  <bruno@clisp.org>
20496
20497         stdlib: Avoid compilation failure of c-strtold on mingw.
20498         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20499
20500 2010-04-03  Bruno Haible  <bruno@clisp.org>
20501
20502         locale: Make C++ tests work on Cygwin and mingw.
20503         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20504         cannot provide the function.
20505         Reported by Simon Josefsson.
20506
20507 2010-04-03  Bruno Haible  <bruno@clisp.org>
20508
20509         localename: Port to MacOS X 10.6.
20510         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20511         memory layout of the locales in MacOS X 10.6 as well.
20512         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20513
20514 2010-04-02  Bruno Haible  <bruno@clisp.org>
20515
20516         gnulib-tool: Ensure that long-running tests are executed last.
20517         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20518         running tests after the one for the other tests.
20519
20520 2010-04-02  Bruno Haible  <bruno@clisp.org>
20521
20522         gnulib-tool: Ensure the tests in the main directory are executed first.
20523         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20524         start with the current directory.
20525
20526 2010-04-02  Bruno Haible  <bruno@clisp.org>
20527
20528         Tests for module 'havelib', moved here from GNU gettext.
20529         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20530         modifications.
20531         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20532         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20533         with modifications.
20534         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20535         modifications.
20536         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20537         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20538         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20539         with modifications.
20540         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20541         with modifications.
20542         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20543         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20544         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20545         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20546         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20547         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20548         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20549         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20550         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20551         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20552         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20553         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20554         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20555         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20556         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20557         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20558         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20559         with modifications.
20560         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20561         with modifications.
20562         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20563         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20564         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20565         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20566         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20567         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20568         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20569         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20570         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20571         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20572         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20573         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20574         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20575         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20576         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20577         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20578         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20579         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20580         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20581         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20582         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20583         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20584         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20585         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20586         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20587         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20588         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20589         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20590         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20591         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20592         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20593         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20594         * tests/havelib/rpathx/rpathx.c: New file, from
20595         gettext/autoconf-lib-link.
20596         * tests/havelib/rpathx/Makefile.am: New file, from
20597         gettext/autoconf-lib-link.
20598         * tests/havelib/rpathx/configure.ac: New file, from
20599         gettext/autoconf-lib-link with modifications.
20600         * tests/havelib/rpathy/rpathy.c: New file, from
20601         gettext/autoconf-lib-link.
20602         * tests/havelib/rpathy/Makefile.am: New file, from
20603         gettext/autoconf-lib-link.
20604         * tests/havelib/rpathy/configure.ac: New file, from
20605         gettext/autoconf-lib-link with modifications.
20606         * tests/havelib/rpathz/rpathz.c: New file, from
20607         gettext/autoconf-lib-link.
20608         * tests/havelib/rpathz/Makefile.am: New file, from
20609         gettext/autoconf-lib-link.
20610         * tests/havelib/rpathz/configure.ac: New file, from
20611         gettext/autoconf-lib-link with modifications.
20612         * tests/havelib/rpathlx/usex.c: New file, from
20613         gettext/autoconf-lib-link.
20614         * tests/havelib/rpathlx/Makefile.am: New file, from
20615         gettext/autoconf-lib-link.
20616         * tests/havelib/rpathlx/configure.ac: New file, from
20617         gettext/autoconf-lib-link with modifications.
20618         * tests/havelib/rpathly/usey.c: New file, from
20619         gettext/autoconf-lib-link.
20620         * tests/havelib/rpathly/Makefile.am: New file, from
20621         gettext/autoconf-lib-link.
20622         * tests/havelib/rpathly/configure.ac: New file, from
20623         gettext/autoconf-lib-link with modifications.
20624         * tests/havelib/rpathlz/usez.c: New file, from
20625         gettext/autoconf-lib-link.
20626         * tests/havelib/rpathlz/Makefile.am: New file, from
20627         gettext/autoconf-lib-link.
20628         * tests/havelib/rpathlz/configure.ac: New file, from
20629         gettext/autoconf-lib-link with modifications.
20630         * tests/havelib/rpathlyx/usey.c: New file, from
20631         gettext/autoconf-lib-link.
20632         * tests/havelib/rpathlyx/Makefile.am: New file, from
20633         gettext/autoconf-lib-link.
20634         * tests/havelib/rpathlyx/configure.ac: New file, from
20635         gettext/autoconf-lib-link with modifications.
20636         * tests/havelib/rpathlzyx/usez.c: New file, from
20637         gettext/autoconf-lib-link.
20638         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20639         gettext/autoconf-lib-link.
20640         * tests/havelib/rpathlzyx/configure.ac: New file, from
20641         gettext/autoconf-lib-link with modifications.
20642         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20643         with modifications.
20644
20645 2010-04-02  Bruno Haible  <bruno@clisp.org>
20646
20647         gnulib-tool: Create distributed built sources also for the tests.
20648         * gnulib-tool (func_create_testdir): Also generate distributed built
20649         sources in the tests directory.
20650
20651 2010-04-02  Bruno Haible  <bruno@clisp.org>
20652
20653         gnulib-tool: Obey user's environment variables.
20654         * gnulib-tool (func_create_testdir): When creating built sources,
20655         respect the environment variables for autoconf, automake, etc. given by
20656         the user.
20657
20658 2010-04-02  Bruno Haible  <bruno@clisp.org>
20659
20660         gnulib-tool: Provide the value of --m4-base to modules.
20661         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20662         of gl_m4_base.
20663
20664 2010-04-02  Eric Blake  <eblake@redhat.com>
20665
20666         maint.mk: fix some fallout
20667         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20668         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20669
20670 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20671
20672         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20673         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20674         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20675         (sc_cast_of_x_alloc_return_value): Likewise.
20676         (sc_cast_of_alloca_return_value): Likewise.
20677         (sc_space_tab): Likewise.
20678         (sc_prohibit_atoi_atof): Likewise.
20679         (sc_prohibit_magic_number_exit): Likewise.
20680         (sc_error_exit_success): Likewise.
20681         (sc_file_system): Likewise.
20682         (sc_prohibit_have_config_h): Likewise.
20683         (sc_require_config_h): Likewise.
20684         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20685         (sc_obsolete_symbols): Likewise.
20686         (sc_changelog): Likewise.
20687         (sc_program_name): Likewise.
20688         (sc_the_the): Likewise.
20689         (sc_trailing_blank): Likewise.
20690         (sc_two_space_separator_in_usage): Likewise.
20691         (sc_useless_cpp_parens): Likewise.
20692         (sc_GPL_version): Likewise.
20693         (sc_GFDL_version): Likewise.
20694         (sc_texinfo_acronym): Likewise.
20695         (sc_prohibit_cvs_keyword): Likewise.
20696         (sc_prohibit_stat_st_blocks): Likewise.
20697         (sc_prohibit_S_IS_definition): Likewise.
20698         (sc_redundant_const): Likewise.
20699         (sc_makefile_TAB_only_indentation): Likewise.
20700         (sc_m4_quote_check): Likewise.
20701         (sc_makefile_path_separator_check): Likewise.
20702         (sc_copyright_check): Likewise.
20703         (sc_Wundef_boolean): Likewise.
20704         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20705
20706         maint.mk: match 0 or more whitespace-before-function-call '('
20707         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20708         that have zero or two-and-more spaces between the function name
20709         and the open parenthesis.
20710         (sc_error_message_warn_fatal): Likewise.
20711         (sc_error_message_uppercase): Likewise.
20712         (sc_error_message_period): Likewise.
20713
20714 2010-03-31  Eric Blake  <eblake@redhat.com>
20715
20716         maint.mk: check for [ as well as test
20717         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20718         Based on a libvirt report by Matthias Bolte.
20719
20720         gnumakefile: don't squelch _version output
20721         * top/GNUmakefile (_version): Create one-shot dependency rather
20722         than using $(shell) when version must be regenerated.
20723         (_autoreconf): Run verbosely, by default.
20724
20725         sys_time: avoid compiler warnings
20726         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20727         unconditional, fixing regression from 2010-03-29.
20728         Reported by Simon Josefsson.
20729
20730 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20731
20732         maint.mk: s/_header_without_use/_sc_header_without_use/
20733         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20734         (sc_prohibit_assert_without_use): Use the new name.
20735         (sc_prohibit_close_stream_without_use): Likewise.
20736         (sc_prohibit_getopt_without_use): Likewise.
20737         (sc_prohibit_quotearg_without_use): Likewise.
20738         (sc_prohibit_quote_without_use): Likewise.
20739         (sc_prohibit_long_options_without_use): Likewise.
20740         (sc_prohibit_inttostr_without_use): Likewise.
20741         (sc_prohibit_ignore_value_without_use): Likewise.
20742         (sc_prohibit_error_without_use): Likewise.
20743         (sc_prohibit_xalloc_without_use): Likewise.
20744         (sc_prohibit_hash_without_use): Likewise.
20745         (sc_prohibit_hash_pjw_without_use): Likewise.
20746         (sc_prohibit_safe_read_without_use): Likewise.
20747         (sc_prohibit_argmatch_without_use): Likewise.
20748         (sc_prohibit_canonicalize_without_use): Likewise.
20749         (sc_prohibit_root_dev_ino_without_use): Likewise.
20750         (sc_prohibit_openat_without_use): Likewise.
20751         (sc_prohibit_c_ctype_without_use): Likewise.
20752         (sc_prohibit_signal_without_use): Likewise.
20753         (sc_prohibit_intprops_without_use): Likewise.
20754
20755 2010-03-30  Eric Blake  <eblake@redhat.com>
20756
20757         maint: improve module indicators
20758         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20759         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20760         columns, and avoid extra macro expansion.
20761
20762         fdopendir: work around FreeBSD bug
20763         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20765         * modules/dirent (Makefile.am): Substitute it.
20766         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20767         declaration.
20768         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20769         fix.
20770         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20771
20772 2010-03-29  Bruno Haible  <bruno@clisp.org>
20773
20774         Emit #pragma system_header after the inclusion guard, not before.
20775         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20776         guard that spans the entire file, not before. This enables an
20777         optimization in GCC's preprocessor.
20778         * lib/ctype.in.h: Likewise.
20779         * lib/dirent.in.h: Likewise.
20780         * lib/errno.in.h: Likewise.
20781         * lib/float.in.h: Likewise.
20782         * lib/getopt.in.h: Likewise.
20783         * lib/iconv.in.h: Likewise.
20784         * lib/langinfo.in.h: Likewise.
20785         * lib/locale.in.h: Likewise.
20786         * lib/math.in.h: Likewise.
20787         * lib/netdb.in.h: Likewise.
20788         * lib/netinet_in.in.h: Likewise.
20789         * lib/pty.in.h: Likewise.
20790         * lib/sched.in.h: Likewise.
20791         * lib/se-selinux.in.h: Likewise.
20792         * lib/search.in.h: Likewise.
20793         * lib/spawn.in.h: Likewise.
20794         * lib/stdarg.in.h: Likewise.
20795         * lib/stdint.in.h: Likewise.
20796         * lib/string.in.h: Likewise.
20797         * lib/strings.in.h: Likewise.
20798         * lib/sys_file.in.h: Likewise.
20799         * lib/sys_ioctl.in.h: Likewise.
20800         * lib/sys_time.in.h: Likewise.
20801         * lib/sys_times.in.h: Likewise.
20802         * lib/sys_utsname.in.h: Likewise.
20803         * lib/sys_wait.in.h: Likewise.
20804         * lib/sysexits.in.h: Likewise.
20805         * lib/wctype.in.h: Likewise.
20806
20807 2010-03-28  James Youngman  <jay@gnu.org>
20808
20809         save-cwd: don't leak a file descriptor when the caller execs.
20810         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20811         saved file descriptor.
20812         * modules/save-cwd (Depends-on): Depend on cloexec.
20813
20814 2010-03-29  Bruno Haible  <bruno@clisp.org>
20815
20816         Remove vestiges of fts-lgpl module.
20817         * lib/fts_.h: Assume GNULIB_FTS is 1.
20818         * lib/fts.c: Likewise.
20819         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20820
20821 2010-03-28  Bruno Haible  <bruno@clisp.org>
20822
20823         Fix definition of tests witness macro.
20824         * gnulib-tool (func_import): Fix definition of witness macro.
20825
20826 2010-03-28  Bruno Haible  <bruno@clisp.org>
20827
20828         Fix ioctl's protoype on glibc systems.
20829         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20830         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20831         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20832         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20833         signature. If not, arrange to replace the ioctl function.
20834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20835         REPLACE_IOCTL.
20836         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20837         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20838         Reported by Ludovic Courtès <ludo@gnu.org>.
20839
20840 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20841
20842         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20843         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20844         made it so grep -r --include=GLOB* ... did not work.
20845
20846 2010-03-26  Jim Meyering  <meyering@redhat.com>
20847             Eric Blake  <eblake@redhat.com>
20848
20849         maint.mk: prohibit use of test's -o and -a operators
20850         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20851
20852 2010-03-28  Bruno Haible  <bruno@clisp.org>
20853
20854         Remove unused GNULIB_XYZ macro definitions.
20855         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20856         invocation.
20857
20858 2010-03-28  Bruno Haible  <bruno@clisp.org>
20859
20860         Mark privileged tests modules.
20861         * modules/idpriv-drop-tests (Status): New section.
20862         * modules/idpriv-droptemp-tests (Status): New section.
20863
20864 2010-03-28  Bruno Haible  <bruno@clisp.org>
20865
20866         Split C++ tests into separate tests modules.
20867         * modules/dirent-c++-tests: New file, extracted from
20868         modules/dirent-tests.
20869         * modules/dirent-tests: Depend on it.
20870         * modules/fcntl-h-c++-tests: New file, extracted from
20871         modules/fcntl-h-tests.
20872         * modules/fcntl-h-tests: Depend on it.
20873         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20874         * modules/glob-tests: Depend on it.
20875         * modules/iconv-h-c++-tests: New file, extracted from
20876         modules/iconv-h-tests.
20877         * modules/iconv-h-tests: Depend on it.
20878         * modules/langinfo-c++-tests: New file, extracted from
20879         modules/langinfo-tests.
20880         * modules/langinfo-tests: Depend on it.
20881         * modules/locale-c++-tests: New file, extracted from
20882         modules/locale-tests.
20883         * modules/locale-tests: Depend on it.
20884         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20885         * modules/math-tests: Depend on it.
20886         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20887         * modules/pty-tests: Depend on it.
20888         * modules/search-c++-tests: New file, extracted from
20889         modules/search-tests.
20890         * modules/search-tests: Depend on it.
20891         * modules/signal-c++-tests: New file, extracted from
20892         modules/signal-tests.
20893         * modules/signal-tests: Depend on it.
20894         * modules/spawn-c++-tests: New file, extracted from
20895         modules/spawn-tests.
20896         * modules/spawn-tests: Depend on it.
20897         * modules/stdio-c++-tests: New file, extracted from
20898         modules/stdio-tests.
20899         * modules/stdio-tests: Depend on it.
20900         * modules/stdlib-c++-tests: New file, extracted from
20901         modules/stdlib-tests.
20902         * modules/stdlib-tests: Depend on it.
20903         * modules/string-c++-tests: New file, extracted from
20904         modules/string-tests.
20905         * modules/string-tests: Depend on it.
20906         * modules/sys_ioctl-c++-tests: New file, extracted from
20907         modules/sys_ioctl-tests.
20908         * modules/sys_ioctl-tests: Depend on it.
20909         * modules/sys_select-c++-tests: New file, extracted from
20910         modules/sys_select-tests.
20911         * modules/sys_select-tests: Depend on it.
20912         * modules/sys_socket-c++-tests: New file, extracted from
20913         modules/sys_socket-tests.
20914         * modules/sys_socket-tests: Depend on it.
20915         * modules/sys_stat-c++-tests: New file, extracted from
20916         modules/sys_stat-tests.
20917         * modules/sys_stat-tests: Depend on it.
20918         * modules/sys_time-c++-tests: New file, extracted from
20919         modules/sys_time-tests.
20920         * modules/sys_time-tests: Depend on it.
20921         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20922         * modules/time-tests: Depend on it.
20923         * modules/unistd-c++-tests: New file, extracted from
20924         modules/unistd-tests.
20925         * modules/unistd-tests: Depend on it.
20926         * modules/wchar-c++-tests: New file, extracted from
20927         modules/wchar-tests.
20928         * modules/wchar-tests: Depend on it.
20929         * modules/wctype-c++-tests: New file, extracted from
20930         modules/wctype-tests.
20931         * modules/wctype-tests: Depend on it.
20932         Reported by Simon Josefsson.
20933
20934 2010-03-28  Bruno Haible  <bruno@clisp.org>
20935
20936         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20937         * gnulib-tool (func_exists_module): New function, extracted from
20938         func_verify_module.
20939         (func_verify_module): Use it.
20940         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20941         'foo' only if 'foo' exists.
20942         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20943         module.
20944
20945 2010-03-28  Bruno Haible  <bruno@clisp.org>
20946
20947         gnulib-tool: Add support for special categories of tests.
20948         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20949         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20950         (func_usage): Document them.
20951         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20952         inc_unportable_tests, inc_all_tests): New variables.
20953         (func_acceptable): Consider these variables.
20954         (func_modules_transitive_closure): Make it work when the 'Status' field
20955         consists of multiple words.
20956         (func_import): Store and restore the values of inc_cxx_tests,
20957         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20958         inc_all_tests in gnulib-comp.m4.
20959         (func_create_testdir): Set inc_all_tests to true.
20960         * doc/gnulib.texi (Extra tests modules): New section.
20961         Suggested by Jim Meyering.
20962
20963 2010-03-28  Bruno Haible  <bruno@clisp.org>
20964
20965         ansi-c++-opt: Allow turning off the C++ build by default.
20966         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20967         gl_CXX_CHOICE_DEFAULT_NO is defined.
20968         Requested by Eric Blake.
20969
20970 2010-03-28  Bruno Haible  <bruno@clisp.org>
20971
20972         unistd: Avoid #define replacements in C++ mode.
20973         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20974         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20975         setsockopt, shutdown, select): In C++, attach a warning to the function
20976         if possible, rather than #defining the symbol to a dysfunctional alias.
20977         Reported by John W. Eaton <jwe@gnu.org>.
20978
20979 2010-03-28  Bruno Haible  <bruno@clisp.org>
20980
20981         Fix link errors on mingw.
20982         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20983         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20984         $(LIBSOCKET).
20985         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20986         $(LIBSOCKET).
20987
20988 2010-03-28  Bruno Haible  <bruno@clisp.org>
20989             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20990
20991         lib-ignore: Determine different options for different compilers.
20992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20993         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20994         Add comments.
20995         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20996         * NEWS: Mention the change.
20997
20998 2010-03-27  Bruno Haible  <bruno@clisp.org>
20999
21000         Remove unused GNULIB_XYZ macro definitions.
21001         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21002         * modules/fseek (configure.ac): Likewise.
21003         * modules/ioctl (configure.ac): Likewise.
21004         * modules/open (configure.ac): Likewise.
21005         * modules/stdlib-safer (configure.ac): Likewise.
21006
21007 2010-03-27  Bruno Haible  <bruno@clisp.org>
21008
21009         Add a remark about certain modules.
21010         * modules/malloc (Comment): New section.
21011         * modules/realloc (Comment): Likewise.
21012         * modules/sigpipe (Comment): Likewise.
21013
21014 2010-03-27  Bruno Haible  <bruno@clisp.org>
21015
21016         Resolve conflict between the two kinds of module indicators.
21017         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21018         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21019         * modules/canonicalize (configure.ac): Invoke
21020         gl_MODULE_INDICATOR_FOR_TESTS.
21021         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21022         GNULIB_XYZ.
21023         * tests/test-dirent-c++.cc: Likewise.
21024         * tests/test-dirent-safer.c: Likewise.
21025         * tests/test-dup2.c: Likewise.
21026         * tests/test-fchdir.c: Likewise.
21027         * tests/test-fcntl-h-c++.cc: Likewise.
21028         * tests/test-getopt.c: Likewise.
21029         * tests/test-getopt.h: Likewise.
21030         * tests/test-langinfo-c++.cc: Likewise.
21031         * tests/test-locale-c++.cc: Likewise.
21032         * tests/test-math-c++.cc: Likewise.
21033         * tests/test-pty-c++.cc: Likewise.
21034         * tests/test-search-c++.cc: Likewise.
21035         * tests/test-signal-c++.cc: Likewise.
21036         * tests/test-spawn-c++.cc: Likewise.
21037         * tests/test-stdio-c++.cc: Likewise.
21038         * tests/test-stdlib-c++.cc: Likewise.
21039         * tests/test-string-c++.cc: Likewise.
21040         * tests/test-sys_ioctl-c++.cc: Likewise.
21041         * tests/test-sys_select-c++.cc: Likewise.
21042         * tests/test-sys_socket-c++.cc: Likewise.
21043         * tests/test-sys_stat-c++.cc: Likewise.
21044         * tests/test-sys_time-c++.cc: Likewise.
21045         * tests/test-time-c++.cc: Likewise.
21046         * tests/test-unistd-c++.cc: Likewise.
21047         * tests/test-wchar-c++.cc: Likewise.
21048         * tests/uninorm/test-u8-nfc.c: Likewise.
21049         * tests/uninorm/test-u8-nfd.c: Likewise.
21050         * tests/uninorm/test-u8-nfkc.c: Likewise.
21051         * tests/uninorm/test-u8-nfkd.c: Likewise.
21052         * tests/uninorm/test-u16-nfc.c: Likewise.
21053         * tests/uninorm/test-u16-nfd.c: Likewise.
21054         * tests/uninorm/test-u16-nfkc.c: Likewise.
21055         * tests/uninorm/test-u16-nfkd.c: Likewise.
21056         * tests/uninorm/test-u32-nfc.c: Likewise.
21057         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21058         * tests/uninorm/test-u32-nfd.c: Likewise.
21059         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21060         * tests/uninorm/test-u32-nfkc.c: Likewise.
21061         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21062         * tests/uninorm/test-u32-nfkd.c: Likewise.
21063         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21064         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21065
21066 2010-03-27  Bruno Haible  <bruno@clisp.org>
21067
21068         Distinguish two kinds of module indicators.
21069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21070         gl_MODULE_INDICATOR.
21071         (gl_MODULE_INDICATOR): New macro.
21072         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21073         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21074         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21075         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21076         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21077         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21078         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21079         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21080         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21081         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21082         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21083         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21085         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21086         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21088         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21089         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21090         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21091         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21092         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21093         * modules/cloexec (configure.ac): Likewise.
21094         * modules/getopt-gnu (configure.ac): Likewise.
21095         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21096         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21097         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21098         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21099
21100 2010-03-27  Bruno Haible  <bruno@clisp.org>
21101
21102         New module description field 'Comment'.
21103         * gnulib-tool: New option --extract-comment.
21104         (func_usage): Document it.
21105         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21106         (func_get_comment): New function.
21107         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21108
21109 2010-03-27  Bruno Haible  <bruno@clisp.org>
21110
21111         Addendum to 2010-02-07 commit.
21112         * gnulib-tool (func_usage): Document --extract-applicability option.
21113
21114 2010-03-27  Bruno Haible  <bruno@clisp.org>
21115
21116         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21117         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21118         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21119         rather than link errors.
21120
21121 2010-03-27  Bruno Haible  <bruno@clisp.org>
21122
21123         Avoid side effects from tests-related modules on the compilation of lib.
21124         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21125         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21126         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21127         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21128         macro.
21129         (func_import): Define a witness macro. Assign it a value that depends
21130         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21131         tests-related modules.
21132         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21133         Reported by Jim Meyering.
21134
21135 2010-03-27  Bruno Haible  <bruno@clisp.org>
21136
21137         Factorize common .m4 code.
21138         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21139         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21140         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21141         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21142         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21143         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21144         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21145         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21146         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21147         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21148         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21149         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21150         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21151         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21152         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21153         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21154         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21155         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21157         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21158         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21159         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21160         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21162         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21163         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21164         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21165         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21166         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21168         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21169         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21170
21171 2010-03-27  Bruno Haible  <bruno@clisp.org>
21172
21173         Fix a compilation error on Cygwin with g++ >= 4.3.
21174         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21175         if it is undefined or if we alias it to chmod.
21176         (lstat): Don't warn about the use of this function if it is undefined
21177         or if we alias it to stat.
21178         Reported by Simon Josefsson.
21179
21180 2010-03-27  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21183         * modules/getlogin (configure.ac): Update.
21184
21185         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21186         * modules/getlogin_r (configure.ac): Update.
21187
21188         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21190         * modules/inet_ntop (configure.ac): Update.
21191
21192         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21193         * modules/inet_pton (configure.ac): Update.
21194
21195         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21196         * modules/mbslen (configure.ac): Update.
21197
21198         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21199         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21200         * modules/forkpty (configure.ac): Update.
21201         * modules/openpty (configure.ac): Update.
21202
21203 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21204
21205         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21206         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21207
21208 2010-03-25  Eric Blake  <eblake@redhat.com>
21209
21210         maint: use pragma consistently across replacement headers
21211         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21212         * lib/dirent.in.h (system_header): Likewise.
21213         * lib/errno.in.h (system_header): Likewise.
21214         * lib/float.in.h (system_header): Likewise.
21215         * lib/getopt.in.h (system_header): Likewise.
21216         * lib/iconv.in.h (system_header): Likewise.
21217         * lib/inttypes.in.h (system_header): Likewise.
21218         * lib/langinfo.in.h (system_header): Likewise.
21219         * lib/locale.in.h (system_header): Likewise.
21220         * lib/math.in.h (system_header): Likewise.
21221         * lib/netdb.in.h (system_header): Likewise.
21222         * lib/netinet_in.in.h (system_header): Likewise.
21223         * lib/pty.in.h (system_header): Likewise.
21224         * lib/sched.in.h (system_header): Likewise.
21225         * lib/se-selinux.in.h (system_header): Likewise.
21226         * lib/search.in.h (system_header): Likewise.
21227         * lib/spawn.in.h (system_header): Likewise.
21228         * lib/stdarg.in.h (system_header): Likewise.
21229         * lib/stdint.in.h (system_header): Likewise.
21230         * lib/string.in.h (system_header): Likewise.
21231         * lib/strings.in.h (system_header): Likewise.
21232         * lib/sys_file.in.h (system_header): Likewise.
21233         * lib/sys_ioctl.in.h (system_header): Likewise.
21234         * lib/sys_socket.in.h (system_header): Likewise.
21235         * lib/sys_times.in.h (system_header): Likewise.
21236         * lib/sys_utsname.in.h (system_header): Likewise.
21237         * lib/sys_wait.in.h (system_header): Likewise.
21238         * lib/sysexits.in.h (system_header): Likewise.
21239         * lib/unistd.in.h (system_header): Likewise.
21240         * lib/wctype.in.h (system_header): Likewise.
21241
21242         arpa/inet: fix mingw compilation warning
21243         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21244         Reported by Matthew Bolte.
21245
21246 2010-03-25  Bruno Haible  <bruno@clisp.org>
21247
21248         Avoid collision between gnulib wrapper and libintl wrapper.
21249         * lib/printf.c (printf): Don't define if a printf wrapper is already
21250         defined in intl/printf.c.
21251         Reported by Michel Boaventura <michel@michelboaventura.com>.
21252
21253 2010-03-25  Bruno Haible  <bruno@clisp.org>
21254
21255         Use ANSI C.
21256         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21257
21258 2010-03-25  Bruno Haible  <bruno@clisp.org>
21259
21260         Minor formatting changes.
21261         * lib/acosl.c: Insert space before function argument list.
21262         * lib/argz.c: Likewise.
21263         * lib/asinl.c: Likewise.
21264         * lib/expl.c: Likewise.
21265         * lib/gen-uni-tables.c: Likewise.
21266         * lib/gettext.h: Likewise.
21267         * lib/glthread/lock.h: Likewise.
21268         * lib/tanl.c: Likewise.
21269         * lib/uniname/uniname.c: Likewise.
21270         * tests/test-idpriv-drop.c: Likewise.
21271         * tests/test-idpriv-droptemp.c: Likewise.
21272         * tests/test-lock.c: Likewise.
21273         * tests/test-tls.c: Likewise.
21274         * lib/argp-help.c: Insert space before function-like macro argument
21275         list.
21276         * lib/memcmp.c: Likewise.
21277         * tests/test-base64.c: Likewise.
21278         * lib/localename.c: Insert space before sizeof's argument list.
21279         * lib/safe-alloc.h: Likewise.
21280         * lib/file-set.h: Insert space before macro argument list.
21281         * tests/test-argp.c: Likewise.
21282         * lib/argp-namefrob.h: Insert space before function parameter list.
21283         * lib/getaddrinfo.c: Likewise.
21284         * lib/netdb.in.h: Likewise.
21285         * lib/parse-duration.h: Likewise.
21286         * lib/parse-duration.c: Likewise.
21287         * lib/poll.c: Likewise.
21288         * lib/select.c: Likewise.
21289         * lib/trim.h: Likewise.
21290         * tests/test-usleep.c: Likewise.
21291         * lib/ldexpl.c: Insert space before function parameter list and before
21292         function argument list.
21293         * lib/logl.c: Likewise.
21294         * lib/sqrtl.c: Likewise.
21295         * lib/trim.c: Likewise.
21296         * lib/cosl.c: Use GNU style indentation. Insert space before function
21297         argument list.
21298         * lib/sinl.c: Likewise.
21299         * lib/tsearch.c: Insert space after 'for'.
21300         Reported by Jim Meyering.
21301
21302 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21303
21304         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21305         config header before grepping, as it's not present before
21306         autoreconf/configure are run.  Reported by Simon Josefsson.
21307
21308 2010-03-23  Bruno Haible  <bruno@clisp.org>
21309
21310         pt_chown: Make it work with automake < 1.11.
21311         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21312         Reported by Simon Josefsson.
21313
21314 2010-03-23  Bruno Haible  <bruno@clisp.org>
21315
21316         pt_chown: Don't depend on GPLed modules.
21317         * lib/pt_chown.c: Don't include idpriv.h.
21318         (main): Don't drop privileges.
21319         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21320         Reported by Simon Josefsson.
21321
21322 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21323
21324         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21325         suggestions from karl@freefriends.org (Karl Berry).
21326
21327 2010-03-22  Eric Blake  <eblake@redhat.com>
21328
21329         gethostname: further tweaks
21330         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21331         are overriding gethostname.
21332         Suggested by Bruno Haible.
21333
21334 2010-03-21  Bruno Haible  <bruno@clisp.org>
21335
21336         Fix comments.
21337         * lib/forkpty.c (rpl_forkpty): Fix comment.
21338         * lib/openpty.c (rpl_openpty): Likewise.
21339         Reported by Eric Blake.
21340
21341 2010-03-22  Eric Blake  <eblake@redhat.com>
21342
21343         gethostname: fix build on mingw
21344         * lib/unistd.in.h (includes): Work around fact that mingw
21345         <winsock2.h> re-includes <unistd.h>, by avoiding any
21346         redeclarations if we are being included by <winsock2.h>.
21347         Reported by Matthias Bolte.
21348
21349 2010-03-21  Bruno Haible  <bruno@clisp.org>
21350
21351         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21352         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21353         modifications.
21354         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21355         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21356         provide the replacement.
21357         * modules/forkpty (Depends-on): Add openpty, login_tty.
21358         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21359         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21360         * doc/glibc-functions/forkpty.texi: More supported platforms.
21361         * config/srclist.txt: Add forkpty.c (commented).
21362
21363 2010-03-21  Bruno Haible  <bruno@clisp.org>
21364
21365         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21366         (Makefile.am): Verify that PTY_LIB is defined.
21367
21368         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21369
21370 2010-03-21  Bruno Haible  <bruno@clisp.org>
21371
21372         Tests for module 'login_tty'.
21373         * modules/login_tty-tests: New file.
21374         * tests/test-login_tty.c: New file.
21375
21376         New module 'login_tty'.
21377         * lib/login_tty.c: New file.
21378         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21379         * modules/login_tty: New file.
21380         * doc/glibc-functions/login_tty.texi: Mention the new module.
21381
21382 2010-03-21  Bruno Haible  <bruno@clisp.org>
21383
21384         login_tty: Documentation.
21385         * doc/glibc-functions/login_tty.texi: New file.
21386         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21387
21388 2010-03-21  Bruno Haible  <bruno@clisp.org>
21389
21390         pty: Consistent macro naming.
21391         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21392         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21393         * modules/pty (configure.ac): Update.
21394
21395 2010-03-21  Bruno Haible  <bruno@clisp.org>
21396
21397         Tests for openpty: Make stricter.
21398         * tests/test-openpty.c (main): Add test of canonical processing and
21399         erase.
21400         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21401
21402         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21403         * lib/openpty.c (openpty): New replacement function.
21404         * lib/pty.in.h: Include <termios.h>.
21405         (openpty): Update declaration. Add comments.
21406         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21407         is not declared, arrange to provide the replacement. Check for _getpty
21408         and posix_openpt.
21409         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21410         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21411         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21412         * modules/pty-tests (test_pty_c___LDADD): New variable.
21413         * doc/glibc-functions/openpty.texi: More supported platforms.
21414
21415 2010-03-21  Bruno Haible  <bruno@clisp.org>
21416
21417         setenv: Tweaks.
21418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21419         the test program.
21420         * doc/posix-functions/setenv.texi: Update platforms list.
21421
21422 2010-03-21  Bruno Haible  <bruno@clisp.org>
21423
21424         New module 'unlockpt'.
21425         * lib/unlockpt.c: New file, from glibc with modifications.
21426         * m4/unlockpt.m4: New file.
21427         * modules/unlockpt: New file.
21428         * lib/stdlib.in.h (unlockpt): New declaration.
21429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21430         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21431         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21432         HAVE_UNLOCKPT.
21433         * doc/posix-functions/unlockpt.texi: Mention the new module.
21434         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21435         * config/srclist.txt: Add unlockpt.c (commented).
21436
21437 2010-03-21  Jim Meyering  <meyering@redhat.com>
21438
21439         maint.mk: prohibit inclusion of "intprops.h" without use
21440         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21441
21442 2010-03-21  Bruno Haible  <bruno@clisp.org>
21443
21444         New module 'grantpt'.
21445         * lib/grantpt.c: New file, from glibc with modifications.
21446         * m4/grantpt.m4: New file.
21447         * modules/grantpt: New file.
21448         * lib/stdlib.in.h (grantpt): New declaration.
21449         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21450         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21451         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21452         HAVE_GRANTPT.
21453         * doc/posix-functions/grantpt.texi: Mention the new module.
21454         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21455         * config/srclist.txt: Add grantpt.c (commented).
21456
21457 2010-03-21  Bruno Haible  <bruno@clisp.org>
21458
21459         New module 'pt_chown'.
21460         * lib/pt_chown.c: New file, from glibc with modifications.
21461         * lib/pty-private.h: New file, from glibc with modifications.
21462         * modules/pt_chown: New file.
21463         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21464
21465 2010-03-21  Bruno Haible  <bruno@clisp.org>
21466
21467         Tests for module 'ptsname'.
21468         * modules/ptsname-tests: New file.
21469         * tests/test-ptsname.c: New file.
21470
21471         New module 'ptsname'.
21472         * lib/ptsname.c: New file, from glibc with modifications.
21473         * m4/ptsname.m4: New file.
21474         * modules/ptsname: New file.
21475         * lib/stdlib.in.h (ptsname): New declaration.
21476         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21477         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21478         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21479         HAVE_PTSNAME.
21480         * doc/posix-functions/ptsname.texi: Mention the new module.
21481         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21482         * config/srclist.txt: Add ptsname.c (commented).
21483
21484 2010-03-21  Bruno Haible  <bruno@clisp.org>
21485
21486         Tests for module 'ttyname_r'.
21487         * modules/ttyname_r-tests: New file.
21488         * tests/test-ttyname_r.c: New file.
21489
21490         New module 'ttyname_r'.
21491         * lib/ttyname_r.c: New file.
21492         * m4/ttyname_r.m4: New file.
21493         * modules/ttyname_r: New file.
21494         * lib/unistd.in.h (ttyname_r): New declaration.
21495         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21497         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21498         HAVE_TTYNAME_R.
21499         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21500         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21501
21502 2010-03-20  Bruno Haible  <bruno@clisp.org>
21503
21504         signal: Undefine macro definitions in C++ mode.
21505         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21506         sigfillset): Undefine macro definitions from the system header in C++
21507         mode.
21508         Reported by John W. Eaton <jwe@gnu.org>.
21509
21510 2010-03-20  Bruno Haible  <bruno@clisp.org>
21511
21512         Ensure no #include statements inside extern "C" { ... }.
21513         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21514         contain #include statements.
21515         * lib/time.in.h: Likewise.
21516
21517 2010-03-20  Bruno Haible  <bruno@clisp.org>
21518
21519         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21520         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21521         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21522         Reported by John W. Eaton <jwe@gnu.org>.
21523
21524 2010-03-20  Bruno Haible  <bruno@clisp.org>
21525
21526         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21527         Reported by Jim Meyering.
21528
21529 2010-03-20  Bruno Haible  <bruno@clisp.org>
21530
21531         pipe: Set errno upon failure.
21532         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21533         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21534         errno value in error message.
21535
21536 2010-03-20  Bruno Haible  <bruno@clisp.org>
21537             Jim Meyering  <meyering@redhat.com>
21538
21539         lchown: Avoid "unused variable" warning.
21540         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21541
21542 2010-03-20  Bruno Haible  <bruno@clisp.org>
21543
21544         Work around unlink() bug on MacOS X 10.5.6.
21545         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21546         attempting to unlink a parent directory.
21547         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21548         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21549         activate for the replacement function.
21550         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21551
21552 2010-03-20  Bruno Haible  <bruno@clisp.org>
21553
21554         Fix link errors on Solaris 8.
21555         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21556         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21557
21558 2010-03-19  Jim Meyering  <meyering@redhat.com>
21559
21560         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21561         The _LIBC implementation of build_range_exp correctly honors the
21562         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21563         However, the non-_LIBC implementation would ignore that syntax-bit
21564         flag and return REG_ERANGE unconditionally.
21565         This change makes it honor that flag.
21566         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21567         Make two pointer parameters "const".
21568         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21569         (parse_bracket_exp): Update caller.
21570
21571         regex.m4: correct the reversed range endpoint ([b-a]) test
21572         * m4/regex.m4: When requiring that [b-a] evoke failure,
21573         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21574         test pass once again for x86-based systems.
21575
21576 2010-03-19  Bruno Haible  <bruno@clisp.org>
21577
21578         scandir: Fix link error on Solaris 8.
21579         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21580         macros.
21581
21582 2010-03-19  Bruno Haible  <bruno@clisp.org>
21583
21584         getusershell: Fix documentation.
21585         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21586         module.
21587         * doc/glibc-functions/setusershell.texi: Likewise.
21588
21589         getusershell: Provide declaration, missing on Solaris 9.
21590         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21591         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21592         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21593         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21595         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21596         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21597         HAVE_GETUSERSHELL.
21598         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21599
21600 2010-03-19  Bruno Haible  <bruno@clisp.org>
21601
21602         wctype: Provide iswblank function.
21603         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21604         exists and is fine.
21605         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21606         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21607         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21608         * doc/posix-functions/iswblank.texi: Update.
21609
21610 2010-03-19  Bruno Haible  <bruno@clisp.org>
21611
21612         Tests of module 'pty' in C++ mode.
21613         * modules/pty-tests: New file.
21614         * tests/test-pty-c++.cc: New file.
21615         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21616
21617 2010-03-19  Eric Blake  <eblake@redhat.com>
21618
21619         logb: fix documentation
21620         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21621         1.5 declaration bug.
21622
21623         forkpty, openpty: prefer glibc's const-safe prototype
21624         * lib/forkpty.c (rpl_forkpty): New file.
21625         * lib/openpty.c (rpl_openpty): Likewise.
21626         * modules/forkpty (Files): Distribute it.
21627         * modules/openpty (Files): Likewise.
21628         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21629         check...
21630         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21631         replacement for for non-const BSD signature.
21632         * modules/pty (Makefile.am): Substitute witnesses.
21633         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21634         * tests/test-forkpty.c: Update signature check.
21635         * tests/test-openpty.c: Likewise.
21636         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21637         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21638
21639         forkpty, openpty: split functions into new modules
21640         * modules/pty (Makefile.am): Substitute new witnesses.
21641         (Libraries): Move library detection...
21642         * modules/forkpty: ...into new module.
21643         * modules/openpty: Another new module.
21644         * modules/pty-tests: Rename and split...
21645         * modules/forkpty-tests: ...to this...
21646         * modules/openpty-tests: ...and this.
21647         * tests/test-pty.c: Rename and split...
21648         * tests/test-forkpty.c: ...to this...
21649         * tests/test-openpty.c: ...and this.
21650         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21651         (gl_PTY): Split library searching...
21652         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21653         (gl_FORKPTY, gl_OPENPTY): New macros.
21654         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21655         * NEWS: Mention the split.
21656         * MODULES.html.sh (Misc): Document the modules.
21657         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21658         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21659
21660         pty: improve replacement header
21661         * lib/pty.in.h: New file.
21662         * modules/pty (Files): Ship it.
21663         (Makefile.am): Always build replacement.
21664         * m4/pty.m4: Rename...
21665         * m4/pty_h.m4: ...to this.
21666         (gl_PTY): Modernize setting of witness macros; update check of
21667         forkpty to take proper advantage of cache.
21668         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21669
21670         getopt: avoid compiler warning
21671         * lib/getopt.c (attribute_hidden): Remove unused macro.
21672
21673 2010-03-18  Bruno Haible  <bruno@clisp.org>
21674
21675         Fix link errors on Solaris 8.
21676         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21677         * modules/search-tests (test_search_c___LDADD): Likewise.
21678         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21679         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21680         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21681         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21682         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21683         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21684         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21685
21686 2010-03-18  Bruno Haible  <bruno@clisp.org>
21687
21688         Fix bug introduced on 2010-03-14.
21689         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21690         (gl_SPAWN_H): Require it.
21691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21692         Reported by Simon Josefsson.
21693
21694 2010-03-18  Bruno Haible  <bruno@clisp.org>
21695
21696         Fix typo introduced on 2009-12-31.
21697         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21698         posix_spawn_file_actions_adddup2.
21699
21700 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21701         and Eric Blake  <eblake@redhat.com>
21702
21703         test-vc-list-files-git: make more robust
21704         * tests/test-vc-list-files-git.sh: Unset problematic environment
21705         variables.  Chain commands together.
21706
21707 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21708
21709         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21710         `AC_CHECK_DECL' invocation.
21711
21712 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21713
21714         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21715         appears before executable statements. Suggested by Petr Sumbera
21716         <Petr.Sumbera@Sun.COM>.
21717
21718 2010-03-14  Bruno Haible  <bruno@clisp.org>
21719
21720         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21721         portability problems. Instead use a simpler test.
21722         (main): Check that invalid arguments are rejected only on Linux.
21723
21724 2010-03-14  Bruno Haible  <bruno@clisp.org>
21725
21726         Fix bug introduced on 2009-12-31.
21727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21728         gl_PREREQ_SYS_H_WINSOCK2 always.
21729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21730         SYS_SOCKET_H variable.
21731         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21732         Update comments.
21733         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21734         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21735         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21737         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21738
21739 2010-03-14  Bruno Haible  <bruno@clisp.org>
21740
21741         Fix values returned by sinl, cosl.
21742         * lib/trigl.h: Add specification comments.
21743         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21744         that combines the values from the precomputed table with the values of
21745         the Chebyshev polynomials.
21746
21747 2010-03-14  Bruno Haible  <bruno@clisp.org>
21748
21749         Fix compilation error when modules 'posix_spawn[p]' are not used.
21750         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21752
21753 2010-03-14  Bruno Haible  <bruno@clisp.org>
21754
21755         Fix compilation error on mingw when module 'time_r' is not used.
21756         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21757         is 1.
21758         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21759         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21760         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21762
21763 2010-03-14  Bruno Haible  <bruno@clisp.org>
21764
21765         Fix compilation error with Sun C.
21766         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21767         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21768         instead of GCC specific ULONG_LONG_MAX.
21769         * lib/xstrtoll.c: Likewise.
21770         * lib/xstrtoull.c: Likewise.
21771
21772 2010-03-13  Bruno Haible  <bruno@clisp.org>
21773
21774         Allow the user to disable C++ code and tests.
21775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21776         (gl_PROG_ANSI_CXX): Require it.
21777
21778 2010-03-13  Bruno Haible  <bruno@clisp.org>
21779
21780         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21781         cases.
21782
21783 2010-03-13  Bruno Haible  <bruno@clisp.org>
21784
21785         Test that gnulib does not break the standard C++ headers.
21786         * tests/test-locale-c++2.cc: New file.
21787         * modules/locale-tests (Files): Add it.
21788         (Makefile.am): Compile it for test-locale-c++.
21789         * tests/test-math-c++2.cc: New file.
21790         * modules/math-tests (Files): Add it.
21791         (Makefile.am): Compile it for test-math-c++.
21792         * tests/test-signal-c++2.cc: New file.
21793         * modules/signal-tests (Files): Add it.
21794         (Makefile.am): Compile it for test-signal-c++.
21795         * tests/test-stdio-c++2.cc: New file.
21796         * modules/stdio-tests (Files): Add it.
21797         (Makefile.am): Compile it for test-stdio-c++.
21798         * tests/test-stdlib-c++2.cc: New file.
21799         * modules/stdlib-tests (Files): Add it.
21800         (Makefile.am): Compile it for test-stdlib-c++.
21801         * tests/test-string-c++2.cc: New file.
21802         * modules/string-tests (Files): Add it.
21803         (Makefile.am): Compile it for test-string-c++.
21804         * tests/test-time-c++2.cc: New file.
21805         * modules/time-tests (Files): Add it.
21806         (Makefile.am): Compile it for test-time-c++.
21807         Reported by John W. Eaton <jwe@gnu.org>.
21808
21809 2010-03-13  Bruno Haible  <bruno@clisp.org>
21810
21811         * gnulib-tool (func_usage): Clarify which options are available for
21812         --create-testdir and --create-megatestdir.
21813
21814 2010-03-13  Bruno Haible  <bruno@clisp.org>
21815
21816         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21817         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21818         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21819         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21820         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21821         when appropriate.
21822         Reported by Jim Meyering.
21823
21824 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21825
21826         * gnulib-tool (func_import): Explain origin of code.
21827
21828 2010-03-12  Bruno Haible  <bruno@clisp.org>
21829
21830         Fix problem with automake's definition of CXXLINK.
21831         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21832         Reported by Simon Josefsson and Ludovic Courtès.
21833
21834 2010-03-12  Bruno Haible  <bruno@clisp.org>
21835
21836         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21837         stable releases.
21838
21839 2010-03-11  Bruno Haible  <bruno@clisp.org>
21840
21841         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21842         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21843         whether the system provides one variant or multiple variants of the
21844         function.
21845         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21846         C++ compilers.
21847         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21848         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21849         Reported by Jim Meyering.
21850
21851 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21852
21853         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21854
21855 2010-03-08  Bruno Haible  <bruno@clisp.org>
21856
21857         gnulib-tool: Add support for --libtool in --create-testdir.
21858         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21859         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21860
21861 2010-03-08  Eric Blake  <eblake@redhat.com>
21862
21863         gnulib-tool.texi: mention possibility of git submodule
21864         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21865         submodules.
21866         * doc/.gitignore: Ignore another generated file.
21867
21868 2010-03-08  Karl Berry  <karl@gnu.org>
21869
21870         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21871         of committing gnulib files while skipping others.
21872
21873 2010-03-07  Bruno Haible  <bruno@clisp.org>
21874
21875         Tests of module 'wctype' in C++ mode.
21876         * tests/test-wctype-c++.cc: New file.
21877         * modules/wctype-tests (Files): Add it and tests/signature.h.
21878         (Depends-on): Add ansi-c++-opt.
21879         (Makefile.am): Arrange to compile and run test-wctype-c++.
21880
21881         Tests of module 'wchar' in C++ mode.
21882         * tests/test-wchar-c++.cc: New file.
21883         * modules/wchar-tests (Files): Add it and tests/signature.h.
21884         (Depends-on): Add ansi-c++-opt.
21885         (Makefile.am): Arrange to compile and run test-wchar-c++.
21886         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21887         gl_MODULE_INDICATOR.
21888
21889         Tests of module 'unistd' in C++ mode.
21890         * tests/test-unistd-c++.cc: New file.
21891         * modules/unistd-tests (Files): Add it and tests/signature.h.
21892         (Depends-on): Add ansi-c++-opt.
21893         (Makefile.am): Arrange to compile and run test-unistd-c++.
21894         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21895         gl_MODULE_INDICATOR.
21896
21897         Tests of module 'time' in C++ mode.
21898         * tests/test-time-c++.cc: New file.
21899         * modules/time-tests (Files): Add it and tests/signature.h.
21900         (Depends-on): Add ansi-c++-opt.
21901         (Makefile.am): Arrange to compile and run test-time-c++.
21902         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21903
21904         Tests of module 'sys_time' in C++ mode.
21905         * tests/test-sys_time-c++.cc: New file.
21906         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21907         (Depends-on): Add ansi-c++-opt.
21908         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21909         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21910         gl_MODULE_INDICATOR.
21911
21912         Tests of module 'sys_stat' in C++ mode.
21913         * tests/test-sys_stat-c++.cc: New file.
21914         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21915         (Depends-on): Add ansi-c++-opt.
21916         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21918         gl_MODULE_INDICATOR.
21919
21920         Tests of module 'sys_socket' in C++ mode.
21921         * tests/test-sys_socket-c++.cc: New file.
21922         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21923         (Depends-on): Add ansi-c++-opt.
21924         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21926         gl_MODULE_INDICATOR.
21927
21928         Tests of module 'sys_select' in C++ mode.
21929         * tests/test-sys_select-c++.cc: New file.
21930         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21931         (Depends-on): Add ansi-c++-opt.
21932         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21933         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21934         gl_MODULE_INDICATOR.
21935
21936         Tests of module 'sys_ioctl' in C++ mode.
21937         * tests/test-sys_ioctl-c++.cc: New file.
21938         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21939         (Depends-on): Add ansi-c++-opt.
21940         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21942         gl_MODULE_INDICATOR.
21943
21944         Tests of module 'string' in C++ mode.
21945         * tests/test-string-c++.cc: New file.
21946         * modules/string-tests (Files): Add it and tests/signature.h.
21947         (Depends-on): Add ansi-c++-opt.
21948         (Makefile.am): Arrange to compile and run test-string-c++.
21949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21950         gl_MODULE_INDICATOR.
21951
21952         Tests of module 'stdlib' in C++ mode.
21953         * tests/test-stdlib-c++.cc: New file.
21954         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21955         (Depends-on): Add ansi-c++-opt.
21956         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21957         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21958         gl_MODULE_INDICATOR.
21959
21960         Tests of module 'stdio' in C++ mode.
21961         * tests/test-stdio-c++.cc: New file.
21962         * modules/stdio-tests (Files): Add it and tests/signature.h.
21963         (Depends-on): Add ansi-c++-opt.
21964         (Makefile.am): Arrange to compile and run test-stdio-c++.
21965         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21966         gl_MODULE_INDICATOR.
21967
21968         Tests of module 'spawn' in C++ mode.
21969         * tests/test-spawn-c++.cc: New file.
21970         * modules/spawn-tests (Files): Add it and tests/signature.h.
21971         (Depends-on): Add ansi-c++-opt.
21972         (Makefile.am): Arrange to compile and run test-spawn-c++.
21973         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21974         gl_MODULE_INDICATOR.
21975
21976         Tests of module 'signal' in C++ mode.
21977         * tests/test-signal-c++.cc: New file.
21978         * modules/signal-tests (Files): Add it and tests/signature.h.
21979         (Depends-on): Add ansi-c++-opt.
21980         (Makefile.am): Arrange to compile and run test-signal-c++.
21981         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21982         gl_MODULE_INDICATOR.
21983
21984         Tests of module 'search' in C++ mode.
21985         * tests/test-search-c++.cc: New file.
21986         * modules/search-tests (Files): Add it and tests/signature.h.
21987         (Depends-on): Add ansi-c++-opt.
21988         (Makefile.am): Arrange to compile and run test-search-c++.
21989         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21990         gl_MODULE_INDICATOR.
21991
21992         Tests of module 'math' in C++ mode.
21993         * tests/test-math-c++.cc: New file.
21994         * modules/math-tests (Files): Add it and tests/signature.h.
21995         (Depends-on): Add ansi-c++-opt.
21996         (Makefile.am): Arrange to compile and run test-math-c++.
21997         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21998
21999         Tests of module 'locale' in C++ mode.
22000         * tests/test-locale-c++.cc: New file.
22001         * modules/locale-tests (Files): Add it and tests/signature.h.
22002         (Depends-on): Add ansi-c++-opt.
22003         (Makefile.am): Arrange to compile and run test-locale-c++.
22004         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22005         gl_MODULE_INDICATOR.
22006
22007         Tests of module 'langinfo' in C++ mode.
22008         * tests/test-langinfo-c++.cc: New file.
22009         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22010         (Depends-on): Add ansi-c++-opt.
22011         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22012         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22013         gl_MODULE_INDICATOR.
22014
22015         Tests of module 'iconv-h' in C++ mode.
22016         * tests/test-iconv-h-c++.cc: New file.
22017         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22018         (Depends-on): Add ansi-c++-opt.
22019         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22020
22021         Tests of module 'glob' in C++ mode.
22022         * tests/test-glob-c++.cc: New file.
22023         * modules/glob-tests (Files): Add it.
22024         (Depends-on): Add ansi-c++-opt.
22025         (Makefile.am): Arrange to compile and run test-glob-c++.
22026
22027         Tests of module 'fcntl-h' in C++ mode.
22028         * tests/test-fcntl-h-c++.cc: New file.
22029         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22030         (Depends-on): Add ansi-c++-opt.
22031         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22032         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22033         gl_MODULE_INDICATOR.
22034
22035         Tests of module 'dirent' in C++ mode.
22036         * tests/test-dirent-c++.cc: New file.
22037         * modules/dirent-tests (Files): Add it and tests/signature.h.
22038         (Depends-on): Add ansi-c++-opt.
22039         (Makefile.am): Arrange to compile and run test-dirent-c++.
22040         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22041         gl_MODULE_INDICATOR.
22042
22043         New module 'ansi-c++-opt'.
22044         * modules/ansi-c++-opt: New file.
22045         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22046
22047         Document C++ namespace mode.
22048         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22049
22050         wctype: Avoid #define replacements in C++ mode.
22051         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22052         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22053         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22054         In C++, define a namespaced alias symbol.
22055         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22056         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22057         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22058         rule.
22059
22060         wchar: Avoid #define replacements in C++ mode.
22061         * lib/wchar.in.h: Include c++defs.h.
22062         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22063         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22064         symbol.
22065         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22066         * modules/wchar (Depends-on): Add c++defs.
22067         (Makefile.am): Update wchar.h rule.
22068
22069         unistd: Avoid #define replacements in C++ mode.
22070         * lib/unistd.in.h: Include c++defs.h.
22071         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22072         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22073         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22074         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22075         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22076         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22077         symbol.
22078         (environ): Update.
22079         * modules/unistd (Depends-on): Add c++defs.
22080         (Makefile.am): Update unistd.h rule.
22081
22082         time: Avoid #define replacements in C++ mode.
22083         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22084         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22085         define a namespaced alias symbol.
22086         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22087         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22088         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22089         * modules/time (Depends-on): Add c++defs, warn-on-use.
22090         (Makefile.am): Update time.h rule.
22091         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22092         * modules/nanosleep (configure.ac): Likewise.
22093         * modules/strptime (configure.ac): Likewise.
22094         * modules/timegm (configure.ac): Likewise.
22095
22096         sys_time: Avoid #define replacements in C++ mode.
22097         * lib/sys_time.in.h: Include c++defs.h.
22098         (gettimeofday): In C++, define a namespaced alias symbol.
22099         * modules/sys_time (Depends-on): Add c++defs.
22100         (Makefile.am): Update sys/time.h rule.
22101
22102         sys_stat: Avoid #define replacements in C++ mode.
22103         * lib/sys_stat.in.h: Include c++defs.h.
22104         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22105         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22106         namespaced alias symbol.
22107         In C++, define a namespaced alias symbol.
22108         * modules/sys_stat (Depends-on): Add c++defs.
22109         (Makefile.am): Update sys/stat.h rule.
22110
22111         sys_socket: Avoid #define replacements in C++ mode.
22112         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22113         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22114         definitions also when the system has a <sys/socket.h>.
22115         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22116         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22117         In C++, define a namespaced alias symbol.
22118         * modules/sys_socket (Depends-on): Add c++defs.
22119         (Makefile.am): Update sys/socket.h rule.
22120
22121         sys_select: Avoid #define replacements in C++ mode.
22122         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22123         definitions also when the system has a <sys/select.h>.
22124         (select): In C++, define a namespaced alias symbol.
22125         * modules/sys_select (Depends-on): Add c++defs.
22126         (Makefile.am): Update sys/select.h rule.
22127
22128         sys_ioctl: Avoid #define replacements in C++ mode.
22129         * lib/sys_ioctl.in.h: Include c++defs.h.
22130         (ioctl): In C++, define a namespaced alias symbol.
22131         * modules/sys_ioctl (Depends-on): Add c++defs.
22132         (Makefile.am): Update sys/ioctl.h rule.
22133
22134         string: Avoid #define replacements in C++ mode.
22135         * lib/string.in.h: Include c++defs.h.
22136         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22137         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22138         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22139         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22140         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22141         * modules/string (Depends-on): Add c++defs.
22142         (Makefile.am): Update string.h rule.
22143
22144         stdlib: Avoid #define replacements in C++ mode.
22145         * lib/stdlib.in.h: Include c++defs.h.
22146         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22147         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22148         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22149         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22150         symbol.
22151         * modules/stdlib (Depends-on): Add c++defs.
22152         (Makefile.am): Update stdlib.h rule.
22153
22154         stdio: Avoid #define replacements in C++ mode.
22155         * lib/stdio.in.h: Include c++defs.h.
22156         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22157         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22158         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22159         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22160         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22161         namespaced alias symbol.
22162         * modules/stdio (Depends-on): Add c++defs.
22163         (Makefile.am): Update stdio.h rule.
22164
22165         spawn: Avoid #define replacements in C++ mode.
22166         * lib/spawn.in.h: Include c++defs.h.
22167         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22168         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22169         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22170         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22171         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22172         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22173         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22174         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22175         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22176         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22177         In C++, define a namespaced alias symbol.
22178         * modules/spawn (Depends-on): Add c++defs.
22179         (Makefile.am): Update spawn.h rule.
22180
22181         signal: Avoid #define replacements in C++ mode.
22182         * lib/signal.in.h: Include c++defs.h.
22183         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22184         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22185         namespaced alias symbol.
22186         * modules/signal (Depends-on): Add c++defs.
22187         (Makefile.am): Update signal.h rule.
22188
22189         search: Avoid #define replacements in C++ mode.
22190         * lib/search.in.h: Include c++defs.h.
22191         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22192         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22193         symbol.
22194         * modules/search (Depends-on): Add c++defs.
22195         (Makefile.am): Update search.h rule.
22196
22197         math: Avoid #define replacements in C++ mode.
22198         * lib/math.in.h: Include c++defs.h.
22199         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22200         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22201         trunc, truncl): In C++, define a namespaced alias symbol.
22202         * modules/math (Depends-on): Add c++defs.
22203         (Makefile.am): Update math.h rule.
22204
22205         locale: Avoid #define replacements in C++ mode.
22206         * lib/locale.in.h: Include c++defs.h.
22207         (duplocale): In C++, define a namespaced alias symbol.
22208         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22209         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22210         * modules/locale (Depends-on): Add c++defs.
22211         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22212
22213         langinfo: Avoid #define replacements in C++ mode.
22214         * lib/langinfo.in.h: Include c++defs.h.
22215         (nl_langinfo): In C++, define a namespaced alias symbol.
22216         * modules/langinfo (Depends-on): Add c++defs.
22217         (Makefile.am): Update langinfo.h rule.
22218
22219         iconv-h: Avoid #define replacements in C++ mode.
22220         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22221         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22222         symbol.
22223         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22224         whenever iconv is present.
22225         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22226         (Makefile.am): Update iconv.h rule.
22227
22228         glob: Avoid #define replacements in C++ mode.
22229         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22230         (_gl_glob_errfunc_fn): New type.
22231         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22232         symbol.
22233         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22234         (Makefile.am): Update glob.h rule.
22235
22236         fcntl-h: Avoid #define replacements in C++ mode.
22237         * lib/fcntl.in.h: Include c++defs.h.
22238         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22239         * modules/fcntl-h (Depends-on): Add c++defs.
22240         (Makefile.am): Update fcntl.h rule.
22241
22242         dirent: Avoid #define replacements in C++ mode.
22243         * lib/dirent.in.h: Include c++defs.h.
22244         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22245         namespaced alias symbol.
22246         (dirfd): Update declaration.
22247         * modules/dirent (Depends-on): Add c++defs.
22248         (Makefile.am): Update dirent.h rule.
22249
22250         ctype: Make it usable in C++ code.
22251         * lib/ctype.in.h: Include c++defs.h.
22252         (isblank): Declare as extern "C".
22253         * modules/ctype (Depends-on): Add c++defs.
22254         (Makefile.am): Update ctype.h rule.
22255
22256         New module 'c++defs'.
22257         * modules/c++defs: New file.
22258         * build-aux/c++defs.h: New file.
22259         Reported by John W. Eaton <jwe@gnu.org>.
22260
22261 2010-03-07  Bruno Haible  <bruno@clisp.org>
22262
22263         logb: Provide missing declaration for Cygwin.
22264         * lib/math.in.h (logb): New declaration.
22265         * m4/logb.m4: New file.
22266         * modules/logb (Files): Add m4/logb.m4.
22267         (Depends-on): Add math.
22268         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22269         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22271         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22272         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22273
22274 2010-03-07  Bruno Haible  <bruno@clisp.org>
22275
22276         Fix test-cond link error.
22277         * tests/test-cond.c: Include <stdio.h>.
22278
22279 2010-03-07  Bruno Haible  <bruno@clisp.org>
22280
22281         Fix test-dirent-safer link error.
22282         * modules/dirent-safer-tests (Makefile.am): Define
22283         test_dirent_safer_LDADD.
22284
22285 2010-03-07  Bruno Haible  <bruno@clisp.org>
22286
22287         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22288         among default module list.
22289
22290 2010-03-07  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix link error on platforms with GNU libiconv.
22293         * modules/unistr/u8-strcoll-tests (Makefile): Define
22294         test_u8_strcoll_LDADD.
22295         * modules/unistr/u16-strcoll-tests (Makefile): Define
22296         test_u16_strcoll_LDADD.
22297         * modules/unistr/u32-strcoll-tests (Makefile): Define
22298         test_u32_strcoll_LDADD.
22299
22300 2010-03-07  Bruno Haible  <bruno@clisp.org>
22301
22302         Use POSIX declarations for socket functions.
22303         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22304         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22305         rpl_sendto): Change declaration to match POSIX.
22306         * lib/connect.c (rpl_connect): Likewise.
22307         * lib/accept.c (rpl_accept): Likewise.
22308         * lib/bind.c (rpl_bind): Likewise.
22309         * lib/getpeername.c (rpl_getpeername): Likewise.
22310         * lib/getsockname.c (rpl_getsockname): Likewise.
22311         * lib/recv.c (rpl_recv): Likewise.
22312         * lib/send.c (rpl_send): Likewise.
22313         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22314         * lib/sendto.c (rpl_sendto): Likewise.
22315
22316 2010-03-06  Bruno Haible  <bruno@clisp.org>
22317
22318         Clarify access, euidaccess, faccessat.
22319         * doc/posix-functions/faccessat.texi: Mention security problem under
22320         "Other problems", not "Portability problems".
22321         * doc/posix-functions/access.texi: Likewise. Mention a related security
22322         problem.
22323         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22324         * lib/euidaccess.c: Add comments about platforms.
22325         * lib/unistd.in.h (access, euidaccess): Add warnings.
22326
22327 2010-03-07  Bruno Haible  <bruno@clisp.org>
22328
22329         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22330         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22331         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22332         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22333         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22334         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22335         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22336         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22337         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22338         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22339         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22340         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22341         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22342         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22343         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22344         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22345         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22346         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22347         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22348         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22349         Likewise.
22350         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22351         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22352         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22353         Likewise.
22354         * tests/test-spawn.c (main): Make it work when
22355         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22356
22357 2010-03-07  Bruno Haible  <bruno@clisp.org>
22358
22359         Fix incorrect Makefile.am generation in German locale.
22360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22361         Execute sed command with character range in C locale.
22362
22363 2010-03-06  Bruno Haible  <bruno@clisp.org>
22364
22365         Tests for module 'iconv-h'.
22366         * modules/iconv-h-tests: New file.
22367         * tests/test-iconv-h.c: New file.
22368
22369         New module 'iconv-h'.
22370         * modules/iconv-h: New file.
22371         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22372         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22373         (configure.ac): Remove gl_ICONV_H.
22374         (Makefile.am): Remove rule for iconv.h.
22375
22376 2010-03-06  Bruno Haible  <bruno@clisp.org>
22377
22378         More consistent naming of *.m4 files.
22379         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22380         * modules/wctype (Files): Update.
22381
22382         More consistent naming of *.m4 files.
22383         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22384         * modules/wchar (Files): Update.
22385
22386 2010-03-06  Jim Meyering  <meyering@redhat.com>
22387
22388         euidaccess: relax license to LGPLv2+
22389         * modules/euidaccess (License): Relax to LGPLv2+.
22390
22391 2010-03-06  Bruno Haible  <bruno@clisp.org>
22392
22393         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22394         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22395         (Makefile.am): Augment lib_SOURCES instead.
22396
22397 2010-03-04  Jim Meyering  <meyering@redhat.com>
22398
22399         utime: remove obsolete module
22400         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22401         unnecessary for years, and has been marked as obsolete for 10 months.
22402         * modules/utime: Remove file.
22403         * lib/utime.c: Remove file.
22404         * m4/utime.m4: Remove file.
22405         * m4/utimes-null.m4: Remove file.
22406         * doc/posix-functions/utime.texi (utime): Remove reference to
22407         the module.  Move the sole "fixed by gnulib" item into the
22408         "problems not fixed by Gnulib" list.
22409         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22410
22411 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22412
22413         * modules/exit (License): Relax license to LGPLv2+.
22414         (Status): Mark as obsolete.
22415         * NEWS: Mention deprecated 'exit' module.
22416         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22417         of now obsolete 'exit'.
22418
22419 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22420
22421         fts-lgpl: remove unused module
22422         * modules/fts-lgpl: Remove.
22423         * MODULES.html.sh (func_all_modules): Adjust.
22424         * check-module (find_included_lib_files): Adjust.
22425         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22426
22427 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22428
22429         copy-acl: enhance Solaris ACL error handling
22430         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22431         * lib/set-mode-acl.c (qset_acl): Likewise.
22432
22433 2010-03-02  Bruno Haible  <bruno@clisp.org>
22434
22435         spawn: Don't override the system defined values on FreeBSD 8.
22436         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22437         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22438         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22439         if HAVE_POSIX_SPAWN is 1.
22440         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22441
22442 2010-03-01  Bruno Haible  <bruno@clisp.org>
22443
22444         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22445         regarding Automake.
22446
22447 2010-02-25  Bruno Haible  <bruno@clisp.org>
22448
22449         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22450         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22451         setting, not afterwards.
22452         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22453
22454 2010-02-24  Eric Blake  <eblake@redhat.com>
22455
22456         bootstrap, git-version-gen: use timestamp
22457         * build-aux/git-version-gen (scriptversion): Force UTC.
22458         * build-aux/bootstrap (scriptversion): New variable.
22459
22460         bootstrap: allow older git
22461         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22462         older than 1.6.4.  Requested by the libvirt project.
22463
22464 2010-02-23  Eric Blake  <eblake@redhat.com>
22465
22466         warn-on-use: work with old autoconf
22467         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22468         AS_VAR semantics of autoconf 2.60.
22469         Reported by Bruno Haible.
22470
22471         bootstrap: improve some comments
22472         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22473         clarification comments.
22474
22475         gettimeofday: provide correct function
22476         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22477         when replacement is declared, otherwise provide gettimeofday.
22478         Reported by Michael Goffioul.
22479
22480 2010-02-23  Jim Meyering  <meyering@redhat.com>
22481
22482         lib-ignore: relax license to "unlimited", not LGPLv2+
22483         * modules/lib-ignore (License): Relax to "unlimited".
22484
22485 2010-02-23  Jim Meyering  <meyering@redhat.com>
22486
22487         lib-ignore: relax license to LGPLv2+
22488         * modules/lib-ignore (License): Relax to LGPLv2+.
22489
22490 2010-02-22  Eric Blake  <eblake@redhat.com>
22491
22492         lseek: avoid bash 3.2 broken pipe bug
22493         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22494         warning from bash 3.2.
22495         Reported by Ben Pfaff, with analysis from Bruno Haible.
22496
22497         bootstrap: support non-FSF copyright holder
22498         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22499         bootstrap.conf override of COPYRIGHT_HOLDER.
22500         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22501
22502         bootstrap: interoperate with gettext 0.14.1
22503         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22504
22505         bootstrap: allow for alternate submodule location
22506         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22507         hardcoding submodule location.
22508         (gnulib_mk): Allow direct use of Makefile.am.
22509
22510         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22511         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22512         rather than reconfiguring where the submodule points.
22513
22514         gettimeofday: restore support for platforms that lack function
22515         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22516         replacement if function is missing.
22517         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22518         * modules/sys_time (Makefile.am): Substitute it.
22519         * lib/sys_time.in.h (gettimeofday): Check it.
22520         Reported by Michael Goffioul.
22521
22522 2010-02-21  Bruno Haible  <bruno@clisp.org>
22523
22524         * lib/stdio.in.h (obstack_printf): Fix typo.
22525
22526 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22527
22528         vc-list-files: use bzr ls's -R option
22529         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22530         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22531
22532 2010-02-21  Jim Meyering  <meyering@redhat.com>
22533
22534         init.sh: fix EXEEXT shims to work also for names like test-prog
22535         * tests/init.sh: Re-exec a better shell, when needed.
22536         If the current shell lacks support for posix $(...), an init.sh-using
22537         test will now try to find a shell that supports that.  If EXEEXT is
22538         nonempty, we also require support for hyphen-in-alias-name and shell
22539         substitutions like ${var#glob}.  Failure to find such a shell results
22540         in a skipped test.
22541
22542 2010-02-21  Bruno Haible  <bruno@clisp.org>
22543
22544         Really work around around "broken pipe" error message from bash 3.2.
22545         * gnulib-tool (func_reset_sigpipe): Remove function.
22546         (echo): In bash 3.2, define to a function that uses printf.
22547         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22548
22549 2010-02-20  Bruno Haible  <bruno@clisp.org>
22550
22551         Restore support for automake 1.9.6 with autoconf 2.61.
22552         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22553         Reported by James Youngman <jay@gnu.org>.
22554
22555 2010-02-20  Bruno Haible  <bruno@clisp.org>
22556
22557         Improve *printf warning condition.
22558         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22559         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22560         and the function is overridden due to SIGPIPE emulation.
22561
22562 2010-02-20  Bruno Haible  <bruno@clisp.org>
22563
22564         * lib/stdio.in.h: Tweak comments.
22565
22566 2010-02-19  Bruno Haible  <bruno@clisp.org>
22567
22568         Make it easier to find modules. New gnulib-tool option '--find'.
22569         * gnulib-tool: New option --find.
22570         (func_usage): Document it.
22571         (func_sanitize_modulelist): New function, extracted from
22572         func_all_modules.
22573         (func_all_modules): Invoke it.
22574         * doc/gnulib-tool.texi (Which modules?): New node.
22575
22576 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22577
22578         * lib/sys_select.in.h: Provide select replacement even if
22579         sys/select.h exists on a system, for Interix.
22580
22581 2010-02-18  Jim Meyering  <meyering@redhat.com>
22582
22583         init.sh: don't use $(...) just yet
22584         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22585         to accommodate e.g., Solaris' /bin/sh.
22586
22587 2010-02-17  Bruno Haible  <bruno@clisp.org>
22588
22589         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22590         Reported by Ludovic Courtès <ludo@gnu.org>.
22591
22592 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22593
22594         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22595         linking with -lintl.
22596
22597 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22598
22599         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22600         if not provided by the system's netdb.h.  Reported by
22601         ludo@gnu.org (Ludovic Courtès).
22602
22603 2010-02-15  Jim Meyering  <meyering@redhat.com>
22604
22605         init.sh: improve portability and efficiency
22606         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22607         "dummy" in a for loop.
22608         Use '!', not '^' to select the complement of a character set used
22609         in a "case" statement.
22610         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22611         Suggestions from Eric Blake.
22612
22613         init.sh: automatically accommodate programs with the .exe suffix
22614         Automatically arrange for an invocation of "prog" to execute the
22615         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22616         may use the simpler "prog", yet still work when built on a system
22617         that requires specifying the added suffix.
22618         Do this by constructing a function named "prog" that invokes
22619         "prog.exe" for each .exe file in selected directories.
22620         * tests/init.sh (find_exe_basenames_): New function.
22621         (create_exe_shim_functions_): New function.
22622         (path_prepend_): Use it.
22623
22624         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22625         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22626         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22627
22628 2010-02-14  Jim Meyering  <meyering@redhat.com>
22629
22630         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22631         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22632         (sc_prohibit_hash_pjw_without_use): New rule.
22633
22634         maint.mk: allow the default upload destination dir to be overridden
22635         * top/maint.mk (upload_dest_dir_): Define with a default that
22636         preserves the status quo.
22637         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22638         Reported by Peter Simons.
22639
22640         maint.mk: prohibit inclusion of "hash.h" without_use
22641         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22642
22643 2010-02-10  Jim Meyering  <meyering@redhat.com>
22644
22645         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22646         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22647
22648 2010-02-09  Eric Blake  <ebb9@byu.net>
22649         and Bruno Haible  <bruno@clisp.org>
22650
22651         obstack-printf-posix: ensure declaration
22652         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22653         extracted from gl_FUNC_OBSTACK_PRINTF.
22654         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22655         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22656         Likewise.
22657         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22658         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22659         0.
22660
22661 2010-02-08  Bruno Haible  <bruno@clisp.org>
22662
22663         gnulib-tool: Fix typo in 2010-02-07 commit.
22664         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22665         Reported by Eric Blake.
22666
22667 2010-02-07  Bruno Haible  <bruno@clisp.org>
22668
22669         gnulib-tool: Fix up caching patches.
22670         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22671         option --no-cache. Use associative arrays when supported by the shell.
22672         (sed_comments): New variable.
22673         (modcache): Renamed from do_cache.
22674         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22675         abbreviate unnecessarily.
22676         (have_associative): New variable.
22677         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22678         way also for ksh and zsh.
22679         (func_init_sed_convert_to_cache_statements): New function, extracted
22680         from func_cache_lookup_module. Add support for associative arrays.
22681         Don't set the c_MODULE_cached variable here. Ignore all lines before
22682         the first field header. Remove only the final newline, not all trailing
22683         newlines. Support empty fields correctly. Limit the use of 'eval' to
22684         assignments.
22685         (func_get_description, func_get_status, func_get_notice,
22686         func_get_applicability, func_get_filelist, func_get_dependencies,
22687         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22688         func_get_automake_snippet, func_get_include_directive,
22689         func_get_link_directive, func_get_license, func_get_maintainer):
22690         Update documentation. List the unoptimized code first. Add support for
22691         associative arrays. Limit the use of 'eval' to assignments.
22692         (func_get_applicability): Undo stylistic pessimisations.
22693         (func_get_automake_snippet, func_get_include_directive): Reduce code
22694         duplication.
22695         (func_modules_transitive_closure, func_modules_add_dummy,
22696         func_modules_notice, func_modules_to_filelist, func_add_file,
22697         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22698         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22699         func_create_testdir, func_create_megatestdir): Update documentation.
22700
22701 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22702
22703         * gnulib-tool (func_cache_lookup_module): Store the module name
22704         belonging to the cache variable; error out if two different
22705         module names map to the same cache variable name.
22706
22707 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22708
22709         gnulib-tool: Make caching optional.
22710         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22711         Update matching short versions of --no-changelog.
22712         (func_usage): Update.
22713         (sed_extract_cache_prog): Renamed from ...
22714         (sed_extract_prog): ... this; revert to old extraction script.
22715         (func_get_description, func_get_status)
22716         (func_get_notice, func_get_applicability, func_get_filelist)
22717         (func_get_dependencies, func_get_autoconf_early_snippet)
22718         (func_get_autoconf_snippet, func_get_automake_snippet)
22719         (func_get_include_directive, func_get_link_directive)
22720         (func_get_license, func_get_maintainer): If $do_cache is false,
22721         use old, non-caching extraction scripts.
22722         Suggestion by Bruno Haible.
22723
22724 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22725
22726         gnulib-tool: cache module metainformation.
22727         * gnulib-tool (sed_extract_prog): Match newline before each
22728         header, and rewrite header to a shell variable suffix.
22729         (func_cache_var, func_cache_lookup_module): New functions,
22730         to turn a module name into a cache variable prefix, and to
22731         look up and cache module metainformation.
22732         (func_get_description, func_get_status)
22733         (func_get_notice, func_get_applicability, func_get_filelist)
22734         (func_get_dependencies, func_get_autoconf_early_snippet)
22735         (func_get_autoconf_snippet, func_get_automake_snippet)
22736         (func_get_include_directive, func_get_link_directive)
22737         (func_get_license, func_get_maintainer): Use
22738         func_cache_lookup_module.
22739
22740 2010-02-07  Bruno Haible  <bruno@clisp.org>
22741
22742         fnctl: Fix missing dependency.
22743         * modules/fcntl (Depends-on): Add getdtablesize.
22744         Reported by John W. Eaton <jwe@gnu.org>.
22745
22746 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22747
22748         Argp: fix recognition of short alias options.
22749
22750         * lib/argp-parse.c (convert_options): Fix improper use of
22751         `|' between character values.
22752         * tests/test-argp.c (group1_option): New alias option
22753         --read (-r).
22754         (group1_parser): Special handling for 'r'.
22755         (test15): New test case.
22756         (test_fun): Add test15.
22757         * tests/test-argp-2.sh: Update expected --help and --usage
22758         outputs.
22759
22760 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22761
22762         * tests/test-argp.c: Fix indentation.
22763
22764 2010-02-04  Eric Blake  <ebb9@byu.net>
22765
22766         gettimeofday: expose type of second argument
22767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22768         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22769         * tests/test-gettimeofday.c: Use it to silence warning.
22770         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22771         the issue.
22772
22773 2010-02-03  Jim Meyering  <meyering@redhat.com>
22774
22775         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22776         * lib/regcomp.c (TYPE_SIGNED): Define.
22777         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22778
22779         regcomp.c: avoid a new -Wshadow warning
22780         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22781
22782 2010-02-01  Jim Meyering  <meyering@redhat.com>
22783
22784         removing useless parentheses in cpp #define directives
22785         For motivation, see commit c0221df4, "define STREQ(a,b)
22786         consistently, removing useless parentheses"
22787         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22788         * lib/mountlist.c (MNT_IGNORE): Likewise.
22789         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22790
22791 2010-02-01  Eric Blake  <ebb9@byu.net>
22792
22793         sys_time: use link-warning
22794         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22795         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22796         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22797         * modules/sys_time (Depends-on): Add warn-on-use.
22798         (Makefile.am): Always build replacement.
22799         (configure.ac): Update substitutions.
22800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22801         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22802         bother with SYS_TIME_H.
22803         * modules/gettimeofday (configure.ac): Declare indicator.
22804         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22805         in use.
22806
22807         closein-tests: silence compiler warning
22808         * tests/test-closein.c (main): Ignore fread result.
22809         * modules/closein-tests (Depends-on): Add ignore-value.
22810
22811         tests: silence warning about system return
22812         * tests/test-areadlink-with-size.c (main): Ignore system result.
22813         * tests/test-areadlink.c (main): Likewise.
22814         * tests/test-areadlinkat-with-size.c (main): Likewise.
22815         * tests/test-areadlinkat.c (main): Likewise.
22816         * tests/test-canonicalize-lgpl.c (main): Likewise.
22817         * tests/test-canonicalize.c (main): Likewise.
22818         * tests/test-chown.c (main): Likewise.
22819         * tests/test-fchownat.c (main): Likewise.
22820         * tests/test-fdutimensat.c (main): Likewise.
22821         * tests/test-fstatat.c (main): Likewise.
22822         * tests/test-futimens.c (main): Likewise.
22823         * tests/test-lchown.c (main): Likewise.
22824         * tests/test-link.c (main): Likewise.
22825         * tests/test-linkat.c (main): Likewise.
22826         * tests/test-lstat.c (main): Likewise.
22827         * tests/test-mkdir.c (main): Likewise.
22828         * tests/test-mkdirat.c (main): Likewise.
22829         * tests/test-mkfifo.c (main): Likewise.
22830         * tests/test-mkfifoat.c (main): Likewise.
22831         * tests/test-mknod.c (main): Likewise.
22832         * tests/test-readlink.c (main): Likewise.
22833         * tests/test-remove.c (main): Likewise.
22834         * tests/test-rename.c (main): Likewise.
22835         * tests/test-renameat.c (main): Likewise.
22836         * tests/test-rmdir.c (main): Likewise.
22837         * tests/test-symlink.c (main): Likewise.
22838         * tests/test-symlinkat.c (main): Likewise.
22839         * tests/test-unlink.c (main): Likewise.
22840         * tests/test-unlinkat.c (main): Likewise.
22841         * tests/test-utimens.c (main): Likewise.
22842         * tests/test-utimensat.c (main): Likewise.
22843         * modules/areadlink-tests (Depends-on): Add ignore-value.
22844         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22845         * modules/areadlinkat-tests (Depends-on): Likewise.
22846         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22847         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22848         * modules/canonicalize-tests (Depends-on): Likewise.
22849         * modules/chown-tests (Depends-on): Likewise.
22850         * modules/fdutimensat-tests (Depends-on): Likewise.
22851         * modules/futimens-tests (Depends-on): Likewise.
22852         * modules/lchown-tests (Depends-on): Likewise.
22853         * modules/link-tests (Depends-on): Likewise.
22854         * modules/linkat-tests (Depends-on): Likewise.
22855         * modules/lstat-tests (Depends-on): Likewise.
22856         * modules/mkdir-tests (Depends-on): Likewise.
22857         * modules/mkfifo-tests (Depends-on): Likewise.
22858         * modules/mkfifoat-tests (Depends-on): Likewise.
22859         * modules/mknod-tests (Depends-on): Likewise.
22860         * modules/openat-tests (Depends-on): Likewise.
22861         * modules/readlink-tests (Depends-on): Likewise.
22862         * modules/remove-tests (Depends-on): Likewise.
22863         * modules/rename-tests (Depends-on): Likewise.
22864         * modules/renameat-tests (Depends-on): Likewise.
22865         * modules/rmdir-tests (Depends-on): Likewise.
22866         * modules/symlink-tests (Depends-on): Likewise.
22867         * modules/symlinkat-tests (Depends-on): Likewise.
22868         * modules/unlink-tests (Depends-on): Likewise.
22869         * modules/utimens-tests (Depends-on): Likewise.
22870         * modules/utimensat-tests (Depends-on): Likewise.
22871
22872 2010-01-31  Bruno Haible  <bruno@clisp.org>
22873
22874         Perform the same test for many <math.h> functions.
22875         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22876         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22877         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22878         of gl_MATHFUNC.
22879         * modules/acos (configure.ac): Likewise.
22880         * modules/asin (configure.ac): Likewise.
22881         * modules/atan (configure.ac): Likewise.
22882         * modules/atan2 (configure.ac): Likewise.
22883         * modules/cbrt (configure.ac): Likewise.
22884         * modules/copysign (configure.ac): Likewise.
22885         * modules/cos (configure.ac): Likewise.
22886         * modules/cosh (configure.ac): Likewise.
22887         * modules/erf (configure.ac): Likewise.
22888         * modules/erfc (configure.ac): Likewise.
22889         * modules/exp (configure.ac): Likewise.
22890         * modules/fmod (configure.ac): Likewise.
22891         * modules/hypot (configure.ac): Likewise.
22892         * modules/j0 (configure.ac): Likewise.
22893         * modules/j1 (configure.ac): Likewise.
22894         * modules/jn (configure.ac): Likewise.
22895         * modules/lgamma (configure.ac): Likewise.
22896         * modules/log (configure.ac): Likewise.
22897         * modules/log10 (configure.ac): Likewise.
22898         * modules/log1p (configure.ac): Likewise.
22899         * modules/pow (configure.ac): Likewise.
22900         * modules/remainder (configure.ac): Likewise.
22901         * modules/sin (configure.ac): Likewise.
22902         * modules/sinh (configure.ac): Likewise.
22903         * modules/tan (configure.ac): Likewise.
22904         * modules/tanh (configure.ac): Likewise.
22905         * modules/y0 (configure.ac): Likewise.
22906         * modules/y1 (configure.ac): Likewise.
22907         * modules/yn (configure.ac): Likewise.
22908         Suggested by Paolo Bonzini.
22909
22910 2010-01-31  Bruno Haible  <bruno@clisp.org>
22911
22912         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22913
22914 2010-01-31  Bruno Haible  <bruno@clisp.org>
22915
22916         Work around getdelim() bug on FreeBSD 8.0.
22917         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22918         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22919         not work.
22920         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22921         is 1.
22922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22923         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22924         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22925         a non-zero size.
22926         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22927
22928 2010-01-31  Bruno Haible  <bruno@clisp.org>
22929
22930         Work around getline() bug on FreeBSD 8.0.
22931         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22932         and a non-zero size.
22933         * tests/test-getline.c (main): Likewise.
22934         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22935         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22936
22937 2010-01-28  Eric Blake  <ebb9@byu.net>
22938
22939         regex: fix build failure
22940         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22941         platforms.
22942
22943 2010-01-28  Jim Meyering  <meyering@redhat.com>
22944
22945         regex: do not ignore memory allocation failure
22946         * lib/regex_internal.c (create_cd_newstate): Detect
22947         re_node_set_init_copy failure.   Extracted from glibc commit
22948         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22949
22950         regex: sync more white-space changes from libc
22951         * lib/regex_internal.c: White-space only changes.
22952         * lib/regexec.c: Likewise.
22953
22954         regex: add many uses of __attribute_warn_unused_result__
22955         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22956         * lib/regexec.c: Likewise.
22957         Extracted from a messy glibc commit.
22958
22959         regcomp.c: spelling and merge-artifact from glibc
22960         * lib/regcomp.c: Merge remainder of glibc's
22961         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22962
22963         regcomp.c: sync white-space changes from glibc
22964         * lib/regcomp.c: Merge to accommodate white space
22965         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22966
22967         regcomp.c: do not ignore internal return values
22968         * lib/regcomp.c: Do not ignore internal return values.
22969         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22970         but without its white-space changes and spelling fixes.
22971
22972         regex_internal.h: define __attribute_warn_unused_result__
22973         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22974
22975         maint: add a syntax-check rule to check for vulnerable Makefile.in
22976         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22977
22978 2010-01-27  Jim Meyering  <meyering@redhat.com>
22979
22980         ncftpput-ftp: clean up spaces
22981         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22982         Remove trailing blanks.
22983
22984 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22985
22986         * build-aux/git-version-gen: Fix copyright statement.
22987         * build-aux/gnupload: Likewise.
22988         * tests/test-arcfour.c: Likewise.
22989         * tests/test-arctwo.c: Likewise.
22990         * tests/test-count-one-bits.c: Likewise.
22991         * tests/test-crc.c: Likewise.
22992         * tests/test-des.c: Likewise.
22993         * tests/test-gc-arcfour.c: Likewise.
22994         * tests/test-gc-arctwo.c: Likewise.
22995         * tests/test-gc-des.c: Likewise.
22996         * tests/test-gc-hmac-md5.c: Likewise.
22997         * tests/test-gc-hmac-sha1.c: Likewise.
22998         * tests/test-gc-md2.c: Likewise.
22999         * tests/test-gc-md4.c: Likewise.
23000         * tests/test-gc-md5.c: Likewise.
23001         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23002         * tests/test-gc-rijndael.c: Likewise.
23003         * tests/test-gc-sha1.c: Likewise.
23004         * tests/test-gc.c: Likewise.
23005         * tests/test-gethostname.c: Likewise.
23006         * tests/test-gettimeofday.c: Likewise.
23007         * tests/test-hash.c: Likewise.
23008         * tests/test-hmac-md5.c: Likewise.
23009         * tests/test-hmac-sha1.c: Likewise.
23010         * tests/test-md2.c: Likewise.
23011         * tests/test-md4.c: Likewise.
23012         * tests/test-md5.c: Likewise.
23013         * tests/test-memchr.c: Likewise.
23014         * tests/test-memchr2.c: Likewise.
23015         * tests/test-memcmp.c: Likewise.
23016         * tests/test-memmem.c: Likewise.
23017         * tests/test-memrchr.c: Likewise.
23018         * tests/test-rawmemchr.c: Likewise.
23019         * tests/test-read-file.c: Likewise.
23020         * tests/test-rijndael.c: Likewise.
23021         * tests/test-sockets.c: Likewise.
23022         * tests/test-strchrnul.c: Likewise.
23023         * tests/test-strstr.c: Likewise.
23024         * tests/test-strtod.c: Likewise.
23025         * build-aux/ncftpput-ftp: Likewise.
23026
23027 2010-01-26  Eric Blake  <ebb9@byu.net>
23028
23029         ignore-value: update recommended header name
23030         * modules/ignore-value (Include): Only use <> for headers that
23031         exist in glibc.
23032
23033 2010-01-26  Jim Meyering  <meyering@redhat.com>
23034
23035         test-userspec.c: avoid compiler warnings
23036         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23037         and "initialization discards qualifiers..." warnings.
23038         Put the first "uid" in its own scope, and make char* members "const".
23039
23040 2010-01-25  Bruno Haible  <bruno@clisp.org>
23041
23042         gnulib-tool: Make warning diagnostics consistent.
23043         * gnulib-tool (func_warning): New function.
23044         Use it everywhere where gnulib-tool produces output to stderr and it is
23045         not a fatal error.
23046
23047 2010-01-25  Bruno Haible  <bruno@clisp.org>
23048
23049         Fix test dependencies.
23050         * modules/xstrtol-tests (Depends-on): Add inttypes.
23051         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23052
23053 2010-01-25 Pádraig Brady <P@draigBrady.com>
23054
23055         syntax-check: detect incorrect boolean macro values in config.h
23056         * modules/maintainer-makefile (configure.ac): Parameterize the location
23057         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23058         The logic is from Eric Blake and the location indicated by Jim Meyering.
23059         Note the more natural CONFIG_HEADER name is prohibited by automake
23060         for backwards compatibility reasons.
23061         * top/maint.mk (sc_Wundef_boolean): New rule.
23062
23063 2010-01-25  Jim Meyering  <meyering@redhat.com>
23064
23065         bootstrap: detect MacOS 10.6's shasum, too
23066         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23067         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23068
23069 2010-01-23  Jim Meyering  <meyering@redhat.com>
23070
23071         xstrtoll: new module
23072         * modules/xstrtoll: New file.
23073         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23074         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23075         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23076         ./configure fails if you use this module and lack "long long".
23077         * modules/xstrtoll-tests: New module.
23078         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23079         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23080         new init.sh-based test framework.
23081
23082 2010-01-24  Bruno Haible  <bruno@clisp.org>
23083
23084         Tests for module 'yn'.
23085         * modules/yn-tests: New file.
23086         * tests/test-yn.c: New file.
23087
23088         Tests for module 'y1'.
23089         * modules/y1-tests: New file.
23090         * tests/test-y1.c: New file.
23091
23092         Tests for module 'y0'.
23093         * modules/y0-tests: New file.
23094         * tests/test-y0.c: New file.
23095
23096         Tests for module 'tanh'.
23097         * modules/tanh-tests: New file.
23098         * tests/test-tanh.c: New file.
23099
23100         Tests for module 'tan'.
23101         * modules/tan-tests: New file.
23102         * tests/test-tan.c: New file.
23103
23104         Tests for module 'sqrt'.
23105         * modules/sqrt-tests: New file.
23106         * tests/test-sqrt.c: New file.
23107
23108         Tests for module 'sinh'.
23109         * modules/sinh-tests: New file.
23110         * tests/test-sinh.c: New file.
23111
23112         Tests for module 'sin'.
23113         * modules/sin-tests: New file.
23114         * tests/test-sin.c: New file.
23115
23116         Tests for module 'rint'.
23117         * modules/rint-tests: New file.
23118         * tests/test-rint.c: New file.
23119
23120         Tests for module 'remainder'.
23121         * modules/remainder-tests: New file.
23122         * tests/test-remainder.c: New file.
23123
23124         Tests for module 'pow'.
23125         * modules/pow-tests: New file.
23126         * tests/test-pow.c: New file.
23127
23128         Tests for module 'nextafter'.
23129         * modules/nextafter-tests: New file.
23130         * tests/test-nextafter.c: New file.
23131
23132         Tests for module 'modf'.
23133         * modules/modf-tests: New file.
23134         * tests/test-modf.c: New file.
23135
23136         Tests for module 'logb'.
23137         * modules/logb-tests: New file.
23138         * tests/test-logb.c: New file.
23139
23140         Tests for module 'log1p'.
23141         * modules/log1p-tests: New file.
23142         * tests/test-log1p.c: New file.
23143
23144         Tests for module 'log10'.
23145         * modules/log10-tests: New file.
23146         * tests/test-log10.c: New file.
23147
23148         Tests for module 'log'.
23149         * modules/log-tests: New file.
23150         * tests/test-log.c: New file.
23151
23152         Tests for module 'lgamma'.
23153         * modules/lgamma-tests: New file.
23154         * tests/test-lgamma.c: New file.
23155
23156         Tests for module 'ldexp'.
23157         * modules/ldexp-tests: New file.
23158         * tests/test-ldexp.c: New file.
23159
23160         Tests for module 'jn'.
23161         * modules/jn-tests: New file.
23162         * tests/test-jn.c: New file.
23163
23164         Tests for module 'j1'.
23165         * modules/j1-tests: New file.
23166         * tests/test-j1.c: New file.
23167
23168         Tests for module 'j0'.
23169         * modules/j0-tests: New file.
23170         * tests/test-j0.c: New file.
23171
23172         Tests for module 'hypot'.
23173         * modules/hypot-tests: New file.
23174         * tests/test-hypot.c: New file.
23175
23176         Tests for module 'fmod'.
23177         * modules/fmod-tests: New file.
23178         * tests/test-fmod.c: New file.
23179
23180         Tests for module 'fabs'.
23181         * modules/fabs-tests: New file.
23182         * tests/test-fabs.c: New file.
23183
23184         Tests for module 'exp'.
23185         * modules/exp-tests: New file.
23186         * tests/test-exp.c: New file.
23187
23188         Tests for module 'erfc'.
23189         * modules/erfc-tests: New file.
23190         * tests/test-erfc.c: New file.
23191
23192         Tests for module 'erf'.
23193         * modules/erf-tests: New file.
23194         * tests/test-erf.c: New file.
23195
23196         Tests for module 'cosh'.
23197         * modules/cosh-tests: New file.
23198         * tests/test-cosh.c: New file.
23199
23200         Tests for module 'cos'.
23201         * modules/cos-tests: New file.
23202         * tests/test-cos.c: New file.
23203
23204         Tests for module 'copysign'.
23205         * modules/copysign-tests: New file.
23206         * tests/test-copysign.c: New file.
23207
23208         Tests for module 'cbrt'.
23209         * modules/cbrt-tests: New file.
23210         * tests/test-cbrt.c: New file.
23211
23212         Tests for module 'atan2'.
23213         * modules/atan2-tests: New file.
23214         * tests/test-atan2.c: New file.
23215
23216         Tests for module 'atan'.
23217         * modules/atan-tests: New file.
23218         * tests/test-atan.c: New file.
23219
23220         Tests for module 'asin'.
23221         * modules/asin-tests: New file.
23222         * tests/test-asin.c: New file.
23223
23224         Tests for module 'acos'.
23225         * modules/acos-tests: New file.
23226         * tests/test-acos.c: New file.
23227
23228 2010-01-24  Bruno Haible  <bruno@clisp.org>
23229
23230         Fix tests for common <math.h> functions.
23231         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23232         code snippet that references the function pointer, rather than merely
23233         calling the function. Substitute the FUNC_LIBM variable.
23234         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23235         * modules/acos (configure.ac): Likewise.
23236         * modules/asin (configure.ac): Likewise.
23237         * modules/atan (configure.ac): Likewise.
23238         * modules/atan2 (configure.ac): Likewise.
23239         * modules/cbrt (configure.ac): Likewise.
23240         * modules/copysign (configure.ac): Likewise.
23241         * modules/cos (configure.ac): Likewise.
23242         * modules/cosh (configure.ac): Likewise.
23243         * modules/erf (configure.ac): Likewise.
23244         * modules/erfc (configure.ac): Likewise.
23245         * modules/exp (configure.ac): Likewise.
23246         * modules/fabs (configure.ac): Likewise.
23247         * modules/fmod (configure.ac): Likewise.
23248         * modules/hypot (configure.ac): Likewise.
23249         * modules/j0 (configure.ac): Likewise.
23250         * modules/j1 (configure.ac): Likewise.
23251         * modules/jn (configure.ac): Likewise.
23252         * modules/ldexp (configure.ac): Likewise.
23253         * modules/lgamma (configure.ac): Likewise.
23254         * modules/log (configure.ac): Likewise.
23255         * modules/log10 (configure.ac): Likewise.
23256         * modules/log1p (configure.ac): Likewise.
23257         * modules/logb (configure.ac): Likewise.
23258         * modules/modf (configure.ac): Likewise.
23259         * modules/nextafter (configure.ac): Likewise.
23260         * modules/pow (configure.ac): Likewise.
23261         * modules/remainder (configure.ac): Likewise.
23262         * modules/rint (configure.ac): Likewise.
23263         * modules/sin (configure.ac): Likewise.
23264         * modules/sinh (configure.ac): Likewise.
23265         * modules/tan (configure.ac): Likewise.
23266         * modules/tanh (configure.ac): Likewise.
23267         * modules/y0 (configure.ac): Likewise.
23268         * modules/y1 (configure.ac): Likewise.
23269         * modules/yn (configure.ac): Likewise.
23270
23271 2010-01-24  Bruno Haible  <bruno@clisp.org>
23272
23273         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23274         * tests/test-acosl.c (x): New variable.
23275         (main): Store argument in x and fetch it from x.
23276         * tests/test-asinl.c (x): New variable.
23277         (main): Store argument in x and fetch it from x.
23278         * tests/test-atanl.c (x): New variable.
23279         (main): Store argument in x and fetch it from x.
23280         * tests/test-cosl.c (x): New variable.
23281         (main): Store argument in x and fetch it from x.
23282         * tests/test-expl.c (x): New variable.
23283         (main): Store argument in x and fetch it from x.
23284         * tests/test-logl.c (x): New variable.
23285         (main): Store argument in x and fetch it from x.
23286         * tests/test-sinl.c (x): New variable.
23287         (main): Store argument in x and fetch it from x.
23288         * tests/test-sqrtl.c (x): New variable.
23289         (main): Store argument in x and fetch it from x.
23290         * tests/test-tanl.c (x): New variable.
23291         (main): Store argument in x and fetch it from x.
23292
23293 2010-01-24  Bruno Haible  <bruno@clisp.org>
23294
23295         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23296         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23297         assignments to the initial TESTS_ENVIRONMENT.
23298         * doc/gnulib.texi (Unit test modules): Document it.
23299         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23300         TESTS_ENVIRONMENT.
23301         * modules/btowc-tests (Makefile.am): Likewise.
23302         * modules/c-stack-tests (Makefile.am): Likewise.
23303         * modules/c-strcase-tests (Makefile.am): Likewise.
23304         * modules/copy-file-tests (Makefile.am): Likewise.
23305         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23306         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23307         * modules/mbrtowc-tests (Makefile.am): Likewise.
23308         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23309         * modules/mbscasestr-tests (Makefile.am): Likewise.
23310         * modules/mbschr-tests (Makefile.am): Likewise.
23311         * modules/mbscspn-tests (Makefile.am): Likewise.
23312         * modules/mbsinit-tests (Makefile.am): Likewise.
23313         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23314         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23315         * modules/mbspbrk-tests (Makefile.am): Likewise.
23316         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23317         * modules/mbsrchr-tests (Makefile.am): Likewise.
23318         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23319         * modules/mbsspn-tests (Makefile.am): Likewise.
23320         * modules/mbsstr-tests (Makefile.am): Likewise.
23321         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23322         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23323         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23324         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23325         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23326         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23327         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23328         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23329         * modules/wcrtomb-tests (Makefile.am): Likewise.
23330         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23331         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23332         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23333         assignments from TESTS_ENVIRONMENT.
23334         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23335         augmentation.
23336         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23337         * modules/atexit-tests (Makefile.am): Likewise.
23338         * modules/binary-io-tests (Makefile.am): Likewise.
23339         * modules/closein-tests (Makefile.am): Likewise.
23340         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23341         * modules/exclude-tests (Makefile.am): Likewise.
23342         * modules/fflush-tests (Makefile.am): Likewise.
23343         * modules/fpending-tests (Makefile.am): Likewise.
23344         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23345         * modules/freadahead-tests (Makefile.am): Likewise.
23346         * modules/freadptr-tests (Makefile.am): Likewise.
23347         * modules/freadseek-tests (Makefile.am): Likewise.
23348         * modules/fseek-tests (Makefile.am): Likewise.
23349         * modules/fseeko-tests (Makefile.am): Likewise.
23350         * modules/ftell-tests (Makefile.am): Likewise.
23351         * modules/ftello-tests (Makefile.am): Likewise.
23352         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23353         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23354         * modules/lseek-tests (Makefile.am): Likewise.
23355         * modules/parse-duration-tests (Makefile.am): Likewise.
23356         * modules/perror-tests (Makefile.am): Likewise.
23357         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23358         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23359         * modules/pipe-tests (Makefile.am): Likewise.
23360         * modules/pread-tests (Makefile.am): Likewise.
23361         * modules/printf-posix-tests (Makefile.am): Likewise.
23362         * modules/select-tests (Makefile.am): Likewise.
23363         * modules/sigpipe-tests (Makefile.am): Likewise.
23364         * modules/tsearch-tests (Makefile.am): Likewise.
23365         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23366         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23367         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23368         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23369         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23370         * modules/version-etc-tests (Makefile.am): Likewise.
23371         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23372         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23373         * modules/xalloc-die-tests (Makefile.am): Likewise.
23374         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23375         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23376         * modules/xstrtol-tests (Makefile.am): Likewise.
23377         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23378         * modules/yesno-tests (Makefile.am): Likewise.
23379         Suggested by Jim Meyering.
23380
23381 2010-01-24  Bruno Haible  <bruno@clisp.org>
23382
23383         More documentation.
23384         * doc/gnulib.texi (Writing modules): New chapter.
23385         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23386         the new chapter.
23387
23388 2010-01-24  Jim Meyering  <meyering@redhat.com>
23389
23390         maint.mk: do not prepend "./" after filtering
23391         * top/maint.mk (_prepend_srcdir_prefix): New variable
23392         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23393         "./" when $(srcdir) is ".".
23394
23395         define STREQ(a,b) consistently, removing useless parentheses
23396         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23397         since the only risk is that "a" or "b" contains an unparenthesized
23398         comma, but if either did that, STREQ would have 3 or more arguments.
23399         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23400         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23401         * lib/hash-triple.c (STREQ): Likewise.
23402         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23403         * lib/getugroups.c (STREQ): Likewise.
23404
23405 2010-01-23  Jim Meyering  <meyering@redhat.com>
23406
23407         maint.mk: fix syntax-check in a non-srcdir build directory
23408         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23409         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23410
23411 2010-01-22  Jim Meyering  <meyering@redhat.com>
23412
23413         userspec: add unit tests
23414         * tests/test-userspec.c: New file.
23415         * modules/userspec-tests: Likewise.
23416
23417 2010-01-21  Jim Meyering  <meyering@redhat.com>
23418
23419         maint.mk: handle source file names containing "." robustly
23420         * top/maint.mk (_dot_escaped_srcdir): Define.
23421         (VC_LIST): Use it in LHS of sed substitution.
23422
23423 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23424
23425         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23426         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23427         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23428         from a non-srcdir build.
23429
23430 2010-01-20  Eric Blake  <ebb9@byu.net>
23431
23432         warn-on-use: use instead of link-warning
23433         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23434         * modules/unistd (Depends-on, Makefile.am): Likewise.
23435         * modules/arpa_inet (Depends-on): Replace link-warning with
23436         warn-on-use.
23437         (Makefile.am): Update rules accordingly.
23438         * modules/ctype (Depends-on, Makefile.am): Likewise.
23439         * modules/dirent (Depends-on, Makefile.am): Likewise.
23440         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23441         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23442         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23443         * modules/locale (Depends-on, Makefile.am): Likewise.
23444         * modules/math (Depends-on, Makefile.am): Likewise.
23445         * modules/search (Depends-on, Makefile.am): Likewise.
23446         * modules/signal (Depends-on, Makefile.am): Likewise.
23447         * modules/spawn (Depends-on, Makefile.am): Likewise.
23448         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23449         * modules/string (Depends-on, Makefile.am): Likewise.
23450         * modules/strings (Depends-on, Makefile.am): Likewise.
23451         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23452         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23453         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23454         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23455         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23456         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23457         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23458         * modules/wchar (Depends-on, Makefile.am): Likewise.
23459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23460         should be poisoned.
23461         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23462         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23463         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23464         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23465         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23466         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23467         * m4/math_h.m4 (gl_MATH_H): Likewise.
23468         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23469         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23470         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23471         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23472         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23473         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23474         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23475         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23482         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23483         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23484         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23485         GL_LINK_WARNING.
23486         * lib/ctype.in.h: Likewise.
23487         * lib/dirent.in.h: Likewise.
23488         * lib/fcntl.in.h: Likewise.
23489         * lib/inttypes.in.h: Likewise.
23490         * lib/langinfo.in.h: Likewise.
23491         * lib/locale.in.h: Likewise.
23492         * lib/math.in.h: Likewise.
23493         * lib/search.in.h: Likewise.
23494         * lib/signal.in.h: Likewise.
23495         * lib/spawn.in.h: Likewise.
23496         * lib/stdio.in.h: Likewise.
23497         * lib/stdlib.in.h: Likewise.
23498         * lib/string.in.h: Likewise.
23499         * lib/strings.in.h: Likewise.
23500         * lib/sys_file.in.h: Likewise.
23501         * lib/sys_ioctl.in.h: Likewise.
23502         * lib/sys_select.in.h: Likewise.
23503         * lib/sys_socket.in.h: Likewise.
23504         * lib/sys_stat.in.h: Likewise.
23505         * lib/sys_times.in.h: Likewise.
23506         * lib/sys_utsname.in.h: Likewise.
23507         * lib/unistd.in.h: Likewise.
23508         * lib/wchar.in.h: Likewise.
23509
23510 2010-01-20  Bruno Haible  <bruno@clisp.org>
23511
23512         Avoid duplicate -lm.
23513         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23514         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23517         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23518         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23519         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23520         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23521         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23522         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23523         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23524         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23525         Reported by Paolo Bonzini.
23526
23527 2010-01-19  Bruno Haible  <bruno@clisp.org>
23528
23529         langinfo, nl_langinfo: Relicense under LGPLv2+.
23530         * modules/langinfo (License): Change to LGPLv2+.
23531         * modules/nl_langinfo (License): Likewise.
23532         Patch by David Lutterkort <lutter@redhat.com>.
23533
23534 2010-01-19  Bruno Haible  <bruno@clisp.org>
23535
23536         Avoid compilation error with cc on OSF/1 5.1.
23537         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23538         statement, not before.
23539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23540
23541 2010-01-18  Bruno Haible  <bruno@clisp.org>
23542
23543         Avoid a link error due to the __printf__ symbol.
23544         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23545         and 2.6.x.
23546         (__format__, __printf__): Remove definitions.
23547         * lib/argp-fmtstream.h: Likewise.
23548         * lib/argp.h: Likewise.
23549         * lib/error.h: Likewise.
23550         * lib/vasnprintf.h: Likewise.
23551         * lib/xprintf.h: Likewise.
23552         * lib/xvasprintf.h: Likewise.
23553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23554
23555 2010-01-18  Bruno Haible  <bruno@clisp.org>
23556
23557         Tests for module 'tanl'.
23558         * modules/tanl-tests: New file.
23559         * tests/test-tanl.c: New file.
23560
23561         Tests for module 'sqrtl'.
23562         * modules/sqrtl-tests: New file.
23563         * tests/test-sqrtl.c: New file.
23564
23565         Tests for module 'sinl'.
23566         * modules/sinl-tests: New file.
23567         * tests/test-sinl.c: New file.
23568
23569         Tests for module 'logl'.
23570         * modules/logl-tests: New file.
23571         * tests/test-logl.c: New file.
23572
23573         Tests for module 'expl'.
23574         * modules/expl-tests: New file.
23575         * tests/test-expl.c: New file.
23576
23577         Tests for module 'cosl'.
23578         * modules/cosl-tests: New file.
23579         * tests/test-cosl.c: New file.
23580
23581         Tests for module 'atanl'.
23582         * modules/atanl-tests: New file.
23583         * tests/test-atanl.c: New file.
23584
23585         Tests for module 'asinl'.
23586         * modules/asinl-tests: New file.
23587         * tests/test-asinl.c: New file.
23588
23589         Tests for module 'acosl'.
23590         * modules/acosl-tests: New file.
23591         * tests/test-acosl.c: New file.
23592
23593         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23594         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23595         tanl): Use the standard gnulib idiom.
23596         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23597         * lib/sinl.c: Likewise.
23598         * lib/tanl.c: Don't include trigl.c.
23599         (kernel_tanl): Make static.
23600         * lib/sincosl.c: Include trigl.h first.
23601         * lib/trigl.c: Likewise.
23602         * m4/acosl.m4: New file.
23603         * m4/asinl.m4: New file.
23604         * m4/atanl.m4: New file.
23605         * m4/cosl.m4: New file.
23606         * m4/expl.m4: New file.
23607         * m4/logl.m4: New file.
23608         * m4/sinl.m4: New file.
23609         * m4/sqrtl.m4: New file.
23610         * m4/tanl.m4: New file.
23611         * m4/mathl.m4: Remove file.
23612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23613         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23614         Don't initialize GNULIB_MATHL.
23615         * modules/acosl: New file.
23616         * modules/asinl: New file.
23617         * modules/atanl: New file.
23618         * modules/cosl: New file.
23619         * modules/expl: New file.
23620         * modules/logl: New file.
23621         * modules/sinl: New file.
23622         * modules/sqrtl: New file.
23623         * modules/tanl: New file.
23624         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23625         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23626         substitute GNULIB_MATHL.
23627         * modules/mathl: Rewritten.
23628         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23629         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23630         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23631         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23632         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23633         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23634         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23635         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23636         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23637
23638 2010-01-18  Bruno Haible  <bruno@clisp.org>
23639
23640         sqrt: Make gl_FUNC_SQRT requirable.
23641         * m4/sqrt.m4: New file.
23642         * modules/sqrt (Files): Add it.
23643         (configure.ac): Invoke gl_FUNC_SQRT.
23644
23645 2010-01-18  Bruno Haible  <bruno@clisp.org>
23646
23647         New modules for common <math.h> functions.
23648         * m4/mathfunc.m4: New file.
23649         * modules/acos: New file.
23650         * modules/asin: New file.
23651         * modules/atan: New file.
23652         * modules/atan2: New file.
23653         * modules/cbrt: New file.
23654         * modules/copysign: New file.
23655         * modules/cos: New file.
23656         * modules/cosh: New file.
23657         * modules/erf: New file.
23658         * modules/erfc: New file.
23659         * modules/exp: New file.
23660         * modules/fabs: New file.
23661         * modules/fmod: New file.
23662         * modules/hypot: New file.
23663         * modules/j0: New file.
23664         * modules/j1: New file.
23665         * modules/jn: New file.
23666         * modules/ldexp: New file.
23667         * modules/lgamma: New file.
23668         * modules/log: New file.
23669         * modules/log10: New file.
23670         * modules/log1p: New file.
23671         * modules/logb: New file.
23672         * modules/modf: New file.
23673         * modules/nextafter: New file.
23674         * modules/pow: New file.
23675         * modules/remainder: New file.
23676         * modules/rint: New file.
23677         * modules/sin: New file.
23678         * modules/sinh: New file.
23679         * modules/sqrt: New file.
23680         * modules/tan: New file.
23681         * modules/tanh: New file.
23682         * modules/y0: New file.
23683         * modules/y1: New file.
23684         * modules/yn: New file.
23685         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23686         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23687         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23688         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23689         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23690         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23691         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23692         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23693         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23694         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23695         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23696         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23697         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23698         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23699         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23700         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23701         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23702         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23703         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23704         * doc/posix-functions/log.texi: Mention the 'log' module.
23705         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23706         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23707         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23708         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23709         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23710         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23711         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23712         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23713         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23714         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23715         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23716         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23717         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23718         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23719         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23720         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23721
23722 2010-01-18  Jim Meyering  <meyering@redhat.com>
23723
23724         ignore-value: relax license to LGPLv2+
23725         * modules/ignore-value (License): Relax to LGPLv2+.
23726
23727         getdate: don't leak when TZ contains two or more '"'s
23728         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23729         double quote in TZ after the first one.
23730
23731         readtokens: do not leak internal token_lengths buffer
23732         * lib/readtokens.c (readtokens): Free the local, lengths,
23733         when the supplied "token_lengths" parameter is NULL.
23734
23735 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23736
23737         Fix a couple of missing LIBTHREAD link failures on AIX.
23738         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23739         $(LIBTHREAD).
23740         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23741
23742         Link test-poll against INET_PTON_LIB.
23743         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23744         for inet_pton on Solaris 10.
23745
23746 2010-01-17  Bruno Haible  <bruno@clisp.org>
23747
23748         unistdio/*-sprintf: Fix typo in module description.
23749         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23750         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23751         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23752         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23753         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23754         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23755         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23757
23758 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23759
23760         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23761         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23762         variables in shell case patterns, for AIX and HP-UX ksh.
23763
23764         Split large sed scripts, for HP-UX sed.
23765         * modules/stdio: Split sed scripts around 50 sed commands,
23766         to avoid HP-UX limit of 99 commands, in the near future.
23767         * modules/string: Likewise.
23768         * modules/unistd: Likewise.
23769
23770         gnulib-tool: avoid writing in the current directory.
23771         * gnulib-tool (func_emit_lib_Makefile_am)
23772         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23773         not in the current directory, so concurrent gnulib-tool
23774         instances do not interfere.
23775
23776 2010-01-16  Jim Meyering  <meyering@redhat.com>
23777
23778         doc: update users.txt
23779         * users.txt: Add grep.
23780         (diffutils, gzip): Update URLs.
23781
23782 2010-01-12  Bruno Haible  <bruno@clisp.org>
23783
23784         posix_spawn: Avoid test failure on Cygwin.
23785         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23786         characters.
23787         Reported by Simon Josefsson.
23788
23789 2010-01-12  Bruno Haible  <bruno@clisp.org>
23790
23791         * tests/test-cond.c (main): When skipping the test, show the reason.
23792
23793 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23794
23795         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23796
23797 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23798
23799         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23800         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23801
23802 2010-01-12  Eric Blake  <ebb9@byu.net>
23803
23804         build: guarantee AS_VAR_IF
23805         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23806         (gl_AS_VAR_IF): Move...
23807         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23808         Reported by Simon Josefsson.
23809
23810 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23811
23812         * lib/stdio.in.h: Fix typo.
23813
23814 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23815
23816         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23817         libgpg-error.
23818
23819 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23820
23821         * tests/test-xalloc-die.sh: Use $EXEEXT.
23822
23823 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23824             Bruno Haible  <bruno@clisp.org>
23825
23826         getlogin, getlogin_r: Avoid test failure.
23827         * tests/test-getlogin.c: Include <stdio.h>.
23828         (main): Skip the test when the function fails because stdin is not a
23829         tty.
23830         * tests/test-getlogin_r.c: Include <stdio.h>.
23831         (main): Skip the test when the function fails because stdin is not a
23832         tty.
23833
23834 2010-01-11  Eric Blake  <ebb9@byu.net>
23835
23836         tests: avoid more large file warnings
23837         * tests/test-fflush.c: Avoid warning about ftell use.
23838         * tests/test-fseek.c: Avoid warning about fseek use.
23839
23840 2010-01-10  Bruno Haible  <bruno@clisp.org>
23841
23842         nproc: Work better on Linux when /proc and /sys are not mounted.
23843         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23844         as lower bound when, on glibc/Linux systems,
23845         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23846         Suggested by Pádraig Brady <P@draigbrady.com>.
23847         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23848
23849         nproc: Refactor.
23850         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23851         extracted from num_processors.
23852         (num_processors): Call it.
23853
23854 2010-01-11  Jim Meyering  <meyering@redhat.com>
23855
23856         utimecmp: avoid new warning from upcoming gcc-4.5.0
23857         * lib/utimecmp.c (BILLION): Define using #define rather than an
23858         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23859
23860 2010-01-11  Eric Blake  <ebb9@byu.net>
23861
23862         math: add portability warnings for classification macros
23863         * modules/math (Depends-on): Add warn-on-use.
23864         (Makefile.am): Provide new substitutions.
23865         * m4/math_h.m4 (gl_MATH_H): Require inline.
23866         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23867         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23868         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23869         implement warnings.
23870
23871         unistd: warn on use of environ without module
23872         * modules/unistd (Depends-on): Add warn-on-use.
23873         (Makefile.am): Provide new substitutions.
23874         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23875         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23876
23877         stdio: warn on suspicious uses
23878         * modules/stdio (Depends-on): Add warn-on-use.
23879         (Makefile.am): Provide new substitutions.
23880         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23881         fseeko.
23882         * lib/stdio.in.h (gets): Always warn on use.
23883         (fseek, ftell): Adjust when warnings are issued, and honor
23884         _GL_NO_LARGE_FILES as a way to silence the warning.
23885         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23886         any warning about large file offsets.
23887         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23888         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23889         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23890         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23891         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23892         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23893         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23894         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23895
23896         warn-on-use: new module
23897         * modules/warn-on-use: New file.
23898         * build-aux/warn-on-use.h: Likewise.
23899         * m4/warn-on-use.m4: Likewise.
23900         * MODULES.html.sh (Support for building): Mention it.
23901
23902 2010-01-10  Bruno Haible  <bruno@clisp.org>
23903
23904         Tests for module 'unistr/u32-strdup'.
23905         * modules/unistr/u32-strdup-tests: New file.
23906         * tests/unistr/test-u32-strdup.c: New file.
23907
23908         Tests for module 'unistr/u16-strdup'.
23909         * modules/unistr/u16-strdup-tests: New file.
23910         * tests/unistr/test-u16-strdup.c: New file.
23911
23912         Tests for module 'unistr/u8-strdup'.
23913         * modules/unistr/u8-strdup-tests: New file.
23914         * tests/unistr/test-u8-strdup.c: New file.
23915         * tests/unistr/test-strdup.h: New file.
23916
23917         Tests for module 'unistr/u32-strncmp'.
23918         * modules/unistr/u32-strncmp-tests: New file.
23919         * tests/unistr/test-u32-strncmp.c: New file.
23920
23921         Tests for module 'unistr/u16-strncmp'.
23922         * modules/unistr/u16-strncmp-tests: New file.
23923         * tests/unistr/test-u16-strncmp.c: New file.
23924
23925         Tests for module 'unistr/u8-strncmp'.
23926         * modules/unistr/u8-strncmp-tests: New file.
23927         * tests/unistr/test-u8-strncmp.c: New file.
23928         * tests/unistr/test-strncmp.h: New file.
23929
23930         Tests for module 'unistr/u32-strcoll'.
23931         * modules/unistr/u32-strcoll-tests: New file.
23932         * tests/unistr/test-u32-strcoll.c: New file.
23933
23934         Tests for module 'unistr/u16-strcoll'.
23935         * modules/unistr/u16-strcoll-tests: New file.
23936         * tests/unistr/test-u16-strcoll.c: New file.
23937
23938         Tests for module 'unistr/u8-strcoll'.
23939         * modules/unistr/u8-strcoll-tests: New file.
23940         * tests/unistr/test-u8-strcoll.c: New file.
23941
23942         Tests for module 'unistr/u32-strcmp'.
23943         * modules/unistr/u32-strcmp-tests: New file.
23944         * tests/unistr/test-u32-strcmp.c: New file.
23945         * tests/unistr/test-u32-strcmp.h: New file.
23946
23947         Tests for module 'unistr/u16-strcmp'.
23948         * modules/unistr/u16-strcmp-tests: New file.
23949         * tests/unistr/test-u16-strcmp.c: New file.
23950         * tests/unistr/test-u16-strcmp.h: New file.
23951
23952         Tests for module 'unistr/u8-strcmp'.
23953         * modules/unistr/u8-strcmp-tests: New file.
23954         * tests/unistr/test-u8-strcmp.c: New file.
23955         * tests/unistr/test-u8-strcmp.h: New file.
23956         * tests/unistr/test-strcmp.h: New file.
23957
23958         Tests for module 'unistr/u32-strncat'.
23959         * modules/unistr/u32-strncat-tests: New file.
23960         * tests/unistr/test-u32-strncat.c: New file.
23961
23962         Tests for module 'unistr/u16-strncat'.
23963         * modules/unistr/u16-strncat-tests: New file.
23964         * tests/unistr/test-u16-strncat.c: New file.
23965
23966         Tests for module 'unistr/u8-strncat'.
23967         * modules/unistr/u8-strncat-tests: New file.
23968         * tests/unistr/test-u8-strncat.c: New file.
23969         * tests/unistr/test-strncat.h: New file.
23970
23971         Tests for module 'unistr/u32-strcat'.
23972         * modules/unistr/u32-strcat-tests: New file.
23973         * tests/unistr/test-u32-strcat.c: New file.
23974
23975         Tests for module 'unistr/u16-strcat'.
23976         * modules/unistr/u16-strcat-tests: New file.
23977         * tests/unistr/test-u16-strcat.c: New file.
23978
23979         Tests for module 'unistr/u8-strcat'.
23980         * modules/unistr/u8-strcat-tests: New file.
23981         * tests/unistr/test-u8-strcat.c: New file.
23982         * tests/unistr/test-strcat.h: New file.
23983
23984         Tests for module 'unistr/u32-stpncpy'.
23985         * modules/unistr/u32-stpncpy-tests: New file.
23986         * tests/unistr/test-u32-stpncpy.c: New file.
23987
23988         Tests for module 'unistr/u16-stpncpy'.
23989         * modules/unistr/u16-stpncpy-tests: New file.
23990         * tests/unistr/test-u16-stpncpy.c: New file.
23991
23992         Tests for module 'unistr/u8-stpncpy'.
23993         * modules/unistr/u8-stpncpy-tests: New file.
23994         * tests/unistr/test-u8-stpncpy.c: New file.
23995         * tests/unistr/test-stpncpy.h: New file.
23996
23997         Tests for module 'unistr/u32-strncpy'.
23998         * modules/unistr/u32-strncpy-tests: New file.
23999         * tests/unistr/test-u32-strncpy.c: New file.
24000
24001         Tests for module 'unistr/u16-strncpy'.
24002         * modules/unistr/u16-strncpy-tests: New file.
24003         * tests/unistr/test-u16-strncpy.c: New file.
24004
24005         Tests for module 'unistr/u8-strncpy'.
24006         * modules/unistr/u8-strncpy-tests: New file.
24007         * tests/unistr/test-u8-strncpy.c: New file.
24008         * tests/unistr/test-strncpy.h: New file.
24009
24010         Tests for module 'unistr/u32-stpcpy'.
24011         * modules/unistr/u32-stpcpy-tests: New file.
24012         * tests/unistr/test-u32-stpcpy.c: New file.
24013
24014         Tests for module 'unistr/u16-stpcpy'.
24015         * modules/unistr/u16-stpcpy-tests: New file.
24016         * tests/unistr/test-u16-stpcpy.c: New file.
24017
24018         Tests for module 'unistr/u8-stpcpy'.
24019         * modules/unistr/u8-stpcpy-tests: New file.
24020         * tests/unistr/test-u8-stpcpy.c: New file.
24021         * tests/unistr/test-stpcpy.h: New file.
24022
24023         Tests for module 'unistr/u32-strcpy'.
24024         * modules/unistr/u32-strcpy-tests: New file.
24025         * tests/unistr/test-u32-strcpy.c: New file.
24026
24027         Tests for module 'unistr/u16-strcpy'.
24028         * modules/unistr/u16-strcpy-tests: New file.
24029         * tests/unistr/test-u16-strcpy.c: New file.
24030
24031         Tests for module 'unistr/u8-strcpy'.
24032         * modules/unistr/u8-strcpy-tests: New file.
24033         * tests/unistr/test-u8-strcpy.c: New file.
24034         * tests/unistr/test-strcpy.h: New file.
24035
24036         Tests for module 'unistr/u32-strnlen'.
24037         * modules/unistr/u32-strnlen-tests: New file.
24038         * tests/unistr/test-u32-strnlen.c: New file.
24039
24040         Tests for module 'unistr/u16-strnlen'.
24041         * modules/unistr/u16-strnlen-tests: New file.
24042         * tests/unistr/test-u16-strnlen.c: New file.
24043
24044         Tests for module 'unistr/u8-strnlen'.
24045         * modules/unistr/u8-strnlen-tests: New file.
24046         * tests/unistr/test-u8-strnlen.c: New file.
24047         * tests/unistr/test-strnlen.h: New file.
24048
24049         Tests for module 'unistr/u32-strlen'.
24050         * modules/unistr/u32-strlen-tests: New file.
24051         * tests/unistr/test-u32-strlen.c: New file.
24052
24053         Tests for module 'unistr/u16-strlen'.
24054         * modules/unistr/u16-strlen-tests: New file.
24055         * tests/unistr/test-u16-strlen.c: New file.
24056
24057         Tests for module 'unistr/u8-strlen'.
24058         * modules/unistr/u8-strlen-tests: New file.
24059         * tests/unistr/test-u8-strlen.c: New file.
24060
24061         Tests for module 'unistr/u32-prev'.
24062         * modules/unistr/u32-prev-tests: New file.
24063         * tests/unistr/test-u32-prev.c: New file.
24064
24065         Tests for module 'unistr/u16-prev'.
24066         * modules/unistr/u16-prev-tests: New file.
24067         * tests/unistr/test-u16-prev.c: New file.
24068
24069         Tests for module 'unistr/u8-prev'.
24070         * modules/unistr/u8-prev-tests: New file.
24071         * tests/unistr/test-u8-prev.c: New file.
24072
24073         Tests for module 'unistr/u32-next'.
24074         * modules/unistr/u32-next-tests: New file.
24075         * tests/unistr/test-u32-next.c: New file.
24076
24077         Tests for module 'unistr/u16-next'.
24078         * modules/unistr/u16-next-tests: New file.
24079         * tests/unistr/test-u16-next.c: New file.
24080
24081         Tests for module 'unistr/u8-next'.
24082         * modules/unistr/u8-next-tests: New file.
24083         * tests/unistr/test-u8-next.c: New file.
24084
24085         Tests for module 'unistr/u32-strmbtouc'.
24086         * modules/unistr/u32-strmbtouc-tests: New file.
24087         * tests/unistr/test-u32-strmbtouc.c: New file.
24088
24089         Tests for module 'unistr/u16-strmbtouc'.
24090         * modules/unistr/u16-strmbtouc-tests: New file.
24091         * tests/unistr/test-u16-strmbtouc.c: New file.
24092
24093         Tests for module 'unistr/u8-strmbtouc'.
24094         * modules/unistr/u8-strmbtouc-tests: New file.
24095         * tests/unistr/test-u8-strmbtouc.c: New file.
24096
24097         Tests for module 'unistr/u32-strmblen'.
24098         * modules/unistr/u32-strmblen-tests: New file.
24099         * tests/unistr/test-u32-strmblen.c: New file.
24100
24101         Tests for module 'unistr/u16-strmblen'.
24102         * modules/unistr/u16-strmblen-tests: New file.
24103         * tests/unistr/test-u16-strmblen.c: New file.
24104
24105         Tests for module 'unistr/u8-strmblen'.
24106         * modules/unistr/u8-strmblen-tests: New file.
24107         * tests/unistr/test-u8-strmblen.c: New file.
24108
24109         Tests for module 'unistr/u32-cpy-alloc'.
24110         * modules/unistr/u32-cpy-alloc-tests: New file.
24111         * tests/unistr/test-u32-cpy-alloc.c: New file.
24112
24113         Tests for module 'unistr/u16-cpy-alloc'.
24114         * modules/unistr/u16-cpy-alloc-tests: New file.
24115         * tests/unistr/test-u16-cpy-alloc.c: New file.
24116
24117         Tests for module 'unistr/u8-cpy-alloc'.
24118         * modules/unistr/u8-cpy-alloc-tests: New file.
24119         * tests/unistr/test-u8-cpy-alloc.c: New file.
24120         * tests/unistr/test-cpy-alloc.h: New file.
24121
24122         Tests for module 'unistr/u32-mbsnlen'.
24123         * modules/unistr/u32-mbsnlen-tests: New file.
24124         * tests/unistr/test-u32-mbsnlen.c: New file.
24125
24126         Tests for module 'unistr/u16-mbsnlen'.
24127         * modules/unistr/u16-mbsnlen-tests: New file.
24128         * tests/unistr/test-u16-mbsnlen.c: New file.
24129
24130         Tests for module 'unistr/u8-mbsnlen'.
24131         * modules/unistr/u8-mbsnlen-tests: New file.
24132         * tests/unistr/test-u8-mbsnlen.c: New file.
24133
24134         Tests for module 'unistr/u32-chr'.
24135         * modules/unistr/u32-chr-tests: New file.
24136         * tests/unistr/test-u32-chr.c: New file.
24137
24138         Tests for module 'unistr/u16-chr'.
24139         * modules/unistr/u16-chr-tests: New file.
24140         * tests/unistr/test-u16-chr.c: New file.
24141
24142         Tests for module 'unistr/u8-chr'.
24143         * modules/unistr/u8-chr-tests: New file.
24144         * tests/unistr/test-u8-chr.c: New file.
24145         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24146
24147         Tests for module 'unistr/u32-cmp2'.
24148         * modules/unistr/u32-cmp2-tests: New file.
24149         * tests/unistr/test-u32-cmp2.c: New file.
24150
24151         Tests for module 'unistr/u16-cmp2'.
24152         * modules/unistr/u16-cmp2-tests: New file.
24153         * tests/unistr/test-u16-cmp2.c: New file.
24154
24155         Tests for module 'unistr/u8-cmp2'.
24156         * modules/unistr/u8-cmp2-tests: New file.
24157         * tests/unistr/test-u8-cmp2.c: New file.
24158         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24159
24160         Tests for module 'unistr/u32-cmp'.
24161         * modules/unistr/u32-cmp-tests: New file.
24162         * tests/unistr/test-u32-cmp.c: New file.
24163
24164         Tests for module 'unistr/u16-cmp'.
24165         * modules/unistr/u16-cmp-tests: New file.
24166         * tests/unistr/test-u16-cmp.c: New file.
24167
24168         Tests for module 'unistr/u8-cmp'.
24169         * modules/unistr/u8-cmp-tests: New file.
24170         * tests/unistr/test-u8-cmp.c: New file.
24171         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24172
24173         Tests for module 'unistr/u32-set'.
24174         * modules/unistr/u32-set-tests: New file.
24175         * tests/unistr/test-u32-set.c: New file.
24176
24177         Tests for module 'unistr/u16-set'.
24178         * modules/unistr/u16-set-tests: New file.
24179         * tests/unistr/test-u16-set.c: New file.
24180
24181         Tests for module 'unistr/u8-set'.
24182         * modules/unistr/u8-set-tests: New file.
24183         * tests/unistr/test-u8-set.c: New file.
24184         * tests/unistr/test-set.h: New file.
24185
24186         Tests for module 'unistr/u32-move'.
24187         * modules/unistr/u32-move-tests: New file.
24188         * tests/unistr/test-u32-move.c: New file.
24189
24190         Tests for module 'unistr/u16-move'.
24191         * modules/unistr/u16-move-tests: New file.
24192         * tests/unistr/test-u16-move.c: New file.
24193
24194         Tests for module 'unistr/u8-move'.
24195         * modules/unistr/u8-move-tests: New file.
24196         * tests/unistr/test-u8-move.c: New file.
24197         * tests/unistr/test-move.h: New file.
24198
24199         Tests for module 'unistr/u32-cpy'.
24200         * modules/unistr/u32-cpy-tests: New file.
24201         * tests/unistr/test-u32-cpy.c: New file.
24202
24203         Tests for module 'unistr/u16-cpy'.
24204         * modules/unistr/u16-cpy-tests: New file.
24205         * tests/unistr/test-u16-cpy.c: New file.
24206
24207         Tests for module 'unistr/u8-cpy'.
24208         * modules/unistr/u8-cpy-tests: New file.
24209         * tests/unistr/test-u8-cpy.c: New file.
24210         * tests/unistr/test-cpy.h: New file.
24211
24212 2010-01-09  Bruno Haible  <bruno@clisp.org>
24213
24214         Tests for module 'unistr/u32-uctomb'.
24215         * modules/unistr/u32-uctomb-tests: New file.
24216         * tests/unistr/test-u32-uctomb.c: New file.
24217
24218         Tests for module 'unistr/u16-uctomb'.
24219         * modules/unistr/u16-uctomb-tests: New file.
24220         * tests/unistr/test-u16-uctomb.c: New file.
24221
24222         Tests for module 'unistr/u8-uctomb'.
24223         * modules/unistr/u8-uctomb-tests: New file.
24224         * tests/unistr/test-u8-uctomb.c: New file.
24225
24226         Tests for module 'unistr/u32-mbtoucr'.
24227         * modules/unistr/u32-mbtoucr-tests: New file.
24228         * tests/unistr/test-u32-mbtoucr.c: New file.
24229
24230         Tests for module 'unistr/u16-mbtoucr'.
24231         * modules/unistr/u16-mbtoucr-tests: New file.
24232         * tests/unistr/test-u16-mbtoucr.c: New file.
24233
24234         Tests for module 'unistr/u8-mbtoucr'.
24235         * modules/unistr/u8-mbtoucr-tests: New file.
24236         * tests/unistr/test-u8-mbtoucr.c: New file.
24237
24238         Tests for module 'unistr/u32-mbtouc'.
24239         * modules/unistr/u32-mbtouc-tests: New file.
24240         * tests/unistr/test-u32-mbtouc.c: New file.
24241
24242         Tests for module 'unistr/u16-mbtouc'.
24243         * modules/unistr/u16-mbtouc-tests: New file.
24244         * tests/unistr/test-u16-mbtouc.c: New file.
24245
24246         Tests for module 'unistr/u8-mbtouc'.
24247         * modules/unistr/u8-mbtouc-tests: New file.
24248         * tests/unistr/test-u8-mbtouc.c: New file.
24249
24250         Tests for module 'unistr/u32-mbtouc-unsafe'.
24251         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24252         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24253         * tests/unistr/test-u32-mbtouc.h: New file.
24254
24255         Tests for module 'unistr/u16-mbtouc-unsafe'.
24256         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24257         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24258         * tests/unistr/test-u16-mbtouc.h: New file.
24259
24260         Tests for module 'unistr/u8-mbtouc-unsafe'.
24261         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24262         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24263         * tests/unistr/test-u8-mbtouc.h: New file.
24264
24265         Tests for module 'unistr/u32-mblen'.
24266         * modules/unistr/u32-mblen-tests: New file.
24267         * tests/unistr/test-u32-mblen.c: New file.
24268
24269         Tests for module 'unistr/u16-mblen'.
24270         * modules/unistr/u16-mblen-tests: New file.
24271         * tests/unistr/test-u16-mblen.c: New file.
24272
24273         Tests for module 'unistr/u8-mblen'.
24274         * modules/unistr/u8-mblen-tests: New file.
24275         * tests/unistr/test-u8-mblen.c: New file.
24276
24277         Tests for module 'unistr/u32-to-u16'.
24278         * modules/unistr/u32-to-u16-tests: New file.
24279         * tests/unistr/test-u32-to-u16.c: New file.
24280
24281         Tests for module 'unistr/u32-to-u8'.
24282         * modules/unistr/u32-to-u8-tests: New file.
24283         * tests/unistr/test-u32-to-u8.c: New file.
24284
24285         Tests for module 'unistr/u16-to-u32'.
24286         * modules/unistr/u16-to-u32-tests: New file.
24287         * tests/unistr/test-u16-to-u32.c: New file.
24288
24289         Tests for module 'unistr/u16-to-u8'.
24290         * modules/unistr/u16-to-u8-tests: New file.
24291         * tests/unistr/test-u16-to-u8.c: New file.
24292
24293         Tests for module 'unistr/u8-to-u32'.
24294         * modules/unistr/u8-to-u32-tests: New file.
24295         * tests/unistr/test-u8-to-u32.c: New file.
24296
24297         Tests for module 'unistr/u8-to-u16'.
24298         * modules/unistr/u8-to-u16-tests: New file.
24299         * tests/unistr/test-u8-to-u16.c: New file.
24300
24301         Tests for module 'unistr/u32-check'.
24302         * modules/unistr/u32-check-tests: New file.
24303         * tests/unistr/test-u32-check.c: New file.
24304
24305         Tests for module 'unistr/u16-check'.
24306         * modules/unistr/u16-check-tests: New file.
24307         * tests/unistr/test-u16-check.c: New file.
24308
24309         Tests for module 'unistr/u8-check'.
24310         * modules/unistr/u8-check-tests: New file.
24311         * tests/unistr/test-u8-check.c: New file.
24312
24313         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24314         (category_equals): New function.
24315         (main): Add more tests.
24316         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24317
24318         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24319
24320 2010-01-10  Bruno Haible  <bruno@clisp.org>
24321
24322         unistr/u*-strcoll: Try harder to distinguish different strings.
24323         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24324         compare s1 and s2 to see if they are different.
24325
24326 2010-01-10  Bruno Haible  <bruno@clisp.org>
24327
24328         unistr/u*-stpncpy: Fix the return value.
24329         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24330         description of the return value consistent with stpncpy in glibc.
24331         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24332         written non-NUL unit.
24333
24334 2010-01-10  Bruno Haible  <bruno@clisp.org>
24335
24336         unistr/u*-next: Add missing dependencies.
24337         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24338         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24339         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24340
24341 2010-01-10  Bruno Haible  <bruno@clisp.org>
24342
24343         unistr/u8-mbsnlen: Fix return value for incomplete character.
24344         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24345         u8_mblen.
24346         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24347         Remove unistr/u8-mblen.
24348         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24349         u16_mblen.
24350         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24351         Remove unistr/u16-mblen.
24352
24353 2010-01-10  Bruno Haible  <bruno@clisp.org>
24354
24355         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24356         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24357         Reported by Brian Gough <bjg@gnu.org> and
24358         Chris Clayton <chris2553@googlemail.com> via
24359         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24360
24361 2010-01-09  Bruno Haible  <bruno@clisp.org>
24362
24363         unistr/u16-to-u32: Reject invalid input.
24364         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24365         u16_mbtouc.
24366         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24367         Remove unistr/u16-mbtouc.
24368
24369         unistr/u16-to-u8: Reject invalid input.
24370         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24371         u16_mbtouc.
24372         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24373         Remove unistr/u16-mbtouc.
24374
24375         unistr/u8-to-u32: Reject invalid input.
24376         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24377         u8_mbtouc.
24378         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24379         Remove unistr/u8-mbtouc.
24380
24381         unistr/u8-to-u16: Reject invalid input.
24382         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24383         u8_mbtouc.
24384         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24385         Remove unistr/u8-mbtouc.
24386
24387 2010-01-09  Bruno Haible  <bruno@clisp.org>
24388
24389         Tests for module 'getlogin'.
24390         * modules/getlogin-tests: New file.
24391         * tests/test-getlogin.c: New file.
24392
24393         New module 'getlogin'.
24394         * lib/unistd.in.h (getlogin): New declaration.
24395         * lib/getlogin.c: New file.
24396         * m4/getlogin.m4: New file.
24397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24398         HAVE_GETLOGIN.
24399         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24400         HAVE_GETLOGIN.
24401         * modules/getlogin: New file.
24402         * doc/posix-functions/getlogin.texi: Mention the new module.
24403         Reported by John W. Eaton <jwe@gnu.org>.
24404
24405 2010-01-09  Bruno Haible  <bruno@clisp.org>
24406
24407         getlogin_r: Support for native Windows.
24408         * lib/getlogin_r.c: Include <windows.h>
24409         (getlogin_r): Implement for native Windows.
24410         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24411         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24412         via John W. Eaton <jwe@gnu.org>.
24413
24414 2010-01-09  Bruno Haible  <bruno@clisp.org>
24415
24416         getlogin_r: Small fixes.
24417         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24418         succeeds.
24419         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24420         before testing whether getlogin_r is declared. No need to set
24421         HAVE_DECL_GETLOGIN_R to 1.
24422         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24423
24424 2010-01-09  Bruno Haible  <bruno@clisp.org>
24425
24426         * lib/unistd.in.h (getlogin_r): Add comment.
24427
24428 2010-01-09  Bruno Haible  <bruno@clisp.org>
24429
24430         Tests for module 'getlogin_r'.
24431         * modules/getlogin_r-tests: New file.
24432         * tests/test-getlogin_r.c: New file.
24433
24434 2010-01-09  Jim Meyering  <meyering@redhat.com>
24435
24436         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24437         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24438         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24439
24440 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24441
24442         * lib/dup2.c (rpl_dup2): Improve comment.
24443
24444 2010-01-08  Eric Blake  <ebb9@byu.net>
24445
24446         maint.mk: allow packages to add makefile @@ exceptions
24447         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24448         (sc_makefile_check): Rename...
24449         (sc_makefile_at_at_check): ...to this, and use hook.
24450
24451         dup2: work around mingw bug
24452         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24453         Reported by Simon Josefsson.
24454
24455 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24456
24457         glob: Fix C++ compilation.
24458         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24459         C++.
24460
24461 2010-01-07  Bruno Haible  <bruno@clisp.org>
24462
24463         Fix indentation of wctype.in.h, broken since 2007-01-06.
24464         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24465
24466 2010-01-07  Bruno Haible  <bruno@clisp.org>
24467
24468         mbslen: Avoid collision with system function.
24469         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24470         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24471         * m4/mbslen.m4: New file.
24472         * modules/mbslen (Files): Add it.
24473         (configure.ac): Invoke gl_MBSLEN.
24474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24475         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24476         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24477         via Ian Beckwith <ianb@erislabs.net>.
24478
24479 2010-01-07  Bruno Haible  <bruno@clisp.org>
24480
24481         dirent: Document the last fix.
24482         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24483
24484 2010-01-07  Bruno Haible  <bruno@clisp.org>
24485
24486         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24487         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24488         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24489         va_list are defined.
24490         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24491         Reported by Eric Blake.
24492
24493 2010-01-07  Bruno Haible  <bruno@clisp.org>
24494
24495         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24496         * modules/xlist (Depends-on): Add 'list',
24497         * modules/xoset (Depends-on): Add 'oset'.
24498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24499
24500 2010-01-07  Bruno Haible  <bruno@clisp.org>
24501
24502         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24503         * doc/posix-functions/strncasecmp.texi: Likewise.
24504
24505 2010-01-07  Bruno Haible  <bruno@clisp.org>
24506
24507         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24508
24509 2010-01-07  John W. Eaton  <jwe@octave.org>
24510
24511         wctype: allow C++ use
24512         * lib/wctype.in.h: Add extern "C" block for C++.
24513
24514 2010-01-06  Eric Blake  <ebb9@byu.net>
24515
24516         maint.mk: detect incorrect GFDL usage
24517         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24518
24519 2010-01-06  Jim Meyering  <meyering@redhat.com>
24520         and Eric Blake  <ebb9@byu.net>
24521
24522         maint.mk: ignore multi-line copyright in NEWS
24523         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24524
24525 2010-01-06  Eric Blake  <ebb9@byu.net>
24526
24527         select: add missing dependency
24528         * modules/select-tests (Depends-on): Move sockets dependency...
24529         * modules/select (Depends-on): ...here.
24530         Reported by Ian Beckwith.
24531
24532         doc: regenerate INSTALL
24533         * doc/INSTALL: Reflect recent autoconf update.
24534         * doc/INSTALL.ISO: Likewise.
24535         * doc/INSTALL.UTF-8: Likewise.
24536
24537         pread: fix compilation on glibc
24538         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24539         Reported by Ralf Wildenhues.
24540
24541         dirent: fix test failure
24542         * lib/dirent.in.h (includes): Guarantee ino_t.
24543         Reported by Ralf Wildenhues.
24544
24545 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24546
24547         linkat, renameat: avoid bad free
24548         * lib/at-func2.c (at_func2): Fix typo.
24549         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24550
24551 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24552
24553         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24554         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24555         to avoid failure of symlink test later.
24556
24557 2010-01-06  Eric Blake  <ebb9@byu.net>
24558
24559         stdio, unistd: guarantee ssize_t
24560         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24561         2008 are exposed when needed.
24562         * lib/stdio.in.h (includes): Likewise.
24563         Reported by Ralf Wildenhues.
24564
24565 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24566
24567         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24568         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24569         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24570
24571 2010-01-06  Jim Meyering  <meyering@redhat.com>
24572
24573         readtokens: this module *does* require xalloc.h
24574         It uses only functions that were omitted by the old syntax-check rule.
24575         * lib/readtokens.c: Include "xalloc.h" once again.
24576         * modules/readtokens (Depends-on): Add xalloc.
24577         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24578
24579 2010-01-05  Eric Blake  <ebb9@byu.net>
24580
24581         maint: support 'make announcement' from a VPATH build
24582         * top/maint.mk (announcement): Look for correct NEWS file.
24583
24584 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24585
24586         utimens (fdutimens): ignore a negative FD, per contract
24587         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24588         when we have a valid file descriptor.  Otherwise, using a brand
24589         new glibc (with just-patched futimens that now fails with EBADF)
24590         would cause this function to fail with ENOSYS.
24591         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24592         See also http://bugzilla.redhat.com/552320.
24593
24594 2010-01-05  Eric Blake  <ebb9@byu.net>
24595
24596         strcase: document what it provides
24597         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24598         gnulib module.
24599         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24600         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24601
24602 2010-01-05  Jim Meyering  <meyering@redhat.com>
24603
24604         maint: remove useless inclusions of "xalloc.h"
24605         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24606         * lib/readtokens.c: Likewise.
24607         * lib/same.c: Likewise.
24608         * modules/getloadavg (Depends-on): Remove xalloc.
24609         * modules/readtokens: Likewise.
24610         * modules/same: Likewise.
24611
24612         maint.mk: include 4 more function names in alloca.h-checking regexp
24613         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24614         regexp.  Before, we would give a false-positive (saying alloca.h
24615         is included unnecessarily) when the only uses involved omitted symbols.
24616
24617         xalloc.h: use consistent formatting
24618         * lib/xalloc.h: Move declarations to start in the first column.
24619
24620 2010-01-05  Eric Blake  <ebb9@byu.net>
24621
24622         mkdir: avoid xalloc
24623         * lib/mkdir.c (includes): Drop unused header.
24624         Reported by John W. Eaton.
24625
24626 2010-01-04  Jim Meyering  <meyering@redhat.com>
24627
24628         nl_langinfo: avoid configure-time syntax error
24629         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24630         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24631         the empty string.  Don't let that provoke a shell syntax error.
24632
24633         regcomp, regexec, fnmatch: avoid array bounds read error
24634         * lib/regcomp.c (build_equiv_class): From glibc:
24635         Use only the low 24 bits of a findidx return value as an index
24636         into the weights array.  Patch by Ulrich Drepper:
24637         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24638         * lib/regexec.c (check_node_accept_bytes): Likewise.
24639         * lib/fnmatch_loop.c (FCT): Likewise.
24640
24641         regcomp: skip collseq lookup when there are no rules
24642         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24643         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24644
24645         regcomp: recognize ill-formed { } expressions
24646         * lib/regcomp.c (parse_dup_op): From glibc:
24647         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24648
24649         regcomp: fix typo in comment
24650         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24651         s/satisfy/satisfies/.
24652
24653         regcomp: sync from glibc: remove dead store
24654         * lib/regcomp.c (duplicate_node_closure): Remove useless
24655         search_duplicated_node call and dead store.
24656
24657         regcomp: sync from glibc; always use nl_langinfo
24658         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24659         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24660         * modules/regex (Depends-on): Add nl_langinfo.
24661
24662 2010-01-04  Eric Blake  <ebb9@byu.net>
24663
24664         fdopendir: fix configure test
24665         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24666
24667 2010-01-01  Bruno Haible  <bruno@clisp.org>
24668
24669         wchar: Remove unused configure check.
24670         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24671
24672 2010-01-01  Eric Blake  <ebb9@byu.net>
24673
24674         headers: make check of system header explicit
24675         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24676         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24677         ourselves.
24678         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24679         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24681         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24682         internals.
24683         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24684         missing.
24685         Suggested by Bruno Haible.
24686
24687 2010-01-01  Jim Meyering  <meyering@redhat.com>
24688
24689         ChangeLog: tweak to eliminate unnecessary copyright line
24690         * ChangeLog: Remove a copyright line that was mistakenly updated
24691         by today's update-copyright run.  Reported by Eric Blake.
24692
24693         test-update-copyright: don't let envvar setting cause test failure
24694         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24695
24696 2010-01-01  Bruno Haible  <bruno@clisp.org>
24697
24698         localename: Avoid gcc warning.
24699         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24700         function if it is not used.
24701
24702 2010-01-01  Jim Meyering  <meyering@redhat.com>
24703
24704         update nearly all FSF copyright year lists to include 2010
24705         Use the same procedure as for 2009, outlined in
24706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24707
24708         version-etc: set COPYRIGHT_YEAR to 2010
24709         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24710
24711 2009-12-31  Eric Blake  <ebb9@byu.net>
24712
24713         doc: correct availability of cygwin 1.5.x getopt
24714         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24715         variables.
24716         * doc/posix-functions/opterr.texi (opterr): Likewise.
24717         * doc/posix-functions/optind.texi (optind): Likewise.
24718         * doc/posix-functions/optopt.texi (optopt): Likewise.
24719         * doc/posix-functions/tzname.texi (tzname): Likewise.
24720
24721         openat: update maintainer
24722         * modules/openat (Maintainer): Add myself.
24723
24724         utimens: avoid shadowing warning
24725         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24726         buffers into one, to avoid shadowing, as well as avoiding a
24727         redundant stat.
24728         Reported by Jim Meyering.
24729
24730         test-dup2: avoid compiler warning
24731         * tests/test-dup2.c (is_inheritable): Only define if used.
24732
24733 2010-01-01  Bruno Haible  <bruno@clisp.org>
24734
24735         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24736         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24737         defined, use wctomb instead of wcrtomb.
24738
24739 2010-01-01  Bruno Haible  <bruno@clisp.org>
24740
24741         iconv: Reject native Solaris iconv.
24742         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24743         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24744
24745 2009-12-31  Bruno Haible  <bruno@clisp.org>
24746
24747         * tests/test-signal.c (main): Remove test of 'SIG'.
24748
24749 2009-12-31  Bruno Haible  <bruno@clisp.org>
24750
24751         spawn: Fix incomplete fix.
24752         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24753         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24754         warnings for GNULIB_POSIXCHECK again.
24755         Reported by Eric Blake.
24756
24757 2009-12-31  Bruno Haible  <bruno@clisp.org>
24758
24759         Avoid namespace pollution on glibc systems.
24760         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24761         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24762         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24763         glibc systems.
24764
24765 2009-12-31  Bruno Haible  <bruno@clisp.org>
24766
24767         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24768         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24769         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24770         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24771         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24772         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24773         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24774
24775 2009-12-31  Bruno Haible  <bruno@clisp.org>
24776
24777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24778         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24779         afterwards.
24780
24781 2009-12-31  Bruno Haible  <bruno@clisp.org>
24782
24783         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24784         SYS_UTSNAME_H.
24785
24786 2009-12-31  Bruno Haible  <bruno@clisp.org>
24787
24788         spawn: Fix misapplied patch.
24789         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24790         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24791         warnings for GNULIB_POSIXCHECK.
24792
24793 2009-12-31  Bruno Haible  <bruno@clisp.org>
24794
24795         times: Update after sys_times changed.
24796         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24797         * modules/times (Files): Add it.
24798         (configure.ac): Invoke gl_FUNC_TIMES.
24799
24800 2009-12-31  Bruno Haible  <bruno@clisp.org>
24801
24802         Use AC_C_INLINE where necessary.
24803         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24806         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24807         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24808         * m4/mbiter.m4 (gl_MBITER): Likewise.
24809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24810         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24811         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24812         * modules/u64 (configure.ac): Likewise.
24813
24814 2009-12-31  Bruno Haible  <bruno@clisp.org>
24815
24816         Use AC_C_INLINE instead of module 'inline' where possible.
24817         * modules/inline (Description): Clarify purpose.
24818         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24819         * modules/count-one-bits (Depends-on): Remove inline.
24820         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24821         * modules/openat (Depends-on): Remove inline.
24822         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24823         instead of depending on module 'inline'.
24824         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24825         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24826         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24827         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24828         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24829         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24830         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24831         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24832         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24833         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24834         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24835         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24836         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24837         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24838         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24839         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24840         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24841         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24842         Likewise.
24843         * modules/unictype/property-ascii-hex-digit (Depends-on,
24844         configure.ac): Likewise.
24845         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24846         configure.ac): Likewise.
24847         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24848         configure.ac): Likewise.
24849         * modules/unictype/property-bidi-block-separator (Depends-on,
24850         configure.ac): Likewise.
24851         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24852         configure.ac): Likewise.
24853         * modules/unictype/property-bidi-common-separator (Depends-on,
24854         configure.ac): Likewise.
24855         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24856         Likewise.
24857         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24858         configure.ac): Likewise.
24859         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24860         configure.ac): Likewise.
24861         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24862         configure.ac): Likewise.
24863         * modules/unictype/property-bidi-european-digit (Depends-on,
24864         configure.ac): Likewise.
24865         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24866         configure.ac): Likewise.
24867         * modules/unictype/property-bidi-left-to-right (Depends-on,
24868         configure.ac): Likewise.
24869         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24870         configure.ac): Likewise.
24871         * modules/unictype/property-bidi-other-neutral (Depends-on,
24872         configure.ac): Likewise.
24873         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24874         Likewise.
24875         * modules/unictype/property-bidi-segment-separator (Depends-on,
24876         configure.ac): Likewise.
24877         * modules/unictype/property-bidi-whitespace (Depends-on,
24878         configure.ac): Likewise.
24879         * modules/unictype/property-combining (Depends-on, configure.ac):
24880         Likewise.
24881         * modules/unictype/property-composite (Depends-on, configure.ac):
24882         Likewise.
24883         * modules/unictype/property-currency-symbol (Depends-on,
24884         configure.ac): Likewise.
24885         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24886         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24887         Likewise.
24888         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24889         configure.ac): Likewise.
24890         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24891         Likewise.
24892         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24893         Likewise.
24894         * modules/unictype/property-extender (Depends-on, configure.ac):
24895         Likewise.
24896         * modules/unictype/property-format-control (Depends-on, configure.ac):
24897         Likewise.
24898         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24899         Likewise.
24900         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24901         Likewise.
24902         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24903         Likewise.
24904         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24905         Likewise.
24906         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24907         Likewise.
24908         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24909         Likewise.
24910         * modules/unictype/property-id-start (Depends-on, configure.ac):
24911         Likewise.
24912         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24913         Likewise.
24914         * modules/unictype/property-ids-binary-operator (Depends-on,
24915         configure.ac): Likewise.
24916         * modules/unictype/property-ids-trinary-operator (Depends-on,
24917         configure.ac): Likewise.
24918         * modules/unictype/property-ignorable-control (Depends-on,
24919         configure.ac): Likewise.
24920         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24921         Likewise.
24922         * modules/unictype/property-join-control (Depends-on, configure.ac):
24923         Likewise.
24924         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24925         Likewise.
24926         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24927         Likewise.
24928         * modules/unictype/property-logical-order-exception (Depends-on,
24929         configure.ac): Likewise.
24930         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24931         Likewise.
24932         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24933         * modules/unictype/property-non-break (Depends-on, configure.ac):
24934         Likewise.
24935         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24936         Likewise.
24937         * modules/unictype/property-numeric (Depends-on, configure.ac):
24938         Likewise.
24939         * modules/unictype/property-other-alphabetic (Depends-on,
24940         configure.ac): Likewise.
24941         * modules/unictype/property-other-default-ignorable-code-point
24942         (Depends-on, configure.ac): Likewise.
24943         * modules/unictype/property-other-grapheme-extend (Depends-on,
24944         configure.ac): Likewise.
24945         * modules/unictype/property-other-id-continue (Depends-on,
24946         configure.ac): Likewise.
24947         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24948         Likewise.
24949         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24950         Likewise.
24951         * modules/unictype/property-other-math (Depends-on, configure.ac):
24952         Likewise.
24953         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24954         Likewise.
24955         * modules/unictype/property-paired-punctuation (Depends-on,
24956         configure.ac): Likewise.
24957         * modules/unictype/property-paragraph-separator (Depends-on,
24958         configure.ac): Likewise.
24959         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24960         Likewise.
24961         * modules/unictype/property-pattern-white-space (Depends-on,
24962         configure.ac): Likewise.
24963         * modules/unictype/property-private-use (Depends-on, configure.ac):
24964         Likewise.
24965         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24966         Likewise.
24967         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24968         Likewise.
24969         * modules/unictype/property-radical (Depends-on, configure.ac):
24970         Likewise.
24971         * modules/unictype/property-sentence-terminal (Depends-on,
24972         configure.ac): Likewise.
24973         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24974         Likewise.
24975         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24976         * modules/unictype/property-terminal-punctuation (Depends-on,
24977         configure.ac): Likewise.
24978         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24979         Likewise.
24980         * modules/unictype/property-unassigned-code-value (Depends-on,
24981         configure.ac): Likewise.
24982         * modules/unictype/property-unified-ideograph (Depends-on,
24983         configure.ac): Likewise.
24984         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24985         Likewise.
24986         * modules/unictype/property-variation-selector (Depends-on,
24987         configure.ac): Likewise.
24988         * modules/unictype/property-white-space (Depends-on, configure.ac):
24989         Likewise.
24990         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24991         Likewise.
24992         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24993         Likewise.
24994         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24995         Likewise.
24996         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24997         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24998         Likewise.
24999
25000 2009-12-31  Bruno Haible  <bruno@clisp.org>
25001
25002         Remove unnecessary AC_C_INLINE invocation.
25003         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25004         since 2009-08-21.
25005
25006 2009-12-31  Jim Meyering  <meyering@redhat.com>
25007
25008         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25009         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25010         With this change, we can all remove the gpg_key_ID = ... definition
25011         from our respective cfg.mk files.
25012
25013         maint.mk: create announcement template in ~/, not in /tmp
25014         * top/maint.mk (emit_upload_commands): Adjust.
25015         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25016         Remove temporary file, .ci-msg.
25017
25018 2009-12-31  Eric Blake  <ebb9@byu.net>
25019
25020         link-warning: always build headers with link warnings
25021         * modules/arpa_inet (Makefile.am): Always build replacement
25022         header.
25023         * modules/ctype (Makefile.am): Likewise.
25024         * modules/dirent (Makefile.am): Likewise.
25025         * modules/inttypes (Makefile.am): Likewise.
25026         * modules/langinfo (Makefile.am): Likewise.
25027         * modules/locale (Makefile.am): Likewise.
25028         * modules/spawn (Makefile.am): Likewise.
25029         * modules/sys_file (Makefile.am): Likewise.
25030         * modules/sys_ioctl (Makefile.am): Likewise.
25031         * modules/sys_select (Makefile.am): Likewise.
25032         * modules/sys_socket (Makefile.am): Likewise.
25033         * modules/sys_times (Makefile.am): Likewise.
25034         * modules/sys_utsname (Makefile.am): Likewise.
25035         * modules/sys_wait (Makefile.am): Likewise.
25036         * modules/wchar (Makefile.am): Likewise.
25037         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25038         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25039         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25040         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25041         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25042         Likewise.
25043         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25044         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25045         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25046         Likewise.
25047         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25048         Likewise.
25049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25051         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25055         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25056         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25057         (gl_WCHAR_H_DEFAULTS): Likewise.
25058
25059 2009-12-31  Eric Blake  <ebb9@byu.net>
25060
25061         signal, spawn: use link warnings
25062         * lib/signal.in.h (sigset_t): Make unconditional.
25063         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25064         (sigpending, sigprocmask, sigaction): Add link warnings.
25065         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25066         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25067         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25068         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25069         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25070         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25071         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25072         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25073         (posix_spawn_file_actions_destroy)
25074         (posix_spawn_file_actions_addopen)
25075         (posix_spawn_file_actions_addclose)
25076         (posix_spawn_file_actions_adddup2): Likewise.
25077         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25078         * tests/test-signal.c (main): Enhance test.
25079
25080         spawn: improve wrapper support
25081         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25082         (gl_SPAWN_H_DEFAULTS): New defaults.
25083         * modules/spawn (Makefile.am): Substitute them.
25084         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25085         Only declare if missing or broken.
25086
25087         sys_times, sys_utsname: use include_next
25088         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25089         header.
25090         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25092         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25093         * modules/sys_times (Depends-on): Add include_next.
25094         (Makefile.am): Substitute additional values.
25095         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25096         * lib/sys_times.in.h (includes): Include native header, if
25097         available.
25098         * lib/sys_utsname.in.h (includes): Likewise.
25099         * tests/test-sys_times.c (main): Enhance test.
25100
25101         fdutimensat: revert prior patch
25102         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25103         utimens.h.
25104         Reported by Bruno Haible.
25105
25106 2009-12-30  Eric Blake  <ebb9@byu.net>
25107
25108         sys_wait: drop link-warning dependency
25109         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25110         link-warning efforts.
25111         * lib/sys_wait.in.h: Likewise.
25112
25113         fdutimensat: remove bogus dependency
25114         * modules/fdutimensat (Depends-on): Drop inline.
25115
25116         unistd: fix typo
25117         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25118
25119 2009-12-30  Bruno Haible  <bruno@clisp.org>
25120
25121         Fix compilation error with Solaris cc.
25122         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25123         * lib/unicase/u16-is-invariant.c: Likewise.
25124         * lib/unicase/u32-is-invariant.c: Likewise.
25125         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25126
25127 2009-12-30  Bruno Haible  <bruno@clisp.org>
25128
25129         Fix test crash.
25130         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25131         locales.
25132         Reported by Simon Josefsson <simon@josefsson.org>.
25133
25134 2009-12-30  Bruno Haible  <bruno@clisp.org>
25135
25136         Fix compilation error on most platforms.
25137         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25138         Reported by Simon Josefsson <simon@josefsson.org>
25139         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25140
25141 2009-12-30  Eric Blake  <ebb9@byu.net>
25142
25143         futimens, utimensat: work around ntfs-3g bug
25144         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25145         a ctime bug is present, and expand workaround to cover ntfs-3g.
25146         * lib/utimens.c (fdutimens, lutimens): Likewise.
25147         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25148         (validate_timespec): Adjust return value.
25149         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25150         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25151         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25152
25153 2009-12-29  Eric Blake  <ebb9@byu.net>
25154
25155         link-warning: make usage consistent
25156         * modules/ctype (Depends-on): Add link-warning.
25157         (Makefile.am): Update rules accordingly.
25158         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25159         * modules/locale (Depends-on, Makefile.am): Likewise.
25160         * modules/sys_file (Makefile.am): Likewise.
25161         * modules/getopt-posix (Makefile.am): Delete unused link warning
25162         efforts.
25163         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25164         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25165         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25166         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25167
25168         stdio: remove unused variables
25169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25171         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25172
25173         tests: test more substitute headers
25174         * modules/ctype-tests: New file.
25175         * modules/dirent-tests: Likewise.
25176         * modules/spawn-tests: Likewise.
25177         * modules/sys_file-tests: Likewise.
25178         * modules/sys_ioctl-tests: Likewise.
25179         * modules/sys_wait-tests: Likewise.
25180         * tests/test-ctype.c: Likewise.
25181         * tests/test-dirent.c: Likewise.
25182         * tests/test-spawn.c: Likewise.
25183         * tests/test-sys_file.c: Likewise.
25184         * tests/test-sys_ioctl.c: Likewise.
25185         * tests/test-sys_wait.c: Likewise.
25186         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25187         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25188         whether or not flock is in use.
25189
25190         tests: remove License section from module
25191         * modules/arpa_inet-tests: Remove unneeded section.
25192         * modules/byteswap-tests: Likewise.
25193         * modules/ceilf-tests: Likewise.
25194         * modules/ceill-tests: Likewise.
25195         * modules/crypto/des-tests: Likewise.
25196         * modules/crypto/gc-arcfour-tests: Likewise.
25197         * modules/crypto/gc-arctwo-tests: Likewise.
25198         * modules/crypto/gc-des-tests: Likewise.
25199         * modules/crypto/gc-hmac-md5-tests: Likewise.
25200         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25201         * modules/crypto/gc-md2-tests: Likewise.
25202         * modules/crypto/gc-md4-tests: Likewise.
25203         * modules/crypto/gc-md5-tests: Likewise.
25204         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25205         * modules/crypto/gc-rijndael-tests: Likewise.
25206         * modules/crypto/gc-sha1-tests: Likewise.
25207         * modules/crypto/gc-tests: Likewise.
25208         * modules/crypto/md2-tests: Likewise.
25209         * modules/crypto/md4-tests: Likewise.
25210         * modules/fcntl-h-tests: Likewise.
25211         * modules/floorf-tests: Likewise.
25212         * modules/floorl-tests: Likewise.
25213         * modules/frexp-nolibm-tests: Likewise.
25214         * modules/frexp-tests: Likewise.
25215         * modules/frexpl-nolibm-tests: Likewise.
25216         * modules/frexpl-tests: Likewise.
25217         * modules/getaddrinfo-tests: Likewise.
25218         * modules/inttypes-tests: Likewise.
25219         * modules/isfinite-tests: Likewise.
25220         * modules/isinf-tests: Likewise.
25221         * modules/ldexpl-tests: Likewise.
25222         * modules/locale-tests: Likewise.
25223         * modules/math-tests: Likewise.
25224         * modules/netdb-tests: Likewise.
25225         * modules/netinet_in-tests: Likewise.
25226         * modules/printf-frexp-tests: Likewise.
25227         * modules/printf-frexpl-tests: Likewise.
25228         * modules/priv-set-tests: Likewise.
25229         * modules/random_r-tests: Likewise.
25230         * modules/round-tests: Likewise.
25231         * modules/roundf-tests: Likewise.
25232         * modules/roundl-tests: Likewise.
25233         * modules/search-tests: Likewise.
25234         * modules/select-tests: Likewise.
25235         * modules/signal-tests: Likewise.
25236         * modules/stdbool-tests: Likewise.
25237         * modules/stddef-tests: Likewise.
25238         * modules/stdint-tests: Likewise.
25239         * modules/stdio-tests: Likewise.
25240         * modules/stdlib-tests: Likewise.
25241         * modules/string-tests: Likewise.
25242         * modules/strings-tests: Likewise.
25243         * modules/sys_select-tests: Likewise.
25244         * modules/sys_socket-tests: Likewise.
25245         * modules/sys_stat-tests: Likewise.
25246         * modules/sys_time-tests: Likewise.
25247         * modules/sys_utsname-tests: Likewise.
25248         * modules/sysexits-tests: Likewise.
25249         * modules/time-tests: Likewise.
25250         * modules/trunc-tests: Likewise.
25251         * modules/truncf-tests: Likewise.
25252         * modules/truncl-tests: Likewise.
25253         * modules/tsearch-tests: Likewise.
25254         * modules/unistd-tests: Likewise.
25255         * modules/wchar-tests: Likewise.
25256         * modules/wctype-tests: Likewise.
25257
25258         tests: fix license on several tests
25259         * tests/test-des.c: Update to GPLv3+.
25260         * tests/test-flock.c: Likewise.
25261         * tests/test-fsync.c: Likewise.
25262         * tests/test-futimens.h: Likewise.
25263         * tests/test-gc-arcfour.c: Likewise.
25264         * tests/test-gc-arctwo.c: Likewise.
25265         * tests/test-gc-des.c: Likewise.
25266         * tests/test-gc-hmac-md5.c: Likewise.
25267         * tests/test-gc-hmac-sha1.c: Likewise.
25268         * tests/test-gc-md2.c: Likewise.
25269         * tests/test-gc-md4.c: Likewise.
25270         * tests/test-gc-md5.c: Likewise.
25271         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25272         * tests/test-gc-rijndael.c: Likewise.
25273         * tests/test-gc-sha1.c: Likewise.
25274         * tests/test-gc.c: Likewise.
25275         * tests/test-getcwd.c: Likewise.
25276         * tests/test-link.c: Likewise.
25277         * tests/test-link.h: Likewise.
25278         * tests/test-lutimens.h: Likewise.
25279         * tests/test-md2.c: Likewise.
25280         * tests/test-md4.c: Likewise.
25281         * tests/test-mkdir.h: Likewise.
25282         * tests/test-rename.c: Likewise.
25283         * tests/test-rename.h: Likewise.
25284         * tests/test-safe-alloc.c: Likewise.
25285         * tests/test-utimens-common.h: Likewise.
25286         * tests/test-utimens.h: Likewise.
25287
25288         maint: sync license texts
25289         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25290         * doc/gpl-3.0.texi: Revert copyright year update.
25291         * doc/lgpl-3.0.texi: Likewise.
25292
25293 2009-12-29  Jim Meyering  <meyering@redhat.com>
25294
25295         update nearly all FSF copyright year lists to include 2009
25296         The files named by the following are exempted:
25297             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25298               test -f "$dst" && { echo "$dst"; continue; }
25299               test -d "$dst" || continue
25300               echo "$dst"/$(basename "$src")
25301             done > exempt
25302             git ls-files tests/unictype >> exempt
25303         In the remaining files, convert to all-interval notation if
25304         - there is already at least one year interval like 2000-2003
25305         - the file is maintained by me
25306         - the file is in lib/uni*/, where that style already prevails
25307         Otherwise, use update-copyright's default.
25308
25309 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25310         and Eric Blake  <ebb9@byu.net>
25311
25312         tests: don't require debug system() to pass
25313         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25314         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25315         * tests/test-unlink.h (test_unlink_func): Likewise.
25316         * tests/test-fstatat.c (main): ...into callers.
25317         * tests/test-lstat.c (main): Likewise.
25318         * tests/test-rmdir.c (main): Likewise.
25319         * tests/test-unlink.c (main): Likewise.
25320         * tests/test-unlinkat.c (main): Likewise.
25321         * tests/test-areadlink-with-size.c (main): Don't require a
25322         debug-only system call to pass, aiding cross-testing to mingw.
25323         * tests/test-areadlink.c (main): Likewise.
25324         * tests/test-areadlinkat-with-size.c (main): Likewise.
25325         * tests/test-areadlinkat.c (main): Likewise.
25326         * tests/test-canonicalize-lgpl.c (main): Likewise.
25327         * tests/test-canonicalize.c (main): Likewise.
25328         * tests/test-chown.c (main): Likewise.
25329         * tests/test-fchownat.c (main): Likewise.
25330         * tests/test-lchown.c (main): Likewise.
25331         * tests/test-fdutimensat.c (main): Likewise.
25332         * tests/test-futimens.c (main): Likewise.
25333         * tests/test-link.c (main): Likewise.
25334         * tests/test-linkat.c (main): Likewise.
25335         * tests/test-mkdir.c (main): Likewise.
25336         * tests/test-mkdirat.c (main): Likewise.
25337         * tests/test-mkfifo.c (main): Likewise.
25338         * tests/test-mkfifoat.c (main): Likewise.
25339         * tests/test-mknod.c (main): Likewise.
25340         * tests/test-readlink.c (main): Likewise.
25341         * tests/test-remove.c (main): Likewise.
25342         * tests/test-rename.c (main): Likewise.
25343         * tests/test-renameat.c (main): Likewise.
25344         * tests/test-symlink.c (main): Likewise.
25345         * tests/test-symlinkat.c (main): Likewise.
25346         * tests/test-utimens.c (main): Likewise.
25347         * tests/test-utimensat.c (main): Likewise.
25348
25349 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25350
25351         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25352         on $(UNUSED_PARAMETER_H) to avoid build failure.
25353
25354 2009-12-28  Jim Meyering  <meyering@redhat.com>
25355
25356         update-copyright: you may specify a max. line length other than 72
25357         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25358
25359         maint: use consistent FSF copyright line syntax
25360         * lib/posixtm.c: Add missing comma in FSF copyright line.
25361         * lib/posixtm.h: Likewise.
25362         * lib/getugroups.c: Add missing ", Inc.".
25363
25364         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25365         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25366         FSF copyright line.  Remove trailing blanks.
25367
25368 2009-12-28  Eric Blake  <ebb9@byu.net>
25369
25370         test-dup2: reduce dependencies
25371         * modules/cloexec (Configure.ac): Set witness.
25372         * modules/dup2-tests (Depends-on): Drop cloexec.
25373         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25374         not present.
25375         Suggested by Bruno Haible.
25376
25377 2009-12-26  Bruno Haible  <bruno@clisp.org>
25378
25379         Remove an unneeded dependency.
25380         * modules/fseterr (Depends-on): Remove dup2.
25381
25382 2009-12-26  Eric Blake  <ebb9@byu.net>
25383
25384         tests: use macros.h in more places
25385         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25386         (ASSERT_STREAM): Provide default of stderr.
25387         * tests/test-dirent-safer.c: Include macros.h, using alternate
25388         stream for assertions.
25389         * tests/test-dup-safer.c: Likewise.
25390         * tests/test-freopen-safer.c: Likewise.
25391         * tests/test-getopt.c: Likewise.
25392         * tests/test-openat-safer.c: Likewise.
25393         * tests/test-pipe.c: Likewise.
25394         * tests/test-popen-safer.c: Likewise.
25395         * modules/dirent-safer-tests (Files): Include macros.h.
25396         * modules/unistd-safer-tests (Files): Likewise.
25397         * modules/freopen-safer-tests (Files): Likewise.
25398         * modules/getopt-posix-tests (Files): Likewise.
25399         * modules/openat-safer-tests (Files): Likewise.
25400         * modules/pipe-tests (Files): Likewise.
25401
25402 2009-12-26  Bruno Haible  <bruno@clisp.org>
25403
25404         javacomp: Portability fix.
25405         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25406         that it also works on Solaris.
25407
25408 2009-12-26  Bruno Haible  <bruno@clisp.org>
25409
25410         localename: Fix storage allocation of gl_locale_name_thread's result.
25411         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25412         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25413         all platforms that have 'uselocale'.
25414         (gl_locale_name_thread_unsafe): New function, extracted from
25415         gl_locale_name_thread.
25416         (gl_locale_name_thread): Call struniq on all platforms that have
25417         'uselocale'.
25418         * tests/test-localename.c (test_locale_name_thread): Check that the
25419         resulting strings are permanently allocated.
25420         * modules/localename-tests (Depends-on): Add strdup.
25421
25422 2009-12-26  Bruno Haible  <bruno@clisp.org>
25423
25424         * tests/test-localename.c (categories): Fill in the strings.
25425
25426 2009-12-26  Jim Meyering  <meyering@redhat.com>
25427
25428         isdir: complete the removal of m4/isdir.m4
25429         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25430
25431         isdir: clean up, since at least grep still uses it
25432         * lib/isdir.c: Include "isdir.h".
25433         (S_ISDIR): Remove now-unneeded definition.
25434         * modules/isdir (Files): Add lib/isdir.h.
25435         * lib/isdir.h: New file, with declaration.
25436         * m4/isdir.m4: Remove file -- unneeded.
25437
25438 2009-12-25  Bruno Haible  <bruno@clisp.org>
25439
25440         selinux-h: Make generated .h files standalone.
25441         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25442         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25443         * lib/se-selinux.in.h: Likewise.
25444         * modules/selinux-h (Depends-on): Add unused-parameter.
25445         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25446         selinux/selinux.h and selinux/context.h.
25447         Suggested by Eric Blake.
25448
25449 2009-12-25  Bruno Haible  <bruno@clisp.org>
25450
25451         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25452         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25453         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25454         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25455         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25456
25457 2009-12-24  Bruno Haible  <bruno@clisp.org>
25458
25459         openat: Fix warning.
25460         * lib/openat-proc.c: Include <unistd.h>.
25461
25462 2009-12-24  Bruno Haible  <bruno@clisp.org>
25463
25464         New module 'unused-parameter'.
25465         * build-aux/unused-parameter.h: New file, extracted from earlier
25466         gnulib-common.m4.
25467         * modules/unused-parameter: New file.
25468         * lib/unistr.h: Include unused-parameter.h.
25469         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25470         _GL_UNUSED.
25471         * modules/unistr/base (Depends-on): Add unused-parameter.
25472
25473 2009-12-24  Bruno Haible  <bruno@clisp.org>
25474
25475         Add missing dependencies to 'extensions' module.
25476         * m4/extensions.m4: Add comment.
25477         * modules/accept4 (Depends-on): Add extensions.
25478         * modules/dup3 (Depends-on): Likewise.
25479         * modules/fcntl (Depends-on): Likewise.
25480         * modules/futimens (Depends-on): Likewise.
25481         * modules/mknod (Depends-on): Likewise.
25482         * modules/pipe2 (Depends-on): Likewise.
25483         * modules/stat-time (Depends-on): Likewise.
25484         * modules/strcasestr-simple (Depends-on): Likewise.
25485         * modules/strsignal (Depends-on): Likewise.
25486         * modules/utimensat (Depends-on): Likewise.
25487         * modules/localcharset (Depends-on): Likewise. Needed because of
25488         gl_FCNTL_O_FLAGS.
25489         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25490         AC_TYPE_MBSTATE_T.
25491         * modules/wcsnrtombs (Depends-on): Likewise.
25492         * modules/wcsrtombs (Depends-on): Likewise.
25493
25494 2009-12-24  Bruno Haible  <bruno@clisp.org>
25495
25496         binary-io: Avoid gcc warning due to SET_BINARY.
25497         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25498         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25499
25500 2009-12-24  Bruno Haible  <bruno@clisp.org>
25501
25502         Avoid future namespace pollution on glibc systems.
25503         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25504         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25505         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25506         glibc systems.
25507
25508 2009-12-24  Bruno Haible  <bruno@clisp.org>
25509
25510         Refactor common macros used in tests.
25511         * tests/macros.h: New file.
25512         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25513         and/or <stdlib.h>, if appropriate.
25514         (ASSERT, SIZEOF): Remove macros.
25515         * tests/test-areadlink-with-size.c: Likewise.
25516         * tests/test-areadlinkat.c: Likewise.
25517         * tests/test-areadlinkat-with-size.c: Likewise.
25518         * tests/test-argmatch.c: Likewise.
25519         * tests/test-argv-iter.c: Likewise.
25520         * tests/test-array-mergesort.c: Likewise.
25521         * tests/test-array_list.c: Likewise.
25522         * tests/test-array_oset.c: Likewise.
25523         * tests/test-avltree_list.c: Likewise.
25524         * tests/test-avltree_oset.c: Likewise.
25525         * tests/test-avltreehash_list.c: Likewise.
25526         * tests/test-base64.c: Likewise.
25527         * tests/test-binary-io.c: Likewise.
25528         * tests/test-bitrotate.c: Likewise.
25529         * tests/test-btowc.c: Likewise.
25530         * tests/test-byteswap.c: Likewise.
25531         * tests/test-c-ctype.c: Likewise.
25532         * tests/test-c-stack.c: Likewise.
25533         * tests/test-c-strcasecmp.c: Likewise.
25534         * tests/test-c-strcasestr.c: Likewise.
25535         * tests/test-c-strncasecmp.c: Likewise.
25536         * tests/test-c-strstr.c: Likewise.
25537         * tests/test-canonicalize-lgpl.c: Likewise.
25538         * tests/test-canonicalize.c: Likewise.
25539         * tests/test-carray_list.c: Likewise.
25540         * tests/test-ceilf1.c: Likewise.
25541         * tests/test-ceilf2.c: Likewise.
25542         * tests/test-ceill.c: Likewise.
25543         * tests/test-chown.c: Likewise.
25544         * tests/test-cloexec.c: Likewise.
25545         * tests/test-copy-acl.c: Likewise.
25546         * tests/test-copy-file.c: Likewise.
25547         * tests/test-count-one-bits.c: Likewise.
25548         * tests/test-dprintf-posix.c: Likewise.
25549         * tests/test-dup2.c: Likewise.
25550         * tests/test-dup3.c: Likewise.
25551         * tests/test-duplocale.c: Likewise.
25552         * tests/test-fbufmode.c: Likewise.
25553         * tests/test-fchdir.c: Likewise.
25554         * tests/test-fchownat.c: Likewise.
25555         * tests/test-fcntl-safer.c: Likewise.
25556         * tests/test-fcntl.c: Likewise.
25557         * tests/test-fdopendir.c: Likewise.
25558         * tests/test-fdutimensat.c: Likewise.
25559         * tests/test-fflush2.c: Likewise.
25560         * tests/test-file-has-acl.c: Likewise.
25561         * tests/test-filevercmp.c: Likewise.
25562         * tests/test-flock.c: Likewise.
25563         * tests/test-floorf1.c: Likewise.
25564         * tests/test-floorf2.c: Likewise.
25565         * tests/test-floorl.c: Likewise.
25566         * tests/test-fnmatch.c: Likewise.
25567         * tests/test-fopen.h: Likewise.
25568         * tests/test-fpending.c: Likewise.
25569         * tests/test-fprintf-posix.c: Likewise.
25570         * tests/test-fpurge.c: Likewise.
25571         * tests/test-freadable.c: Likewise.
25572         * tests/test-freadahead.c: Likewise.
25573         * tests/test-freading.c: Likewise.
25574         * tests/test-freadptr.c: Likewise.
25575         * tests/test-freadptr2.c: Likewise.
25576         * tests/test-freadseek.c: Likewise.
25577         * tests/test-freopen.c: Likewise.
25578         * tests/test-frexp.c: Likewise.
25579         * tests/test-frexpl.c: Likewise.
25580         * tests/test-fseek.c: Likewise.
25581         * tests/test-fseeko.c: Likewise.
25582         * tests/test-fstatat.c: Likewise.
25583         * tests/test-fstrcmp.c: Likewise.
25584         * tests/test-fsync.c: Likewise.
25585         * tests/test-ftell.c: Likewise.
25586         * tests/test-ftello.c: Likewise.
25587         * tests/test-func.c: Likewise.
25588         * tests/test-futimens.c: Likewise.
25589         * tests/test-fwritable.c: Likewise.
25590         * tests/test-fwriting.c: Likewise.
25591         * tests/test-getcwd.c: Likewise.
25592         * tests/test-getdate.c: Likewise.
25593         * tests/test-getdelim.c: Likewise.
25594         * tests/test-getdtablesize.c: Likewise.
25595         * tests/test-getgroups.c: Likewise.
25596         * tests/test-getline.c: Likewise.
25597         * tests/test-getndelim2.c: Likewise.
25598         * tests/test-glob.c: Likewise.
25599         * tests/test-hash.c: Likewise.
25600         * tests/test-i-ring.c: Likewise.
25601         * tests/test-iconv-utf.c: Likewise.
25602         * tests/test-iconv.c: Likewise.
25603         * tests/test-idpriv-drop.c: Likewise.
25604         * tests/test-idpriv-droptemp.c: Likewise.
25605         * tests/test-inet_ntop.c: Likewise.
25606         * tests/test-inet_pton.c: Likewise.
25607         * tests/test-isblank.c: Likewise.
25608         * tests/test-isfinite.c: Likewise.
25609         * tests/test-isinf.c: Likewise.
25610         * tests/test-isnan.c: Likewise.
25611         * tests/test-isnand.h: Likewise.
25612         * tests/test-isnanf.h: Likewise.
25613         * tests/test-isnanl.h: Likewise.
25614         * tests/test-lchown.c: Likewise.
25615         * tests/test-ldexpl.c: Likewise.
25616         * tests/test-link.c: Likewise.
25617         * tests/test-linkat.c: Likewise.
25618         * tests/test-linked_list.c: Likewise.
25619         * tests/test-linkedhash_list.c: Likewise.
25620         * tests/test-localename.c: Likewise.
25621         * tests/test-lseek.c: Likewise.
25622         * tests/test-lstat.c: Likewise.
25623         * tests/test-mbmemcasecmp.c: Likewise.
25624         * tests/test-mbmemcasecoll.c: Likewise.
25625         * tests/test-mbrtowc.c: Likewise.
25626         * tests/test-mbscasecmp.c: Likewise.
25627         * tests/test-mbscasestr1.c: Likewise.
25628         * tests/test-mbscasestr2.c: Likewise.
25629         * tests/test-mbscasestr3.c: Likewise.
25630         * tests/test-mbscasestr4.c: Likewise.
25631         * tests/test-mbschr.c: Likewise.
25632         * tests/test-mbscspn.c: Likewise.
25633         * tests/test-mbsinit.c: Likewise.
25634         * tests/test-mbsncasecmp.c: Likewise.
25635         * tests/test-mbsnrtowcs.c: Likewise.
25636         * tests/test-mbspbrk.c: Likewise.
25637         * tests/test-mbspcasecmp.c: Likewise.
25638         * tests/test-mbsrchr.c: Likewise.
25639         * tests/test-mbsrtowcs.c: Likewise.
25640         * tests/test-mbsspn.c: Likewise.
25641         * tests/test-mbsstr1.c: Likewise.
25642         * tests/test-mbsstr2.c: Likewise.
25643         * tests/test-mbsstr3.c: Likewise.
25644         * tests/test-memchr.c: Likewise.
25645         * tests/test-memchr2.c: Likewise.
25646         * tests/test-memcmp.c: Likewise.
25647         * tests/test-memmem.c: Likewise.
25648         * tests/test-memrchr.c: Likewise.
25649         * tests/test-mkdir.c: Likewise.
25650         * tests/test-mkdirat.c: Likewise.
25651         * tests/test-mkfifo.c: Likewise.
25652         * tests/test-mkfifoat.c: Likewise.
25653         * tests/test-mknod.c: Likewise.
25654         * tests/test-nanosleep.c: Likewise.
25655         * tests/test-nl_langinfo.c: Likewise.
25656         * tests/test-obstack-printf.c: Likewise.
25657         * tests/test-open.c: Likewise.
25658         * tests/test-openat.c: Likewise.
25659         * tests/test-pipe-filter-gi1.c: Likewise.
25660         * tests/test-pipe-filter-gi2-main.c: Likewise.
25661         * tests/test-pipe-filter-ii1.c: Likewise.
25662         * tests/test-pipe-filter-ii2-main.c: Likewise.
25663         * tests/test-pipe2.c: Likewise.
25664         * tests/test-popen.h: Likewise.
25665         * tests/test-posixtm.c: Likewise.
25666         * tests/test-pread.c: Likewise.
25667         * tests/test-printf-frexp.c: Likewise.
25668         * tests/test-printf-frexpl.c: Likewise.
25669         * tests/test-printf-posix.c: Likewise.
25670         * tests/test-priv-set.c: Likewise.
25671         * tests/test-quotearg.c: Likewise.
25672         * tests/test-random_r.c: Likewise.
25673         * tests/test-rawmemchr.c: Likewise.
25674         * tests/test-rbtree_list.c: Likewise.
25675         * tests/test-rbtree_oset.c: Likewise.
25676         * tests/test-rbtreehash_list.c: Likewise.
25677         * tests/test-readlink.c: Likewise.
25678         * tests/test-remove.c: Likewise.
25679         * tests/test-rename.c: Likewise.
25680         * tests/test-renameat.c: Likewise.
25681         * tests/test-rmdir.c: Likewise.
25682         * tests/test-round1.c: Likewise.
25683         * tests/test-roundf1.c: Likewise.
25684         * tests/test-roundl.c: Likewise.
25685         * tests/test-safe-alloc.c: Likewise.
25686         * tests/test-sameacls.c: Likewise.
25687         * tests/test-set-mode-acl.c: Likewise.
25688         * tests/test-setenv.c: Likewise.
25689         * tests/test-sigaction.c: Likewise.
25690         * tests/test-signbit.c: Likewise.
25691         * tests/test-sleep.c: Likewise.
25692         * tests/test-snprintf-posix.c: Likewise.
25693         * tests/test-snprintf.c: Likewise.
25694         * tests/test-sprintf-posix.c: Likewise.
25695         * tests/test-stat-time.c: Likewise.
25696         * tests/test-stat.c: Likewise.
25697         * tests/test-strcasestr.c: Likewise.
25698         * tests/test-strchrnul.c: Likewise.
25699         * tests/test-strerror.c: Likewise.
25700         * tests/test-striconv.c: Likewise.
25701         * tests/test-striconveh.c: Likewise.
25702         * tests/test-striconveha.c: Likewise.
25703         * tests/test-strsignal.c: Likewise.
25704         * tests/test-strstr.c: Likewise.
25705         * tests/test-strtod.c: Likewise.
25706         * tests/test-strverscmp.c: Likewise.
25707         * tests/test-symlink.c: Likewise.
25708         * tests/test-symlinkat.c: Likewise.
25709         * tests/test-trunc1.c: Likewise.
25710         * tests/test-trunc2.c: Likewise.
25711         * tests/test-truncf1.c: Likewise.
25712         * tests/test-truncf2.c: Likewise.
25713         * tests/test-truncl.c: Likewise.
25714         * tests/test-uname.c: Likewise.
25715         * tests/test-unlink.c: Likewise.
25716         * tests/test-unlinkat.c: Likewise.
25717         * tests/test-unsetenv.c: Likewise.
25718         * tests/test-usleep.c: Likewise.
25719         * tests/test-utimens.c: Likewise.
25720         * tests/test-utimensat.c: Likewise.
25721         * tests/test-vasnprintf-posix.c: Likewise.
25722         * tests/test-vasnprintf-posix2.c: Likewise.
25723         * tests/test-vasnprintf.c: Likewise.
25724         * tests/test-vasprintf-posix.c: Likewise.
25725         * tests/test-vasprintf.c: Likewise.
25726         * tests/test-vdprintf-posix.c: Likewise.
25727         * tests/test-vfprintf-posix.c: Likewise.
25728         * tests/test-vprintf-posix.c: Likewise.
25729         * tests/test-vsnprintf-posix.c: Likewise.
25730         * tests/test-vsnprintf.c: Likewise.
25731         * tests/test-vsprintf-posix.c: Likewise.
25732         * tests/test-wcrtomb.c: Likewise.
25733         * tests/test-wcsnrtombs.c: Likewise.
25734         * tests/test-wcsrtombs.c: Likewise.
25735         * tests/test-wctype.c: Likewise.
25736         * tests/test-wcwidth.c: Likewise.
25737         * tests/test-xfprintf-posix.c: Likewise.
25738         * tests/test-xmemdup0.c: Likewise.
25739         * tests/test-xprintf-posix.c: Likewise.
25740         * tests/test-xvasprintf.c: Likewise.
25741         * tests/unicase/test-locale-language.c: Likewise.
25742         * tests/unicase/test-mapping-part1.h: Likewise.
25743         * tests/unicase/test-predicate-part1.h: Likewise.
25744         * tests/unicase/test-u8-casecmp.c: Likewise.
25745         * tests/unicase/test-u8-casecoll.c: Likewise.
25746         * tests/unicase/test-u8-casefold.c: Likewise.
25747         * tests/unicase/test-u8-is-cased.c: Likewise.
25748         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25749         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25750         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25751         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25752         * tests/unicase/test-u8-tolower.c: Likewise.
25753         * tests/unicase/test-u8-totitle.c: Likewise.
25754         * tests/unicase/test-u8-toupper.c: Likewise.
25755         * tests/unicase/test-u16-casecmp.c: Likewise.
25756         * tests/unicase/test-u16-casecoll.c: Likewise.
25757         * tests/unicase/test-u16-casefold.c: Likewise.
25758         * tests/unicase/test-u16-is-cased.c: Likewise.
25759         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25760         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25761         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25762         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25763         * tests/unicase/test-u16-tolower.c: Likewise.
25764         * tests/unicase/test-u16-totitle.c: Likewise.
25765         * tests/unicase/test-u16-toupper.c: Likewise.
25766         * tests/unicase/test-u32-casecmp.c: Likewise.
25767         * tests/unicase/test-u32-casecoll.c: Likewise.
25768         * tests/unicase/test-u32-casefold.c: Likewise.
25769         * tests/unicase/test-u32-is-cased.c: Likewise.
25770         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25771         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25772         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25773         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25774         * tests/unicase/test-u32-tolower.c: Likewise.
25775         * tests/unicase/test-u32-totitle.c: Likewise.
25776         * tests/unicase/test-u32-toupper.c: Likewise.
25777         * tests/unicase/test-ulc-casecmp.c: Likewise.
25778         * tests/unicase/test-ulc-casecoll.c: Likewise.
25779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25783         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25784         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25785         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25786         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25787         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25788         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25789         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25790         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25791         * tests/unictype/test-bidi_byname.c: Likewise.
25792         * tests/unictype/test-bidi_name.c: Likewise.
25793         * tests/unictype/test-bidi_of.c: Likewise.
25794         * tests/unictype/test-bidi_test.c: Likewise.
25795         * tests/unictype/test-block_list.c: Likewise.
25796         * tests/unictype/test-block_of.c: Likewise.
25797         * tests/unictype/test-block_test.c: Likewise.
25798         * tests/unictype/test-categ_and.c: Likewise.
25799         * tests/unictype/test-categ_and_not.c: Likewise.
25800         * tests/unictype/test-categ_byname.c: Likewise.
25801         * tests/unictype/test-categ_name.c: Likewise.
25802         * tests/unictype/test-categ_none.c: Likewise.
25803         * tests/unictype/test-categ_of.c: Likewise.
25804         * tests/unictype/test-categ_or.c: Likewise.
25805         * tests/unictype/test-categ_test_withtable.c: Likewise.
25806         * tests/unictype/test-combining.c: Likewise.
25807         * tests/unictype/test-decdigit.c: Likewise.
25808         * tests/unictype/test-digit.c: Likewise.
25809         * tests/unictype/test-mirror.c: Likewise.
25810         * tests/unictype/test-numeric.c: Likewise.
25811         * tests/unictype/test-pr_byname.c: Likewise.
25812         * tests/unictype/test-pr_test.c: Likewise.
25813         * tests/unictype/test-predicate-part1.h: Likewise.
25814         * tests/unictype/test-scripts.c: Likewise.
25815         * tests/unictype/test-sy_c_ident.c: Likewise.
25816         * tests/unictype/test-sy_java_ident.c: Likewise.
25817         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25818         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25819         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25820         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25821         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25822         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25823         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25824         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25825         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25826         * tests/uninorm/test-compat-decomposition.c: Likewise.
25827         * tests/uninorm/test-composition.c: Likewise.
25828         * tests/uninorm/test-decomposing-form.c: Likewise.
25829         * tests/uninorm/test-decomposition.c: Likewise.
25830         * tests/uninorm/test-u8-nfc.c: Likewise.
25831         * tests/uninorm/test-u8-nfd.c: Likewise.
25832         * tests/uninorm/test-u8-nfkc.c: Likewise.
25833         * tests/uninorm/test-u8-nfkd.c: Likewise.
25834         * tests/uninorm/test-u8-normcmp.c: Likewise.
25835         * tests/uninorm/test-u8-normcoll.c: Likewise.
25836         * tests/uninorm/test-u16-nfc.c: Likewise.
25837         * tests/uninorm/test-u16-nfd.c: Likewise.
25838         * tests/uninorm/test-u16-nfkc.c: Likewise.
25839         * tests/uninorm/test-u16-nfkd.c: Likewise.
25840         * tests/uninorm/test-u16-normcmp.c: Likewise.
25841         * tests/uninorm/test-u16-normcoll.c: Likewise.
25842         * tests/uninorm/test-u32-nfc.c: Likewise.
25843         * tests/uninorm/test-u32-nfd.c: Likewise.
25844         * tests/uninorm/test-u32-nfkc.c: Likewise.
25845         * tests/uninorm/test-u32-nfkd.c: Likewise.
25846         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25847         * tests/uninorm/test-u32-normcmp.c: Likewise.
25848         * tests/uninorm/test-u32-normcoll.c: Likewise.
25849         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25850         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25851         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25852         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25853         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25854         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25855         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25856         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25857         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25858         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25859         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25860         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25861         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25862         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25863         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25864         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25865         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25866         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25867         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25868         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25869         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25870         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25871         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25872         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25873         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25874         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25875         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25876         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25877         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25878         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25879         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25880         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25881         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25882         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25883         * tests/uniwidth/test-u8-width.c: Likewise.
25884         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25885         * tests/uniwidth/test-u16-width.c: Likewise.
25886         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25887         * tests/uniwidth/test-u32-width.c: Likewise.
25888         * tests/uniwidth/test-uc_width.c: Likewise.
25889         * tests/uniwidth/test-uc_width2.c: Likewise.
25890         * modules/acl-tests (Files): Add tests/macros.h.
25891         * modules/areadlink-tests (Files): Likewise.
25892         * modules/areadlink-with-size-tests (Files): Likewise.
25893         * modules/areadlinkat-tests (Files): Likewise.
25894         * modules/areadlinkat-with-size-tests (Files): Likewise.
25895         * modules/argmatch-tests (Files): Likewise.
25896         * modules/argv-iter-tests (Files): Likewise.
25897         * modules/array-list-tests (Files): Likewise.
25898         * modules/array-mergesort-tests (Files): Likewise.
25899         * modules/array-oset-tests (Files): Likewise.
25900         * modules/avltree-list-tests (Files): Likewise.
25901         * modules/avltree-oset-tests (Files): Likewise.
25902         * modules/avltreehash-list-tests (Files): Likewise.
25903         * modules/base64-tests (Files): Likewise.
25904         * modules/binary-io-tests (Files): Likewise.
25905         * modules/bitrotate-tests (Files): Likewise.
25906         * modules/btowc-tests (Files): Likewise.
25907         * modules/byteswap-tests (Files): Likewise.
25908         * modules/c-ctype-tests (Files): Likewise.
25909         * modules/c-stack-tests (Files): Likewise.
25910         * modules/c-strcase-tests (Files): Likewise.
25911         * modules/c-strcasestr-tests (Files): Likewise.
25912         * modules/c-strstr-tests (Files): Likewise.
25913         * modules/canonicalize-lgpl-tests (Files): Likewise.
25914         * modules/canonicalize-tests (Files): Likewise.
25915         * modules/carray-list-tests (Files): Likewise.
25916         * modules/ceilf-tests (Files): Likewise.
25917         * modules/ceill-tests (Files): Likewise.
25918         * modules/chown-tests (Files): Likewise.
25919         * modules/cloexec-tests (Files): Likewise.
25920         * modules/copy-file-tests (Files): Likewise.
25921         * modules/count-one-bits-tests (Files): Likewise.
25922         * modules/dprintf-posix-tests (Files): Likewise.
25923         * modules/dup2-tests (Files): Likewise.
25924         * modules/dup3-tests (Files): Likewise.
25925         * modules/duplocale-tests (Files): Likewise.
25926         * modules/fbufmode-tests (Files): Likewise.
25927         * modules/fchdir-tests (Files): Likewise.
25928         * modules/fcntl-safer-tests (Files): Likewise.
25929         * modules/fcntl-tests (Files): Likewise.
25930         * modules/fdopendir-tests (Files): Likewise.
25931         * modules/fdutimensat-tests (Files): Likewise.
25932         * modules/fflush-tests (Files): Likewise.
25933         * modules/filevercmp-tests (Files): Likewise.
25934         * modules/flock-tests (Files): Likewise.
25935         * modules/floorf-tests (Files): Likewise.
25936         * modules/floorl-tests (Files): Likewise.
25937         * modules/fnmatch-tests (Files): Likewise.
25938         * modules/fopen-safer-tests (Files): Likewise.
25939         * modules/fopen-tests (Files): Likewise.
25940         * modules/fpending-tests (Files): Likewise.
25941         * modules/fprintf-posix-tests (Files): Likewise.
25942         * modules/fpurge-tests (Files): Likewise.
25943         * modules/freadable-tests (Files): Likewise.
25944         * modules/freadahead-tests (Files): Likewise.
25945         * modules/freading-tests (Files): Likewise.
25946         * modules/freadptr-tests (Files): Likewise.
25947         * modules/freadseek-tests (Files): Likewise.
25948         * modules/freopen-tests (Files): Likewise.
25949         * modules/frexp-nolibm-tests (Files): Likewise.
25950         * modules/frexp-tests (Files): Likewise.
25951         * modules/frexpl-nolibm-tests (Files): Likewise.
25952         * modules/frexpl-tests (Files): Likewise.
25953         * modules/fseek-tests (Files): Likewise.
25954         * modules/fseeko-tests (Files): Likewise.
25955         * modules/fstrcmp-tests (Files): Likewise.
25956         * modules/fsync-tests (Files): Likewise.
25957         * modules/ftell-tests (Files): Likewise.
25958         * modules/ftello-tests (Files): Likewise.
25959         * modules/func-tests (Files): Likewise.
25960         * modules/futimens-tests (Files): Likewise.
25961         * modules/fwritable-tests (Files): Likewise.
25962         * modules/fwriting-tests (Files): Likewise.
25963         * modules/getcwd-tests (Files): Likewise.
25964         * modules/getdate-tests (Files): Likewise.
25965         * modules/getdelim-tests (Files): Likewise.
25966         * modules/getdtablesize-tests (Files): Likewise.
25967         * modules/getgroups-tests (Files): Likewise.
25968         * modules/getline-tests (Files): Likewise.
25969         * modules/getndelim2-tests (Files): Likewise.
25970         * modules/glob-tests (Files): Likewise.
25971         * modules/hash-tests (Files): Likewise.
25972         * modules/i-ring-tests (Files): Likewise.
25973         * modules/iconv-tests (Files): Likewise.
25974         * modules/iconv_open-utf-tests (Files): Likewise.
25975         * modules/idpriv-drop-tests (Files): Likewise.
25976         * modules/idpriv-droptemp-tests (Files): Likewise.
25977         * modules/inet_ntop-tests (Files): Likewise.
25978         * modules/inet_pton-tests (Files): Likewise.
25979         * modules/isblank-tests (Files): Likewise.
25980         * modules/isfinite-tests (Files): Likewise.
25981         * modules/isinf-tests (Files): Likewise.
25982         * modules/isnan-tests (Files): Likewise.
25983         * modules/isnand-nolibm-tests (Files): Likewise.
25984         * modules/isnand-tests (Files): Likewise.
25985         * modules/isnanf-nolibm-tests (Files): Likewise.
25986         * modules/isnanf-tests (Files): Likewise.
25987         * modules/isnanl-nolibm-tests (Files): Likewise.
25988         * modules/isnanl-tests (Files): Likewise.
25989         * modules/lchown-tests (Files): Likewise.
25990         * modules/ldexpl-tests (Files): Likewise.
25991         * modules/link-tests (Files): Likewise.
25992         * modules/linkat-tests (Files): Likewise.
25993         * modules/linked-list-tests (Files): Likewise.
25994         * modules/linkedhash-list-tests (Files): Likewise.
25995         * modules/localename-tests (Files): Likewise.
25996         * modules/lseek-tests (Files): Likewise.
25997         * modules/lstat-tests (Files): Likewise.
25998         * modules/mbmemcasecmp-tests (Files): Likewise.
25999         * modules/mbmemcasecoll-tests (Files): Likewise.
26000         * modules/mbrtowc-tests (Files): Likewise.
26001         * modules/mbscasecmp-tests (Files): Likewise.
26002         * modules/mbscasestr-tests (Files): Likewise.
26003         * modules/mbschr-tests (Files): Likewise.
26004         * modules/mbscspn-tests (Files): Likewise.
26005         * modules/mbsinit-tests (Files): Likewise.
26006         * modules/mbsncasecmp-tests (Files): Likewise.
26007         * modules/mbsnrtowcs-tests (Files): Likewise.
26008         * modules/mbspbrk-tests (Files): Likewise.
26009         * modules/mbspcasecmp-tests (Files): Likewise.
26010         * modules/mbsrchr-tests (Files): Likewise.
26011         * modules/mbsrtowcs-tests (Files): Likewise.
26012         * modules/mbsspn-tests (Files): Likewise.
26013         * modules/mbsstr-tests (Files): Likewise.
26014         * modules/memchr-tests (Files): Likewise.
26015         * modules/memchr2-tests (Files): Likewise.
26016         * modules/memcmp-tests (Files): Likewise.
26017         * modules/memmem-tests (Files): Likewise.
26018         * modules/memrchr-tests (Files): Likewise.
26019         * modules/mkdir-tests (Files): Likewise.
26020         * modules/mkfifo-tests (Files): Likewise.
26021         * modules/mkfifoat-tests (Files): Likewise.
26022         * modules/mknod-tests (Files): Likewise.
26023         * modules/nanosleep-tests (Files): Likewise.
26024         * modules/nl_langinfo-tests (Files): Likewise.
26025         * modules/obstack-printf-tests (Files): Likewise.
26026         * modules/open-tests (Files): Likewise.
26027         * modules/openat-tests (Files): Likewise.
26028         * modules/pipe-filter-gi-tests (Files): Likewise.
26029         * modules/pipe-filter-ii-tests (Files): Likewise.
26030         * modules/pipe2-tests (Files): Likewise.
26031         * modules/popen-safer-tests (Files): Likewise.
26032         * modules/popen-tests (Files): Likewise.
26033         * modules/posixtm-tests (Files): Likewise.
26034         * modules/pread-tests (Files): Likewise.
26035         * modules/printf-frexp-tests (Files): Likewise.
26036         * modules/printf-frexpl-tests (Files): Likewise.
26037         * modules/printf-posix-tests (Files): Likewise.
26038         * modules/priv-set-tests (Files): Likewise.
26039         * modules/quotearg-tests (Files): Likewise.
26040         * modules/random_r-tests (Files): Likewise.
26041         * modules/rawmemchr-tests (Files): Likewise.
26042         * modules/rbtree-list-tests (Files): Likewise.
26043         * modules/rbtree-oset-tests (Files): Likewise.
26044         * modules/rbtreehash-list-tests (Files): Likewise.
26045         * modules/readlink-tests (Files): Likewise.
26046         * modules/remove-tests (Files): Likewise.
26047         * modules/rename-tests (Files): Likewise.
26048         * modules/renameat-tests (Files): Likewise.
26049         * modules/rmdir-tests (Files): Likewise.
26050         * modules/round-tests (Files): Likewise.
26051         * modules/roundf-tests (Files): Likewise.
26052         * modules/roundl-tests (Files): Likewise.
26053         * modules/safe-alloc-tests (Files): Likewise.
26054         * modules/setenv-tests (Files): Likewise.
26055         * modules/sigaction-tests (Files): Likewise.
26056         * modules/signbit-tests (Files): Likewise.
26057         * modules/sleep-tests (Files): Likewise.
26058         * modules/snprintf-posix-tests (Files): Likewise.
26059         * modules/snprintf-tests (Files): Likewise.
26060         * modules/sprintf-posix-tests (Files): Likewise.
26061         * modules/stat-tests (Files): Likewise.
26062         * modules/stat-time-tests (Files): Likewise.
26063         * modules/strcasestr-tests (Files): Likewise.
26064         * modules/strchrnul-tests (Files): Likewise.
26065         * modules/strerror-tests (Files): Likewise.
26066         * modules/striconv-tests (Files): Likewise.
26067         * modules/striconveh-tests (Files): Likewise.
26068         * modules/striconveha-tests (Files): Likewise.
26069         * modules/strsignal-tests (Files): Likewise.
26070         * modules/strstr-tests (Files): Likewise.
26071         * modules/strtod-tests (Files): Likewise.
26072         * modules/strverscmp-tests (Files): Likewise.
26073         * modules/symlink-tests (Files): Likewise.
26074         * modules/symlinkat-tests (Files): Likewise.
26075         * modules/trunc-tests (Files): Likewise.
26076         * modules/truncf-tests (Files): Likewise.
26077         * modules/truncl-tests (Files): Likewise.
26078         * modules/uname-tests (Files): Likewise.
26079         * modules/unicase/cased-tests (Files): Likewise.
26080         * modules/unicase/ignorable-tests (Files): Likewise.
26081         * modules/unicase/locale-language-tests (Files): Likewise.
26082         * modules/unicase/tolower-tests (Files): Likewise.
26083         * modules/unicase/totitle-tests (Files): Likewise.
26084         * modules/unicase/toupper-tests (Files): Likewise.
26085         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26086         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26087         * modules/unicase/u8-casefold-tests (Files): Likewise.
26088         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26089         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26090         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26091         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26092         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26093         * modules/unicase/u8-tolower-tests (Files): Likewise.
26094         * modules/unicase/u8-totitle-tests (Files): Likewise.
26095         * modules/unicase/u8-toupper-tests (Files): Likewise.
26096         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26097         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26098         * modules/unicase/u16-casefold-tests (Files): Likewise.
26099         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26100         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26101         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26102         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26103         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26104         * modules/unicase/u16-tolower-tests (Files): Likewise.
26105         * modules/unicase/u16-totitle-tests (Files): Likewise.
26106         * modules/unicase/u16-toupper-tests (Files): Likewise.
26107         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26108         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26109         * modules/unicase/u32-casefold-tests (Files): Likewise.
26110         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26111         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26112         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26113         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26114         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26115         * modules/unicase/u32-tolower-tests (Files): Likewise.
26116         * modules/unicase/u32-totitle-tests (Files): Likewise.
26117         * modules/unicase/u32-toupper-tests (Files): Likewise.
26118         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26119         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26120         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26121         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26122         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26123         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26124         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26125         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26126         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26127         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26128         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26129         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26130         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26131         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26132         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26133         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26134         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26135         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26136         * modules/unictype/block-list-tests (Files): Likewise.
26137         * modules/unictype/block-of-tests (Files): Likewise.
26138         * modules/unictype/block-test-tests (Files): Likewise.
26139         * modules/unictype/category-C-tests (Files): Likewise.
26140         * modules/unictype/category-Cc-tests (Files): Likewise.
26141         * modules/unictype/category-Cf-tests (Files): Likewise.
26142         * modules/unictype/category-Cn-tests (Files): Likewise.
26143         * modules/unictype/category-Co-tests (Files): Likewise.
26144         * modules/unictype/category-Cs-tests (Files): Likewise.
26145         * modules/unictype/category-L-tests (Files): Likewise.
26146         * modules/unictype/category-Ll-tests (Files): Likewise.
26147         * modules/unictype/category-Lm-tests (Files): Likewise.
26148         * modules/unictype/category-Lo-tests (Files): Likewise.
26149         * modules/unictype/category-Lt-tests (Files): Likewise.
26150         * modules/unictype/category-Lu-tests (Files): Likewise.
26151         * modules/unictype/category-M-tests (Files): Likewise.
26152         * modules/unictype/category-Mc-tests (Files): Likewise.
26153         * modules/unictype/category-Me-tests (Files): Likewise.
26154         * modules/unictype/category-Mn-tests (Files): Likewise.
26155         * modules/unictype/category-N-tests (Files): Likewise.
26156         * modules/unictype/category-Nd-tests (Files): Likewise.
26157         * modules/unictype/category-Nl-tests (Files): Likewise.
26158         * modules/unictype/category-No-tests (Files): Likewise.
26159         * modules/unictype/category-P-tests (Files): Likewise.
26160         * modules/unictype/category-Pc-tests (Files): Likewise.
26161         * modules/unictype/category-Pd-tests (Files): Likewise.
26162         * modules/unictype/category-Pe-tests (Files): Likewise.
26163         * modules/unictype/category-Pf-tests (Files): Likewise.
26164         * modules/unictype/category-Pi-tests (Files): Likewise.
26165         * modules/unictype/category-Po-tests (Files): Likewise.
26166         * modules/unictype/category-Ps-tests (Files): Likewise.
26167         * modules/unictype/category-S-tests (Files): Likewise.
26168         * modules/unictype/category-Sc-tests (Files): Likewise.
26169         * modules/unictype/category-Sk-tests (Files): Likewise.
26170         * modules/unictype/category-Sm-tests (Files): Likewise.
26171         * modules/unictype/category-So-tests (Files): Likewise.
26172         * modules/unictype/category-Z-tests (Files): Likewise.
26173         * modules/unictype/category-Zl-tests (Files): Likewise.
26174         * modules/unictype/category-Zp-tests (Files): Likewise.
26175         * modules/unictype/category-Zs-tests (Files): Likewise.
26176         * modules/unictype/category-and-not-tests (Files): Likewise.
26177         * modules/unictype/category-and-tests (Files): Likewise.
26178         * modules/unictype/category-byname-tests (Files): Likewise.
26179         * modules/unictype/category-name-tests (Files): Likewise.
26180         * modules/unictype/category-none-tests (Files): Likewise.
26181         * modules/unictype/category-of-tests (Files): Likewise.
26182         * modules/unictype/category-or-tests (Files): Likewise.
26183         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26184         * modules/unictype/combining-class-tests (Files): Likewise.
26185         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26186         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26187         * modules/unictype/ctype-blank-tests (Files): Likewise.
26188         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26189         * modules/unictype/ctype-digit-tests (Files): Likewise.
26190         * modules/unictype/ctype-graph-tests (Files): Likewise.
26191         * modules/unictype/ctype-lower-tests (Files): Likewise.
26192         * modules/unictype/ctype-print-tests (Files): Likewise.
26193         * modules/unictype/ctype-punct-tests (Files): Likewise.
26194         * modules/unictype/ctype-space-tests (Files): Likewise.
26195         * modules/unictype/ctype-upper-tests (Files): Likewise.
26196         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26197         * modules/unictype/decimal-digit-tests (Files): Likewise.
26198         * modules/unictype/digit-tests (Files): Likewise.
26199         * modules/unictype/mirror-tests (Files): Likewise.
26200         * modules/unictype/numeric-tests (Files): Likewise.
26201         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26202         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26203         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26204         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26205         Likewise.
26206         * modules/unictype/property-bidi-block-separator-tests (Files):
26207         Likewise.
26208         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26209         Likewise.
26210         * modules/unictype/property-bidi-common-separator-tests (Files):
26211         Likewise.
26212         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26213         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26214         Likewise.
26215         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26216         Likewise.
26217         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26218         Likewise.
26219         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26220         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26221         Likewise.
26222         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26223         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26224         Likewise.
26225         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26226         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26227         * modules/unictype/property-bidi-segment-separator-tests (Files):
26228         Likewise.
26229         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26230         * modules/unictype/property-byname-tests (Files): Likewise.
26231         * modules/unictype/property-combining-tests (Files): Likewise.
26232         * modules/unictype/property-composite-tests (Files): Likewise.
26233         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26234         * modules/unictype/property-dash-tests (Files): Likewise.
26235         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26236         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26237         Likewise.
26238         * modules/unictype/property-deprecated-tests (Files): Likewise.
26239         * modules/unictype/property-diacritic-tests (Files): Likewise.
26240         * modules/unictype/property-extender-tests (Files): Likewise.
26241         * modules/unictype/property-format-control-tests (Files): Likewise.
26242         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26243         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26244         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26245         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26246         * modules/unictype/property-hyphen-tests (Files): Likewise.
26247         * modules/unictype/property-id-continue-tests (Files): Likewise.
26248         * modules/unictype/property-id-start-tests (Files): Likewise.
26249         * modules/unictype/property-ideographic-tests (Files): Likewise.
26250         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26251         * modules/unictype/property-ids-trinary-operator-tests (Files):
26252         Likewise.
26253         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26254         * modules/unictype/property-iso-control-tests (Files): Likewise.
26255         * modules/unictype/property-join-control-tests (Files): Likewise.
26256         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26257         * modules/unictype/property-line-separator-tests (Files): Likewise.
26258         * modules/unictype/property-logical-order-exception-tests (Files):
26259         Likewise.
26260         * modules/unictype/property-lowercase-tests (Files): Likewise.
26261         * modules/unictype/property-math-tests (Files): Likewise.
26262         * modules/unictype/property-non-break-tests (Files): Likewise.
26263         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26264         * modules/unictype/property-numeric-tests (Files): Likewise.
26265         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26266         * modules/unictype/property-other-default-ignorable-code-point-tests
26267         (Files): Likewise.
26268         * modules/unictype/property-other-grapheme-extend-tests (Files):
26269         Likewise.
26270         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26271         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26272         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26273         * modules/unictype/property-other-math-tests (Files): Likewise.
26274         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26275         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26276         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26277         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26278         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26279         * modules/unictype/property-private-use-tests (Files): Likewise.
26280         * modules/unictype/property-punctuation-tests (Files): Likewise.
26281         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26282         * modules/unictype/property-radical-tests (Files): Likewise.
26283         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26284         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26285         * modules/unictype/property-space-tests (Files): Likewise.
26286         * modules/unictype/property-terminal-punctuation-tests (Files):
26287         Likewise.
26288         * modules/unictype/property-test-tests (Files): Likewise.
26289         * modules/unictype/property-titlecase-tests (Files): Likewise.
26290         * modules/unictype/property-unassigned-code-value-tests (Files):
26291         Likewise.
26292         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26293         * modules/unictype/property-uppercase-tests (Files): Likewise.
26294         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26295         * modules/unictype/property-white-space-tests (Files): Likewise.
26296         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26297         * modules/unictype/property-xid-start-tests (Files): Likewise.
26298         * modules/unictype/property-zero-width-tests (Files): Likewise.
26299         * modules/unictype/scripts-tests (Files): Likewise.
26300         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26301         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26302         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26303         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26304         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26305         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26306         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26307         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26308         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26309         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26310         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26311         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26312         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26313         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26314         * modules/uninorm/composition-tests (Files): Likewise.
26315         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26316         * modules/uninorm/decomposition-tests (Files): Likewise.
26317         * modules/uninorm/filter-tests (Files): Likewise.
26318         * modules/uninorm/nfc-tests (Files): Likewise.
26319         * modules/uninorm/nfd-tests (Files): Likewise.
26320         * modules/uninorm/nfkc-tests (Files): Likewise.
26321         * modules/uninorm/nfkd-tests (Files): Likewise.
26322         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26323         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26324         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26325         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26326         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26327         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26328         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26329         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26330         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26331         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26332         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26333         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26334         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26335         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26336         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26337         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26338         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26339         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26340         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26341         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26342         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26343         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26344         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26345         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26346         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26347         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26348         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26349         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26350         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26351         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26352         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26353         * modules/uniwidth/u8-width-tests (Files): Likewise.
26354         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26355         * modules/uniwidth/u16-width-tests (Files): Likewise.
26356         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26357         * modules/uniwidth/u32-width-tests (Files): Likewise.
26358         * modules/uniwidth/width-tests (Files): Likewise.
26359         * modules/unlink-tests (Files): Likewise.
26360         * modules/unsetenv-tests (Files): Likewise.
26361         * modules/usleep-tests (Files): Likewise.
26362         * modules/utimens-tests (Files): Likewise.
26363         * modules/utimensat-tests (Files): Likewise.
26364         * modules/vasnprintf-posix-tests (Files): Likewise.
26365         * modules/vasnprintf-tests (Files): Likewise.
26366         * modules/vasprintf-posix-tests (Files): Likewise.
26367         * modules/vasprintf-tests (Files): Likewise.
26368         * modules/vdprintf-posix-tests (Files): Likewise.
26369         * modules/vfprintf-posix-tests (Files): Likewise.
26370         * modules/vprintf-posix-tests (Files): Likewise.
26371         * modules/vsnprintf-posix-tests (Files): Likewise.
26372         * modules/vsnprintf-tests (Files): Likewise.
26373         * modules/vsprintf-posix-tests (Files): Likewise.
26374         * modules/wcrtomb-tests (Files): Likewise.
26375         * modules/wcsnrtombs-tests (Files): Likewise.
26376         * modules/wcsrtombs-tests (Files): Likewise.
26377         * modules/wctype-tests (Files): Likewise.
26378         * modules/wcwidth-tests (Files): Likewise.
26379         * modules/xmemdup0-tests (Files): Likewise.
26380         * modules/xprintf-posix-tests (Files): Likewise.
26381         * modules/xvasprintf-tests (Files): Likewise.
26382
26383 2009-12-24  Eric Blake  <ebb9@byu.net>
26384
26385         test-nanosleep: fix typo
26386         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26387         patch.
26388         Reported by Bruno Haible.
26389
26390 2009-12-24  Bruno Haible  <bruno@clisp.org>
26391
26392         Reduce namespace pollution on glibc systems.
26393         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26394         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26395         systems.
26396         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26397         <getopt.h> on glibc systems.
26398         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26399         systems.
26400         * lib/fcntl.c: Include <unistd.h> here instead.
26401
26402 2009-12-24  Bruno Haible  <bruno@clisp.org>
26403
26404         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26405
26406 2009-12-24  Eric Blake  <ebb9@byu.net>
26407
26408         tests: add signature checks
26409         * tests/signature.h (SIGNATURE_CHECK): New file.
26410         * modules/atexit-tests (Files): Use it.
26411         * modules/btowc-tests (Files): Likewise.
26412         * modules/canonicalize-lgpl-tests (Files): Likewise.
26413         * modules/ceilf-tests (Files): Likewise.
26414         * modules/ceill-tests (Files): Likewise.
26415         * modules/chown-tests (Files): Likewise.
26416         * modules/dprintf-posix-tests (Files): Likewise.
26417         * modules/dup2-tests (Files): Likewise.
26418         * modules/dup3-tests (Files): Likewise.
26419         * modules/duplocale-tests (Files): Likewise.
26420         * modules/fchdir-tests (Files): Likewise.
26421         * modules/fcntl-tests (Files): Likewise.
26422         * modules/fdopendir-tests (Files): Likewise.
26423         * modules/fflush-tests (Files): Likewise.
26424         * modules/flock-tests (Files): Likewise.
26425         * modules/floorf-tests (Files): Likewise.
26426         * modules/floorl-tests (Files): Likewise.
26427         * modules/fnmatch-tests (Files): Likewise.
26428         * modules/fopen-tests (Files): Likewise.
26429         * modules/fprintf-posix-tests (Files): Likewise.
26430         * modules/freopen-tests (Files): Likewise.
26431         * modules/frexp-nolibm-tests (Files): Likewise.
26432         * modules/frexp-tests (Files): Likewise.
26433         * modules/frexpl-nolibm-tests (Files): Likewise.
26434         * modules/frexpl-tests (Files): Likewise.
26435         * modules/fseek-tests (Files): Likewise.
26436         * modules/fseeko-tests (Files): Likewise.
26437         * modules/fsync-tests (Files): Likewise.
26438         * modules/ftell-tests (Files): Likewise.
26439         * modules/ftello-tests (Files): Likewise.
26440         * modules/futimens-tests (Files): Likewise.
26441         * modules/getaddrinfo-tests (Files): Likewise.
26442         * modules/getcwd-tests (Files): Likewise.
26443         * modules/getdelim-tests (Files): Likewise.
26444         * modules/getdtablesize-tests (Files): Likewise.
26445         * modules/getgroups-tests (Files): Likewise.
26446         * modules/gethostname-tests (Files): Likewise.
26447         * modules/getline-tests (Files): Likewise.
26448         * modules/getopt-posix-tests (Files): Likewise.
26449         * modules/gettimeofday-tests (Files): Likewise.
26450         * modules/glob-tests (Files): Likewise.
26451         * modules/iconv-tests (Files): Likewise.
26452         * modules/inet_ntop-tests (Files): Likewise.
26453         * modules/inet_pton-tests (Files): Likewise.
26454         * modules/isblank-tests (Files): Likewise.
26455         * modules/lchown-tests (Files): Likewise.
26456         * modules/ldexpl-tests (Files): Likewise.
26457         * modules/link-tests (Files): Likewise.
26458         * modules/linkat-tests (Files): Likewise.
26459         * modules/lseek-tests (Files): Likewise.
26460         * modules/lstat-tests (Files): Likewise.
26461         * modules/mbrtowc-tests (Files): Likewise.
26462         * modules/mbsinit-tests (Files): Likewise.
26463         * modules/mbsnrtowcs-tests (Files): Likewise.
26464         * modules/mbsrtowcs-tests (Files): Likewise.
26465         * modules/memchr-tests (Files): Likewise.
26466         * modules/memcmp-tests (Files): Likewise.
26467         * modules/memmem-tests (Files): Likewise.
26468         * modules/memrchr-tests (Files): Likewise.
26469         * modules/mkdir-tests (Files): Likewise.
26470         * modules/mkfifo-tests (Files): Likewise.
26471         * modules/mkfifoat-tests (Files): Likewise.
26472         * modules/mknod-tests (Files): Likewise.
26473         * modules/nanosleep-tests (Files): Likewise.
26474         * modules/nl_langinfo-tests (Files): Likewise.
26475         * modules/obstack-printf-tests (Files): Likewise.
26476         * modules/open-tests (Files): Likewise.
26477         * modules/openat-tests (Files): Likewise.
26478         * modules/perror-tests (Files): Likewise.
26479         * modules/pipe2-tests (Files): Likewise.
26480         * modules/poll-tests (Files): Likewise.
26481         * modules/popen-tests (Files): Likewise.
26482         * modules/posix_spawn-tests (Files): Likewise.
26483         * modules/posix_spawnp-tests (Files): Likewise.
26484         * modules/pread-tests (Files): Likewise.
26485         * modules/printf-posix-tests (Files): Likewise.
26486         * modules/pty-tests (Files): Likewise.
26487         * modules/random_r-tests (Files): Likewise.
26488         * modules/rawmemchr-tests (Files): Likewise.
26489         * modules/readlink-tests (Files): Likewise.
26490         * modules/remove-tests (Files): Likewise.
26491         * modules/rename-tests (Files): Likewise.
26492         * modules/renameat-tests (Files): Likewise.
26493         * modules/rmdir-tests (Files): Likewise.
26494         * modules/round-tests (Files): Likewise.
26495         * modules/roundf-tests (Files): Likewise.
26496         * modules/roundl-tests (Files): Likewise.
26497         * modules/select-tests (Files): Likewise.
26498         * modules/setenv-tests (Files): Likewise.
26499         * modules/sigaction-tests (Files): Likewise.
26500         * modules/sleep-tests (Files): Likewise.
26501         * modules/snprintf-posix-tests (Files): Likewise.
26502         * modules/snprintf-tests (Files): Likewise.
26503         * modules/sprintf-posix-tests (Files): Likewise.
26504         * modules/stat-tests (Files): Likewise.
26505         * modules/strcasestr-tests (Files): Likewise.
26506         * modules/strchrnul-tests (Files): Likewise.
26507         * modules/strerror-tests (Files): Likewise.
26508         * modules/strsignal-tests (Files): Likewise.
26509         * modules/strstr-tests (Files): Likewise.
26510         * modules/strtod-tests (Files): Likewise.
26511         * modules/strverscmp-tests (Files): Likewise.
26512         * modules/symlink-tests (Files): Likewise.
26513         * modules/symlinkat-tests (Files): Likewise.
26514         * modules/times-tests (Files): Likewise.
26515         * modules/trunc-tests (Files): Likewise.
26516         * modules/truncf-tests (Files): Likewise.
26517         * modules/truncl-tests (Files): Likewise.
26518         * modules/tsearch-tests (Files): Likewise.
26519         * modules/uname-tests (Files): Likewise.
26520         * modules/unlink-tests (Files): Likewise.
26521         * modules/unsetenv-tests (Files): Likewise.
26522         * modules/usleep-tests (Files): Likewise.
26523         * modules/utimensat-tests (Files): Likewise.
26524         * modules/vasprintf-tests (Files): Likewise.
26525         * modules/vdprintf-posix-tests (Files): Likewise.
26526         * modules/vfprintf-posix-tests (Files): Likewise.
26527         * modules/vprintf-posix-tests (Files): Likewise.
26528         * modules/vsnprintf-posix-tests (Files): Likewise.
26529         * modules/vsnprintf-tests (Files): Likewise.
26530         * modules/vsprintf-posix-tests (Files): Likewise.
26531         * modules/wcrtomb-tests (Files): Likewise.
26532         * modules/wcsnrtombs-tests (Files): Likewise.
26533         * modules/wcsrtombs-tests (Files): Likewise.
26534         * modules/wcwidth-tests (Files): Likewise.
26535         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26536         * tests/test-isinf.c (isinf): Likewise.
26537         * tests/test-isnan.c (isnan): Likewise.
26538         * tests/test-signbit.c (signbit): Likewise.
26539         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26540         declaration, either as macro or with correct signature.
26541         (select): Ensure function under test is declared with correct
26542         signature in correct header.
26543         * tests/test-atexit.c (atexit): Likewise.
26544         * tests/test-btowc.c (btowc): Likewise.
26545         * tests/test-canonicalize-lgpl.c (realpath)
26546         (canonicalize_file_name): Likewise.
26547         * tests/test-ceilf1.c (ceilf): Likewise.
26548         * tests/test-ceill.c (ceill): Likewise.
26549         * tests/test-chown.c (chown): Likewise.
26550         * tests/test-dprintf-posix.c (dprintf): Likewise.
26551         * tests/test-dup2.c (dup2): Likewise.
26552         * tests/test-dup3.c (dup3): Likewise.
26553         * tests/test-duplocale.c (duplocale): Likewise.
26554         * tests/test-fchdir.c (fchdir): Likewise.
26555         * tests/test-fchownat.c (fchownat): Likewise.
26556         * tests/test-fcntl.c (fcntl): Likewise.
26557         * tests/test-fdopendir.c (fdopendir): Likewise.
26558         * tests/test-fflush.c (fflush): Likewise.
26559         * tests/test-flock.c (flock): Likewise.
26560         * tests/test-floorf1.c (floorf): Likewise.
26561         * tests/test-floorl.c (floorl): Likewise.
26562         * tests/test-fnmatch.c (fnmatch): Likewise.
26563         * tests/test-fopen.c (fopen): Likewise.
26564         * tests/test-fprintf-posix.c (fprintf): Likewise.
26565         * tests/test-freopen.c (freopen): Likewise.
26566         * tests/test-frexp.c (frexp): Likewise.
26567         * tests/test-frexpl.c (frexpl): Likewise.
26568         * tests/test-fseek.c (fseek): Likewise.
26569         * tests/test-fseeko.c (fseeko): Likewise.
26570         * tests/test-fstatat.c (fstatat): Likewise.
26571         * tests/test-fsync.c (fsync): Likewise.
26572         * tests/test-ftell.c (ftell): Likewise.
26573         * tests/test-ftello.c (ftello): Likewise.
26574         * tests/test-futimens.c (futimens): Likewise.
26575         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26576         (gai_strerror): Likewise.
26577         * tests/test-getcwd.c (getcwd): Likewise.
26578         * tests/test-getdelim.c (getdelim): Likewise.
26579         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26580         * tests/test-getgroups.c (getgroups): Likewise.
26581         * tests/test-gethostname.c (gethostname): Likewise.
26582         * tests/test-getline.c (getline): Likewise.
26583         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26584         Likewise.
26585         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26586         * tests/test-glob.c (glob, globfree): Likewise.
26587         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26588         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26589         * tests/test-inet_pton.c (inet_pton): Likewise.
26590         * tests/test-isblank.c (isblank): Likewise.
26591         * tests/test-lchown.c (lchown): Likewise.
26592         * tests/test-ldexpl.c (ldexpl): Likewise.
26593         * tests/test-link.c (link): Likewise.
26594         * tests/test-linkat.c (linkat): Likewise.
26595         * tests/test-lseek.c (lseek): Likewise.
26596         * tests/test-lstat.c (lstat): Likewise.
26597         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26598         * tests/test-mbsinit.c (mbsinit): Likewise.
26599         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26600         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26601         * tests/test-memchr.c (memchr): Likewise.
26602         * tests/test-memcmp.c (memcmp): Likewise.
26603         * tests/test-memmem.c (memmem): Likewise.
26604         * tests/test-memrchr.c (memrchr): Likewise.
26605         * tests/test-mkdir.c (mkdir): Likewise.
26606         * tests/test-mkdirat.c (mkdirat): Likewise.
26607         * tests/test-mkfifo.c (mkfifo): Likewise.
26608         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26609         * tests/test-mknod.c (mknod): Likewise.
26610         * tests/test-nanosleep.c (nanosleep): Likewise.
26611         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26612         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26613         Likewise.
26614         * tests/test-open.c (open): Likewise.
26615         * tests/test-openat.c (openat): Likewise.
26616         * tests/test-perror.c (perror): Likewise.
26617         * tests/test-pipe2.c (pipe2): Likewise.
26618         * tests/test-poll.c (poll): Likewise.
26619         * tests/test-popen.c (popen, pclose): Likewise.
26620         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26621         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26622         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26623         (posix_spawn_file_actions_destroy)
26624         (posix_spawn_file_actions_addclose)
26625         (posix_spawn_file_actions_addopen)
26626         (posix_spawn_file_actions_adddup2): Likewise.
26627         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26628         * tests/test-pread.c (pread): Likewise.
26629         * tests/test-printf-posix.c (printf): Likewise.
26630         * tests/test-pty.c (openpty, forkpty): Likewise.
26631         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26632         (random_r): Likewise.
26633         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26634         * tests/test-readlink.c (readlink): Likewise.
26635         * tests/test-remove.c (remove): Likewise.
26636         * tests/test-rename.c (rename): Likewise.
26637         * tests/test-renameat.c (renameat): Likewise.
26638         * tests/test-rmdir.c (rmdir): Likewise.
26639         * tests/test-round1.c (round): Likewise.
26640         * tests/test-roundf1.c (roundf): Likewise.
26641         * tests/test-roundl.c (roundl): Likewise.
26642         * tests/test-setenv.c (setenv): Likewise.
26643         * tests/test-sigaction.c (sigaction): Likewise.
26644         * tests/test-sleep.c (sleep): Likewise.
26645         * tests/test-snprintf.c (snprintf): Likewise.
26646         * tests/test-sprintf-posix.c (sprintf): Likewise.
26647         * tests/test-stat.c (stat): Likewise.
26648         * tests/test-stpncpy.c (stpncpy): Likewise.
26649         * tests/test-strcasestr.c (strcasestr): Likewise.
26650         * tests/test-strchrnul.c (strchrnul): Likewise.
26651         * tests/test-strerror.c (strerror): Likewise.
26652         * tests/test-strsignal.c (strsignal): Likewise.
26653         * tests/test-strstr.c (strstr): Likewise.
26654         * tests/test-strtod.c (strtod): Likewise.
26655         * tests/test-strverscmp.c (strverscmp): Likewise.
26656         * tests/test-symlink.c (symlink): Likewise.
26657         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26658         * tests/test-times.c (times): Likewise.
26659         * tests/test-trunc1.c (trunc): Likewise.
26660         * tests/test-truncf1.c (truncf): Likewise.
26661         * tests/test-truncl.c (truncl): Likewise.
26662         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26663         Likewise.
26664         * tests/test-uname.c (uname): Likewise.
26665         * tests/test-unlink.c (unlink): Likewise.
26666         * tests/test-unlinkat.c (unlinkat): Likewise.
26667         * tests/test-unsetenv.c (unsetenv): Likewise.
26668         * tests/test-usleep.c (usleep): Likewise.
26669         * tests/test-utimensat.c (utimensat): Likewise.
26670         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26671         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26672         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26673         * tests/test-vprintf-posix.c (vprintf): Likewise.
26674         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26675         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26676         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26677         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26678         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26679         * tests/test-wcwidth.c (wcwidth): Likewise.
26680
26681         build: pull in conditional headers during GNULIB_POSIXCHECK
26682         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26683         definitions from any conditionally-included headers.
26684         * lib/stdlib.in.h (includes): Likewise.
26685         * lib/unistd.in.h (includes): Likewise.
26686
26687 2009-12-24  Bruno Haible  <bruno@clisp.org>
26688
26689         * tests/test-argv-iter.c: Include header file being tested immediately
26690         after config.h.
26691         * tests/test-base64.c: Likewise.
26692         * tests/test-flock.c: Likewise.
26693         * tests/test-fsync.c: Likewise.
26694         * tests/test-getdate.c: Likewise.
26695         * tests/test-getndelim2.c: Likewise.
26696         * tests/test-isfinite.c: Likewise.
26697         * tests/test-isinf.c: Likewise.
26698         * tests/test-strerror.c: Likewise.
26699         * tests/test-strsignal.c: Likewise.
26700
26701 2009-12-23  Eric Blake  <ebb9@byu.net>
26702
26703         unistd: work around cygwin bug
26704         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26705         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26706         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26707
26708 2009-12-23  Bruno Haible  <bruno@clisp.org>
26709
26710         localename: More tests.
26711         * tests/test-localename.c (SIZEOF): New macro.
26712         (categories): New variable.
26713         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26714         test_locale_name_default): Add test w.r.t. thread locale.
26715         (test_locale_name_thread): New function.
26716         (main): Invoke it.
26717
26718         localename: Make aware of thread locale.
26719         * lib/localename.h (gl_locale_name_thread): New declaration.
26720         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26721         behaviour with respect to thread locale.
26722         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26723         <langinfo.h>, glthread/lock.h.
26724         (SIZE_BITS): New macro.
26725         (string_hash): New function.
26726         (struct hash_node): New type.
26727         (HASH_TABLE_SIZE): New macro.
26728         (struniq_hash_table, struniq_lock): New variables.
26729         (struniq): New function.
26730         (gl_locale_name_thread): New function.
26731         (gl_locale_name): Invoke it.
26732         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26733         * modules/localename (Depends-on): Add lock.
26734         Reported by Mike Gran <spk121@yahoo.com>.
26735
26736 2009-12-23  Eric Blake  <ebb9@byu.net>
26737
26738         va-args: new module
26739         * modules/va-args: New file.
26740         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26741         * MODULES.html.sh (Core language properties): Mention it.
26742
26743         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26744         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26745         named alias for __attribute__((__unused__)).
26746         * lib/chown.c: Update client.
26747         * lib/fchmodat.c: Likewise.
26748         * lib/fts.c: Likewise.
26749         * lib/getdate.y: Likewise.
26750         * lib/getgroups.c: Likewise.
26751         * lib/getopt.c: Likewise.
26752         * lib/getugroups.c: Likewise.
26753         * lib/mkdir.c: Likewise.
26754         * lib/mkfifo.c: Likewise.
26755         * lib/mkfifoat.c: Likewise.
26756         * lib/mknod.c: Likewise.
26757         * lib/mknodat.c: Likewise.
26758         * lib/readlink.c: Likewise.
26759         * lib/se-context.in.h: Likewise.
26760         * lib/se-selinux.in.h: Likewise.
26761         * lib/sockets.c: Likewise.
26762         * lib/symlink.c: Likewise.
26763         * lib/symlinkat.c: Likewise.
26764         * lib/unicodeio.c: Likewise.
26765         * lib/unistr.h: Likewise.
26766         * tests/test-areadlink.c: Likewise.
26767         * tests/test-areadlinkat.c: Likewise.
26768         * tests/test-filenamecat.c: Likewise.
26769         * tests/test-fseeko.c: Likewise.
26770         * tests/test-ftello.c: Likewise.
26771         * tests/test-getdate.c: Likewise.
26772         * tests/test-getgroups.c: Likewise.
26773         * tests/test-gethostname.c: Likewise.
26774         * tests/test-quotearg.c: Likewise.
26775         * tests/test-version-etc.c: Likewise.
26776         * tests/test-xalloc-die.c: Likewise.
26777         * tests/test-xfprintf-posix.c: Likewise.
26778         * tests/test-xprintf-posix.c: Likewise.
26779         * tests/test-xvasprintf.c: Likewise.
26780
26781         tests: avoid compiler warnings
26782         * tests/test-fcntl.c (main): Delete unused parameters.
26783         * tests/test-freopen-safer.c (main): Likewise.
26784         * tests/test-xalloc-die.c (main): Mark unused parameters.
26785         * tests/test-fseeko.c (main): Likewise.
26786         * tests/test-ftello.c (main): Likewise.
26787         * tests/test-nanosleep.c (main): Avoid declaration warning.
26788         * tests/test-sleep.c (main): Likewise.
26789         * tests/test-unsetenv.c (main): Silence warning about string
26790         literal.
26791         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26792
26793 2009-12-23  Bruno Haible  <bruno@clisp.org>
26794
26795         * tests/test-localename.c (test_locale_name): New function, extracted
26796         from main. Also test mixed situations.
26797         (test_locale_name_posix, test_locale_name_environ,
26798         test_locale_name_default): New functions.
26799         (main): Invoke them all.
26800         * modules/localename-tests (configure.ac): Test for newlocale.
26801
26802 2009-12-23  Bruno Haible  <bruno@clisp.org>
26803
26804         unistd: Ensure getcwd gets declared before being overridden.
26805         * lib/unistd.in.h: Conditionally include <io.h>.
26806
26807 2009-12-22  Bruno Haible  <bruno@clisp.org>
26808
26809         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26810         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26811         (gl_WCHAR_H): Invoke it.
26812         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26813         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26814         Reported by Karl Berry <karl@freefriends.org>.
26815
26816 2009-12-22  Eric Blake  <ebb9@byu.net>
26817
26818         math, unistd: avoid redundant includes
26819         * lib/math.in.h (isnan): No need to re-include <math.h>.
26820         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26821
26822         getsubopt: work around cygwin bug
26823         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26824         avoid conflicting with system getsubopt.
26825         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26826         bug.
26827
26828         getopt: synchronize from glibc
26829         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26830         parameter order.  Adjust all callers.
26831         (_getopt_internal_r, main): Adjust quoting in error messages.
26832         Drop considerations for outdated POSIX 1003.2 error message.
26833         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26834         callers.
26835         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26836
26837         test-getopt: test stderr behavior
26838         * modules/getopt-posix-tests (Depends-on): Add dup2.
26839         * tests/test-getopt.c (ASSERT): Avoid stderr.
26840         (main): Move stderr to a temporary file.
26841         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26842         Instead, add parameter to inform caller if output occurred.
26843         (test_getopt): Adjust all existing tests to expect silence, and
26844         add new tests of leading ":".
26845         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26846         glibc shortcomings with leading "-:" or "+:" in optstring.
26847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26848         Likewise.
26849         * doc/posix-functions/getopt.texi (getopt): Likewise.
26850
26851         test-getopt: enhance test
26852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26853         supports optind=0.
26854         * tests/test-getopt.c (OPTIND_MIN): Move...
26855         * tests/test-getopt.h (OPTIND_MIN): ...here.
26856         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26857         Require that optind=0 works, since modern BSD supports it in
26858         addition to optreset, and since coreutils expects it.
26859         (test_getopt_long_only): New test.
26860         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26861         glibc shortcomings with 'W;', and enforcement of optind=0.
26862         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26863         Likewise.
26864
26865 2009-12-21  Bruno Haible  <bruno@clisp.org>
26866
26867         localename: Improvements for MacOS X and Cygwin.
26868         * lib/localename.h (gl_locale_name_environ): New declaration.
26869         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26870         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26871         (gl_locale_name_posix): Invoke it.
26872         (gl_locale_name_default): Add comments. Use Windows native API also on
26873         Cygwin.
26874
26875 2009-12-21  Bruno Haible  <bruno@clisp.org>
26876
26877         Update list of Win32 locale ids.
26878         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26879         (LANG_SAMI): Renamed from LANG_SAAMI.
26880         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26881         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26882         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26883         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26884         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26885         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26886         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26887         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26888         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26889         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26890         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26891         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26892         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26893         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26894         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26895         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26896         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26897         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26898         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26899         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26900         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26901         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26902         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26903         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26904         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26905         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26906         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26907         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26908         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26909         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26910         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26911         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26912         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26913         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26914         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26915         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26916         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26917         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26918         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26919         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26920         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26921         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26922         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26923         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26924         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26925         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26926         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26927         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26928         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26929         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26930         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26931         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26932         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26933         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26934         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26935         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26936         Add more languages and countries for Sami, Sorbian. Add more countries
26937         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26938         for Pashto. Change country for Syriac, Tswana.
26939
26940 2009-12-21  Eric Blake  <ebb9@byu.net>
26941
26942         test-utimens: avoid spurious failure
26943         * tests/test-chown.h (nap): Factor...
26944         * tests/nap.h: ...into new file.
26945         * tests/test-lchown.h (nap): Avoid duplication.
26946         * tests/test-utimens-common.h (nap): Use shared implementation,
26947         necessary on file systems with 1-second resolution.
26948         * modules/chown-tests (Files): Include new file.
26949         * modules/fdutimensat-tests (Files): Likewise.
26950         * modules/futimens-tests (Files): Likewise.
26951         * modules/lchown-tests (Files): Likewise.
26952         * modules/openat-tests (Files): Likewise.
26953         * modules/utimens-tests (Files): Likewise.
26954         * modules/utimensat-tests (Files): Likewise.
26955
26956 2009-12-19  Eric Blake  <ebb9@byu.net>
26957
26958         futimens, utimensat: work around Linux bug
26959         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26960         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26961         * lib/utimensat.c (rpl_utimensat): Work around it.
26962         * lib/futimens.c (rpl_futimens): Adjust comment.
26963
26964         utimens: work around Linux ctime bug
26965         * lib/utimens.c (detect_ctime_bug): New helper function.
26966         (update_timespec): Differentiate between workaround needed for
26967         this bug vs. what is needed for systems that lack utimensat.
26968         (fdutimens, lutimens): Work around bug.
26969
26970         utimens: check for ctime update
26971         * tests/test-utimens-common.h (check_ctime): Define.
26972         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26973         * tests/test-futimens.h (test_futimens): Likewise.
26974         * tests/test-lutimens.h (test_lutimens): Likewise.
26975         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26976         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26977
26978 2009-12-19  Bruno Haible  <bruno@clisp.org>
26979
26980         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26981         * tests/test-dprintf-posix2.sh: New file.
26982         * tests/test-dprintf-posix2.c: New file.
26983         * modules/dprintf-posix-tests (Files): Add them.
26984         (configure.ac): Check for getrlimit and setrlimit.
26985         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26986
26987 2009-12-19  Bruno Haible  <bruno@clisp.org>
26988
26989         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26990         * tests/test-fprintf-posix3.sh: New file.
26991         * tests/test-fprintf-posix3.c: New file.
26992         * modules/fprintf-posix-tests (Files): Add them.
26993         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26994
26995 2009-12-19  Eric Blake  <ebb9@byu.net>
26996
26997         dirfd: fix prototype
26998         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26999         * lib/dirfd.c (dirfd): Likewise.
27000
27001         canonicalize: reduce memory usage
27002         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27003         allocation to size.
27004         Reported by Solar Designer <solar@openwall.com>.
27005
27006 2009-12-19  Bruno Haible  <bruno@clisp.org>
27007
27008         New module attribute 'Applicability'.
27009         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27010         * gnulib-tool: New option --extract-applicability.
27011         (func_usage): Document it.
27012         (sed_extract_prog): Recognize it.
27013         (func_get_applicability): New function.
27014         (func_import): Generalize handling of 'link-warning' module.
27015         * modules/link-warning (Applicability): New section.
27016         * modules/arg-nonnull (Applicability): New section.
27017         Repoted by Simon Josefsson <simon@josefsson.org>.
27018
27019 2009-12-19  Bruno Haible  <bruno@clisp.org>
27020
27021         fflush: tweak
27022         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27023         * lib/fseeko.c (rpl_fseeko): Likewise.
27024
27025 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27026
27027         * lib/gl_list.h: Fix typo in comment.
27028
27029 2009-12-16  Eric Blake  <ebb9@byu.net>
27030
27031         fcntl: use to simplify other modules
27032         * modules/cloexec (Depends-on): Add fcntl.
27033         * modules/fchdir (Depends-on): Likewise.
27034         * modules/fd-safer-flag (Depends-on): Likewise.
27035         * modules/unistd-safer (Depends-on): Likewise.
27036         * modules/dup3 (configure.ac): Set module indicator.
27037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27038         missing.
27039         * lib/fchdir.c (_gl_register_dup): Fix comment.
27040         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27041         * lib/dup-safer.c (dup_safer): Likewise.
27042         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27043         * lib/dup3.c (dup3): Likewise.
27044         * tests/test-fchdir.c (main): Enhance test.
27045         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27046
27047         fcntl: port portions of fcntl to mingw
27048         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27049         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27050         replacement for mingw.
27051         * modules/fcntl (Description): Update.
27052         (Depends-on): Add dup2.
27053         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27054         * modules/fcntl-h (Makefile.am): Substitute it.
27055         * lib/fcntl.in.h (fcntl): Update declaration.
27056         (F_DUPFD, F_GETFD): New macros, when needed.
27057         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27058         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27059         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27060         we now guarantee.
27061
27062         fcntl: work around cygwin bug in F_DUPFD
27063         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27064         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27065         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27066         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27067         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27068
27069         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27070         * modules/fcntl (Files): List new files.
27071         (configure.ac): Run a test.
27072         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27073         * lib/fcntl.c (rpl_fcntl): Likewise.
27074         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27075         (gl_FCNTL_H): Always replace fcntl.h.
27076         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27077         * lib/fcntl.in.h (fcntl): Declare replacement.
27078         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27079         needed, plus a witness.
27080         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27081         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27082         * tests/test-fcntl.c: New file.
27083         * modules/fcntl-tests: Likewise.
27084
27085         binary-io: avoid potential compilation warning
27086         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27087         directives.
27088
27089         fflush: avoid compilation error on NetBSD
27090         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27091         between off_t and fpos_t, since the latter is sometimes a struct.
27092         * lib/fseeko.c (rpl_fseeko): Likewise.
27093         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27094
27095 2009-12-15  Eric Blake  <ebb9@byu.net>
27096
27097         fcntl-h, stdio, sys_ioctl: fix declarations
27098         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27099         function must not take arguments.
27100         * lib/sys_ioctl.in.h (ioctl): Likewise.
27101         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27102         (open): Add a link warning.
27103
27104 2009-12-15  Jim Meyering  <meyering@redhat.com>
27105
27106         areadlink, areadlink-with-size: relax license to LGPLv2+
27107         * modules/areadlink (License): Relax to LGPLv2+.
27108         * modules/areadlink-with-size (License): Likewise.
27109
27110 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27111             Bruno Haible  <bruno@clisp.org>
27112
27113         *printf: Fix memory leak.
27114         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27115         * lib/vfprintf.c (vfprintf): Likewise.
27116         * lib/dprintf.c (dprintf): Likewise.
27117         * lib/vdprintf.c (vdprintf): Likewise.
27118
27119 2009-12-14  Eric Blake  <ebb9@byu.net>
27120
27121         accept4: adjust module dependencies
27122         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27123
27124         utimens: one more try at avoiding compiler warning
27125         * lib/utimens.c (lutimens): Lower scope of result.
27126
27127 2009-12-13  Bruno Haible  <bruno@clisp.org>
27128
27129         Move the malloc checking from module 'list' to new module 'xlist'.
27130         * modules/xlist: New file.
27131         * lib/gl_xlist.h: New file.
27132         * lib/gl_xlist.c: New file.
27133         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27134         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27135         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27136         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27137         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27138         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27139         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27140         gl_sortedlist_nx_add): New declarations.
27141         (struct gl_list_implementation): Rename and change methods accordingly.
27142         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27143         (gl_list_nx_create): Renamed from gl_list_create.
27144         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27145         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27146         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27147         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27148         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27149         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27150         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27151         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27152         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27153         gl_list_create_empty.
27154         (gl_list_nx_create): Renamed from gl_list_create.
27155         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27156         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27157         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27158         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27159         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27160         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27161         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27162         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27163         * lib/gl_array_list.c: Don't include xalloc.h.
27164         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27165         NULL upon out-of-memory.
27166         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27167         out-of-memory.
27168         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27169         Change return type to 'int'.
27170         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27171         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27172         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27173         upon out-of-memory.
27174         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27175         upon out-of-memory.
27176         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27177         upon out-of-memory.
27178         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27179         upon out-of-memory.
27180         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27181         out-of-memory.
27182         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27183         Update.
27184         (gl_array_list_implementation): Update.
27185         * lib/gl_carray_list.c: Don't include xalloc.h.
27186         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27187         Return NULL upon out-of-memory.
27188         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27189         out-of-memory.
27190         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27191         Change return type to 'int'.
27192         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27193         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27194         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27195         upon out-of-memory.
27196         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27197         upon out-of-memory.
27198         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27199         out-of-memory.
27200         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27201         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27202         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27203         Update.
27204         (gl_carray_list_implementation): Update.
27205         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27206         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27207         gl_linked_create_empty. Return NULL upon out-of-memory.
27208         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27209         out-of-memory.
27210         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27211         Change return type to 'int'. Return -1 upon out-of-memory.
27212         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27213         out-of-memory.
27214         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27215         upon out-of-memory.
27216         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27217         upon out-of-memory.
27218         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27219         NULL upon out-of-memory.
27220         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27221         upon out-of-memory.
27222         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27223         out-of-memory.
27224         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27225         Update.
27226         * lib/gl_linked_list.c: Don't include xalloc.h.
27227         (gl_linked_list_implementation): Update.
27228         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27229         (add_to_bucket): Change return type to 'int'.
27230         (gl_linkedhash_list_implementation): Update.
27231         * lib/gl_anytree_list1.h (free_subtree): New function.
27232         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27233         gl_tree_create_empty. Return NULL upon out-of-memory.
27234         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27235         Change return type to 'int'. Return -1 upon out-of-memory.
27236         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27237         out-of-memory.
27238         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27239         (gl_tree_remove_node): New function, moved here from
27240         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27241         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27242         Update.
27243         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27244         malloc, not xmalloc. Return NULL upon out-of-memory.
27245         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27246         out-of-memory.
27247         (gl_tree_remove_node_from_tree): New function, extracted from
27248         gl_tree_remove_node.
27249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27250         upon out-of-memory.
27251         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27252         out-of-memory.
27253         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27254         upon out-of-memory.
27255         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27256         upon out-of-memory.
27257         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27258         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27259         not xmalloc. Return NULL upon out-of-memory.
27260         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27261         out-of-memory.
27262         (gl_tree_remove_node_from_tree): New function, extracted from
27263         gl_tree_remove_node.
27264         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27265         upon out-of-memory.
27266         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27267         out-of-memory.
27268         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27269         upon out-of-memory.
27270         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27271         upon out-of-memory.
27272         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27273         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27274         gl_anytree_list1.h before gl_anyavltree_list2.h.
27275         (gl_avltree_list_implementation): Update.
27276         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27277         gl_anytree_list1.h before gl_anyavltree_list2.h.
27278         (gl_rbtree_list_implementation): Update.
27279         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27280         Change return type to 'int'. Return -1 upon out-of-memory. Use
27281         __builtin_expect.
27282         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27283         (gl_avltreehash_list_implementation): Update.
27284         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27285         (gl_rbtreehash_list_implementation): Update.
27286         * modules/array-list (Depends-on): Remove xalloc.
27287         * modules/carray-list (Depends-on): Likewise.
27288         * modules/linked-list (Depends-on): Likewise.
27289         * modules/linkedhash-list (Depends-on): Likewise.
27290         * modules/avltree-list (Depends-on): Likewise.
27291         * modules/rbtree-list (Depends-on): Likewise.
27292         * modules/avltreehash-list (Depends-on): Likewise.
27293         * modules/rbtreehash-list (Depends-on): Likewise.
27294
27295         * modules/xsublist: New file.
27296         * lib/gl_xsublist.h: New file.
27297         * lib/gl_xsublist.c: New file.
27298         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27299         (gl_sublist_nx_create): New declaration.
27300         * lib/gl_sublist.c: Don't include xalloc.h.
27301         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27302         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27303         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27304         Change return type to 'int'. Return -1 upon out-of-memory.
27305         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27306         upon out-of-memory.
27307         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27308         NULL upon out-of-memory.
27309         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27310         upon out-of-memory.
27311         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27312         NULL upon out-of-memory.
27313         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27314         NULL upon out-of-memory.
27315         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27316         upon out-of-memory.
27317         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27318         (gl_sublist_list_implementation): Update.
27319         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27320         upon out-of-memory.
27321         * modules/sublist (Depends-on): Remove xalloc.
27322
27323         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27324         * tests/test-carray_list.c: Likewise.
27325         * tests/test-linked_list.c: Likewise.
27326         * tests/test-linkedhash_list.c: Likewise.
27327         * tests/test-avltree_list.c: Likewise.
27328         * tests/test-rbtree_list.c: Likewise.
27329         * tests/test-avltreehash_list.c: Likewise.
27330         * tests/test-rbtreehash_list.c: Likewise.
27331         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27332         * modules/carray-list-tests (Makefile.am): Likewise.
27333         * modules/linked-list-tests (Makefile.am): Likewise.
27334         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27335         * modules/avltree-list-tests (Makefile.am): Likewise.
27336         * modules/rbtree-list-tests (Makefile.am): Likewise.
27337         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27338         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27339
27340         * NEWS: Mention the changes.
27341
27342         * lib/clean-temp.c: Include gl_xlist.h.
27343         * modules/clean-temp (Depends-on): Add xlist.
27344
27345         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27346         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27347
27348         * tests/test-array_oset.c: Include gl_xlist.h.
27349         * modules/array-oset-tests (Depends-on): Add xlist.
27350
27351         Reported by José E. Marchesi <jemarch@gnu.org>.
27352
27353 2009-12-13  Bruno Haible  <bruno@clisp.org>
27354
27355         Move the malloc checking from module 'oset' to new module 'xoset'.
27356         * modules/xoset: New file.
27357         * lib/gl_xoset.h: New file.
27358         * lib/gl_xoset.c: New file.
27359         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27360         declarations.
27361         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27362         (struct gl_oset_implementation): Rename and change methods accordingly.
27363         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27364         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27365         'int'. Mark as __warn_unused_result__.
27366         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27367         gl_oset_create_empty.
27368         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27369         'int'.
27370         * lib/gl_array_oset.c: Don't include xalloc.h.
27371         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27372         malloc, not xmalloc.
27373         (grow): Change return type to 'int'. Don't call xalloc_die.
27374         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27375         to 'int'.
27376         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27377         'int'.
27378         (gl_array_oset_implementation): Update.
27379         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27380         gl_tree_create_empty.
27381         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27382         'int'.
27383         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27384         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27385         xmalloc.
27386         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27387         not xmalloc.
27388         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27389         xmalloc.
27390         (gl_avltree_oset_implementation): Update.
27391         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27392         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27393         xmalloc.
27394         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27395         not xmalloc.
27396         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27397         xmalloc.
27398         (gl_rbtree_oset_implementation): Update.
27399         * modules/array-oset (Depends-on): Remove xalloc.
27400         * modules/avltree-oset (Depends-on): Likewise.
27401         * modules/rbtree-oset (Depends-on): Likewise.
27402         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27403         * tests/test-avltree_oset.c: Likewise.
27404         * tests/test-rbtree_oset.c: Likewise.
27405         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27406         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27407         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27408         * NEWS: Mention the change.
27409
27410 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27411
27412         maint.mk: allow a project to override release-prep commands
27413         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27414         commands into a new rule.
27415         (release-prep): New rule.
27416         (release-prep-hook): New overridable variable.
27417
27418 2009-12-13  Bruno Haible  <bruno@clisp.org>
27419
27420         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27421
27422 2009-12-13  Jim Meyering  <meyering@redhat.com>
27423
27424         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27425         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27426
27427 2009-12-12  Bruno Haible  <bruno@clisp.org>
27428
27429         duplocale: Tweak.
27430         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27431
27432 2009-12-12  Karl Berry  <karl@gnu.org>
27433
27434         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27435
27436 2009-12-12  Bruno Haible  <bruno@clisp.org>
27437
27438         * m4/po.m4: Undo incorrect untabification.
27439
27440 2009-12-12  Bruno Haible  <bruno@clisp.org>
27441
27442         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27443         * modules/c-strtod (Depends-on): Add locale.
27444         * modules/c-strtold (Depends-on): Likewise.
27445
27446 2009-12-12  Bruno Haible  <bruno@clisp.org>
27447
27448         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27449
27450 2009-12-11  Eric Blake  <ebb9@byu.net>
27451
27452         setenv: relax requirement in light of POSIX ruling
27453         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27454         not NULL.
27455         * tests/test-setenv.c (main): Relax test.
27456         * tests/test-unsetenv.c (main): Likewise.
27457         * doc/posix-functions/setenv.texi (setenv): Document this.
27458         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27459
27460 2009-12-11  Bruno Haible  <bruno@clisp.org>
27461
27462         New module 'fd-safer-flag'.
27463         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27464         * lib/dup-safer.c (dup_safer_flag): Remove function.
27465         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27466         * lib/fd-safer.c (fd_safer_flag): Remove function.
27467         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27468         * modules/cloexec (configure.ac): Drop indicator macro.
27469         * modules/fd-safer-flag: New file.
27470         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27471         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27472         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27473
27474 2009-12-11  Bruno Haible  <bruno@clisp.org>
27475
27476         Tests for module 'nl_langinfo'.
27477         * modules/nl_langinfo-tests: New file.
27478         * tests/test-nl_langinfo.sh: New file.
27479         * tests/test-nl_langinfo.c: New file.
27480
27481         New module 'nl_langinfo'.
27482         * lib/nl_langinfo.c: New file.
27483         * m4/nl_langinfo.m4: New file.
27484         * modules/nl_langinfo: New file.
27485         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27486
27487 2009-12-11  Bruno Haible  <bruno@clisp.org>
27488
27489         Tests for module 'langinfo'.
27490         * modules/langinfo-tests: New file.
27491         * tests/test-langinfo.c: New file.
27492
27493         New module 'langinfo'.
27494         * lib/langinfo.in.h: New file.
27495         * m4/langinfo_h.m4: New file.
27496         * modules/langinfo: New file.
27497         * doc/posix-headers/langinfo.texi: Mention the new module.
27498
27499 2009-12-11  Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/config.charset: Untabify.
27502
27503 2009-12-11  Bruno Haible  <bruno@clisp.org>
27504
27505         * modules/unistd-safer (configure.ac): Drop indicator macro.
27506
27507 2009-12-11  Bruno Haible  <bruno@clisp.org>
27508
27509         Move pipe2-safer code to its own file.
27510         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27511         * lib/pipe-safer.c (pipe2_safer): Remove function.
27512         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27513         (Makefile.am): Add it to lib_SOURCES.
27514
27515 2009-12-10  Bruno Haible  <bruno@clisp.org>
27516
27517         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27518
27519 2009-12-10  Bruno Haible  <bruno@clisp.org>
27520
27521         Declare which arguments expect non-NULL values, for GCC and clang.
27522         * build-aux/arg-nonnull.h: New file.
27523         * modules/arg-nonnull: New file.
27524         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27525         (inet_ntop, inet_pton): Use it.
27526         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27527         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27528         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27529         (open, openat): Use it.
27530         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27531         (fnmatch): Use it.
27532         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27533         (getopt, getopt_long, getopt_long_only): Use it.
27534         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27535         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27536         Use it.
27537         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27538         (iconv_open): Use it.
27539         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27540         (strtoimax, strtoumax): Use it.
27541         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27542         (duplocale): Use it.
27543         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27544         (frexp, frexpl): Use it.
27545         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27546         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27547         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27548         (tsearch, tfind, tdelete, twalk): Use it.
27549         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27550         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27551         sigpending): Use it.
27552         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27553         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27554         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27555         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27556         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27557         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27558         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27559         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27560         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27561         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27562         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27563         Use it.
27564         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27565         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27566         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27567         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27568         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27569         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27570         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27571         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27572         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27573         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27574         strtoull, unsetenv): Use it.
27575         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27576         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27577         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27578         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27579         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27580         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27581         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27582         (strcasecmp, strncasecmp): Use it.
27583         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27584         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27585         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27586         rpl_setsockopt): Use it.
27587         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27588         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27589         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27590         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27591         (gettimeofday): Use it.
27592         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27593         (times): Use it.
27594         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27595         (uname): Use it.
27596         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27597         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27598         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27599         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27600         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27601         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27602         unlinkat, write): Use it.
27603         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27604         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27605         * lib/argv-iter.h: Include arg-nonnull.h.
27606         (_ATTRIBUTE_NONNULL_): Remove macro.
27607         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27608         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27609         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27610         optimization.
27611         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27612         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27613         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27614         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27615         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27616         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27617         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27618         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27619         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27620         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27621         * modules/dirent (Depends-on): Add arg-nonnull.
27622         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27623         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27624         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27625         * modules/fnmatch (Depends-on): Add arg-nonnull.
27626         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27627         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27628         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27629         * modules/glob (Depends-on): Add arg-nonnull.
27630         (Makefile.am): Insert arg-nonnull.h into glob.h.
27631         * modules/iconv_open (Depends-on): Add arg-nonnull.
27632         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27633         * modules/inttypes (Depends-on): Add arg-nonnull.
27634         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27635         * modules/locale (Depends-on): Add arg-nonnull.
27636         (Makefile.am): Insert arg-nonnull.h into locale.h.
27637         * modules/math (Depends-on): Add arg-nonnull.
27638         (Makefile.am): Insert arg-nonnull.h into math.h.
27639         * modules/netdb (Depends-on): Add arg-nonnull.
27640         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27641         * modules/search (Depends-on): Add arg-nonnull.
27642         (Makefile.am): Insert arg-nonnull.h into search.h.
27643         * modules/signal (Depends-on): Add arg-nonnull.
27644         (Makefile.am): Insert arg-nonnull.h into signal.h.
27645         * modules/spawn (Depends-on): Add arg-nonnull.
27646         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27647         * modules/stdio (Depends-on): Add arg-nonnull.
27648         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27649         * modules/stdlib (Depends-on): Add arg-nonnull.
27650         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27651         * modules/string (Depends-on): Add arg-nonnull.
27652         (Makefile.am): Insert arg-nonnull.h into string.h.
27653         * modules/strings (Depends-on): Add arg-nonnull.
27654         (Makefile.am): Insert arg-nonnull.h into strings.h.
27655         * modules/sys_socket (Depends-on): Add arg-nonnull.
27656         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27657         * modules/sys_stat (Depends-on): Add arg-nonnull.
27658         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27659         * modules/sys_time (Depends-on): Add arg-nonnull.
27660         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27661         * modules/sys_times (Depends-on): Add arg-nonnull.
27662         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27663         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27664         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27665         * modules/time (Depends-on): Add arg-nonnull.
27666         (Makefile.am): Insert arg-nonnull.h into time.h.
27667         * modules/unistd (Depends-on): Add arg-nonnull.
27668         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27669         * modules/wchar (Depends-on): Add arg-nonnull.
27670         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27671         * modules/argv-iter (Depends-on): Add arg-nonnull.
27672         * tests/test-canonicalize.c (null_ptr): New function.
27673         (main): Use it.
27674         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27675         (main): Use it.
27676         * tests/test-memmem.c (null_ptr): New function.
27677         (main): Use it.
27678         Reported by Jim Meyering.
27679
27680 2009-12-10  Bruno Haible  <bruno@clisp.org>
27681
27682         Use spaces for indentation, not tabs.
27683         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27684         * m4/*.m4: Untabify.
27685         * build-aux/*.h: Untabify.
27686         * tests/**/*.[hc]: Untabify.
27687         * README: New section "Indent with spaces, not TABs", based on
27688         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27689         * NEWS: Mention the change.
27690
27691 2009-12-10  Bruno Haible  <bruno@clisp.org>
27692
27693         pty test: Fix link error.
27694         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27695         test_pty_LDADD.
27696
27697 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27698
27699         * modules/pty: New file.
27700         * modules/pty-tests: New file.
27701         * m4/pty.m4: New file.
27702         * tests/test-pty.c: New file.
27703         * doc/glibc-headers/pty.texi: Modified.
27704         * doc/glibc-functions/forkpty.texi: Modified.
27705         * doc/glibc-functions/openpty.texi: Modified.
27706
27707 2009-12-10  Bruno Haible  <bruno@clisp.org>
27708
27709         Avoid syntax error in C++ mode.
27710         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27711
27712 2009-12-10  Bruno Haible  <bruno@clisp.org>
27713
27714         Use sed with option -e.
27715         * gnulib-tool (func_version, func_emit_copyright_notice,
27716         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27717         option -e to sed.
27718         * modules/link-warning (Makefile.am): Likewise.
27719
27720 2009-12-10  Jim Meyering  <meyering@redhat.com>
27721
27722         mgetgroups: do not write bytes beyond end of malloc'd buffer
27723         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27724         username, we call getgroups with a one-element-shorter buffer,
27725         but still told it the length was original, max_n_groups.
27726
27727 2009-12-09  Eric Blake  <ebb9@byu.net>
27728
27729         cloexec: relax license
27730         * modules/cloexec (Maintainer): Add myself.
27731         (License): Use LGPL, not GPL.
27732
27733         link-warning: optimize generation
27734         * modules/link-warning (Makefile.am): Reduce process usage.
27735
27736 2009-12-09  Bruno Haible  <bruno@clisp.org>
27737
27738         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27739         workaround was added on 2009-11-17.
27740
27741 2009-12-09  Jim Meyering  <meyering@redhat.com>
27742             Bruno Haible  <bruno@clisp.org>
27743
27744         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27745         * modules/link-warning (Makefile.am): Make the comment-removing sed
27746         command more robust in the face of bootstrap-prepended comment lines.
27747
27748 2009-12-09  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27751         most one group.
27752
27753 2009-12-09  Simon Josefsson <simon@josefsson.org>
27754             Bruno Haible  <bruno@clisp.org>
27755
27756         * build-aux/link-warning.h: Add copyright notice.
27757         * modules/link-warning (Makefile.am): Generate link-warning.h from
27758         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27759         * NEWS: Mention change in link-warning module.
27760         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27761         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27762         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27763         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27764         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27765         * modules/math (Makefile.am): Add dependency to math.h.
27766         * modules/search (Makefile.am): Add dependency to search.h.
27767         * modules/signal (Makefile.am): Add dependency to signal.h.
27768         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27769         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27770         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27771         * modules/string (Makefile.am): Add dependency to string.h.
27772         * modules/strings (Makefile.am): Add dependency to strings.h.
27773         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27774         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27775         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27776         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27777         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27778         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27779         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27780         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27781         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27782
27783 2009-12-09  Bruno Haible  <bruno@clisp.org>
27784
27785         fchdir: Optimize away rpl_fstat when possible.
27786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27787         REPLACE_OPEN_DIRECTORY.
27788         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27789
27790 2009-12-09  Bruno Haible  <bruno@clisp.org>
27791
27792         * lib/fchdir.c: Update comment.
27793
27794 2009-12-09  Bruno Haible  <bruno@clisp.org>
27795
27796         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27797
27798 2009-12-08  Eric Blake  <ebb9@byu.net>
27799
27800         fchdir: avoid memory leak on re-registration.
27801         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27802
27803 2009-12-08  Jim Meyering  <meyering@redhat.com>
27804
27805         init.sh: avoid Solaris 10 /bin/sh portability problem
27806         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27807         sourced script:
27808           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27809           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27810           bar
27811         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27812         and two tests used that idiom.
27813         * tests/init.sh: Update suggested usage comments.
27814         (path_prepend_): New function, to be used in place
27815         of the --src-path=DIR option.
27816         (setup_): Move PATH-prepending code into path_prepend_.
27817         * tests/test-pread.sh: Adapt to new usage.
27818         * tests/test-xalloc-die.sh: Likewise.
27819
27820 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27821
27822         * doc/gnulib.texi (Glibc pty.h): Add.
27823         * doc/glibc-functions/forkpty.texi: Add.
27824         * doc/glibc-functions/openpty.texi: Add.
27825         Suggested by Bruno Haible.
27826
27827 2009-12-08  Eric Blake  <ebb9@byu.net>
27828
27829         fchdir: fix logic bugs
27830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27831         * tests/test-fchdir.c (main): Enhance test.
27832         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27833         is in use.
27834
27835         dup2: fix logic bugs
27836         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27837         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27838         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27839         exists.
27840         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27841
27842 2009-12-07  Eric Blake  <ebb9@byu.net>
27843
27844         unlink: fix m4 detection
27845         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27846
27847         unistd-safer: add unit test
27848         * modules/unistd-safer-tests: New file.
27849         * tests/test-dup-safer.c: Likewise.
27850         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27851         * tests/test-dup2.c (setmode): Likewise.
27852         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27853
27854         cloexec: preserve text vs. binary across dup_cloexec
27855         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27856         mode.
27857         * modules/dup2-tests (Depends-on): Add binary-io.
27858         * modules/cloexec-tests (Depends-on): Likewise.
27859         * tests/test-dup2.c (setmode, is_mode): New helpers.
27860         (main): Add tests that translation mode is preserved.
27861         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27862         Reported by Bruno Haible.
27863
27864         mgetgroups: reduce duplicate listings
27865         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27866         resulting array.
27867         * tests/test-chown.h (test_chown): Simplify client.
27868         * tests/test-lchown.h (test_lchown): Likewise.
27869
27870 2009-12-06  Bruno Haible  <bruno@clisp.org>
27871
27872         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27873         value.
27874
27875 2009-12-06  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/progname.c: Include stdio.h, stdlib.h.
27878         (set_program_name): Reject a NULL argument.
27879
27880 2009-12-05  Eric Blake  <ebb9@byu.net>
27881
27882         pipe2-safer: new module
27883         * modules/pipe2-safer: New file.
27884         * lib/unistd-safer.h (pipe2_safer): New prototype.
27885         * lib/unistd--.h (pipe2): New wrapper.
27886         * lib/pipe-safer.c (pipe2_safer): New function.
27887         * modules/pipe (Depends-on): Add pipe2-safer.
27888         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27889
27890         stdlib-safer: preserve cloexec flag for mkostemp[s]
27891         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27892         fd_safer_flag.
27893
27894         unistd-safer: allow preservation of cloexec status via flag
27895         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27896         prototypes.
27897         * lib/dup-safer.c (dup_safer_flag): New function.
27898         * lib/fd-safer.c (fd_safer_flag): Likewise.
27899         * modules/cloexec (configure.ac): Set witness.
27900
27901         test-dup2: enhance test
27902         * modules/dup2-tests (Depends-on): Add cloexec.
27903         * tests/test-dup2.c (main): Enhance test.
27904
27905         cloexec: add dup_cloexec
27906         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27907         header and comments.
27908         * lib/cloexec.c (set_cloexec_flag): Add comments.
27909         (dup_cloexec): New function, with mingw implementation borrowed
27910         from...
27911         * lib/w32spawn.h (dup_noinherit): ...here.
27912         * modules/execute (Depends-on): Add cloexec.
27913         * modules/pipe (Depends-on): Likewise.
27914         * modules/cloexec (Depends-on): Add dup2.
27915         * modules/cloexec-tests (Files): New file.
27916         * tests/test-cloexec.c: Likewise.
27917
27918         test-xalloc-die: fix test for mingw
27919         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27920         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27921         directory and .exe suffix off argv[0] output.
27922
27923         test-fseeko: fix test for mingw
27924         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27925         than undefining fseek, so test will pass on mingw.
27926
27927 2009-12-05  Bruno Haible  <bruno@clisp.org>
27928
27929         * lib/progname.h (set_program_name): Clarify specification.
27930         * lib/progname.c (set_program_name): Likewise.
27931         Reported by Jim Meyering.
27932
27933 2009-12-05  Jim Meyering  <meyering@redhat.com>
27934
27935         maint.mk: backslash-escape parens in default regexp
27936         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27937         backslash-escape the literal parentheses.
27938
27939         maint.mk: news-date-check: use grep -E
27940         * top/maint.mk (today): Define a Make variable, not a...
27941         (news-date-check): ...shell variable.
27942         (news-date-regexp): Use the Make variable.
27943         Use grep's -E option.  Change the failing diagnostic to mention
27944         the variable, $(news-date-regexp).
27945
27946 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27947
27948         maintainer-makefile: allow customization of NEWS entry format
27949         * top/maint.mk (news-date-regexp): New overridable variable.
27950         (news-date-check): Use it.
27951
27952 2009-12-04  Eric Blake  <ebb9@byu.net>
27953
27954         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27955         * lib/mgetgroups.h (xgetgroups): New prototype.
27956         * lib/mgetgroups.c (xgetgroups): New wrapper.
27957         (mgetgroups): Handle ENOSYS.
27958         * modules/mgetgroups (Depends-on): Add realloc.
27959         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27960
27961         mgetgroups: avoid argument promotion issues with -1
27962         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27963         for invalid gid_t.
27964         * tests/test-chown.h (getegid, test_chown): Likewise.
27965         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27966
27967 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27968
27969         exclude: Fix header file problems.
27970         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27971
27972 2009-12-01  Jim Meyering  <meyering@redhat.com>
27973
27974         fts: fts_open: do not let an empty string cause immediate failure
27975         This is required in support of GNU rm, for which the command
27976         "rm A '' B" must process and remove both A and B, in spite of
27977         the empty string argument.
27978         * lib/fts.c (fts_open): Do not let the presence of an empty string
27979         cause fts_open to fail immediately.  Most fts-using tools must be
27980         able to process all arguments, in order, and can be expected to
27981         diagnose such arguments themselves.
27982
27983 2009-11-30  Eric Blake  <ebb9@byu.net>
27984
27985         utimens: fix compilation error
27986         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27987         Declare variable at right scope.
27988
27989 2009-11-29  Jim Meyering  <meyering@redhat.com>
27990
27991         bootstrap: handle perl-5.11's changed --version output
27992         * build-aux/bootstrap (get_version): Handle perl separately,
27993         since perl-5.11's --version output is different.
27994
27995 2009-11-28  Jim Meyering  <meyering@redhat.com>
27996
27997         userspec: depend on the inttostr module, too
27998         * modules/userspec (Depends-on): Add inttostr.
27999
28000         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28001         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28002         number of MAXUID when it evaluates to (uid_t) -1.
28003         Likewise for group ID.  Reported by Matt McCutchen in
28004         <http://savannah.gnu.org/bugs/?28113>
28005
28006         userspec: reformat to use spaces, not TABs
28007         * lib/userspec.c: Expand TABs to spaces.
28008         Add Emacs' "indent-tabs-mode: nil" hint.
28009
28010 2009-11-27  Eric Blake  <ebb9@byu.net>
28011
28012         getopt-gnu: flush out another BSD bug
28013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28014         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28015         flush out BSD bug.
28016         * tests/test-getopt.h (test_getopt): End lists with NULL.
28017         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28018         (test_getopt_long_posix): Enhance test.
28019         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28020         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28021         getopt-gnu.
28022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28023         Likewise.
28024
28025 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28026
28027         * modules/idpriv-droptemp-tests (Notice): Fix text.
28028
28029 2009-11-27  Jim Meyering  <meyering@redhat.com>
28030
28031         test-xalloc-die: avoid spurious failure due to libtool argv difference
28032         In a libtool-enabled project, this test would fail due to a difference
28033         in the emitted program name, e.g.,
28034         -test-xalloc-die: memory exhausted
28035         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28036         Use program to avoid that.
28037         * modules/xalloc-die-tests (Depends-on): Add progname.
28038         * tests/test-xalloc-die.c: Include progname.h".
28039         (program_name): Remove decl.
28040         (main): Call set_program_name.
28041         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28042
28043 2009-11-26  Richard Jones  <rjones@redhat.com>
28044
28045         w32sock: leave win32 error in place.
28046         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28047
28048 2009-11-26  Eric Blake  <ebb9@byu.net>
28049
28050         init.sh: suggest to use skip_ and fail_ functions in comments
28051         * tests/init.sh: Add a sentence.
28052
28053 2009-11-25  Bruno Haible  <bruno@clisp.org>
28054
28055         init.sh: add documentation in comments
28056         * tests/init.sh: Add some developer and user documentation.
28057
28058 2009-11-26  Jim Meyering  <meyering@redhat.com>
28059
28060         init.sh: accommodate even those who specify bogus srcdir manually
28061         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28062         configure-time tests to be sanitized, so that there is no need to
28063         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28064         (with no double quotes) suffices.  However, since tests may be
28065         invoked manually, and since you may explicitly set srcdir to the
28066         name of a directory containing spaces, do quote its uses here.
28067         * tests/test-pread.sh: Likewise.
28068         Suggested by Bruno Haible.
28069
28070         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28071         * tests/test-pread.sh: Write no data into the pipe, because
28072         test-pread actually reads none.  This avoids a diagnostic,
28073         "bash: echo: write error: Broken pipe", that arises in the unusual
28074         event something is ignoring SIGPIPE, and might be interpreted
28075         as some sort of failure.  Reported by Bruno Haible.
28076
28077 2009-11-25  Jim Meyering  <meyering@redhat.com>
28078
28079         test-pread: cover failure with ESPIPE and EINVAL
28080         * tests/test-pread.c (main): Test for failure, too.
28081         * tests/test-pread.sh: Invoke with stdin on a pipe.
28082         Suggested by Eric Blake.
28083
28084         pread: improvement and fix
28085         * modules/pread (Depends-on): Depend on lseek, for portability to
28086         e.g., mingw.  Suggested by Eric Blake.
28087         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28088
28089         unistd.in.h: correct declaration of pread
28090         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28091         Reported by Richard W.M. Jones.
28092
28093         test-pread.sh: distribute the test script
28094         * modules/pread-tests (Files): Include test-pread.sh.
28095
28096         test-pread.sh: clean up
28097         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28098         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28099         That is unnecessary, since it's always ".".
28100         Suggestion from Eric Blake.
28101
28102         test-pread.sh: make executable
28103         * tests/test-pread.sh: Set executable bit.
28104         Reported by Eric Blake.
28105
28106         correct typo in test-pread.sh
28107         * tests/test-pread.sh: Add #! line.
28108
28109         test pread
28110         * tests/test-pread.c: New file.
28111         * tests/test-pread.sh: Likewise.
28112         * modules/pread-tests: Likewise.
28113
28114         pread: new module
28115         * modules/pread: New file.
28116         * lib/unistd.in.h (pread): Define/declare.
28117         * lib/pread.c (pread): New file.
28118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28119         * modules/unistd (Makefile.am): Substitute witnesses.
28120         * doc/posix-functions/pread.texi (pread): Update.
28121         * MODULES.html.sh: Add pread.
28122
28123 2009-11-25  Jim Meyering  <meyering@redhat.com>
28124
28125         tests/init.sh: new file to be used via most *.sh tests
28126         * tests/init.sh: New file.
28127
28128 2009-11-25  Eric Blake  <ebb9@byu.net>
28129
28130         utimens: work around older Linux failure with symlinks
28131         * lib/utimens.c (lutimensat_works_really): New variable.
28132         (fdutimens, lutimens): Use it to manage kernels that support
28133         nanosecond times on files, but not on symlinks.
28134         Reported by OndÅ™ej Vašík.
28135
28136         utimes: fix configure grammar
28137         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28138
28139 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28140
28141         regex: Fix fastmap for multibyte character ranges.
28142         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28143         characters when a multibyte character range is included.
28144
28145 2009-11-22  Andy Wingo  <wingo@pobox.com>
28146
28147         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28148         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28149
28150 2009-11-24  Bruno Haible  <bruno@clisp.org>
28151
28152         doc: Most *_l functions exist in MacOS X 10.5.
28153         * doc/posix-functions/duplocale.texi: Update platforms list.
28154         * doc/posix-functions/freelocale.texi: Likewise.
28155         * doc/posix-functions/newlocale.texi: Likewise.
28156         * doc/posix-functions/uselocale.texi: Likewise.
28157         * doc/posix-functions/isalnum_l.texi: Likewise.
28158         * doc/posix-functions/isalpha_l.texi: Likewise.
28159         * doc/posix-functions/isblank_l.texi: Likewise.
28160         * doc/posix-functions/iscntrl_l.texi: Likewise.
28161         * doc/posix-functions/isdigit_l.texi: Likewise.
28162         * doc/posix-functions/isgraph_l.texi: Likewise.
28163         * doc/posix-functions/islower_l.texi: Likewise.
28164         * doc/posix-functions/isprint_l.texi: Likewise.
28165         * doc/posix-functions/ispunct_l.texi: Likewise.
28166         * doc/posix-functions/isspace_l.texi: Likewise.
28167         * doc/posix-functions/isupper_l.texi: Likewise.
28168         * doc/posix-functions/iswalnum_l.texi: Likewise.
28169         * doc/posix-functions/iswalpha_l.texi: Likewise.
28170         * doc/posix-functions/iswblank_l.texi: Likewise.
28171         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28172         * doc/posix-functions/iswctype_l.texi: Likewise.
28173         * doc/posix-functions/iswdigit_l.texi: Likewise.
28174         * doc/posix-functions/iswgraph_l.texi: Likewise.
28175         * doc/posix-functions/iswlower_l.texi: Likewise.
28176         * doc/posix-functions/iswprint_l.texi: Likewise.
28177         * doc/posix-functions/iswpunct_l.texi: Likewise.
28178         * doc/posix-functions/iswspace_l.texi: Likewise.
28179         * doc/posix-functions/iswupper_l.texi: Likewise.
28180         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28181         * doc/posix-functions/isxdigit_l.texi: Likewise.
28182         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28183         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28184         * doc/posix-functions/strcoll_l.texi: Likewise.
28185         * doc/posix-functions/strfmon_l.texi: Likewise.
28186         * doc/posix-functions/strftime_l.texi: Likewise.
28187         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28188         * doc/posix-functions/strxfrm_l.texi: Likewise.
28189         * doc/posix-functions/tolower_l.texi: Likewise.
28190         * doc/posix-functions/toupper_l.texi: Likewise.
28191         * doc/posix-functions/towctrans_l.texi: Likewise.
28192         * doc/posix-functions/towlower_l.texi: Likewise.
28193         * doc/posix-functions/towupper_l.texi: Likewise.
28194         * doc/posix-functions/wcscoll_l.texi: Likewise.
28195         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28196         * doc/posix-functions/wctrans_l.texi: Likewise.
28197         * doc/posix-functions/wctype_l.texi: Likewise.
28198         * doc/glibc-functions/strptime_l.texi: Likewise.
28199         * doc/glibc-functions/strtod_l.texi: Likewise.
28200         * doc/glibc-functions/strtof_l.texi: Likewise.
28201         * doc/glibc-functions/strtol_l.texi: Likewise.
28202         * doc/glibc-functions/strtold_l.texi: Likewise.
28203         * doc/glibc-functions/strtoll_l.texi: Likewise.
28204         * doc/glibc-functions/strtoul_l.texi: Likewise.
28205         * doc/glibc-functions/strtoull_l.texi: Likewise.
28206         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28207         * doc/glibc-functions/wcstod_l.texi: Likewise.
28208         * doc/glibc-functions/wcstof_l.texi: Likewise.
28209         * doc/glibc-functions/wcstol_l.texi: Likewise.
28210         * doc/glibc-functions/wcstold_l.texi: Likewise.
28211         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28212         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28213         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28214
28215 2009-11-24  Bruno Haible  <bruno@clisp.org>
28216
28217         duplocale: Fix logic bug.
28218         * lib/duplocale.c: Don't include <langinfo.h>.
28219         (_NL_LOCALE_NAME): Remove macro.
28220         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28221         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28222
28223 2009-11-23  Jim Meyering  <meyering@redhat.com>
28224
28225         test-update-copyright: don't hard-code /usr/bin/perl
28226         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28227         perl to print the current year.  Gilles Espinasse reported that
28228         the replaced use of perl was hard-coded as /usr/bin/perl.
28229
28230 2009-11-23  Bruno Haible  <bruno@clisp.org>
28231
28232         duplocale: Add support for glibc 2.3.x.
28233         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28234
28235 2009-11-22  Bruno Haible  <bruno@clisp.org>
28236
28237         vasnprintf: Tiny optimization.
28238         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28239         MacOS X.
28240
28241 2009-11-22  Bruno Haible  <bruno@clisp.org>
28242
28243         Tests for module 'duplocale'.
28244         * modules/duplocale-tests: New file.
28245         * tests/test-duplocale.c: New file.
28246
28247         New module 'duplocale'.
28248         * m4/duplocale.m4: New file.
28249         * lib/locale.in.h (duplocale): New declaration.
28250         * lib/duplocale.c: New file.
28251         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28252         gl_LOCALE_H_DEFAULTS): New macros.
28253         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28254         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28255         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28256         REPLACE_DUPLOCALE.
28257         * modules/duplocale: New file.
28258         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28259
28260 2009-11-22  Bruno Haible  <bruno@clisp.org>
28261
28262         * modules/locale-tests (configure.ac): Test for newlocale function.
28263         * tests/test-locale.c: When the system has extended locale functions,
28264         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28265
28266         locale: Make locale_t available when possible.
28267         * lib/locale.in.h: Include <xlocale.h> when it exists.
28268         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28269         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28270         * modules/locale (Depends-on): Add extensions.
28271         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28272         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28273
28274 2009-11-22  Bruno Haible  <bruno@clisp.org>
28275
28276         Add comments.
28277         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28278         invocation.
28279         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28280         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28281         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28282
28283 2009-11-22  Bruno Haible  <bruno@clisp.org>
28284
28285         error: account for the possibility of freopen (stdout).
28286         * lib/error.c: Include <unistd.h>.
28287         (flush_stdout): New function, extracted from error and error_at_line.
28288         Determine stdout's fd dynamically.
28289         (error, error_at_line): Invoke flush_stdout.
28290         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28291         * modules/error (Depends-on): Add unistd.
28292
28293 2009-11-22  Bruno Haible  <bruno@clisp.org>
28294
28295         diffseq: Add comment.
28296         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28297
28298 2009-11-22  Jim Meyering  <meyering@redhat.com>
28299
28300         c-stack: avoid defining an unused static function
28301         * lib/c-stack.c (find_stack_direction): Do not define this function
28302         when it will not be used.
28303
28304         diffseq: avoid spurious gcc warnings
28305         * lib/diffseq.h (IF_LINT2): Define.
28306         (compareseq): Use it to initialize two members of "part".
28307         This avoids two used-uninitialized warnings.
28308
28309 2009-11-21  Jim Meyering  <meyering@redhat.com>
28310
28311         c-stack: avoid "ignoring return value of `write'" warning
28312         * lib/c-stack.c: Include "ignore-value.h".
28313         (die): Explicitly ignore each write return value.
28314         * modules/c-stack (Depends-on): Add ignore-value.
28315
28316 2009-11-21  Bruno Haible  <bruno@clisp.org>
28317
28318         diffseq: reduce scope of variable 'best'.
28319         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28320         variable, earlier used for two different purposes.
28321
28322 2009-11-21  Jim Meyering  <meyering@redhat.com>
28323
28324         diffseq: remove useless assignment to "best"
28325         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28326         assignment.  At that point "best" is already guaranteed to be zero.
28327
28328 2009-11-20  Eric Blake  <ebb9@byu.net>
28329
28330         build: mention ftp redirector in release announcements
28331         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28332         values that used to come from cfg.mk; mention FTP redirect URL.
28333         * build-aux/announce-gen: Mention the mirror list.
28334         Suggested by Karl Berry.
28335
28336         nanosleep: improve port to mingw
28337         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28339         LIB_NANOSLEEP, but only when needed.
28340         * modules/select (Link): Document LIBSOCKET.
28341         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28342         enough.
28343
28344         nanosleep: work around cygwin bug
28345         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28346         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28347         bug.
28348         (getnow): Delete, not needed.
28349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28350         LIB_CLOCK_GETTIME.
28351         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28352         clock-time, gettime.
28353         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28354         bug.
28355         * modules/nanosleep-tests: New test.
28356         * tests/test-nanosleep.c: New file.
28357
28358         sleep: work around cygwin bug
28359         * lib/sleep.c (rpl_sleep): Work around the bug.
28360         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28361         (gl_PREREQ_SLEEP): Delete unused macro.
28362         * modules/sleep (Depends-on): Add verify.
28363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28364         * modules/unistd (Makefile.am): Substitute witness.
28365         * lib/unistd.in.h (sleep): Update prototype.
28366         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28367         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28368         * modules/sleep-tests (Depends-on): Check for alarm.
28369
28370 2009-11-20  Jim Meyering  <meyering@redhat.com>
28371
28372         maint.mk: improve sc_prohibit_magic_number_exit
28373         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28374         so it does not match uses like System.exit(1).
28375         Add comments showing how to correct all offenders.
28376
28377 2009-11-19  Eric Blake  <ebb9@byu.net>
28378
28379         xalloc-die-tests: add missing library
28380         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28381
28382         test-xvasprintf: silence compiler warnings
28383         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28384         empty string from gcc.
28385
28386 2009-11-19  Jim Meyering  <meyering@redhat.com>
28387
28388         xfreopen: new module, from coreutils
28389         * modules/xfreopen: New module.
28390         * lib/xfreopen.c: New file.
28391         * lib/xfreopen.h: New file.
28392         * MODULES.html.sh (File stream based Input/Output"): Add it.
28393
28394 2009-11-19  Eric Blake  <ebb9@byu.net>
28395
28396         manywarnings: depend on warnings
28397         * modules/manywarnings (Depends-on): Add warnings.
28398
28399         build: avoid compiler warnings
28400         * lib/select.c (rpl_select): Delete unused variable.
28401         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28402
28403 2009-11-18  Eric Blake  <ebb9@byu.net>
28404
28405         tests: avoid false negative with --with-packager
28406         * tests/test-version-etc.sh: Discard packager information.
28407         * tests/test-argp-version-etc-1.sh: Likewise.
28408         Reported by Mike Frysinger.
28409
28410         utimens: fix regression on Solaris
28411         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28412         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28413         can only change fd timestamps via futimesat.  Instead, use an
28414         additional witness macro to avoid BSD bug.
28415         Reported by Jim Meyering.
28416
28417 2009-11-17  Eric Blake  <ebb9@byu.net>
28418
28419         usleep: use it to simplify tests
28420         * modules/stat-time-tests (Depends-on): Add usleep.
28421         (configure.ac): Drop usleep check.
28422         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28423         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28424         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28425         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28426         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28427         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28428         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28429         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28430         Likewise.
28431         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28432         * tests/test-lchown.h (nap): Likewise.
28433         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28434         * tests/test-stat-time.c (nap): Likewise.
28435         * tests/test-utimens-common.h (nap): Update comments.
28436
28437         usleep: new module
28438         * modules/usleep: New file.
28439         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28440         * lib/usleep.c (usleep): Likewise.
28441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28442         * modules/unistd (Makefile.am): Substitute witnesses.
28443         * lib/unistd.in.h (usleep): Add declaration.
28444         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28445         * MODULES.html.sh (Date and time): Likewise.
28446         * modules/usleep-tests (Depends-on): New test.
28447         * tests/test-usleep.c: New file.
28448
28449         chown: work around OpenBSD bug
28450         * lib/chown.c (rpl_chown): Work around the bug.
28451         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28452         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28454         * modules/chown (Depends-on): Add stdbool.
28455         * modules/lchown (Depends-on): Likewise.
28456         * doc/posix-functions/chown.texi (chown): Document the bug.
28457         * doc/posix-functions/lchown.texi (lchown): Likewise.
28458         * tests/test-lchown.h (test_chown): Relax test.
28459
28460         mkstemp: avoid conflict with C++ keyword template
28461         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28462         * lib/mkostemp.c (mkostemp): Likewise.
28463         * lib/mkostemps.c (mkostemps): Likewise.
28464         * lib/mkstemp.c (mkstemp): Likewise.
28465         * lib/mkstemps.c (mkstemps): Likewise.
28466
28467         xalloc-die-tests: optimize
28468         * tests/test-xalloc-die.sh: Reduce number of processes.
28469
28470 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28471
28472         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28473         patch from ludo@gnu.org (Ludovic Courtès).
28474
28475 2009-11-17  Jim Meyering  <meyering@redhat.com>
28476
28477         version-etc: use proper license string
28478         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28479         * modules/version-etc-fsf: Likewise.
28480
28481 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28482
28483         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28484         printed to stdout.  Deal with EOL differences.
28485
28486 2009-11-17  Eric Blake  <ebb9@byu.net>
28487
28488         unsetenv: work around Solaris bug
28489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28490         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28491         Reported by Jim Meyering.
28492
28493         vasnprintf: avoid compiler warnings
28494         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28495         variables.
28496         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28497
28498 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28499
28500         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28501         settings since xalloc-die is no longer the self test,
28502         xalloc-die.sh is.
28503
28504 2009-11-17  Jim Meyering  <meyering@redhat.com>
28505
28506         test-xalloc-die.sh: make the code agree with the commit log
28507         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28508         at the end, just in case you happen to have a test-xalloc-die
28509         program in some other PATH directory.
28510
28511         test-xalloc-die.sh: fix a portability bug
28512         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28513         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28514         Otherwise, argv[0] (as often seen in diagnostics) would be too
28515         system-dependent, sometimes with, and sometimes without the leading "./".
28516
28517         version-etc-fsf: relax license to LGPLv3+
28518         * modules/version-etc-fsf (License): Relax license.
28519
28520 2009-11-16  Eric Blake  <ebb9@byu.net>
28521
28522         xalloc-die-tests: avoid printing null pointer
28523         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28524         shell script.
28525         * tests/test-xalloc-die.c (program_name): Declare.
28526         * tests/test-xalloc-die.sh (tmpfiles): New file.
28527
28528         setenv, unsetenv: work around various bugs
28529         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28530         (setenv) [HAVE_SETENV]: Work around bugs.
28531         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28533         for bugs.
28534         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28535         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28537         * modules/stdlib (Makefile.am): Update substitutions.
28538         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28539         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28540         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28541         * modules/setenv-tests: New test.
28542         * modules/unsetenv-tests: Likewise.
28543         * tests/test-setenv.c: New file.
28544         * tests/test-unsetenv.c: Likewise.
28545
28546 2009-11-16  Jim Meyering  <meyering@redhat.com>
28547
28548         version-etc: relax license to LGPLv3+
28549         * modules/version-etc (License): Relax license.
28550
28551         better AC_REQUIRE expanded-before-required-warning avoidance
28552         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28553         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28554         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28555         which is no longer needed.
28556
28557 2009-11-16  Eric Blake  <ebb9@byu.net>
28558
28559         test-freading: clean up temporary file
28560         * tests/test-freading.c (main): Remove file on success, and use
28561         ASSERT more liberally.
28562         Reported by Jim Meyering.
28563
28564 2009-11-16  Jim Meyering  <meyering@redhat.com>
28565
28566         avoid new AC_REQUIRE expanded-before-required warnings
28567         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28568         merely using it.
28569         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28570         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28571
28572 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28573
28574         * tests/test-xalloc-die.c: New file.
28575         * modules/xalloc-die-tests: New file.
28576         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28577         XFAIL_TESTS so it can be appended by modules.
28578
28579 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28580
28581         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28582         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28583
28584 2009-11-14  Eric Blake  <ebb9@byu.net>
28585
28586         fnmatch: avoid compiler warning
28587         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28588         to silence compiler warning about mismatch signedness in ?:.
28589         Reported by Robert Millan.
28590
28591         intprops: add double-inclusion guard
28592         * lib/intprops.h: Allow idempotent includes.
28593         Suggested by Bruce Korb.
28594
28595         openat: detect Solaris fchownat bug
28596         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28597         penalizing glibc chownat when only lchownat is broken.
28598         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28599         trailing slash bugs.
28600         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28601         * modules/openat-tests (Files): Include more files.
28602         (Depends-on): Add mgetgroups, sleep, stat-time.
28603         (configure.ac): Add additional checks.
28604         (Makefile.am): Build new test.
28605         * tests/test-fchownat.c: New file.
28606
28607         lchown: detect Solaris and FreeBSD bug
28608         * lib/lchown.c (rpl_lchown): Work around bug.
28609         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28611         * modules/unistd (Makefile.am): Populate it.
28612         * lib/unistd.in.h (lchown): Update declaration.
28613         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28614         * modules/lchown-tests: New file.
28615         * tests/test-lchown.h (test_lchown): Likewise.
28616         * tests/test-lchown.c (main): Likewise.
28617
28618         chown: detect Solaris and FreeBSD bug
28619         * lib/chown.c (rpl_chown): Work around bug.
28620         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28621         (gl_PREREQ_CHOWN): Delete.
28622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28623         * modules/unistd (Makefile.am): Populate it.
28624         * lib/unistd.in.h (chown): Update declaration.
28625         * lib/lchown.c (chown): Update client.
28626         * modules/lchown (Depends-on): Add lstat.
28627         * doc/posix-functions/chown.texi (chown): Document the bug.
28628         * doc/posix-functions/getgroups.texi (getgroups): Document
28629         getgroups pitfall.
28630         * modules/chown-tests: New file.
28631         * tests/test-chown.h (test_chown): Likewise.
28632         * tests/test-chown.c (main): Likewise.
28633
28634 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28635
28636         gnulib-tool: correctly detect absence of m4 directories
28637         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28638
28639 2009-11-14  Jim Meyering  <meyering@redhat.com>
28640
28641         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28642         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28643
28644 2009-11-14  John W. Eaton  <jwe@gnu.org>
28645
28646         strftime.h: wrap funtion declaration in extern "C" block
28647         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28648
28649 2009-11-13  Eric Blake  <ebb9@byu.net>
28650
28651         getgroups: avoid compiler warning
28652         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28653
28654         getgroups: work around FreeBSD bug
28655         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28656         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28657         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28658         * tests/test-getgroups.c (main): Fix buffer overrun.
28659
28660         getgroups: avoid compilation failure
28661         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28662         * modules/getgroups (Depends-on): Add stdint.
28663
28664 2009-11-13  Jim Meyering  <meyering@redhat.com>
28665
28666         test-getgroups: avoid compilation failure
28667         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28668
28669 2009-11-13  Eric Blake  <ebb9@byu.net>
28670
28671         mgetgroups: new module, taken from coreutils
28672         * modules/mgetgroups: New file.
28673         * lib/mgetgroups.h: Likewise.
28674         * lib/mgetgroups.c (mgetgroups): Likewise.
28675         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28676         * MODULES.html.sh (Users and groups): Mention it.
28677
28678         getgroups: don't expose GETGROUPS_T to user
28679         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28680         an element at a time if GETGROUPS_T is wrong size.
28681         * lib/getugroups.h (getugroups): Change signature.
28682         * lib/unistd.in.h (getgroups): Likewise.
28683         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28684         signature needs fixing.
28685         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28686         AC_TYPE_GETGROUPS.
28687         * modules/group-member (Depends-on): Add getgroups.
28688         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28689         (group_member): Rely on getgroups replacement.
28690         * lib/getugroups.c (getugroups): Use gid_t.
28691         * tests/test-getgroups.c (main): Likewise.
28692         * NEWS: Mention the signature change.
28693         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28694         problem with signature.
28695         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28696         GETGROUPS_T is still useful for setgroups.
28697
28698         getgroups, getugroups: provide stubs for mingw
28699         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28700         * lib/getugroups.c (getugroups): Likewise.
28701         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28702         function.  Modernize replacement scheme.
28703         (gl_PREREQ_GETGROUPS): Delete.
28704         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28705         * modules/getgroups (configure.ac): Declare witness.
28706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28707         * modules/unistd (Depends-on): Substitute witness.
28708         * lib/unistd.in.h (getgroups): Declare replacement.
28709
28710         getgroups: avoid calling exit
28711         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28712         drop xalloc.
28713         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28714         dependencies.
28715         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28716         exiting, in the rare case of malloc failure.
28717
28718         getgroups: fix logic error
28719         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28720         has more than 20 groups.
28721         * modules/getgroups-tests: New test.
28722         * tests/test-getgroups.c: New file.
28723
28724 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28725
28726         * tests/test-base64.c: Improve.
28727
28728 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28729
28730         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28731         Blake <ebb9@byu.net>.
28732
28733 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28734
28735         * tests/test-xvasprintf.c: Add %s%s related checks.
28736
28737 2009-11-12  Eric Blake  <ebb9@byu.net>
28738
28739         version-etc: match standards.texi style
28740         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28741         and use <> only for URLs.
28742
28743 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28744
28745         fts: do not fail on a submount during traversal
28746         * lib/fts.c (fts_build): Read the stat info again after opening
28747         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28748         Original report at http://bugzilla.redhat.com/501848.
28749
28750 2009-11-12  Jim Meyering  <meyering@redhat.com>
28751
28752         bootstrap: sync from coreutils
28753         * build-aux/bootstrap (bootstrap_epilogue): New function.
28754         Use git_modules_config in one more place.  This make bootstrap's
28755         --gnulib-srcdir option more useful for testing.
28756
28757         bootstrap: generalize autoheader check
28758         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28759         AC_CONFIG_HEADERS.
28760
28761 2009-11-11  Eric Blake  <ebb9@byu.net>
28762
28763         mkfifoat: use new modules for Solaris and BSD bugs
28764         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28765         * lib/mkfifoat.c (mknodat): Split...
28766         * lib/mknodat.c (mknodat): ...into new file.
28767         * modules/mkfifoat (Files): Ship new file.
28768         (Depends-on): Add mkfifo, mknod.
28769         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28770         (Depends-on): Add symlink.
28771         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28772         redundant with test_mkfifo.h.
28773         (do_mkfifoat, do_mknodat): New helpers.
28774
28775         mknod: new module
28776         * modules/mknod: New file.
28777         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28778         * lib/mknod.c (mknod): Likewise.
28779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28780         defaults.
28781         * modules/sys_stat (Makefile.am): Substitute them.
28782         * lib/sys_stat.in.h (mknod): Declare replacement.
28783         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28784         Document it.
28785         * doc/posix-functions/mknod.texi (mknod): Likewise.
28786         * modules/mknod-tests: New test.
28787         * tests/test-mknod.c: Likewise.
28788
28789         mkfifo: new module
28790         * modules/mkfifo: New file.
28791         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28792         * lib/mkfifo.c (mkfifo): Likewise.
28793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28794         defaults.
28795         * modules/sys_stat (Makefile.am): Substitute them.
28796         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28797         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28798         Document it.
28799         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28800         * modules/mkfifo-tests: New test.
28801         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28802         from test-mkfifoat.c.
28803         * tests/test-mkfifo.c: New file.
28804
28805         readlink: detect FreeBSD bug
28806         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28807         slash on symlink.
28808         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28809         * tests/test-readlink.h (test_readlink): Enhance test.
28810
28811         symlink: detect FreeBSD bug
28812         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28813         slash on symlink.
28814         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28815         * tests/test-symlink.h (test_symlink): Enhance test.
28816
28817 2009-11-10  Eric Blake  <ebb9@byu.net>
28818
28819         link: detect FreeBSD bug
28820         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28821         symlink.
28822         * doc/posix-functions/link.texi (link): Document the bug.
28823         * tests/test-link.h (test_link): Enhance test.
28824         * tests/test-linkat.c (main): Update caller.
28825
28826         unlink, remove: detect FreeBSD bug
28827         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28828         slash on symlink.
28829         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28830         * doc/posix-functions/remove.texi (remove): Likewise.
28831         * tests/test-unlink.h (test_unlink): Enhance test.
28832         * tests/test-remove.c (main): Likewise.
28833
28834 2009-11-09  Eric Blake  <ebb9@byu.net>
28835
28836         rename: detect FreeBSD bug
28837         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28838         slash on symlink.
28839         * modules/renameat-tests (Depends-on): Add filenamecat.
28840         * tests/test-rename.h (test_rename): Allow one more errno.
28841         * tests/test-renameat.c (main): Likewise.
28842         * doc/posix-functions/rename.texi (rename): Document the bug.
28843
28844         open: detect FreeBSD bug
28845         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28846         symlink.
28847         * doc/posix-functions/open.texi (open): Document the bug.
28848         * doc/posix-functions/utimes.texi (utimes): Likewise.
28849         * tests/test-open.h (test_open): Add parameters, and test symlink
28850         handling.
28851         * tests/test-open.c (main): Adjust caller.
28852         * tests/test-fcntl-safer.c (main): Likewise.
28853         * modules/open-tests (Depends-on): Add stdbool, symlink.
28854         * modules/fcntl-safer-tests (Depends-on): Likewise.
28855         * tests/test-openat.c (main): Add test-open tests.
28856
28857         stat: detect FreeBSD bug
28858         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28859         symlink.
28860         * doc/posix-functions/stat.texi (stat): Document the bug.
28861         * tests/test-stat.h (test_stat_func): Add argument.
28862         * tests/test-stat.c (main): Adjust caller.
28863         * tests/test-fstatat.c (main): Likewise.
28864         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28865         Reported by Jim Meyering.
28866
28867 2009-11-09  James Youngman  <jay@gnu.org>
28868
28869         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28870         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28871
28872 2009-11-08  Jim Meyering  <meyering@redhat.com>
28873
28874         utimens: remove invalid futimesat call
28875         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28876         It used the file descriptor of the target file as the DIR_FD
28877         parameter and NULL as the file name.  That caused failure with
28878         errno == EFAULT on FreeBSD-8.0-rc2
28879
28880 2009-11-07  Eric Blake  <ebb9@byu.net>
28881
28882         fflush, freadseek: use fseeko, not fseek
28883         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28884         (clear_ungetc_buffer): Avoid potential problems on large files.
28885         * lib/freadseek.c (freadseek): Likewise.
28886         * modules/freadseek (Depends-on): Add fseeko.
28887         * modules/fseek (configure.ac): Set a witness.
28888         * tests/test-fflush.c (main): Use fseeko.
28889         * tests/test-fpurge.c (fseek): Disable link warning.
28890         * tests/test-freadable.c (fseek): Likewise.
28891         * tests/test-freading.c (fseek): Likewise.
28892         * tests/test-fseeko.c (fseek): Likewise.
28893         * tests/test-ftell.c (fseek): Likewise.
28894         * tests/test-ftello.c (fseek): Likewise.
28895         * tests/test-fwritable.c (fseek): Likewise.
28896         * tests/test-fwriting.c (fseek): Likewise.
28897
28898 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28899
28900         * modules/memchr (Depends-on): Drop getpagesize dependency.
28901
28902 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28903
28904         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28905         Reported by Ludovic Courtès.
28906         * build-aux/pmccabe2html: Improve example usage.
28907         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28908
28909 2009-11-06  Jim Meyering  <meyering@redhat.com>
28910
28911         do-release-commit-and-tag: New module.
28912         Automate the release-commit and tag process.
28913         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28914         * modules/do-release-commit-and-tag: New file.
28915         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28916
28917 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28918
28919         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28920         because test-select.c uses inet_pton.
28921
28922 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28923
28924         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28925         GETADDRINFO_LIB.  Bump serial number.
28926         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28927         Suggested by Eric Blake <ebb9@byu.net>.
28928
28929 2009-11-05  Eric Blake  <ebb9@byu.net>
28930
28931         strtod: detect darwin bug
28932         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28933         Reported by Leo Davis.
28934
28935         freopen-safer: new module
28936         * modules/freopen-safer: New module.
28937         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28938         * lib/freopen-safer.c (freopen_safer): New file.
28939         * lib/stdio-safer.h (freopen_safer): New declaration.
28940         * lib/stdio--.h (freopen): New override.
28941         * MODULES.html.sh (File stream based Input/Output): Mention it.
28942         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28943         freopen-safer module.
28944         * doc/posix-functions/stderr.texi (stderr): Likewise.
28945         * doc/posix-functions/stdin.texi (stdin): Likewise.
28946         * doc/posix-functions/stdout.texi (stdout): Likewise.
28947         * modules/freopen-safer-tests: New test.
28948         * tests/test-reopen-safer.c: New file.
28949
28950 2009-11-05  Jim Meyering  <meyering@redhat.com>
28951
28952         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28953         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28954
28955 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28956
28957         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28958
28959 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28960
28961         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28962
28963 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28964
28965         Fix link error.
28966         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28967         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28968
28969 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28970
28971         * tests/test-func.c: Also test value of __func__.
28972
28973 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28974
28975         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28976         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28977
28978 2009-11-05  Bruno Haible  <bruno@clisp.org>
28979
28980         Fix link error.
28981         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28982         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28983         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28984
28985 2009-11-05  Bruno Haible  <bruno@clisp.org>
28986
28987         Tests for module 'inet_pton'.
28988         * modules/inet_pton-tests: New file.
28989         * tests/test-inet_pton.c: New file.
28990
28991 2009-11-05  Bruno Haible  <bruno@clisp.org>
28992
28993         Tests for module 'inet_ntop'.
28994         * modules/inet_ntop-tests: New file.
28995         * tests/test-inet_ntop.c: New file.
28996
28997 2009-11-04  Eric Blake  <ebb9@byu.net>
28998
28999         stdlib-safer: wrap all mkstemp variants
29000         * modules/mkostemp (configure.ac): Set witness.
29001         * modules/mkostemps (configure.ac): Likewise.
29002         * modules/mkstemps (configure.ac): Likewise.
29003         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29004         (mkstemps_safer): Wrap more functions.
29005         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29006         wrapping.
29007         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29008         (mkstemps_safer): Implement the wrappers.
29009
29010         mkstemps, mkostemps: new modules
29011         * modules/mkostemps: New module.
29012         * modules/mkstemps: Likewise.
29013         * lib/mkostemps.c (mkostemps): New file.
29014         * lib/mkstemps.c (mkstemps): Likewise.
29015         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29016         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29018         * modules/stdlib (Makefile.am): Substitute them.
29019         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29020         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29021         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29022         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29023         * MODULES.html.sh (File system functions): Mention them.
29024
29025         tempname: resync from glibc
29026         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29027         same values for __GT_FILE as glibc.  Abort even when assertions
29028         are disabled.
29029         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29030         match its value otherwise.  Allow idempotent inclusion.
29031         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29032         * lib/mkostemp.c (mkostemp): Likewise.
29033         * lib/mkstemp.c (mkstemp): Likewise.
29034         * lib/tmpfile.c (tmpfile): Likewise.
29035         * NEWS: Document this.
29036
29037         utimens: fix use of futimens on older Linux
29038         * lib/utimens.c (fdutimens): Use updated, rather than original,
29039         timespec to avoid bug in older Linux kernel.
29040         Reported by Simon Josefsson.
29041
29042 2009-11-04  Bruno Haible  <bruno@clisp.org>
29043
29044         Make num_processors more flexible and consistent.
29045         * lib/nproc.h (enum nproc_query): New type.
29046         (num_processors): Add a 'query' argument.
29047         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29048         (num_processors): Add a 'query' argument. Test the value of the
29049         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29050         mingw, count the number of CPUs available for the current process.
29051         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29052         Check for sched_getaffinity and sched_getaffinity_np.
29053         * modules/nproc (Depends-on): Add c-ctype, extensions.
29054         * NEWS: Mention the change.
29055
29056 2009-11-03  Bruno Haible  <bruno@clisp.org>
29057
29058         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29059
29060 2009-11-03  Jim Meyering  <meyering@redhat.com>
29061
29062         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29063         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29064         if it is defined.
29065
29066 2009-11-02  Eric Blake  <ebb9@byu.net>
29067
29068         mktime, timegm: share common declaration
29069         * lib/mktime-internal.h: New file.
29070         * lib/mktime.c: Use it rather than open-coding a declaration.
29071         * lib/timegm.c: Likewise.
29072         * modules/mktime (Files): Ship it.
29073         * modules/timegm (Files): Likewise.
29074         Suggested by Bruno Haible.
29075
29076         test-update-copyright: update test to match script changes
29077         * tests/test-update-copyright.sh: Avoid hard-coding perl
29078         location.  Don't update *.bak created by earlier runs.
29079
29080 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29081             Simon Josefsson  <simon@josefsson.org>
29082             Bruno Haible  <bruno@clisp.org>
29083
29084         Fix link error on Solaris 8.
29085         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29086         also in libnsl. Define also INET_PTON_LIB.
29087         * modules/inet_pton (Link): New section.
29088
29089 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29090             Bruno Haible  <bruno@clisp.org>
29091
29092         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29093         * modules/inet_ntop (Link): New section.
29094         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29095
29096 2009-11-02  Eric Blake  <ebb9@byu.net>
29097
29098         maint: avoid compiler warnings in m4 macros
29099         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29101
29102 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29103
29104         * m4/pmccabe2html.m4: Remove file.
29105         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29106         function.  Change maintainer.
29107         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29108         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29109         Courtès).
29110
29111 2009-10-31  Eric Blake  <ebb9@byu.net>
29112
29113         fseeko: fix m4 regression
29114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29115         regression from 2009-10-27.
29116         Reported by Ralf Wildenhues.
29117
29118 2009-10-31  Jim Meyering  <meyering@redhat.com>
29119
29120         inttostr: aesthetics and improved (compile-time) safety
29121         Define inttype_is_signed rather than inttype_is_unsigned,
29122         since the sole use is via "#if inttype_is_signed".
29123         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29124         inttype_is_unsigned.
29125         * lib/offtostr.c (inttype_is_signed): Likewise.
29126         * lib/uinttostr.c (inttype_is_signed): Likewise.
29127         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29128         * lib/inttostr.c (inttostr): Use verify to cross-check the
29129         inttype_is_signed value and the signedness of the actual type.
29130         * modules/inttostr (Depends-on): Add verify.
29131
29132 2009-10-30  Eric Blake  <ebb9@byu.net>
29133
29134         build: avoid compiler warnings
29135         * lib/fchmodat.c (lchmod): Mark unused variables.
29136         * lib/getopt.c (_getopt_initialize): Likewise.
29137         * lib/mktime.c (__mktime_internal): Provide prototype.
29138         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29139         older gcc that do not understand #pragma GCC diagnostic.
29140         * lib/uinttostr.c (inttype_is_unsigned): Define.
29141         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29142
29143 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29144
29145         stat: fix compilation on AIX
29146         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29147         only see struct stat64.
29148
29149 2009-10-30  Eric Blake  <ebb9@byu.net>
29150
29151         exclude: make more robust
29152         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29153         rather than masking a coding bug.
29154         Suggested by Bruno Haible.
29155
29156 2009-10-30  Jim Meyering  <meyering@redhat.com>
29157
29158         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29159         Rather than putting #!/usr/bin/perl on the first line,
29160         start with a variant of what's recommended by "man perlrun" that
29161         invokes the first "perl" program from your shell's search path.
29162         * build-aux/gitlog-to-changelog: Replace #!... as above.
29163         Add a "Local Variables" perl mode setting.
29164         Prompted by a patch from Ludovic Courtès.
29165         Improved by Eric Blake.
29166         * build-aux/useless-if-before-free: Likewise.
29167         * build-aux/announce-gen: Likewise.
29168         * build-aux/update-copyright: Likewise.
29169
29170 2009-10-29  Eric Blake  <ebb9@byu.net>
29171
29172         filenamecat-lgpl: adjust clients
29173         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29174         filenamecat.
29175         * modules/renameat (Depends-on): Likewise.
29176
29177         filenamecat: split into filenamecat-lgpl
29178         * modules/filenamecat-lgpl: New module.
29179         * modules/filenamecat (Files): Move library-safe files into
29180         filenamecat-lgpl.
29181         (Depends-on): Add filenamecat-lgpl.
29182         (configure.ac): Declare witness.
29183         * lib/filenamecat.h (file_name_concat): Only declare when using
29184         GPL module.
29185         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29186         Move...
29187         * lib/filenamecat-lgpl.c: ...into new file.
29188         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29189         (gl_FILE_NAME_CONCAT): Use it.
29190         * MODULES.html.sh (File system functions): Mention new module.
29191
29192         argp: avoid memory leak
29193         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29194         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29195         base_name, since the latter malloc()s and can call exit().
29196         Leak introduced 2006-07-03.
29197
29198         dirname-lgpl: adjust clients that don't need full dirname
29199         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29200         * modules/filenamecat (Depends-on): Likewise.
29201         * modules/linkat (Depends-on): Likewise.
29202         * modules/mkancesdirs (Depends-on): Likewise.
29203         * modules/mkdir (Depends-on): Likewise.
29204         * modules/openat (Depends-on): Likewise.
29205         * modules/savewd (Depends-on): Likewise.
29206         * modules/rename (Depends-on): Likewise.
29207         (License): Relax license.
29208         * modules/mkdir-tests (Depends-on): Drop progname.
29209         (Makefile.am): Delete unneeded LDADD.
29210         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29211
29212         dirname: split into dirname-lgpl
29213         * modules/dirname-lgpl: New module.
29214         * modules/dirname (Files): Move library-safe files into
29215         dirname-lgpl.
29216         (Depends-on): Add dirname-lgpl.
29217         (configure.ac): Declare witness.
29218         * modules/double-slash-root (License): Relax license.
29219         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29220         module.
29221         * lib/dirname.c (dir_len, mdir_name): Move...
29222         * lib/dirname-lgpl.c: ...into new file.
29223         * lib/basename.c (last_component, base_len): Move...
29224         * lib/basename-lgpl.c: ...into new file.
29225         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29226         (gl_DIRNAME): Use it.
29227         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29228         Mention new module.
29229         * modules/dirname-tests (Depends-on): Add progname.
29230         * tests/test-dirname.c (program_name): Delete.
29231
29232         mkdir: make safe for libraries
29233         * modules/mkdir (Depends-on): Drop xalloc.
29234         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29235         exit.
29236
29237         tests: avoid some compiler warnings
29238         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29239         literals.
29240         * tests/test-memchr.c (main): Avoid type mismatch.
29241         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29242         * tests/test-base64.c (main): Likewise.
29243         * tests/test-getdelim.c (main): Likewise.
29244         * tests/test-gethostname.c (main): Likewise.
29245         * tests/test-getline.c (main): Likewise.
29246         * tests/test-netinet_in.c (main): Likewise.
29247         * tests/test-select.c (open_server_socket, main): Likewise.
29248         * tests/test-select-stdin.c (main): Likewise.
29249         * tests/test-sockets.c (main): Likewise.
29250         * tests/test-strsignal.c (main): Likewise.
29251         * tests/test-sys_select.c (main): Likewise.
29252         * tests/test-sys_socket.c (main): Likewise.
29253         * tests/test-u64.c (main): Likewise.
29254         * tests/test-xfprintf-posix.c (main): Likewise.
29255         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29256
29257         sockets: avoid compiler warning
29258         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29259
29260         maint: detect usage(1) and other suspicious exits
29261         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29262
29263 2009-10-29  Jim Meyering  <meyering@redhat.com>
29264
29265         timespec: long-to-int truncation could make timespec_cmp malfunction
29266         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29267         a multiple of 2^32 nanoseconds as no difference.
29268
29269 2009-10-28  Jim Meyering  <meyering@redhat.com>
29270
29271         fprintftime: wrap macro code argument in "do {...} while(0)"
29272         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29273         cpy macro must be a statement that can be followed by a semicolon.
29274         Now that the else clause contains a comment and is hence longer
29275         than one line, I require curly braces.  That in turn requires
29276         that we wrap this code block in the standard do...while(0).
29277
29278         fprintftime: remove stray semicolon from previous change
29279         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29280
29281         fprintftime: avoid a warning about ignored fwrite return value
29282         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29283         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29284         that is unsafe.
29285         * modules/fprintftime (Depends-on): Add ignore-value.
29286
29287         exclude: avoid an unwarranted warning
29288         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29289
29290 2009-10-27  Eric Blake  <ebb9@byu.net>
29291
29292         fseek: avoid compilation failure when fflush is replaced
29293         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29294         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29295         module is in use.
29296         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29297         module is not in use; since REPLACE_FSEEK worked otherwise.
29298         (GNULIB_FTELLO): Likewise for ftell.
29299         Reported by Ian Beckwith and others.
29300
29301 2009-10-27  Bruno Haible  <bruno@clisp.org>
29302
29303         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29304         Reported by Jim Meyering.
29305
29306 2009-10-27  Jim Meyering  <jim@meyering.net>
29307             Bruno Haible  <bruno@clisp.org>
29308
29309         Avoid warning despite dropping the return value of fwrite.
29310         * lib/unicodeio.c: Include ignore-value.h.
29311         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29312         * modules/unicodeio (Depends-on): Add ignore-value.
29313
29314 2009-10-26  Eric Blake  <ebb9@byu.net>
29315
29316         areadlinkat: fix fallback path
29317         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29318         pointer and zero.
29319
29320 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29321
29322         Use a better IO block size for modern systems
29323         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29324         * lib/md2.c: Likewise.
29325         * lib/md4.c: Likewise.
29326         * lib/md5.c: Likewise.
29327         * lib/sha1.c: Likewise.
29328         * lib/sha256.c: Likewise.
29329         * lib/sha512.c: Likewise.
29330
29331 2009-10-22  Eric Blake  <ebb9@byu.net>
29332
29333         tests: avoid several compiler warnings
29334         * tests/test-getcwd.c (main): Avoid buffer underflow.
29335         * tests/test-getdate.c (main): String literals are not safe with
29336         putenv, so use setenv.  Declare unused argument.
29337         * modules/getdate-tests (Depends-on): Add setenv.
29338         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29339         problems with string literals in char *.
29340         * tests/test-hash.c (main): Avoid shadowing declaration.
29341         (insert_new): Treat string literals as char const *.
29342         * tests/test-getopt.h (test_getopt): Likewise.
29343         (getopt_loop): Alter types to minimize casting elsewhere.
29344         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29345         (test_getopt_long_posix): Likewise.
29346         (do_getopt_long): Add wrapper to minimize casting.
29347         * tests/test-atexit.c (clear_temp_file): Use void.
29348         * tests/test-areadlink-with-size.c (main): Declare unused
29349         arguments.
29350         * tests/test-areadlink.c (main): Likewise.
29351         * tests/test-areadlinkat-with-size.c (main): Likewise.
29352         * tests/test-areadlinkat.c (main): Likewise.
29353         * tests/test-canonicalize-lgpl.c (main): Likewise.
29354         * tests/test-canonicalize.c (main): Likewise.
29355         * tests/test-dirent-safer.c (main): Likewise.
29356         * tests/test-dirname.c (main): Likewise.
29357         * tests/test-dup2.c (main): Likewise.
29358         * tests/test-fchdir.c (main): Likewise.
29359         * tests/test-fcntl-h.c (main): Likewise.
29360         * tests/test-fcntl-safer.c (main): Likewise.
29361         * tests/test-fdopendir.c (main): Likewise.
29362         * tests/test-fdutimensat.c (main): Likewise.
29363         * tests/test-fflush.c (main): Likewise.
29364         * tests/test-filenamecat.c (main): Likewise.
29365         * tests/test-filevercmp.c (main): Likewise.
29366         * tests/test-fopen-safer.c (main): Likewise.
29367         * tests/test-fopen.c (main): Likewise.
29368         * tests/test-fpending.c (main): Likewise.
29369         * tests/test-fpurge.c (main): Likewise.
29370         * tests/test-freading.c (main): Likewise.
29371         * tests/test-fstatat.c (main): Likewise.
29372         * tests/test-fsync.c (main): Likewise.
29373         * tests/test-futimens.c (main): Likewise.
29374         * tests/test-getndelim2.c (main): Likewise.
29375         * tests/test-gettimeofday.c (main): Likewise.
29376         * tests/test-getopt.c (main): Likewise.
29377         * tests/test-i-ring.c (main): Likewise.
29378         * tests/test-inttypes.c (main): Likewise.
29379         * tests/test-link.c (main): Likewise.
29380         * tests/test-lstat.c (main): Likewise.
29381         * tests/test-math.c (main): Likewise.
29382         * tests/test-md5.c (main): Likewise.
29383         * tests/test-memchr2.c (main): Likewise.
29384         * tests/test-memrchr.c (main): Likewise.
29385         * tests/test-mkdir.c (main): Likewise.
29386         * tests/test-mkdirat.c (main): Likewise.
29387         * tests/test-mkfifoat.c (main): Likewise.
29388         * tests/test-open.c (main): Likewise.
29389         * tests/test-openat-safer.c (main): Likewise.
29390         * tests/test-openat.c (main): Likewise.
29391         * tests/test-quotearg.c (main): Likewise.
29392         * tests/test-rawmemchr.c (main): Likewise.
29393         * tests/test-readlink.c (main): Likewise.
29394         * tests/test-remove.c (main): Likewise.
29395         * tests/test-rename.c (main): Likewise.
29396         * tests/test-renameat.c (main): Likewise.
29397         * tests/test-rmdir.c (main): Likewise.
29398         * tests/test-sha1.c (main): Likewise.
29399         * tests/test-signal.c (main): Likewise.
29400         * tests/test-sigaction.c (main): Likewise.
29401         * tests/test-stat.c (main): Likewise.
29402         * tests/test-stat-time.c (main): Likewise.
29403         * tests/test-stddef.c (main): Likewise.
29404         * tests/test-stdint.c (main): Likewise.
29405         * tests/test-stdio.c (main): Likewise.
29406         * tests/test-stdlib.c (main): Likewise.
29407         * tests/test-strchrnul.c (main): Likewise.
29408         * tests/test-strerror.c (main): Likewise.
29409         * tests/test-string.c (main): Likewise.
29410         * tests/test-strtod.c (main): Likewise.
29411         * tests/test-strverscmp.c (main): Likewise.
29412         * tests/test-symlink.c (main): Likewise.
29413         * tests/test-symlinkat.c (main): Likewise.
29414         * tests/test-sys_stat.c (main): Likewise.
29415         * tests/test-sys_time.c (main): Likewise.
29416         * tests/test-time.c (main): Likewise.
29417         * tests/test-unistd.c (main): Likewise.
29418         * tests/test-unlink.c (main): Likewise.
29419         * tests/test-unlinkat.c (main): Likewise.
29420         * tests/test-utimens.c (main): Likewise.
29421         * tests/test-utimensat.c (main): Likewise.
29422         * tests/test-version-etc.c (main): Likewise.
29423         * tests/test-wchar.c (main): Likewise.
29424         * tests/test-wctype.c (main): Likewise.
29425         * tests/test-xprintf-posix.c (main): Likewise.
29426         * tests/test-posixtm.c (main): Likewise.
29427         (STREQ): Delete unused macro.
29428         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29429         shadowed variables.
29430         * tests/test-memchr.c (main): Likewise.
29431
29432 2009-10-21  Eric Blake  <ebb9@byu.net>
29433
29434         areadlinkat: avoid failure on older glibc
29435         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29436         rather than mis-comparing 0 against FUNC_RESULT of char*.
29437
29438 2009-10-21  Bruno Haible  <bruno@clisp.org>
29439
29440         * modules/stpncpy (License): Relicense under LGPLv2+.
29441         Reported by David Lutterkort <lutter@redhat.com>.
29442
29443 2009-10-20  Eric Blake  <ebb9@byu.net>
29444
29445         utimensat: work around Solaris 9 bug
29446         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29447         has trailing slash bugs.
29448         * tests/test-lutimens.h (test_lutimens): Enhance test.
29449         * tests/test-utimens.h (test_utimens): Likewise.
29450         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29451         * doc/posix-functions/utimes.texi (utimes): Likewise.
29452         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29453         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29454         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29455         * doc/posix-functions/futimens.texi (futimens): Likewise.
29456
29457         fdutimensat: new module
29458         * modules/fdutimensat: New file.
29459         * lib/fdutimensat.c (fdutimensat): Likewise.
29460         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29461         * MODULES.html.sh (File system functions): Mention module.
29462         * modules/fdutimensat-tests: New test.
29463         * tests/test-fdutimensat.c: Likewise.
29464
29465         doc: regenerate INSTALL
29466         * doc/INSTALL: Reflect recent autoconf update.
29467         * doc/INSTALL.ISO: Likewise.
29468         * doc/INSTALL.UTF-8: Likewise.
29469
29470 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29471
29472         acl: warn if ACL support is not detected
29473         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29474
29475 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29476
29477         * lib/nproc.h: Add extern "C" block for C++.
29478
29479 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29480             Bruno Haible  <bruno@clisp.org>
29481
29482         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29483         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29484         * doc/posix-functions/isalpha.texi: Likewise.
29485         * doc/posix-functions/isblank.texi: Likewise.
29486         * doc/posix-functions/iscntrl.texi: Likewise.
29487         * doc/posix-functions/isdigit.texi: Likewise.
29488         * doc/posix-functions/isgraph.texi: Likewise.
29489         * doc/posix-functions/islower.texi: Likewise.
29490         * doc/posix-functions/isprint.texi: Likewise.
29491         * doc/posix-functions/ispunct.texi: Likewise.
29492         * doc/posix-functions/isspace.texi: Likewise.
29493         * doc/posix-functions/isupper.texi: Likewise.
29494         * doc/posix-functions/isxdigit.texi: Likewise.
29495
29496 2009-10-18  Bruno Haible  <bruno@clisp.org>
29497
29498         Tests for module 'isblank'.
29499         * modules/isblank-tests: New file.
29500         * tests/test-isblank.c: New file.
29501
29502         New module 'isblank'.
29503         * lib/isblank.c: New file.
29504         * m4/isblank.m4: New file.
29505         * modules/isblank: New file.
29506         * doc/posix-functions/isblank.texi: Mention the new module.
29507
29508 2009-10-18  Bruno Haible  <bruno@clisp.org>
29509
29510         New module 'ctype'.
29511         * lib/ctype.in.h: New file.
29512         * m4/ctype.m4: New file.
29513         * modules/ctype: New file.
29514         * doc/posix-headers/ctype.texi: Mention the new module.
29515
29516 2009-10-18  Jim Meyering  <meyering@redhat.com>
29517
29518         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29519         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29520         right after its initialization, rather than farther down.
29521         Keeping these in close proximity makes it easier to ensure
29522         that each such variable is initialized.  E.g.,
29523
29524             LIB_CLOCK_GETTIME=
29525             AC_SUBST([LIB_CLOCK_GETTIME])
29526
29527         This change also increments these serial numbers.
29528         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29531
29532 2009-10-18  Bruno Haible  <bruno@clisp.org>
29533
29534         Don't let environment variables perturb build.
29535         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29536         (gl_PREREQ_GETHRXTIME): ... not here.
29537
29538 2009-10-18  Bruno Haible  <bruno@clisp.org>
29539
29540         Avoid symlink attack in localcharset module.
29541         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29542         (O_NOFOLLOW): Define fallback.
29543         (get_charset_aliases): Don't open the file if it is a symbolic link.
29544         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29545         gl_FCNTL_H.
29546         (gl_FCNTL_H): Require it.
29547         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29548         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29549         Reported by Fergal Glynn <fglynn@veracode.com>.
29550
29551 2009-10-18  Bruno Haible  <bruno@clisp.org>
29552
29553         Implement nproc for mingw.
29554         * lib/nproc.c: Include <windows.h>
29555         (num_processors): On native Windows platforms, try GetSystemInfo.
29556
29557 2009-10-18  Bruno Haible  <bruno@clisp.org>
29558
29559         Implement nproc for IRIX.
29560         * lib/nproc.c: Include <sys/sysmp.h>.
29561         (num_processors): On IRIX systems, try sysmp.
29562         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29563
29564 2009-10-18  Bruno Haible  <bruno@clisp.org>
29565
29566         Implement nproc for HP-UX.
29567         * lib/nproc.c: Include <sys/pstat.h>
29568         (num_processors): On HP-UX systems, try pstat_getdynamic.
29569         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29570         pstat_getdynamic.
29571
29572 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29573             Bruno Haible  <bruno@clisp.org>
29574
29575         Implement nproc for NetBSD, OpenBSD.
29576         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29577         (ARRAY_SIZE): New macro.
29578         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29579         * m4/nproc.m4: New file.
29580         * modules/nproc (Files): Add m4/nproc.m4.
29581         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29582         (Makefile.am): Instead, augment lib_SOURCES.
29583
29584 2009-10-18  Bruno Haible  <bruno@clisp.org>
29585
29586         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29587         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29588         sys/param.h.
29589
29590 2009-10-16  Eric Blake  <ebb9@byu.net>
29591
29592         utimensat: new module
29593         * modules/utimensat: New file.
29594         * lib/utimensat.c (utimensat): Likewise.
29595         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29596         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29597         so we can work around Linux bugs.
29598         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29599         * modules/sys_stat (Makefile.am): Substitute them.
29600         * lib/sys_stat.in.h (utimensat): Declare it.
29601         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29602         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29603         * modules/utimensat-tests: New test.
29604         * tests/test-utimensat.c: Likewise.
29605
29606         utimens: let lutimens work on non-symlinks
29607         * lib/utimens.c (lutimens): Fall back to utimens rather than
29608         failing with ENOSYS, when file is not a symlink.
29609         (utimens): Reduce redirection.
29610         * tests/test-lutimens.h (test_lutimens): Update test to cover
29611         non-symlinks.
29612         * tests/test-utimens.h (test_utimens): Update test to cover
29613         symlinks.
29614         * tests/test-utimens.c (main): Update caller.
29615
29616         utimens: cache whether utimensat syscall works
29617         * lib/utimens.c (utimensat_works_really): New cache variable.
29618         (fdutimens, lutimens): Use it to avoid failing syscall.
29619
29620         test-stat-time, test-utimens: improve portability
29621         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29622         ext4 on alpha, and for cygwin.
29623         * tests/test-utimens-common.h: New file.
29624         (nap): Factor delays into single function.
29625         * tests/test-lutimens.h (test_lutimens): Use new header.
29626         * tests/test-futimens.h (test_futimens): Likewise.
29627         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29628         timestamps to occur from same machine, as was done previously for
29629         test_utimens.
29630         * modules/utimens-tests (Files): Ship new file.
29631         * modules/futimens-tests (Files): Likewise.
29632         Reported in part by Jim Meyering.
29633
29634         sys_stat: sort replacement declarations
29635         * lib/sys_stat.in.h: Sort declarations.
29636         * lib/futimens.c (futimens): Fix typo.
29637
29638 2009-10-15  Jim Meyering  <meyering@redhat.com>
29639
29640         don't let environment settings perturb build
29641         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29642         could cause a configure-time and/or build-time malfunction.
29643         Typically, a configure-time function-in-library test is performed
29644         via code like this:
29645
29646           LIB_VAR=
29647           AC_SUBST([LIB_VAR])
29648           prefix_saved_LIBS=$LIBS
29649             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29650                        [test "$ac_cv_search_FUNC" = "none required" ||
29651                         LIB_VAR=$ac_cv_search_FUNC])
29652           LIBS=$prefix_saved_LIBS
29653
29654         However, in each of the files affected by this change, the LIB_VAR=
29655         initialization was omitted.  Thus, when set in the environment, its
29656         value would propagate into generated Makefiles when FUNC is not found
29657         in LIB_NAME.
29658         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29659         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29661
29662 2009-10-14  Eric Blake  <ebb9@byu.net>
29663
29664         fchdir: avoid infinite recursion in mingw
29665         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29666         recursing.
29667
29668         test-stat-time: port to mingw
29669         * tests/test-stat-time.c (force_unlink): Return a value.
29670         (test_ctime) [W32]: Fix compilation error.
29671         (nap): Don't call usleep with too large an argument.  Use
29672         force_unlink.
29673         * doc/pastposix-functions/usleep.texi (usleep): Document the
29674         portability issue.
29675
29676 2009-10-13  Jim Meyering  <meyering@redhat.com>
29677
29678         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29679         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29680         * modules/pipe-filter-ii: Likewise.
29681         * modules/sys_socket-tests: Likewise.
29682         * modules/tsearch-tests: Likewise.
29683         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29684         (check): Depend on it.
29685
29686 2009-10-12  Eric Blake  <ebb9@byu.net>
29687
29688         utimens-tests: port to NFS file systems
29689         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29690         comparisons to avoid spurious failures from timestamp drift
29691         between NFS machines.
29692
29693 2009-10-12  Eric Blake  <ebb9@byu.net>
29694
29695         stat-time-tests: minor cleanups
29696         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29697         * tests/test-stat-time.c (nap): Separate assignment from call.
29698         Suggested by Paolo Bonzini and Bruno Haible.
29699
29700         sys_stat: guarantee struct timespec
29701         * lib/sys_stat.in.h (includes): Always include <time.h>
29702         * modules/sys_stat (Depends-on): Add time.
29703         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29704         mode_t permission values.
29705         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29706         get at subsecond timestamps.
29707
29708 2009-10-10  Eric Blake  <ebb9@byu.net>
29709
29710         futimens: new module
29711         * modules/futimens: New file.
29712         * lib/futimens.c (futimens): Likewise.
29713         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29714         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29715         we can work around Linux bugs.
29716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29717         * modules/sys_stat (Makefile.am): Substitute them.
29718         * lib/sys_stat.in.h (futimens): Declare it.
29719         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29720         * doc/posix-functions/futimens.texi (futimens): Likewise.
29721         * modules/futimens-tests: New test.
29722         * tests/test-futimens.c: Likewise.
29723
29724         utimens: introduce fdutimens
29725         * lib/utimens.h (fdutimens): New prototype.
29726         * lib/utimens.c (gl_futimens): Move guts...
29727         (fdutimens): ...to new interface.
29728         * tests/test-utimens.c (do_fdutimens): Use it.
29729
29730         utimens: add UTIME_NOW and UTIME_OMIT support
29731         * lib/utimens.c (validate_timespec, update_timespec): New helper
29732         functions.
29733         (gl_futimens, lutimens): Use them.
29734         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29735         stdbool, sys_stat.
29736         (Link): Mention resulting library dependency.
29737         * modules/utimecmp (Link): Likewise.
29738         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29739         (Makefile.am): Pick up library dependency.
29740         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29741         definition.
29742         * tests/test-sys_stat.c: Test the definitions.
29743         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29744         * NEWS: Document library dependency.
29745
29746         utimecmp: support symlink timestamps
29747         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29748         hashing when possible.  Use pathconf when available.
29749         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29750         * modules/utimecmp (Depends-on): Add lstat.
29751
29752         utimens: add lutimens interface
29753         * lib/utimens.c (lutimens): New function.
29754         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29755         * lib/utimens.h (lutimens): Declare new interface.
29756         * tests/test-utimens.c (main): Enhance test.
29757         * tests/test-lutimens.h (test_lutimens): New file.
29758         * modules/utimens-tests (Files): Distribute it.
29759         (Depends-on): Add symlink.
29760         (configure.ac): Check for usleep.
29761
29762         utimens: validate futimens usage
29763         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29764         fewer syscalls on failure later on.  Avoid compiler warning on
29765         mingw.
29766         * modules/utimens (Depends-on): Add dup2.
29767
29768         utimens: add test
29769         * modules/utimens-tests: New test.
29770         * tests/test-utimens.h: New file.
29771         * tests/test-futimens.h: Likewise.
29772         * tests/test-utimens.c: Likewise.
29773
29774         doc: mention timestamp portability issues
29775         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29776         instead.
29777         * doc/posix-functions/utime.texi (utime): Likewise.
29778         * doc/posix-functions/utimes.texi (utimes): Likewise.
29779         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29780         instead.
29781         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29782         module.
29783         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29784         Mention weakness with symlink timestamps.
29785         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29786         to utimensat/futimens instead.
29787         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29788
29789         test-dup2: enhance test
29790         * tests/test-dup2.c (main): Also check AT_FDCWD.
29791
29792         test-stat-time: avoid more spurious failures
29793         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29794         xfs; and avoid race if the two timestamps cross quantization edge.
29795
29796         relocatable: prefer 'file system' over 'filesystem'
29797         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29798         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29799         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29800         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29801         * lib/relocatable.c (compute_curr_prefix): Likewise.
29802
29803 2009-10-10  Jim Meyering  <meyering@redhat.com>
29804
29805         stat-time-tests: check for the usleep function
29806         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29807
29808 2009-10-10  Bruno Haible  <bruno@clisp.org>
29809
29810         * modules/xnanosleep: Put the Link section after the Include section.
29811
29812 2009-10-09  Eric Blake  <ebb9@byu.net>
29813
29814         dup2: work around FreeBSD 6.1 bug
29815         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29816         * doc/posix-functions/dup2.texi (dup2): Document it.
29817         Reported by Nelson H. F. Beebe and Jim Meyering.
29818
29819         test-stat-time: port to buggy NFS clients
29820         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29821         (test_ctime): Also skip test if mtime and ctime are skewed.
29822
29823         maint: prefer 'file system' over 'filesystem'
29824         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29825         * doc/posix-functions/lstat.texi (lstat): Likewise.
29826         * lib/file-has-acl.c (file_has_acl): Likewise.
29827         * lib/fwriteerror.c [TEST]: Likewise.
29828         * tests/test-areadlink.h (test_areadlink): Likewise.
29829         * tests/test-areadlinkat-with-size.c (main): Likewise.
29830         * tests/test-areadlinkat.c (main): Likewise.
29831         * tests/test-canonicalize-lgpl.c (main): Likewise.
29832         * tests/test-canonicalize.c (main): Likewise.
29833         * tests/test-fstatat.c (main): Likewise.
29834         * tests/test-linkat.c (main): Likewise.
29835         * tests/test-lstat.h (test_lstat_func): Likewise.
29836         * tests/test-mkdir.h (test_mkdir): Likewise.
29837         * tests/test-readlink.h (test_readlink): Likewise.
29838         * tests/test-remove.c (main): Likewise.
29839         * tests/test-rename.h (test_rename): Likewise.
29840         * tests/test-renameat.c (main): Likewise.
29841         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29842         * tests/test-symlink.h (test_symlink): Likewise.
29843         * tests/test-symlinkat.c (main): Likewise.
29844         * tests/test-unlink.h (test_unlink_func): Likewise.
29845         * tests/test-unlinkat.c (main): Likewise.
29846
29847         maint: make realtime library usage explicit
29848         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29849         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29850         * modules/settime (Link): Likewise.
29851         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29852
29853         test-stat-time: speed up execution
29854         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29855         warning on mingw.
29856         (nap): New helper function.
29857         (prepare_test): Use it to reduce sleep time.
29858         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29859         execution.
29860         * modules/stat-time-tests (configure.ac): Check for usleep.
29861
29862 2009-10-09  Jim Meyering  <meyering@redhat.com>
29863
29864         selinux-h: always use getfilecon wrappers
29865         * lib/getfilecon.c: New file.
29866         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29867         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29868         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29869         (fgetfilecon): Provide a stub.
29870         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29871         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29872         file unconditionally.
29873         When <selinux/selinux.h> is found, arrange to use wrappers.
29874         * modules/selinux-h (Files): Add getfilecon.c.
29875         (Makefile.am): Substitute include-next-related bits
29876         into the now-always-generated selinux/selinux.h file.
29877         * doc/glibc-functions/lgetfilecon.texi: New file.
29878         * doc/glibc-functions/fgetfilecon.texi: New file.
29879         * doc/glibc-functions/getfilecon.texi: New file.
29880         * doc/glibc-functions/getfilecon-desc.texi: New file.
29881         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29882         which to pull in the new files.
29883         * MODULES.html.sh (Misc): Add selinux-h.
29884
29885 2009-10-08  Jim Meyering  <meyering@redhat.com>
29886
29887         unistd: fix comment typo
29888         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29889
29890 2009-10-08  Eric Blake  <ebb9@byu.net>
29891
29892         areadlink: use SIZE_MAX consistently
29893         * modules/areadlink (Depends-on): Add stdint.
29894         * modules/areadlink-with-size (Depends-on): Likewise.
29895         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29896         gives NULL; drop sys/types, since unistd gives size_t; and add
29897         stdint for SIZE_MAX.
29898         (SIZE_MAX): Rely on headers.
29899         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29900         and add stdint.
29901         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29902         (SIZE_MAX): Likewise.
29903         (INITIAL_BUF_SIZE): Turn into enum.
29904         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29905
29906 2009-10-08  Jim Meyering  <meyering@redhat.com>
29907
29908         areadlinkat: avoid compilation failure
29909         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29910         Fix typo in comment.
29911
29912 2009-10-07  Eric Blake  <ebb9@byu.net>
29913
29914         areadlinkat-with-size: new module
29915         * modules/areadlinkat-with-size: New module.
29916         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29917         * lib/areadlink.h (areadlinkat): Declare it.
29918         * MODULES.html.sh (File system functions): Mention it.
29919         * modules/areadlinkat-with-size-tests: New test.
29920         * tests/test-areadlinkat-with-size.c: New file.
29921
29922         xreadlinkat: new module
29923         * modules/xreadlinkat: New module.
29924         * lib/xreadlinkat.c (xreadlinkat): New file.
29925         * lib/xreadlink.h (xreadlinkat): Declare it.
29926         * MODULES.html.sh (File system functions): Mention it.
29927
29928         areadlinkat: new module
29929         * lib/at-func.c (FUNC_FAIL): New define.
29930         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29931         * modules/areadlinkat: New module.
29932         * lib/linkat.c (areadlinkat): Move...
29933         * lib/areadlinkat.c (areadlinkat): ...to new file.
29934         * lib/areadlink.h (areadlinkat): Declare it.
29935         * modules/linkat (Depends-on): Add areadlinkat.
29936         * MODULES.html.sh (File system functions): Mention it.
29937         * modules/areadlinkat-tests: New test.
29938         * tests/test-areadlinkat.c: New file.
29939
29940         areadlink, areadlink-with-size: add tests
29941         * modules/areadlink-tests: New test.
29942         * modules/areadlink-with-size-tests: Likewise.
29943         * tests/test-areadlink.h: New file.
29944         * tests/test-areadlink.c: Likewise.
29945         * tests/test-areadlink-with-size.c: Likewise.
29946
29947         maint: minor cleanups
29948         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29949         _UNUSED_PARAMETER_ instead.
29950         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29951         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29952         * modules/linkat-tests (Files): Distribute test-link.h.
29953
29954         openat, utimens: whitespace cleanup
29955         * lib/openat.c: Prefer space throughout, rather than mix of 8
29956         spaces vs. tabs.
29957         * lib/at-func.c: Likewise.
29958         * lib/utimens.c: Likewise.
29959
29960         openat: avoid using wrong fd
29961         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29962         working directory chooses same fd.
29963         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29964
29965         mkdir, mkdirat: fix cygwin 1.5.x bug
29966         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29967         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29968         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29969         bug.
29970         (gl_PREREQ_MKDIR): Delete unused macro.
29971         * modules/mkdir (Files): Track file rename.
29972         (configure.ac): Update macro name.
29973         * modules/openat (Depends-on): Add mkdir.
29974         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29975
29976         mkdir, mkdirat: add tests
29977         * modules/mkdir-tests: New test.
29978         * tests/test-mkdir.h: New file.
29979         * tests/test-mkdir.c: Likewise.
29980         * tests/test-mkdirat.c: Likewise.
29981         * modules/openat-tests (Files): Add new files.
29982         (Makefile.am): Run new test.
29983
29984 2009-10-06  Eric Blake  <ebb9@byu.net>
29985
29986         doc: tweak *at function documentation
29987         * doc/posix-functions/faccessat.texi (faccessat): Mention
29988         known issue with replacement.
29989         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29990         * doc/posix-functions/linkat.texi (linkat): Likewise.
29991         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29992         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29993         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29994         * doc/posix-functions/renameat.texi (renameat): Likewise.
29995         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29996
29997         openat: fix GNU/Hurd bug in unlinkat
29998         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29999         broken.
30000         * doc/posix-functions/unlink.texi (unlink): Document this.
30001         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30002
30003         fdopendir: fix GNU/Hurd bug
30004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30005         allowing non-directory fds.
30006         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30008         * modules/dirent (Makefile.am): Substitute it.
30009         * lib/dirent.in.h (fdopendir): Declare replacement.
30010         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30011         * tests/test-fdopendir.c (main): Test something other than
30012         /dev/null, since on Hurd that behaves like a directory.
30013
30014         test-symlink: port to GNU/Hurd
30015         * tests/test-symlink.h (test_symlink): Relax expected errno.
30016
30017         doc: tweak more cygwin information
30018         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30019         now compatible with glibc.
30020         * doc/posix-functions/getopt.texi (getopt): Likewise.
30021
30022         getopt-gnu: add another test
30023         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30024         guarantee behavior relied on by m4.
30025         * tests/test-getopt.c (main): Use it.
30026         * modules/getopt-posix-tests (Depends-on): Add setenv.
30027         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30028
30029         getopt: fix compilation on darwin
30030         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30031         include.
30032         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30033         Reported by Ludovic Courtès.
30034
30035 2009-10-06  Bruno Haible  <bruno@clisp.org>
30036
30037         * modules/size_max (Description): Discourage its use.
30038         Reported by Simon Josefsson.
30039
30040 2009-10-06  Jim Meyering  <meyering@redhat.com>
30041
30042         linkat: avoid compilation failure
30043         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30044
30045 2009-10-05  Eric Blake  <ebb9@byu.net>
30046
30047         linkat: support Linux 2.6.17
30048         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30049         linkat on Linux, but allow cache variable override.
30050         * lib/linkat.c (rpl_linkat): Define override.
30051         * modules/linkat (Depends-on): Add symlinkat.
30052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30053         * modules/unistd (Makefile.am): Substitute it.
30054         * lib/unistd.in.h (linkat): Declare replacement.
30055         Reported by Pádraig Brady.
30056
30057         quotearg: port test to systems with C.UTF-8 locale
30058         * tests/test-quotearg.c (struct result_strings): Add another
30059         member, differentiating between C.ASCII and C.UTF-8 handling.
30060         (compare_strings): Add parameter.
30061         (main): Adjust all callers.
30062
30063         getopt: avoid clash with FreeBSD _getopt_internal
30064         * lib/getopt.in.h (_getopt_internal): Override the name.
30065         * lib/getopt_int.h (includes): Pick up any overrides.
30066         Reported by Reuben Thomas.
30067
30068         hash: allow C89 compilation
30069         * lib/hash.c (check_tuning): Move declaration before statement.
30070         Reported by Reuben Thomas.
30071
30072 2009-10-05  Karl Berry  <karl@gnu.org>
30073
30074         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30075
30076 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30077             Bruno Haible  <bruno@clisp.org>
30078
30079         * lib/uname.c (uname): Use a table-driven algorithm to compute
30080         Windows NT versions.
30081
30082 2009-10-04  Bruno Haible  <bruno@clisp.org>
30083
30084         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30085         program_invocation_short_name.
30086         * modules/progname (configure.ac): Test for presence of
30087         program_invocation_short_name.
30088         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30089
30090 2009-10-04  Bruno Haible  <bruno@clisp.org>
30091
30092         * lib/progname.c (set_program_name): Fix comment.
30093         Reported by Jim Meyering.
30094
30095 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30096             Bruno Haible  <bruno@clisp.org>
30097
30098         * lib/uname.c: Include <string.h>.
30099         (uname): Do only one call to GetVersionEx in the common case.
30100
30101 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30102             Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30105         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30106         (uname): Add support for Windows CE and various non-x86 CPU types.
30107
30108 2009-10-03  Bruno Haible  <bruno@clisp.org>
30109
30110         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30111         invocation to tests/configure.ac.
30112         Reported by Ian Beckwith <ianb@erislabs.net>.
30113
30114 2009-10-02  Eric Blake  <ebb9@byu.net>
30115
30116         fchdir: avoid compiler warning
30117         * lib/fchdir.c (canonicalize_file_name)
30118         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30119
30120         test-open: support mingw errno values
30121         * tests/test-open.h (test_open): Relax test.
30122         * tests/test-fopen.h (test_fopen): Likewise.
30123         * tests/test-openat-safer.c (main): Likewise.
30124
30125         open: fix opening directory on mingw
30126         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30127
30128         test-open: on GNU/Hurd, /dev/null is a directory
30129         * tests/test-fopen.h (main): Rename...
30130         (test_fopen): ...to this.  Use a guaranteed non-directory when
30131         confirming open behavior on trailing slash.
30132         * tests/test-openat-safer.c (main): Likewise.
30133         * tests/test-open.h (main): Likewise....
30134         (test_open): ...to this.
30135         * tests/test-fopen.c (main): Adjust caller.
30136         * tests/test-fopen-safer.c (main): Likewise.
30137         * tests/test-open.c (main): Likewise.
30138         * tests/test-fcntl-safer.c (main): Likewise.
30139         Reported by Samuel Thibault.
30140
30141         rename, fchdir: don't ignore chdir failure
30142         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30143         * lib/rename.c (rpl_rename) [W32]: Likewise.
30144         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30145         an empty destination directory if source cannot be renamed,
30146         although there is still possibility for failure.
30147         * doc/posix-functions/rename.texi (rename): Document the race.
30148         Reported by Jim Meyering.
30149
30150         maint: cleanup whitespace in recent commits
30151         * lib/rename.c (rpl_rename): Remove tabs.
30152         * tests/test-link.h (test_link): Likewise.
30153         * lib/fchdir.c (get_name): Likewise.
30154         Reported by Jim Meyering.
30155
30156 2009-10-02  Ben Pfaff  <blp@gnu.org>
30157
30158         relocatable-prog-wrapper: Add missing dependency on
30159         double-slash-root.
30160         * modules/relocatable-prog-wrapper: Add dependency.
30161         Reported by Ian Beckwith <ianb@erislabs.net>.
30162
30163 2009-10-02  Eric Blake  <ebb9@byu.net>
30164
30165         renameat: fix Solaris bugs
30166         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30167         needed fixing.
30168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30169         * modules/stdio (Makefile.am): Substitute it.
30170         * lib/stdio.in.h (renameat): Declare replacement.
30171         * lib/renameat.c (rpl_renameat): Implement fix.
30172
30173         renameat: new module
30174         * modules/renameat: New file.
30175         * lib/renameat.c (renameat): Likewise.
30176         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30178         * modules/stdio (Makefile.am): Substitute them.
30179         * lib/stdio.in.h (renameat): Declare it.
30180         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30181         * doc/posix-functions/renameat.texi (renameat): Likewise.
30182         * modules/renameat-tests: New test.
30183         * tests/test-renameat.c: Likewise.
30184
30185         rename: fix mingw bugs
30186         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30187         directory overwrite bugs.
30188
30189         rename: fix another cygwin 1.5 bug
30190         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30191         checks.
30192         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30193         unnecessary cygwin workarounds.  Also work around bug with moving
30194         full directory onto an empty one.
30195         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30196
30197         rename-dest-slash: merge into rename module
30198         * modules/rename-dest-slash (Status): Mark obsolete.
30199         (Depends-on): Add rename.
30200         (Files): Let rename do it all.
30201         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30202         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30203         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30204         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30205         * lib/rename.c (rpl_rename): Update comments.
30206
30207         rename: fix cygwin 1.5.x bugs
30208         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30209         * lib/rename.c (rpl_rename): Work around them.
30210         * modules/rename (Depends-on): Add same-inode.
30211
30212         rename: fix Solaris 10 bug
30213         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30214         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30215         was the only bug.
30216
30217         rename: fix Solaris 9 bug
30218         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30219         on non-directory.  Avoid calling exit.
30220         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30221         strdup.
30222         * modules/rename-tests (Depends-on): Drop lstat.
30223         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30224         (gl_PREREQ_RENAME): Delete unused macro.
30225
30226         rename-dest-slash: fix NetBSD bug
30227         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30228         links.
30229         * modules/rename-dest-slash (Depends-on): Add same-inode.
30230
30231         rename-tests: new test, exposes several platform bugs
30232         * modules/rename-tests: New file.
30233         * tests/test-rename.h: Likewise.
30234         * tests/test-rename.c: Likewise.
30235         * doc/posix-functions/rename.texi (rename): Improve documentation,
30236         including bugs that will eventually be fixed in gnulib.
30237
30238 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30239
30240         * lib/uname.c: Include <stdlib.h>
30241         (uname): Assume version info is available.
30242
30243 2009-10-02  Jim Meyering  <meyering@redhat.com>
30244
30245         gnu-web-doc-update: correct --help output
30246         * build-aux/gnu-web-doc-update: Make --help output relevant.
30247
30248         gnu-web-doc-update: add standard options
30249         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30250
30251         gnu-web-doc-update: New module.
30252         Use this script to automatically update the on-line web documentation
30253         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30254         * modules/gnu-web-doc-update: New file, from coreutils.
30255         * build-aux/gnu-web-doc-update: New script.
30256
30257 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30258
30259         link: LoadLibrary is not needed.
30260         * lib/link.c: Use GetModuleHandle.
30261
30262 2009-10-01  Eric Blake  <ebb9@byu.net>
30263
30264         getopt: bump serial number
30265         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30266         change.
30267
30268         tests: tighten link, rmdir, and remove tests
30269         * tests/test-link.h (includes): No need to use <config.h> here.
30270         Clean up if directory hard link was created, otherwise test for
30271         trailing '.'.
30272         * tests/test-linkat.c (main): Simplify.
30273         * tests/test-remove.c (main): Enhance test for trailing '.'.
30274         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30275
30276 2009-10-01  Jim Meyering  <meyering@redhat.com>
30277
30278         maint.mk: requiring "make major" was annoying, for a "minor" release.
30279         What is intended is "stable", to contrast with alpha and beta,
30280         so require "make stable", not "make major".
30281         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30282         (get_tool_versions): Likewise.
30283         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30284
30285 2009-09-30  Ben Pfaff  <blp@gnu.org>
30286
30287         Fix broken build of replacement for Windows tmpfile().
30288         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30289         flags argument added along with the 'mkostemp' module.
30290
30291 2009-09-28  Bruno Haible  <bruno@clisp.org>
30292
30293         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30294         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30295         to 'remove_elt'.
30296         (gl_list_remove): Update.
30297         * lib/gl_list.c (gl_list_remove): Update.
30298         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30299         to 'remove_elt'.
30300         (gl_oset_remove): Update.
30301         * lib/gl_list.c (gl_oset_remove): Update.
30302         Reported by Eric Blake.
30303
30304 2009-09-28  Eric Blake  <ebb9@byu.net>
30305
30306         doc: mention yet more cygwin 1.7 status
30307         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30308         cygwin.
30309         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30310         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30311
30312         argp: fix test failure
30313         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30314         that are not upper-case.  Pass correct range to tolower.
30315
30316 2009-09-27  Jim Meyering  <meyering@redhat.com>
30317
30318         test-yesno: work around sparc-dash here-document infelicity
30319         Without this change, the literal \177 byte in a here document
30320         would make dash 0.5.5.1-3 access uninitialized memory.
30321         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30322         Instead, use a marker, "@", and filter through tr to create the desired
30323         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30324
30325 2009-09-27  Bruno Haible  <bruno@clisp.org>
30326
30327         Disable untested support for new flavours of ACLs on AIX.
30328         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30329         progress.
30330         * lib/set-mode-acl.c (qset_acl): Likewise.
30331
30332 2008-12-07  Bruno Haible  <bruno@clisp.org>
30333
30334         Add support for new flavours of ACLs on AIX. (Untested.)
30335         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30336         (file_has_acl): Add support for newer AIX.
30337         * lib/set-mode-acl.c (qset_acl): Likewise.
30338         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30339         Rainer Tammer <tammer@tammer.net>.
30340
30341 2009-09-26  Eric Blake  <ebb9@byu.net>
30342
30343         argp: fix compilation of getopt
30344         * lib/getopt.in.h (includes): Use different guard than glibc.
30345         Reported by Sergey Poznyakoff.
30346
30347         doc: mention more cygwin 1.7 status
30348         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30349         bug.
30350         * doc/posix-functions/execl.texi (execl): Likewise.
30351         * doc/posix-functions/execle.texi (execle): Likewise.
30352         * doc/posix-functions/execlp.texi (execlp): Likewise.
30353         * doc/posix-functions/execv.texi (execv): Likewise.
30354         * doc/posix-functions/execve.texi (execve): Likewise.
30355         * doc/posix-functions/execvp.texi (execvp): Likewise.
30356         * doc/glibc-functions/canonicalize_file_name.texi
30357         (canonicalize_file_name): Cygwin 1.7 now provides this.
30358         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30359         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30360         on AT_SYMLINK_NOFOLLOW.
30361
30362 2009-09-24  Eric Blake  <ebb9@byu.net>
30363
30364         test-linkat: make test more robust
30365         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30366
30367         getopt: fix inclusion guards for cygwin
30368         * modules/getopt-posix (Depends-on): Add include-next.
30369         (Makefile.am): Substitute more items in replacement header.
30370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30371         <getopt.h>.
30372         * lib/getopt.in.h (includes): Use split inclusion guard, and
30373         prefer <getopt.h> over include <unistd.h> when one is present.
30374         (option): Also override name of 'struct option'.
30375
30376         same-inode: revert prior change; it is not yet ready
30377         * NEWS: Undo mention of this change.
30378         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30379         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30380         * lib/cycle-check.c (cycle_check): Likewise.
30381         * lib/same.c (same_name): Likewise.
30382         * lib/at-func2.c (at_func2): Likewise.
30383
30384 2009-09-23  Eric Blake  <ebb9@byu.net>
30385
30386         linkat: new module
30387         * modules/linkat: New file.
30388         * lib/at-func2.c (at_func2): Likewise.
30389         * lib/linkat.c (linkat): Likewise.
30390         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30391         * lib/openat-priv.h (at_func2): Add declaration.
30392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30393         * modules/unistd (Makefile.am): Substitute them.
30394         * lib/unistd.in.h (linkat): Declare it.
30395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30396         * doc/posix-functions/linkat.texi (linkat): Likewise.
30397         * doc/posix-functions/link.texi (link): Tweak wording.
30398         * tests/test-link.c (main): Move guts...
30399         * tests/test-link.h (test_link): ...into new file.
30400         * modules/linkat-tests: New test.
30401         * tests/test-linkat.c: Likewise.
30402         * modules/link-tests (Files): Ship new file.
30403         (Depends-on): Add stdbool.
30404
30405         dirname: add library-safe mdir_name
30406         * lib/dirname.h (mdir_name): New prototype.
30407         * lib/dirname.c (dir_name): Move guts...
30408         (mdir_name): ...to new function that avoids xalloc_die.
30409
30410         fchdir: another mingw fix
30411         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30412         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30413         on mingw (where it has not yet been ported), and make it optional
30414         elsewhere.
30415         (_gl_register_fd): Use it.
30416
30417         same-inode: make SAME_INODE tri-state, to port to mingw
30418         * NEWS: Mention this change.
30419         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30420         st_ino always being 0.
30421         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30422         * lib/cycle-check.c (cycle_check): Likewise.
30423         * lib/same.c (same_name): Likewise.
30424
30425         lstat: avoid mingw compilation error
30426         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30427         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30428         lstat ourselves.
30429         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30430         was adequate.
30431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30432         the checks for lstat.
30433         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30434
30435         link: fix test failure on Solaris 9
30436         * lib/link.c (rpl_link): Don't assume link will catch bogus
30437         trailing slash on source.
30438
30439         test-symlinkat: enhance test
30440         * tests/test-readlink.c (main): Move guts...
30441         * tests/test-readlink.h (test_readlink): ...into new file.
30442         * tests/test-symlink.c (main): Move guts...
30443         * tests/test-symlink.h (test_symlink): ...into new file.
30444         * tests/test-symlinkat.c (main): Use new files for further
30445         coverage.
30446         (do_symlink, do_readlink): New helper functions.
30447         * modules/symlink-tests (Files): Ship new file.
30448         (Depends-on): Add stdbool.
30449         * modules/readlink-tests (Files): Ship new file.
30450         (Depends-on): Add stdbool.
30451         * modules/symlinkat-tests (Files): Use new files.
30452
30453 2009-09-23  Eric Blake  <ebb9@byu.net>
30454
30455         readlink: document portability issue with symlink length
30456         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30457         systems have bogus st_size on symlinks, and mention the
30458         areadlink-with-size module.
30459         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30460         * doc/posix-functions/readlink.texi (readlink): Mention the
30461         areadlink module, and ERANGE failure.
30462         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30463         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30464
30465         readlink: fix Solaris 9 bug with trailing slash
30466         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30467         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30468         * doc/posix-functions/readlink.texi (readlink): Document this.
30469         * modules/readlink-tests: New test.
30470         * tests/test-readlink.c: Likewise.
30471
30472         readlink: fix cygwin 1.5.x bug with return type
30473         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30474         * lib/unistd.in.h (readlink): Use ssize_t.
30475         * lib/readlink.c (readlink): Likewise.
30476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30477         * modules/unistd (Makefile.am): Substitute it.
30478         * lib/unistd.in.h (readlink): Declare replacement.
30479         * doc/posix-functions/readlink.texi (readlink): Document this.
30480
30481         symlink: use throughout gnulib
30482         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30483         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30484         symlink is not used.
30485         * modules/symlinkat (Depends-on): Add symlink.
30486         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30487         * modules/canonicalize-tests (Depends-on): Likewise.
30488         * modules/lstat-tests (Depends-on): Likewise.
30489         * modules/openat-tests (Depends-on): Likewise.
30490         * modules/remove-tests (Depends-on): Likewise.
30491         * modules/rmdir-tests (Depends-on): Likewise.
30492         * modules/unlink-tests (Depends-on): Likewise.
30493         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30494         * tests/test-canonicalize.c (symlink): Likewise.
30495         * tests/test-fstatat.c (symlink): Likewise.
30496         * tests/test-lstat.c (symlink): Likewise.
30497         * tests/test-remove.c (symlink): Likewise.
30498         * tests/test-rmdir.c (symlink): Likewise.
30499         * tests/test-unlink.c (symlink): Likewise.
30500         * tests/test-unlinkat.c (symlink): Likewise.
30501
30502         symlink: new module, for Solaris 9 bug
30503         * modules/symlink: New file.
30504         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30505         * lib/symlink.c: Likewise.
30506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30507         * modules/unistd (Makefile.am): Substitute them.
30508         * lib/unistd.in.h (symlink): Declare replacement.
30509         * MODULES.html.sh (File system functions): Mention it.
30510         * doc/posix-functions/symlink.texi (symlink): Likewise.
30511         * modules/symlink-tests: New test.
30512         * tests/test-symlink.c: Likewise.
30513
30514 2009-09-23  Bruno Haible  <bruno@clisp.org>
30515
30516         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30517         when needed.
30518         Test case: gnulib-tool --import --with-tests atexit inttypes.
30519         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30520
30521 2009-09-23  Bruno Haible  <bruno@clisp.org>
30522
30523         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30524         subcommand, not in a subshell.
30525
30526 2009-09-22  Eric Blake  <ebb9@byu.net>
30527
30528         unistd: sort replacement declarations
30529         * lib/unistd.in.h: Sort declarations.
30530
30531         open, openat: minor optimization
30532         * lib/open.c (open): If open succeeded, len is non-zero.
30533         * lib/openat.c (rpl_openat): Likewise.
30534
30535         link-follow: ensure correct result
30536         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30537         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30538         distinguish between possible failures.
30539
30540 2009-09-21  Eric Blake  <ebb9@byu.net>
30541
30542         fts: avoid compiler warning
30543         * lib/fts.c (dirent_inode_sort_may_be_useful)
30544         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30545
30546 2009-09-19  Bruno Haible  <bruno@clisp.org>
30547
30548         * lib/progreloc.c (canonicalize_file_name): New declaration.
30549
30550 2009-09-19  Eric Blake  <ebb9@byu.net>
30551
30552         link: fix quoting
30553         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30554
30555         openat: fix openat bugs on Solaris 9
30556         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30557         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30558         * modules/openat (Depends-on): Add open.
30559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30560         * modules/fcntl-h (Makefile.am): Substitute it.
30561         * lib/fcntl.in.h (openat): Declare replacement.
30562         * doc/posix-functions/openat.texi (openat): Document this.
30563
30564         openat: move fstatat and unlinkat into correct files
30565         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30566         compiled.
30567         * lib/openat.c (fstatat, unlinkat): Move...
30568         * lib/fstatat.c (fstatat): ...into correct files.
30569         * lib/unlinkat.c (unlinkat): Likewise.
30570
30571         openat: fix unlinkat bugs on Solaris 9
30572         * lib/unlinkat.c (unlinkat): New file.
30573         * modules/openat (Depends-on): Add unlink.
30574         (Files): Distribute it.
30575         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30576         trailing slash behavior is broken.
30577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30578         * modules/unistd (Makefile.am): Substitute it.
30579         * lib/unistd.in.h (unlinkat): Declare replacement.
30580         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30581
30582         openat: fix fstatat bugs on Solaris 9
30583         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30584         stat.
30585         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30586
30587         test-unlinkat: enhance test, to expose Solaris 9 bug
30588         * tests/test-unlink.c (main): Factor guts...
30589         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30590         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30591         * tests/test-rmdir.c (main): Adjust caller.
30592         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30593         (unlinker): New helper function.
30594         (rmdirat): Enhance check.
30595         * modules/rmdir-tests (Depends-on): Add stdbool.
30596         * modules/unlink-tests (Depends-on): Likewise.
30597         (Files): Add test-unlink.h.
30598         * modules/openat-tests (Files): Likewise.
30599         (Depends-on): Add unlinkdir.
30600
30601         test-fstatat: new test, to expose Solaris 9 bugs
30602         * tests/test-stat.c (main): Factor guts...
30603         * tests/test-stat.h (test_stat_func): ...into new file.
30604         * tests/test-lstat.c (main): Factor guts...
30605         * tests/test-lstat.h (test_lstat_func): ...into new file.
30606         * tests/test-fstatat.c: New file.
30607         * modules/stat-tests (Files): Add test-stat.h.
30608         * modules/lstat-tests (Files): Add test-lstat.h.
30609         (Depends-on): Add stdbool.
30610         * modules/openat-tests (Depends-on): Add pathmax.
30611         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30612         (Makefile.am): Run new test.
30613
30614         remove: new module, for mingw and Solaris 9 bugs
30615         * modules/remove: New file.
30616         * lib/remove.c: Likewise.
30617         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30619         * modules/stdio (Makefile.am): Use them.
30620         * lib/stdio.in.h (remove): Declare replacement.
30621         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30622         * doc/posix-functions/remove.texi (remove): Likewise.
30623         * modules/remove-tests: New test.
30624         * tests/test-remove.c: Likewise.
30625
30626         unlink: new module, for Solaris 9 bug
30627         * modules/unlink: New file.
30628         * lib/unlink.c: Likewise.
30629         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30631         * modules/unistd (Makefile.am): Use them.
30632         * lib/unistd.in.h (stat): Declare replacement.
30633         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30634         * doc/posix-functions/unlink.texi (unlink): Likewise.
30635         * modules/unlink-tests: New test.
30636         * tests/test-unlink.c: Likewise.
30637
30638         lstat: fix Solaris 9 bug
30639         * lib/lstat.c (lstat): Also check for trailing slash on
30640         non-symlink, non-directories.  Use stat module to simplify logic.
30641         * doc/posix-functions/lstat.texi (lstat): Document it.
30642         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30643         (configure.ac): Check for symlink.
30644         * tests/test-lstat.c (main): Add more tests.
30645
30646         stat: add as dependency to other modules
30647         * modules/chown (Depends-on): Add stat.
30648         * modules/euidaccess (Depends-on): Likewise.
30649         * modules/fchdir (Depends-on): Likewise.
30650         * modules/isdir (Depends-on): Likewise.
30651         * modules/link (Depends-on): Likewise.
30652         * modules/lstat (Depends-on): Likewise.
30653         * modules/mkdir-p (Depends-on): Likewise.
30654         * modules/modechange (Depends-on): Likewise.
30655         * modules/open (Depends-on): Likewise.
30656         * modules/readlink (Depends-on): Likewise.
30657         * modules/same (Depends-on): Likewise.
30658
30659         stat: fix Solaris 9 bug
30660         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30661         slash.
30662         * lib/stat.c (rpl_stat): Work around it.
30663         * doc/posix-functions/stat.texi (stat): Update documentation.
30664
30665         stat: new module, for mingw bug
30666         * modules/stat: New file.
30667         * lib/stat.c: Likewise.
30668         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30670         * modules/sys_stat (Makefile.am): Use them.
30671         * lib/sys_stat.in.h (stat): Declare replacement.
30672         * lib/openat.c (fstatat): Deal with lstat and stat being function
30673         macros.
30674         * modules/openat (Depends-on): Add inline.
30675         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30676         * doc/posix-functions/stat.texi (stat): Likewise.
30677         * modules/stat-tests: New test.
30678         * tests/test-stat.c: Likewise.
30679
30680 2009-09-19  Jim Meyering  <meyering@redhat.com>
30681
30682         syntax-check: detect unnecessary inclusion of canonicalize.h
30683         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30684
30685 2009-09-19  Eric Blake  <ebb9@byu.net>
30686
30687         canonicalize-lgpl: adjust clients to use correct header
30688         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30689         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30690         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30691         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30692         * lib/progreloc.c (includes): Likewise.
30693
30694 2009-09-19  Jim Meyering  <meyering@redhat.com>
30695
30696         test-posixtm.c: correct a comment
30697         * tests/test-posixtm.c: Correct first-line comment.
30698         Spotted by Eric Blake.
30699
30700 2009-09-16  Jim Meyering  <meyering@redhat.com>
30701
30702         posixtm-tests: make T const-correct; add a test case
30703         * tests/test-posixtm.c (T): Declare const.
30704         Add a test for -(2^31+1).
30705         Remove useless can-succeed-only-in-2002 test.
30706
30707         posixtm-tests: adjust the sole failing test
30708         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30709         expected output matches what mktime now produces.  Cross-checked via
30710         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30711
30712         posixtm: move #ifdef'd tests into a new module
30713         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30714         * tests/test-posixtm.c: ... this new file.
30715         * modules/posixtm-tests: New module.
30716
30717 2009-09-19  Eric Blake  <ebb9@byu.net>
30718
30719         openat: simplify use of at-func.c
30720         * lib/at-func.c (includes): Include prerequisites here, to
30721         simplify requirements on client files.
30722         * lib/openat-priv.h: Add double-inclusion guard.
30723         * lib/faccessat.c (includes): Simplify.
30724         * lib/fchmodat.c (includes): Likewise.
30725         * lib/fchownat.c (includes): Likewise.
30726         * lib/mkdirat.c (includes): Likewise.
30727         * lib/mkfifoat.c (includes): Likewise.
30728         * lib/symlinkat.c (includes): Likewise.
30729
30730         openat: allow return of fd 0
30731         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30732         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30733         unistd-safer.
30734         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30735         <fcntl.h>; this module does not leak fds.
30736         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30737         must be allowed to return 0, leaving openat_safer to add the
30738         safety.
30739         (openat_permissive): Avoid writing to just-opened fd 2 if
30740         restoring the current directory fails.
30741         * lib/openat-die.c (openat_restore_fail): Add comment.
30742         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30743         (save_cwd): Guarantee safe fd, but without use of open_safer.
30744         * tests/test-openat.c: New test.
30745         * modules/openat-tests (Files, Makefile.am): Distribute and build
30746         new file.
30747
30748         relocatable-prog-wrapper: fix build
30749         * modules/relocatable-prog-wrapper (Files): Update name of
30750         canonicalize m4 file, broken on 2009-09-17.
30751         Reported by emad hajjar <aleppos@hotmail.com>.
30752
30753 2009-09-19  Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30756         * lib/safe-alloc.c: Likewise.
30757         Reported by Ian Beckwith <ianb@erislabs.net>.
30758
30759 2009-09-18  Bruno Haible  <bruno@clisp.org>
30760
30761         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30762         Reported by <erobles@sensacd.com.mx>.
30763
30764 2009-09-17  Eric Blake  <ebb9@byu.net>
30765
30766         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30767         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30768         slashes when checking if last component is missing.
30769         * tests/test-canonicalize.c (main): Test this.
30770
30771         canonicalize, canonicalize-lgpl: honor // if distinct from /
30772         * modules/canonicalize (Files): Add double-slash-root.m4.
30773         * modules/canonicalize-lgpl (Files): Likewise.
30774         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30775         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30776         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30777         fallback definition.
30778         (canonicalize_filename_mode): Use it to protect //.
30779         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30780         (__realpath): Likewise.
30781         * tests/test-canonicalize.c (main): Test this.
30782         * tests/test-canonicalize-lgpl.c (main): Likewise.
30783         * modules/canonicalize-tests (Depends-on): Add same-inode.
30784         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30785
30786         canonicalize-lgpl: fix glibc bug with trailing slash
30787         * m4/canonicalize-lgpl.m4: Move contents...
30788         * m4/canonicalize.m4: ...here.
30789         (gl_CANONICALIZE_LGPL): Factor realpath check...
30790         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30791         glibc 2.3.5 bug, fixed 2005-04-27.
30792         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30793         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30794         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30795         * modules/canonicalize-lgpl (Files): Manage file rename.
30796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30797         * modules/stdlib (Makefile.am): Substitute witness.
30798         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30799         is needed.
30800         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30801         replacement is required.
30802         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30803         * doc/glibc-functions/canonicalize_file_name.texi
30804         (canonicalize_file_name): Document this.
30805         * doc/posix-functions/realpath.texi (realpath): Likewise.
30806
30807         canonicalize-lgpl: reject non-directory with trailing slash
30808         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30809         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30810         catches failures in glibc 2.3.5.
30811         * tests/test-canonicalize.c (main): Likewise.
30812
30813         canonicalize-lgpl: use native realpath if it works
30814         * lib/canonicalize-lgpl.c (realpath): Guard with
30815         FUNC_REALPATH_WORKS.
30816         * lib/stdlib.in.h (realpath): Make declaration optional based on
30817         HAVE_REALPATH.
30818         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30819         native realpath works.
30820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30821         * modules/stdlib (Makefile.am): Substitute witness.
30822
30823         canonicalize, canonicalize-lgpl: use <stdlib.h>
30824         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30825         (Include): Mention <stdlib.h>.
30826         (configure.ac): Mention functions we provide.
30827         * modules/canonicalize (configure.ac): Likewise.
30828         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30829         realpath if canonicalize_file_name is missing.
30830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30831         * modules/stdlib (Makefile.am): Substitute witnesses.
30832         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30833         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30834         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30835         * NEWS: Document this.
30836         * doc/glibc-functions/canonicalize_file_name.texi
30837         (canonicalize_file_name): Likewise.
30838         * doc/posix-functions/realpath.texi (realpath): Likewise.
30839         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30840
30841         test-canonicalize: consolidate into single C program
30842         * tests/test-canonicalize.sh: Delete; move setup into...
30843         * tests/test-canonicalize.c (main): ...the program, making it
30844         easier to run in debugger.  Add some tests.
30845         * modules/canonicalize-tests (Files): Remove unused file.
30846         (Depends-on): Add progname.
30847         (configure.ac, Makefile.am): Simplify.
30848
30849         test-canonicalize-lgpl: consolidate into single C program
30850         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30851         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30852         easier to run in debugger.  Add some tests.
30853         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30854         (configure.ac, Makefile.am): Simplify.
30855
30856         canonicalize: avoid resolvepath
30857         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30858         unnecessary checks.
30859         * lib/canonicalize.c (includes): Simplify.
30860         (canonicalize_file_name): Drop resolvepath implementation.
30861         * modules/canonicalize (Depends-on): Drop filenamecat.
30862
30863         canonicalize: don't lose errno
30864         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30865         over calls to free.
30866
30867         canonicalize: simplify errno handling
30868         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30869         assignment.
30870
30871         canonicalize, canonicalize-lgpl: update module dependencies
30872         * modules/canonicalize (Depends-on): Add extensions, lstat,
30873         pathmax, stdlib.
30874         (Files): Drop pathmax.h.
30875         (configure.ac): Adjust macro name.
30876         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30877         lstat, stdlib, sys_stat.
30878         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30879         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30880         extensions.
30881         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30882         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30883         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30884         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30885         declaration, if available.
30886         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30887         we can rely on the readlink module.
30888         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30889         (includes): Use <unistd.h> unconditionally.
30890
30891 2009-09-17  Eric Blake  <ebb9@byu.net>
30892
30893         maint: make Include sections of modules consistent
30894         * modules/alloca: Use only header name; no need to list #include.
30895         * modules/alloca-opt: Likewise.
30896         * modules/arpa_inet: Likewise.
30897         * modules/canon-host: Likewise.
30898         * modules/configmake: Likewise.
30899         * modules/dirent: Likewise.
30900         * modules/eealloc: Likewise.
30901         * modules/environ: Likewise.
30902         * modules/fchdir: Likewise.
30903         * modules/fcntl: Likewise.
30904         * modules/fcntl-h: Likewise.
30905         * modules/gethrxtime: Likewise.
30906         * modules/gettime: Likewise.
30907         * modules/ignore-value: Likewise.
30908         * modules/inet_ntop: Likewise.
30909         * modules/inet_pton: Likewise.
30910         * modules/inttypes: Likewise.
30911         * modules/isnand-nolibm: Likewise.
30912         * modules/isnanf-nolibm: Likewise.
30913         * modules/mbchar: Likewise.
30914         * modules/mbfile: Likewise.
30915         * modules/mbiter: Likewise.
30916         * modules/mbuiter: Likewise.
30917         * modules/netdb: Likewise.
30918         * modules/netinet_in: Likewise.
30919         * modules/nproc: Likewise.
30920         * modules/pagealign_alloc: Likewise.
30921         * modules/poll: Likewise.
30922         * modules/printf-frexp: Likewise.
30923         * modules/pthread: Likewise.
30924         * modules/putenv: Likewise.
30925         * modules/random_r: Likewise.
30926         * modules/relocatable-prog: Likewise.
30927         * modules/search: Likewise.
30928         * modules/select: Likewise.
30929         * modules/selinux-h: Likewise.
30930         * modules/settime: Likewise.
30931         * modules/signal: Likewise.
30932         * modules/size_max: Likewise.
30933         * modules/socklen: Likewise.
30934         * modules/ssize_t: Likewise.
30935         * modules/stdarg: Likewise.
30936         * modules/stdbool: Likewise.
30937         * modules/stddef: Likewise.
30938         * modules/stdint: Likewise.
30939         * modules/stdio: Likewise.
30940         * modules/stdlib: Likewise.
30941         * modules/string: Likewise.
30942         * modules/strings: Likewise.
30943         * modules/sys_file: Likewise.
30944         * modules/sys_ioctl: Likewise.
30945         * modules/sys_select: Likewise.
30946         * modules/sys_socket: Likewise.
30947         * modules/sys_stat: Likewise.
30948         * modules/sys_time: Likewise.
30949         * modules/sys_times: Likewise.
30950         * modules/sys_utsname: Likewise.
30951         * modules/sys_wait: Likewise.
30952         * modules/sysexits: Likewise.
30953         * modules/time: Likewise.
30954         * modules/times: Likewise.
30955         * modules/tmpfile: Likewise.
30956         * modules/trim: Likewise.
30957         * modules/unistd: Likewise.
30958         * modules/wchar: Likewise.
30959         * modules/wctype: Likewise.
30960
30961 2009-09-17  Bruno Haible  <bruno@clisp.org>
30962
30963         Make getdate.y compile on QNX and NetBSD 5 / i386.
30964         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30965         TIME_T_FITS_IN_LONG_INT.
30966         * lib/getdate.y (long_time_t): New type.
30967         (relative_time): Change type of 'seconds' field to long_time_t.
30968         (get_date): Update types of local variables. Check against overflow
30969         during conversion from long_time_t to time_t.
30970         Reported by Matt Kraai <kraai@ftbfs.org>
30971         and Hasso Tepper <hasso@netbsd.org>.
30972
30973 2009-09-17  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/COPYING: Update copyright years.
30976         * modules/README: Likeiwse.
30977         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30978         Reported by Ian Beckwith <ianb@erislabs.net>.
30979
30980 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30981
30982         * users.txt: Update references for gnuit package.
30983
30984 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30985
30986         * m4/getdelim.m4: Fix typo in copyright line.
30987
30988 2009-09-17  Bruno Haible  <bruno@clisp.org>
30989
30990         * lib/atoll.c: Use the standard header with GPL copyright.
30991         * lib/argz.in.h: Likewise.
30992         * lib/glob.c: Likewise.
30993         * lib/glob-libc.h: Likewise.
30994         * lib/random_r.c: Likewise.
30995         * lib/siglist.h: Likewise.
30996         * lib/strsignal.c: Likewise.
30997         Reported by Ian Beckwith <ianb@erislabs.net>.
30998
30999 2009-09-17  Eric Blake  <ebb9@byu.net>
31000
31001         rmdir: ensure correct dependency order
31002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31003
31004 2009-09-17  Bruno Haible  <bruno@clisp.org>
31005
31006         Disable assertion that fails on NetBSD 5 / i386.
31007         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31008         Reported by Sam Steingold <sds@gnu.org>
31009         and Hasso Tepper <hasso@netbsd.org>.
31010
31011 2009-09-16  Eric Blake  <ebb9@byu.net>
31012
31013         unlinkdir: port to mingw
31014         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31015         on which no one can unlink a directory.
31016
31017         stdlib: sort witness names
31018         * modules/stdlib (Makefile.am): Sort replacements.
31019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31020         * lib/stdlib.in.h: Likewise.
31021
31022         parse-duration-tests: avoid link failure
31023         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31024         LIBINTL.
31025         Reported by Tom G. Christensen.
31026
31027         openat-tests: ensure unlinkat behaves like rmdir
31028         * tests/test-rmdir.c (main): Factor guts...
31029         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31030         * modules/rmdir-tests (Files): Ship new file.
31031         * modules/openat-tests: New test.
31032         * tests/test-unlinkat.c: Likewise.
31033
31034         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31035         * modules/rmdir-errno (Status, Notice): Now obsolete.
31036
31037         rmdir: work around cygwin 1.5.x and mingw bugs
31038         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31039         * lib/rmdir.c (rmdir): Work around it.
31040         * modules/rmdir (Status, Notice): No longer obsolete.
31041         (Files): Add dos.m4.
31042         (Depends-on): Add unistd.
31043         (configure.ac): Set witnesses.
31044         (License): Relax to LGPLv2+.
31045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31046         * modules/unistd (Makefile.am): Substitute witnesses.
31047         * lib/unistd.in.h (rmdir): Declare replacement.
31048         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31049         * modules/rmdir-tests: New tests.
31050         * tests/test-rmdir.c: Likewise.
31051
31052 2009-09-15  Eric Blake  <ebb9@byu.net>
31053
31054         fchdir: improve use of replacement functions
31055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31057         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31058         REPLACE_CLOSEDIR.
31059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31060         * modules/sys_stat (Makefile.am): Substitute correct witness.
31061         * modules/dirent (Makefile.am): Likewise.
31062         * modules/unistd (Makefile.am): Likewise.
31063         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31064         * lib/unistd.in.h (dup): Likewise.
31065         * lib/sys_stat.in.h (fstat): Likewise.
31066
31067         maint: ignore gnulib-tool temp files
31068         * .gitignore: Ignore files created during gnulib-tool --test.
31069
31070 2009-09-13  Jim Meyering  <meyering@redhat.com>
31071
31072         posixtm: don't reject a time that specify "60" as the number of seconds
31073         * lib/posixtm.c (posixtime): The code to reject invalid dates
31074         would also reject a time specified with the .60 suffix.
31075         But POSIX allows that, in order to accommodate leap seconds.
31076         So don't reject it.
31077         (main): Adjust tests accordingly.
31078         * modules/posixtm (Depends-on): Add stpcpy.
31079
31080 2009-09-11  Jim Meyering  <meyering@redhat.com>
31081
31082         announce-gen: include [$release_type] in emitted Subject:
31083         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31084         e.g., [stable] in the emitted Subject: line.
31085
31086 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31087
31088         Remove obsolete macros from several modules.
31089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31090         obsolete Autoconf macros with their modern counterparts.
31091         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31092         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31094         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31095         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31096         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31098         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31099         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31100         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31101         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31103         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31104         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31105         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31106         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31107         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31108         * m4/time_r.m4 (gl_TIME_R): Likewise.
31109         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31110         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31111         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31112
31113         Fix copyright header in build-aux scripts.
31114         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31115         recommendation.
31116         * build-aux/ncftpput-ftp: Likewise.
31117         * build-aux/update-copyright: Likewise.
31118
31119 2009-09-09  Eric Blake  <ebb9@byu.net>
31120
31121         test-link: allow Linux choice of errno
31122         * tests/test-link.c (main): Relax test for alternate error.
31123
31124         strndup: fix improper m4 caching
31125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31126         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31127         (gl_PREREQ_STRNDUP): Delete.
31128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31129         * modules/string (Makefile.am): Substitute it.
31130         * lib/string.in.h (strndup): Modernize prototype.
31131
31132         getcwd: port to mingw
31133         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31134         different from the POSIX assumptions made throughout the getcwd
31135         module; fortunately, the mingw getcwd does not need replacement.
31136         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31137         * modules/getcwd-tests: New test.
31138         * tests/test-getcwd.c: Likewise.
31139
31140         link: fix platform bugs
31141         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31142         * lib/link.c (link): Work around them.  Fix related mingw bug.
31143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31144         * modules/unistd (Makefile.am): Substitute it.
31145         * lib/unistd.in.h (link): Declare replacement.
31146         * doc/posix-functions/link.texi (link): Document this.
31147         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31148
31149         test-link: consolidate into single C program, test more cases
31150         * tests/test-link.sh: Delete.
31151         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31152         at least Cygwin and Solaris.
31153         * modules/link-tests (Files): Remove unused file.
31154         (Depends-on): Add errno, sys_stat.
31155         (Makefile.am): Simplify.
31156
31157 2009-09-08  Bruno Haible  <bruno@clisp.org>
31158
31159         Work around towlower, towupper bug on mingw.
31160         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31161         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31162         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31163         * doc/posix-functions/towupper.texi: Likewise.
31164         Reported by Eric Blake.
31165
31166 2009-09-08  Jim Meyering  <meyering@redhat.com>
31167
31168         build: don't try to run autoheader if we don't use it
31169         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31170         is not used in configure.ac.
31171
31172 2009-09-08  Eric Blake  <ebb9@byu.net>
31173
31174         euidaccess: fix compilation error
31175         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31176
31177         rawmemchr: relax license
31178         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31179         okay.
31180         Reported by Jim Meyering.
31181
31182         mkfifoat: new module
31183         * modules/mkfifoat: New file.
31184         * lib/mkfifoat.c: Likewise.
31185         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31187         * modules/sys_stat (Makefile.am): Use them.
31188         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31189         * MODULES.html.sh (File system functions): Mention module.
31190         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31191         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31192         * modules/mkfifoat-tests: New test.
31193         * tests/test-mkfifoat.c: Likewise.
31194
31195         strchrnul: relax license
31196         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31197         okay.
31198         Reported by Jim Meyering.
31199
31200 2009-09-08  Eric Blake  <ebb9@byu.net>
31201
31202         fstatat: fix compilation on Solaris
31203         * lib/fstatat.c (includes): Add fcntl.h.
31204         Reported by Pádraig Brady.
31205
31206 2009-09-07  Eric Blake  <ebb9@byu.net>
31207
31208         rename: modernize replacement
31209         * modules/rename (Depends-on): Add stdio.
31210         (configure.ac): Declare witness.
31211         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31212         stdio take care of replacement.
31213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31214         * modules/stdio (Makefile.am): Substitute them.
31215         * lib/stdio.in.h (rename): Declare replacement.
31216         * lib/rename.c (includes): Allow cross-compilation to non-windows
31217         machines.
31218         * doc/posix-functions/rename.texi (rename): Improve
31219         documentation.
31220
31221         stdio: sort witness names
31222         * modules/stdio (Makefile.am): Sort replacements.
31223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31224         * lib/stdio.in.h: Likewise.
31225
31226         getcwd: minor cleanups
31227         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31228         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31229
31230         openat: provide more convenience names
31231         * modules/faccessat (configure.ac): Add C witness.
31232         * lib/unistd.in.h (readlinkat): Fix typo.
31233         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31234         convenience wrappers.
31235         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31236         wrappers in syntax checks.
31237
31238 2009-09-06  Eric Blake  <ebb9@byu.net>
31239
31240         doc: fix comments in recent patches
31241         * lib/faccessat.c: Mention correct function.
31242         * lib/fchmodat.c: Likewise.
31243         * lib/fchownat.c: Likewise.
31244         * lib/symlinkat.c: Likewise.
31245         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31246         constants.
31247
31248         faccessat, symlinkat: continue cleanup of previous patch
31249         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31250         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31251         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31253         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31254         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31255         set.
31256
31257 2009-09-06  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31260         (fstatat): Declare if GNULIB_FSTATAT is set.
31261         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31262         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31263         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31264         * modules/fcntl-h (Files): Remove m4/openat.m4.
31265         * modules/sys_stat (Files): Remove m4/openat.m4.
31266         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31267         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31268         * modules/unistd (Files): Remove m4/openat.m4.
31269         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31270         GNULIB_OPENAT.
31271         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31272         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31274         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31275         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31276         gl_OPENAT_DEFAULTS.
31277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31278         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31279         Don't require gl_OPENAT_DEFAULTS.
31280         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31281         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31282         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31283         (gl_OPENAT_DEFAULTS): Remove macro.
31284
31285 2009-09-06  Bruno Haible  <bruno@clisp.org>
31286
31287         * modules/openat (configure.ac): Remove unneeded witness.
31288
31289 2009-09-06  Bruno Haible  <bruno@clisp.org>
31290
31291         Set errno to ENOSYS when a function is entirely unsupported.
31292         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31293         EOPNOTSUPP.
31294         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31295         * modules/chown (Depends-on): Remove errno.
31296
31297 2009-09-06  Bruno Haible  <bruno@clisp.org>
31298
31299         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31300
31301 2009-09-06  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31304
31305 2009-09-06  Ben Pfaff  <blp@gnu.org>
31306             Bruno Haible  <bruno@clisp.org>
31307
31308         Work around a glibc bug in strtok_r.
31309         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31310         Undefine if UNDEFINE_STRTOK_R is set.
31311         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31313         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31314         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31315         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31316         UNDEFINE_STRTOK_R.
31317         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31318
31319 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31320
31321         exclude: minor fix
31322         * lib/exclude.c: Include wctype.h
31323
31324 2009-09-06  Akim Demaille  <demaille@gostai.com>
31325
31326         bootstrap: improve error message
31327         * build-aux/bootstrap (find_tool): Upon failure, report the list
31328         of candidates.
31329         Honor the initial value of the envvar.
31330
31331 2009-09-05  Eric Blake  <ebb9@byu.net>
31332
31333         symlinkat: new module
31334         * modules/symlinkat: New file.
31335         * lib/symlinkat.c: Likewise.
31336         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31338         * modules/unistd (Makefile.am): Use them.
31339         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31340         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31341         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31342         * MODULES.html.sh (File system functions): Mention module.
31343         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31344         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31345         * modules/symlinkat-tests: New test.
31346         * tests/test-symlinkat.c: Likewise.
31347
31348         test-openat-safer: add more checks
31349         * tests/test-openat-safer.c (main): Check more code paths.
31350
31351 2009-09-05  Jim Meyering  <meyering@redhat.com>
31352
31353         syntax-check: detect unnecessary inclusion of openat.h
31354         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31355
31356 2009-09-05  Bruno Haible  <bruno@clisp.org>
31357
31358         Support towlower, towupper.
31359         * doc/posix-functions/towlower.texi: Mention module wctype.
31360         * doc/posix-functions/towupper.texi: Likewise.
31361         * lib/wctype.in.h (towlower, towupper): New functions.
31362         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31363         (ASSERT): New macro.
31364         (e): New variable.
31365         (main): Test also towlower, towupper. Test WEOF argument.
31366         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31367
31368 2009-09-05  Bruno Haible  <bruno@clisp.org>
31369
31370         Fix conversion behaviour when the input is invalid.
31371         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31372         mark occurring in first pass of indirect conversion.
31373         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31374         input.
31375         Found by clang's static analyzer.
31376
31377 2009-09-05  Bruno Haible  <bruno@clisp.org>
31378
31379         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31380         where direct conversion is possible.
31381
31382 2009-09-04  Eric Blake  <ebb9@byu.net>
31383
31384         openat: fail with ENOENT on empty name
31385         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31386         buffer.
31387
31388         link-follow: fix logic bug in prior patch
31389         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31390         reversed sense of yes and no in prior patch.  Avoid confusing
31391         compilation failure with desired semantics.
31392
31393         link-follow: accomodate mingw and cross-compilation
31394         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31395         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31396         cross-compilation results to -1, to make linkat easier to
31397         implement when cross-compiling.  Trivially support mingw.
31398         * modules/link-follow (configure.ac): Call new name.
31399         * NEWS: Mention this.
31400
31401 2009-09-03  Eric Blake  <ebb9@byu.net>
31402
31403         faccessat: compile replacement
31404         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31405         needed.
31406
31407         fts: fix compilation error
31408         * lib/fts.c (includes): Re-add "openat.h", for
31409         openat_needs_fchdir.
31410
31411         faccessat: new module
31412         * modules/faccessat: New file.
31413         * lib/faccessat.c: Likewise.
31414         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31416         * modules/unistd (Makefile.am): Use it.
31417         * lib/unistd.in.h (faccessat): Declare it.
31418         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31419         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31420         * MODULES.html.sh (File system functions): Mention it.
31421         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31422         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31423
31424         euidaccess: prefer POSIX over non-standard implementation
31425         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31426         * lib/euidaccess.c (euidaccess): Use it if available.
31427
31428         openat: make template easier to use
31429         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31430         AT_FUNC_F2 to be undefined.
31431         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31432         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31433         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31434         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31435         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31436         Likewise.
31437         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31438         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31439         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31440         Likewise.
31441
31442         openat: declare in POSIX headers
31443         * NEWS: Mention this.
31444         * modules/openat (configure.ac): Declare witnesses.
31445         (Depends-on): Add fcntl-h, sys_stat, unistd.
31446         (Include): Mention correct headers.
31447         * modules/fcntl-h (Depends-on): Add link-warning.
31448         (Files): Add openat.m4.
31449         (Makefile.am): Substitute witnesses.
31450         * modules/sys_stat (Files, Makefile.am): Likewise.
31451         * modules/unistd (Files, Makefile.am): Likewise.
31452         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31453         (gl_OPENAT_DEFAULTS): New macro.
31454         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31457         (SYS_STAT_H): Remove unused variable.
31458         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31459         * lib/fcntl--.h (includes): Remove unneeded header.
31460         * lib/openat-safer.c (includes): Likewise.
31461         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31462         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31463         appropriate headers.
31464         (__OPENAT_PREFIX): Delete.
31465         * lib/fcntl.in.h (openat): Provide declaration.
31466         (AT_FDCWD): Fix Solaris bug.
31467         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31468         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31469         * lib/fchmodat.c (includes):  Adjust to find declaration.
31470         * lib/fchownat.c (includes): Likewise.
31471         * lib/mkdirat.c (includes): Likewise.
31472         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31473         still visible.
31474
31475 2009-09-02  Eric Blake  <ebb9@byu.net>
31476
31477         errno: use consistently
31478         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31479         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31480         * lib/canonicalize.c (ELOOP): Likewise.
31481         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31482         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31483         * lib/lchown.c (EOPNOTSUPP): Likewise.
31484         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31485         * lib/savewd.c (ESTALE): Likewise.
31486         * lib/settime.c (ENOSYS): Likewise.
31487         * lib/utimens.c (ENOSYS): Likewise.
31488         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31489         * lib/chdir-safer.c (ELOOP): Likewise.
31490         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31491         * modules/c-stack (Depends-on): Add errno.
31492         * modules/canonicalize (Depends-on): Likewise.
31493         * modules/chdir-safer (Depends-on): Likewise.
31494         * modules/fdopendir (Depends-on): Likewise.
31495         * modules/inet_ntop (Depends-on): Likewise.
31496         * modules/inet_pton (Depends-on): Likewise.
31497         * modules/lchown (Depends-on): Likewise.
31498         * modules/openat (Depends-on): Likewise.
31499         * modules/savewd (Depends-on): Likewise.
31500         * modules/settime (Depends-on): Likewise.
31501         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31502
31503         fts: avoid leaking fds
31504         * modules/fts (Depends-on): Add cloexec.
31505         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31506         flag.
31507
31508         fts: make directory fds more robust
31509         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31510         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31511
31512         backupfile, chdir-long, fts, savedir: make safer
31513         * lib/backupfile.c (includes): Use "dirent--.h", since
31514         numbered_backup can write to stderr during readdir.
31515         * lib/savedir.c (includes): Likewise.
31516         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31517         emulation can write to stderr on failure.
31518         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31519         * lib/getcwd.c: Document why opendir_safer is unused.
31520         * lib/glob.c: Likewise.
31521         * lib/scandir.c: Likewise.
31522         * lib/openat-proc.c: Likewise, for open_safer.
31523         * modules/backupfile (Depends-on): Add dirent-safer.
31524         * modules/savedir (Depends-on): Likewise.
31525         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31526         * modules/chdir-long (Depends-on): Add openat-safer.
31527
31528         openat-safer: new module
31529         * modules/openat-safer: New file.
31530         * lib/openat-safer.c: Likewise.
31531         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31532         * lib/fcntl-safer.h (openat_safer): Declare.
31533         * lib/fcntl--.h (openat): Override.
31534         * MODULES.html.sh (File descriptor based I/O): Mention it.
31535         * lib/openat.h: Add double-inclusion guards.
31536         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31537         "fcntl--.h", so we can implement openat.
31538         * modules/openat-safer-tests: New test.
31539         * tests/test-openat-safer.c: New file.
31540
31541         dirent-safer: new module
31542         * modules/dirent-safer: New file.
31543         * lib/dirent--.h: Likewise.
31544         * lib/dirent-safer.h: Likewise.
31545         * lib/opendir-safer.c: Likewise.
31546         * m4/dirent-safer.m4: Likewise.
31547         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31548         * modules/dirent-safer-tests: New test.
31549         * tests/test-dirent-safer.c: New file.
31550         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31551
31552         fdopendir: optimize on mingw
31553         * lib/unistd.in.h (_gl_directory_name): New prototype.
31554         * lib/fchdir.c (_gl_directory_name): Implement it.
31555         (fchdir): Use it to simplify implementation.
31556         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31557         fchdir, when available, to avoid calling [f]chdir().
31558
31559         fdopendir: split into its own module
31560         * lib/openat.c (fdopendir): Move...
31561         * lib/fdopendir.c: ...into new file.
31562         * modules/fdopendir: New module.
31563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31564         * modules/openat (Depends-on): Add fdopendir.
31565         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31566         fdopendir here.
31567         * modules/savedir (Depends-on): Only need fdopendir, not full
31568         openat.
31569         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31570         * lib/openat.h (fdopendir): Drop prototype.
31571         * lib/dirent.in.h (fdopendir): Provide prototype.
31572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31573         * modules/dirent (Makefile.am): Substitute them.
31574         * MODULES.html.sh (File system functions): Mention it.
31575         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31576         * modules/fdopendir-tests: New file.
31577         * tests/test-fdopendir.c: Likewise.
31578
31579         fchdir: use more consistent macro convention
31580         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31581         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31582         REPLACE_FCHDIR, rather than relying on config.h macros.
31583         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31584         inside a single make-time REPLACE_FCHDIR block, rather than using
31585         the config.h FCHDIR_REPLACEMENT.
31586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31587         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31588         Manage fstat replacement.
31589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31590         REPLACE_FCHDIR.
31591         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31592         (Makefile.am): Substitute REPLACE_FCHDIR.
31593         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31594         FCHDIR_REPLACEMENT.
31595         * lib/dup-safer.c (dup_safer): Likewise.
31596         * lib/dup2.c (rpl_dup2): Likewise.
31597         * lib/dup3.c (rpl_dup3): Likewise.
31598         * lib/open.c (rpl_open): Likewise.
31599
31600         fchdir: simplify error handling, and support dup3
31601         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31602         stdbool, malloc-posix, realloc-posix.
31603         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31604         (ensure_dirs_slot): Return false on allocation failure.
31605         (rpl_dup2): Delete.
31606         (_gl_register_dup): New function.
31607         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31608         (_gl_register_fd): Close fd on allocation failure.
31609         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31610         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31611         prototype.
31612         (rpl_dup2_fchdir): Delete prototype.
31613         * lib/open.c (open): Update caller.
31614         * lib/dup2.c (dup2): Track fchdir metadata.
31615         * lib/dup3.c (dup3): Likewise.
31616         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31618
31619 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31620
31621         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31622         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31623         don't pass arguments to AC_OUTPUT.
31624
31625 2009-09-02  Bruno Haible  <bruno@clisp.org>
31626
31627         * modules/mkdtemp (License): Relicense under LGPLv2+.
31628         Reported by Paolo Bonzini.
31629
31630 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31631
31632         Replace uses of obsolete autoconf macros in Jim's modules.
31633         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31634         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31635         can evoke a warning from autoconf when run with -Wobsolete
31636         enabled.  They were declared obsolete for good reasons (see
31637         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31638         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31639         should not continue using the deprecated macros.
31640         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31641         obsolete Autoconf macros with modern counterparts.
31642         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31643         * m4/dos.m4 (gl_AC_DOS): Likewise.
31644         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31646         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31647         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31648         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31649         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31650         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31651         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31653         Likewise.
31654         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31655         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31656         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31657         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31658         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31659         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31660
31661 2009-09-01  Eric Blake  <ebb9@byu.net>
31662
31663         fchdir: fix off-by-one bug in previous patch
31664         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31665         (_gl_unregister_fd): Delete useless if.
31666
31667 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31668
31669         maint.mk: sort the list of syntax-check rules
31670         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31671         easier to get a sense of progress when the rules are run sequentially
31672         and take a long time.
31673
31674 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31675
31676         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31677         * modules/netinet_in: Likewise.
31678         * modules/sys_file: Likewise.
31679         * modules/sys_ioctl: Likewise.
31680         * modules/sys_select: Likewise.
31681         * modules/sys_socket: Likewise.
31682         * modules/sys_stat: Likewise.
31683         * modules/sys_time: Likewise.
31684         * modules/sys_times: Likewise.
31685         * modules/sys_utsname: Likewise.
31686         * modules/sys_wait: Likewise.
31687
31688 2009-09-01  Jim Meyering  <meyering@redhat.com>
31689
31690         fts: help ensure that return values are not ignored
31691         * lib/fts_.h (__GNUC_PREREQ): Define.
31692         (__attribute_warn_unused_result__): Define.
31693         (fts_children, fts_close, fts_open, fts_read): Declare with
31694         __attribute_warn_unused_result__.
31695
31696         fts: fts_close now fails also when closing a dir file descriptor fails
31697         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31698         and propagate to caller, along with errno.
31699
31700         announce-gen: correct formatting in --help output
31701         * build-aux/announce-gen (usage): Move the one-line description in
31702         --help output "up", to where it belongs, just after Usage:.
31703
31704 2009-08-31  Eric Blake  <ebb9@byu.net>
31705
31706         fchdir: port to mingw
31707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31708         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31709         opened, then use a substitute.
31710         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31711         replacement.
31712         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31713         (_gl_register_fd): No need to check stat if open already filters
31714         all directories.
31715         (fchdir): Fix error condition to match POSIX.
31716         * modules/fchdir (Depends-on): Add sys_stat.
31717         * doc/posix-functions/open.texi (open): Document the limitation.
31718         * modules/fchdir-tests: New file.
31719         * tests/test-fchdir.c: Likewise.
31720
31721         canonicalize: allow cross-testing from cygwin to mingw
31722         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31723         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31724         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31725         Likewise.
31726         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31727         target does not support symlinks.
31728         * tests/test-canonicalize-lgpl.sh: Likewise.
31729
31730         chown: avoid compilation warning on mingw
31731         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31732         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31733         mingw.
31734         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31735         * modules/chown (Depends-on): Add errno.
31736
31737 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31738
31739         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31740         command.
31741
31742 2009-08-31  Jim Meyering  <meyering@redhat.com>
31743
31744         canonicalize: remove useless initialization
31745         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31746         initialization of local, "end".
31747
31748 2009-08-30  Bruno Haible  <bruno@clisp.org>
31749
31750         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31751         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31752         ENOSYS.
31753
31754 2009-08-30  Bruno Haible  <bruno@clisp.org>
31755
31756         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31757         /usr/xpg4/bin/tr when it exists.
31758         * tests/test-pipe-filter-gi1.sh: Likewise.
31759
31760 2009-08-30  Bruno Haible  <bruno@clisp.org>
31761
31762         Work around deficient /usr/bin/id program on Solaris.
31763         * tests/test-file-has-acl.sh (ID): New variable.
31764         * tests/test-set-mode-acl.sh (ID): Likewise.
31765         * tests/test-copy-acl.sh (ID): Likewise.
31766         * tests/test-copy-file.sh (ID): Likewise.
31767
31768 2009-08-30  Bruno Haible  <bruno@clisp.org>
31769
31770         New module 'xstriconveh'.
31771         * lib/xstriconveh.h: New file.
31772         * lib/xstriconveh.c: New file.
31773         * modules/xstriconveh: New file.
31774
31775 2009-08-30  Bruno Haible  <bruno@clisp.org>
31776
31777         Make it easier to use mem_cd_iconveh.
31778         * lib/striconveh.h (iconveh_t): New type.
31779         (iconveh_open, iconveh_close): New declarations.
31780         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31781         with a single 'const iconveh_t *' argument.
31782         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31783         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31784         with a single 'const iconveh_t *' argument.
31785         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31786         * tests/test-striconveh.c (main): Update.
31787         * NEWS: Mention the change.
31788
31789 2009-08-30  Bruno Haible  <bruno@clisp.org>
31790
31791         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31792         problem.
31793
31794 2009-08-30  Bruno Haible  <bruno@clisp.org>
31795
31796         Work around iconv_open problem on Solaris.
31797         * lib/iconv_open-solaris.gperf: New file.
31798         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31800         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31801         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31802         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31803         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31804
31805 2009-08-29  Jim Meyering  <meyering@redhat.com>
31806
31807         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31808         * top/maint.mk (cvs-check): Remove target; it was just an alias
31809         to the better-named vc-diff-check.
31810         (maintainer-distcheck): Remove rule.  It was used only from
31811         the (alpha/beta/major) target, and all of its commands but one
31812         were coreutils-specific.
31813         (vc-dist): Remove rule.
31814         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31815         Run vc-diff-check, not vc-dist.
31816         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31817
31818 2009-08-27  Bruno Haible  <bruno@clisp.org>
31819
31820         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31821         of 0.
31822
31823 2009-08-27  Bruno Haible  <bruno@clisp.org>
31824
31825         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31826         compilers.
31827         * doc/func.texi: Document the SunPRO C bug.
31828
31829 2009-08-27  Bruno Haible  <bruno@clisp.org>
31830
31831         Fix link error on Solaris.
31832         * tests/test-parse-duration.c (xstrdup): Remove function.
31833
31834 2009-08-26  Pádraig Brady  <P@draigbrady.com>
31835
31836         ignore-value: handle pointer types, too
31837         * lib/ignore-value.h (__attribute__): Remove definition.
31838         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31839         of a more concise and more-often effective "(void) i" statement.
31840         (ignore_ptr): New function to suppress warnings from functions that
31841         return pointers, and to make it explicit that one function doesn't
31842         handle all cases.
31843
31844 2009-08-25  Bruno Haible  <bruno@clisp.org>
31845
31846         dup2: work around a Linux bug.
31847         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31848         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31849         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31850         Reported by Simon Josefsson.
31851
31852 2009-08-25  Jim Meyering  <meyering@redhat.com>
31853
31854         libguestfs uses gnulib
31855         * users.txt: Add libguestfs.
31856
31857 2009-08-24  Eric Blake  <ebb9@byu.net>
31858
31859         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31860         * lib/pipe2.c (includes): Add binary-io.h.
31861         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31862
31863 2009-08-24  Bruno Haible  <bruno@clisp.org>
31864
31865         Tolerate declared but missing accept4 syscall.
31866         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31867         available.
31868         * lib/sys_socket.in.h (accept4): If the function is already present,
31869         override it.
31870         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31871         * modules/accept4 (Makefile.am): Compile accept4.c always.
31872         Reported by Paolo Bonzini and Eric Blake.
31873
31874 2009-08-23  Bruno Haible  <bruno@clisp.org>
31875
31876         New module 'accept4'.
31877         * lib/sys_socket.in.h (accept4): New declaration.
31878         * lib/accept4.c: New file.
31879         * m4/accept4.m4: New file.
31880         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31881         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31882         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31883         HAVE_ACCEPT4.
31884         * modules/accept4: New file.
31885         * doc/glibc-functions/accept4.texi: Mention the new module.
31886
31887 2009-08-24  Jim Meyering  <meyering@redhat.com>
31888
31889         progname: also set global program_invocation_name, when possible
31890         Before this change, a libtool-enabled program that calls glibc's
31891         error function would report the program name as
31892         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31893         * modules/progname (configure.ac): Check for a declaration of
31894         program_invocation_name.
31895         * lib/progname.c:  Include <errno.h>.
31896         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31897         Set program_invocation_name.
31898
31899 2009-08-23  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/dup3.c: Include <string.h>.
31902
31903 2009-08-23  Bruno Haible  <bruno@clisp.org>
31904
31905         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31906         * lib/pipe2.c (pipe2): Likewise.
31907         Suggested by Eric Blake.
31908
31909 2009-08-23  Bruno Haible  <bruno@clisp.org>
31910
31911         Tolerate declared but missing dup3 syscall.
31912         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31913         * lib/unistd.in.h (dup3): If the function is already present,
31914         override it.
31915         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31916         * modules/dup3 (Makefile.am): Compile dup3.c always.
31917         Reported by Paolo Bonzini.
31918
31919 2009-08-23  Bruno Haible  <bruno@clisp.org>
31920
31921         Tolerate declared but missing pipe2 syscall.
31922         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31923         available.
31924         * lib/unistd.in.h (pipe2): If the function is already present,
31925         override it.
31926         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31927         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31928         Reported by Paolo Bonzini.
31929
31930 2009-08-23  Bruno Haible  <bruno@clisp.org>
31931
31932         * lib/pipe2.c (pipe2): Move #ifs inside function.
31933
31934 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31935
31936         quotearg: document limitations of quote_these_too
31937         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31938         those limitations are created.
31939         * lib/quotearg.h (set_char_quoting): Document that digits and
31940         letters that are special after backslash are not permitted.
31941         (quotearg_char): Cross-reference set_char_quoting documentation.
31942
31943 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31944
31945         quotearg: implement custom_quoting_style
31946         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31947         right_quote fields.
31948         (set_custom_quoting): New public function.
31949         (quotearg_buffer_restyled): Add left_quote and right_quote
31950         arguments, handle them very much like locale quoting, and update
31951         all uses.
31952         (quotearg_n_custom): New public function.
31953         (quotearg_n_custom_mem): New public function.
31954         (quotearg_custom): New public function.
31955         (quotearg_custom_mem): New public function.
31956         * lib/quotearg.h: Prototype and document new public functions.
31957         (enum quoting_style): For escape_quoting_style and
31958         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31959         ignored even though they're otherwise like c_quoting_style.
31960         Add custom_quoting_style member and document with comparison to
31961         clocale_quoting_style.
31962         * tests/test-quotearg.c (custom_quotes): New array.
31963         (custom_results): New array.
31964         (main): Extend to test custom quoting.
31965
31966 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31967
31968         quotearg: fix right quote escaping when it's in quote_these_too
31969         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31970         quote, be sure to prepend only one backslash.
31971         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31972         (main): Test it.
31973
31974 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31975
31976         quotearg-tests: test escaping of embedded locale quotes
31977         * tests/test-quotearg.c (struct result_strings): Add member for
31978         new input.
31979         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31980         (inputs): Add new input.
31981         (results_g): Add expected results.
31982         (flag_results): Likewise.
31983         (locale_results): Likewise.
31984         (compare_strings): Check those.
31985
31986 2009-08-23  Bruno Haible  <bruno@clisp.org>
31987
31988         Tests for module 'dup3'.
31989         * modules/dup3-tests: New file.
31990         * tests/test-dup3.c: New file.
31991
31992         New module 'dup3'.
31993         * lib/unistd.in.h (dup3): New declaration.
31994         * lib/dup3.c: New file.
31995         * m4/dup3.m4: New file.
31996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31997         HAVE_DUP3.
31998         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31999         * modules/dup3: New file.
32000         * doc/glibc-functions/dup3.texi: Mention the new module.
32001
32002 2009-08-23  Bruno Haible  <bruno@clisp.org>
32003
32004         Tweak the dup2 test.
32005         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32006         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32007         the test file is still empty. Fix argument order of lseek.
32008
32009 2009-08-23  Bruno Haible  <bruno@clisp.org>
32010
32011         Avoid test link errors when the modules getopt-gnu, gettext are used.
32012         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32014
32015 2009-08-23  Bruno Haible  <bruno@clisp.org>
32016
32017         Fix getdtablesize() on mingw.
32018         * lib/getdtablesize.c (getdtablesize): Implement differently.
32019         * lib/unistd.in.h (getdtablesize): Improve comment.
32020
32021 2009-08-23  Bruno Haible  <bruno@clisp.org>
32022
32023         New module 'mkostemp'.
32024         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32025         * lib/stdlib.in.h (mksotemp): New declaration.
32026         * lib/mkostemp.c: New file, from glibc with modifications.
32027         * lib/tempname.h (GT_FILE): Remove outdated comment.
32028         (gen_tempname): Add flags argument.
32029         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32030         (__GT_FILE): Map to 1.
32031         (small_open, large_open): Remove macros.
32032         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32033         * lib/mkstemp.c (mkstemp): Update.
32034         * lib/mkdtemp.c (mkdtemp): Likewise.
32035         * m4/mkostemp.m4: New file.
32036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32037         HAVE_MKOSTEMP.
32038         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32039         HAVE_MKOSTEMP.
32040         * modules/mkostemp: New file, based on modules/mkstemp.
32041         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32042         * NEWS: Mention the change.
32043
32044 2009-08-23  Bruno Haible  <bruno@clisp.org>
32045
32046         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32047         Reported by Eric Blake.
32048
32049 2009-08-23  Bruno Haible  <bruno@clisp.org>
32050
32051         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32052         Reported by Eric Blake.
32053
32054 2009-08-23  Bruno Haible  <bruno@clisp.org>
32055
32056         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32057         * modules/pipe2 (Depends-on): Likewise.
32058
32059 2009-08-23  Eric Blake  <ebb9@byu.net>
32060
32061         fcntl-h: add O_TTY_INIT support
32062         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32063         * tests/test-fcntl-h.c (o): Test it.
32064         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32065
32066         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32067         * modules/fcntl: Move <fcntl.h> header replacement...
32068         * modules/fcntl-h: ...to new name, so as not to collide with
32069         like-named function.
32070         * tests/test-fcntl.c: Rename...
32071         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32072         * modules/fcntl-tests: Rename...
32073         * modules/fcntl-h-tests: ...to this.  Update test file name.
32074         * modules/chdir-long (Depends-on): Update clients.
32075         * modules/chdir-safer (Depends-on): Likewise.
32076         * modules/fcntl-safer (Depends-on): Likewise.
32077         * modules/fts (Depends-on): Likewise.
32078         * modules/mkancesdirs (Depends-on): Likewise.
32079         * modules/mkdir-p (Depends-on): Likewise.
32080         * modules/open (Depends-on): Likewise.
32081         * modules/savewd (Depends-on): Likewise.
32082         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32083         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32084
32085 2009-08-22  Bruno Haible  <bruno@clisp.org>
32086
32087         * modules/binary-io (License): Relicense under LGPL.
32088         * modules/pipe2 (License): Likewise.
32089
32090 2009-08-22  Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32093         return value.
32094         * lib/pipe-filter-gi.c (filter_init): Likewise.
32095         Reported by Eric Blake.
32096
32097 2009-08-22  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32100         * modules/pipe (Depends-on): Add pipe2.
32101
32102 2009-08-22  Bruno Haible  <bruno@clisp.org>
32103
32104         Tests for module 'pipe2'.
32105         * modules/pipe2-tests: New file.
32106         * tests/test-pipe2.c: New file.
32107
32108         New module 'pipe2'.
32109         * lib/unistd.in.h (pipe2): New declaration.
32110         * lib/pipe2.c: New file.
32111         * m4/pipe2.m4: New file.
32112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32113         HAVE_PIPE2.
32114         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32115         * modules/pipe2: New file.
32116         * doc/glibc-functions/pipe2.texi: Mention the new module.
32117
32118 2009-08-22  Bruno Haible  <bruno@clisp.org>
32119
32120         Reference some new glibc functions.
32121         * doc/glibc-functions/accept4.texi: New file.
32122         * doc/glibc-functions/dup3.texi: New file.
32123         * doc/glibc-functions/mkostemp.texi: New file.
32124         * doc/glibc-functions/pipe2.texi: New file.
32125         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32126         (Glibc sys/socket.h): Refer to accept4.
32127         (Glibc unistd.h): Refer to dup3, pipe2.
32128         Reported by Eric Blake.
32129
32130 2009-08-22  Jim Meyering  <meyering@redhat.com>
32131             Bruno Haible  <bruno@clisp.org>
32132
32133         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32134         This makes it so packages using automake-1.11's silent-rules option
32135         can print e.g., a single "GEN    configmake.h" line, rather than
32136         the 30+ statements that perform the job.  If you want to see the
32137         actual commands, you can still run "make V=1".
32138         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32139         so that make output is abbreviated when those variables are defined
32140         appropriately.
32141         * modules/argz: Likewise.
32142         * modules/arpa_inet: Likewise.
32143         * modules/byteswap: Likewise.
32144         * modules/configmake: Likewise.
32145         * modules/dirent: Likewise.
32146         * modules/errno: Likewise.
32147         * modules/fcntl: Likewise.
32148         * modules/float: Likewise.
32149         * modules/fnmatch: Likewise.
32150         * modules/getopt-posix: Likewise.
32151         * modules/glob: Likewise.
32152         * modules/iconv_open: Likewise.
32153         * modules/inttypes: Likewise.
32154         * modules/localcharset: Likewise.
32155         * modules/locale: Likewise.
32156         * modules/math: Likewise.
32157         * modules/netdb: Likewise.
32158         * modules/netinet_in: Likewise.
32159         * modules/poll: Likewise.
32160         * modules/posix_spawnp-tests: Likewise.
32161         * modules/sched: Likewise.
32162         * modules/search: Likewise.
32163         * modules/selinux-h: Likewise.
32164         * modules/signal: Likewise.
32165         * modules/spawn: Likewise.
32166         * modules/stdarg: Likewise.
32167         * modules/stdbool: Likewise.
32168         * modules/stddef: Likewise.
32169         * modules/stdint: Likewise.
32170         * modules/stdio: Likewise.
32171         * modules/stdlib: Likewise.
32172         * modules/string: Likewise.
32173         * modules/strings: Likewise.
32174         * modules/sys_file: Likewise.
32175         * modules/sys_ioctl: Likewise.
32176         * modules/sys_select: Likewise.
32177         * modules/sys_socket: Likewise.
32178         * modules/sys_stat: Likewise.
32179         * modules/sys_time: Likewise.
32180         * modules/sys_times: Likewise.
32181         * modules/sys_utsname: Likewise.
32182         * modules/sys_wait: Likewise.
32183         * modules/sysexits: Likewise.
32184         * modules/time: Likewise.
32185         * modules/unistd: Likewise.
32186         * modules/wchar: Likewise.
32187         * modules/wctype: Likewise.
32188
32189 2009-08-22  Jim Meyering  <meyering@redhat.com>
32190
32191         announce-gen: detect write failure
32192         * build-aux/announce-gen: Add Coda at end.
32193         Remove equivalent-but-more-verbose block at top.
32194
32195 2009-08-19  Akim Demaille  <demaille@gostai.com>
32196
32197         bootstrap: --help to stdout.
32198         * bootstrap (usage): Don't send --help to stderr.
32199         Use a here doc instead of a long string.
32200
32201 2009-08-21  Eric Blake  <ebb9@byu.net>
32202
32203         test-popen-safer: split from test-popen
32204         * tests/test-popen.c (main): Move...
32205         * tests/test-popen.h: ...into new file.
32206         * tests/test-popen-safer2.c: New file.
32207         * modules/popen-tests (Files): Add test-popen.h.
32208         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32209         Suggested by Bruno Haible.
32210
32211         test-fcntl-safer: split from test-open
32212         * tests/test-open.c (main): Move...
32213         * tests/test-open.h: ...into new file.
32214         * tests/test-fcntl-safer.c: New file.
32215         * modules/open-tests (Files): Add test-open.h.
32216         * modules/fcntl-safer-tests: New file.
32217         Suggested by Bruno Haible.
32218
32219         test-fopen-safer: split from test-fopen
32220         * tests/test-fopen.c (main): Move...
32221         * tests/test-fopen.h: ...into new file.
32222         * tests/test-fopen-safer.c: New file.
32223         * modules/fopen-tests (Files): Add test-fopen.h.
32224         * modules/fopen-safer-tests: New file.
32225         Suggested by Bruno Haible.
32226
32227 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32228
32229         popen-safer: test O_CLOEXEC at run-time.
32230         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32231
32232 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32233
32234         fcntl: move more flags to the header
32235         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32236         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32237         * lib/fcntl.in.h: Do both things here.
32238
32239 2009-08-21  Jim Meyering  <meyering@redhat.com>
32240
32241         consistently remove $@-t before redirecting to it
32242         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32243         * modules/alloca-opt: Likewise.
32244         * modules/byteswap: Likewise.
32245         * modules/fnmatch: Likewise.
32246         * modules/getopt-posix: Likewise.
32247         * modules/glob: Likewise.
32248         * modules/poll: Likewise.
32249         * modules/posix_spawnp-tests: Likewise.
32250         * modules/sys_socket: Likewise.
32251         * modules/sysexits: Likewise.
32252
32253 2009-08-21  Eric Blake  <ebb9@byu.net>
32254
32255         popen: simplify access to original popen
32256         * lib/popen.c (rpl_popen): No need to worry about popen being a
32257         macro.
32258         Reported by Bruno Haible.
32259
32260 2009-08-20  Eric Blake  <ebb9@byu.net>
32261
32262         build: avoid some compiler warnings
32263         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32264         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32265         type.
32266         (new_exclude_segment, excluded_file_pattern_p)
32267         (excluded_file_name_p): Reduce scope.
32268         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32269         old-style declaration.
32270
32271 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32272
32273         * tests/test-exclude1.sh: Handle Windows EOL.
32274         * tests/test-exclude2.sh: Likewise.
32275         * tests/test-exclude3.sh: Likewise.
32276         * tests/test-exclude4.sh: Likewise.
32277         * tests/test-exclude5.sh: Likewise.
32278         * tests/test-exclude6.sh: Likewise.
32279         * tests/test-exclude7.sh: Likewise.
32280
32281 2009-08-19  Akim Demaille  <demaille@gostai.com>
32282
32283         bootstrap: find sha1sum when named gsha1sum.
32284         * bootstrap (find_tool): New.
32285         ($SHA1SUM): New.
32286         Use it.
32287
32288 2009-08-20  Jim Meyering  <meyering@redhat.com>
32289
32290         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32291         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32292         expression that converts "." in a file name to "\." in the resulting
32293         regexp.  Start with a dummy statement, so that prior shell variable
32294         definitions are expanded portably.  Reported by Simon Josefsson.
32295
32296 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32297
32298         Fix polling for writeability of a screen buffer.
32299         * lib/poll.c: Distinguish input and screen buffers for the
32300         Win32 implementation.
32301         * lib/select.c: Likewise.
32302
32303 2009-08-19  Eric Blake  <ebb9@byu.net>
32304
32305         popen-safer: prevent popen from clobbering std descriptors
32306         * modules/popen-safer: New file.
32307         * lib/popen-safer.c: Likewise.
32308         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32309         * lib/stdio--.h (popen): Provide override.
32310         * lib/stdio-safer.h (popen_safer): Provide declaration.
32311         * tests/test-popen.c (includes): Partially test this.
32312         * modules/popen-safer-tests: New file, for more tests.
32313         * tests/test-popen-safer.c: Likewise.
32314         * MODULES.html.sh (file stream based Input/Output): Mention it.
32315
32316         tests: test some of the *-safer modules
32317         * modules/fopen-safer (Depends-on): Add fopen.
32318         * modules/fcntl-safer (Depends-on): Add fcntl.
32319         * modules/stdlib-safer (Depends-on): Add stdlib.
32320         (configure.ac): Set indicator.
32321         * modules/unistd-safer (configure.ac): Likewise.
32322         * modules/tmpfile-safer (configure.ac): Likewise.
32323         (Depends-on): Add tmpfile.
32324         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32325         active.
32326         * tests/test-fopen.c (includes): Test safer versions when they are
32327         in use.
32328         * tests/test-open.c (includes): Likewise.
32329
32330         popen: fix cygwin 1.5 bug when stdin closed
32331         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32332         * modules/popen: New file.
32333         * modules/popen-tests: Likewise.
32334         * tests/test-popen.c: Likewise.
32335         * m4/popen.m4: Likewise.
32336         * lib/popen.c: Likewise.
32337         * lib/stdio.in.h (popen): New declaration.
32338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32339         * modules/stdio (Makefile.am): Likewise.
32340         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32341
32342 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32343
32344         maint.mk: give full control over update-copyright exclusions
32345         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32346         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32347         (update-copyright): Don't force inclusion of top-level
32348         ChangeLog.  Don't force exclusion of all COPYING files, but make
32349         them the default exclusion instead.
32350
32351 2009-08-16  Bruno Haible  <bruno@clisp.org>
32352
32353         Fix test failures on Solaris 10.
32354         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32355         tests when Solaris iconv() is used.
32356         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32357         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32358         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32359         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32360         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32361
32362 2009-08-16  Bruno Haible  <bruno@clisp.org>
32363
32364         Fix test failures on Solaris 10.
32365         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32366         'tr' program and pass it as first argument.
32367         * tests/test-pipe-filter-gi1.sh: Likewise.
32368         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32369         program as first argument.
32370         * tests/test-pipe-filter-gi1.c (main): Likewise.
32371
32372 2009-08-16  Eric Blake  <ebb9@byu.net>
32373
32374         fpurge: fix previous commits
32375         * modules/fpurge (Makefile.am): Make replacement conditional,
32376         partially reverting 2007-04-29 change; missed in previous
32377         attempt.
32378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32379         is missing.
32380
32381 2009-08-16  Bruno Haible  <bruno@clisp.org>
32382
32383         Clarify fpurge's effect on the file position.
32384         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32385         * tests/test-fpurge.c (main): Make a second pass for checking the file
32386         position.
32387
32388 2009-08-16  Bruno Haible  <bruno@clisp.org>
32389
32390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32391         declaration of fpurge is missing.
32392         * tests/test-fpurge.c (main): Check that the file has not more contents
32393         than expected. Close the file before removing it.
32394
32395 2009-08-15  Eric Blake  <ebb9@byu.net>
32396
32397         fpurge: don't wrap working cygwin implementation
32398         * lib/fpurge.c (fpurge): Fix comment typo.
32399         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32400         1.7 to avoid replacement.
32401         * tests/test-fpurge.c (main): Enhance test.
32402
32403 2009-08-15  Eric Blake  <ebb9@byu.net>
32404         and Jim Meyering  <meyering@redhat.com>
32405
32406         test-update-copyright: skip if perl is insufficient
32407         * tests/test-update-copyright.sh: Failure to run maintainer tool
32408         should not cause testsuite failure on cygwin 1.5.
32409
32410 2009-08-14  Eric Blake  <ebb9@byu.net>
32411
32412         doc: mention more functions added in cygwin 1.7.0
32413         * doc/posix-headers/limits.texi (limits.h): Update for recent
32414         cygwin additions.
32415         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32416         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32417         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32418         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32419         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32420
32421 2009-08-14  Eric Blake  <ebb9@byu.net>
32422
32423         maint.mk: simplify update-copyright rule
32424         * top/maint.mk (update-copyright-local): Delete, and document how
32425         to do it in cfg.mk instead.
32426         (update-copyright-exclude-regexp): Delete, and document how to do
32427         it in .x-update-copyright instead.
32428         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32429         exclude ChangeLog.
32430
32431 2009-08-14  Bruno Haible  <bruno@clisp.org>
32432
32433         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32434
32435 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32436
32437         maint.mk: support update-copyright-env
32438         * top/maint.mk (update-copyright-env): Define place-holder.
32439         (update-copyright): Expand $(update-copyright-env) before
32440         invoking update-copyright.
32441
32442 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32443
32444         update-copyright: implement forced reformatting
32445         * build-aux/update-copyright: Implement and document
32446         UPDATE_COPYRIGHT_FORCE.
32447         * tests/test-update-copyright.sh: Test it.
32448
32449 2009-08-14  Eric Blake  <ebb9@byu.net>
32450         and Bruno Haible  <bruno@clisp.org>
32451
32452         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32453         * tests/test-locale.c: Revert previous patch related to NULL.
32454         * tests/test-stdio.c: Likewise.
32455         * tests/test-stdlib.c: Likewise.
32456         * tests/test-string.c: Likewise.
32457         * tests/test-unistd.c: Likewise.
32458         * modules/time-tests (Depends-on): Add verify.
32459         * modules/wchar-tests (Depends-on): Likewise.
32460         * tests/test-time.c: Test for NULL compliance.
32461         * tests/test-wchar.c: Likewise.
32462         * modules/locale (Depends-on): Add stddef.
32463         * modules/stdio (Depends-on): Likewise.
32464         * modules/stdlib (Depends-on): Likewise.
32465         * modules/string (Depends-on): Likewise.
32466         * modules/time (Depends-on): Likewise.
32467         * modules/unistd (Depends-on): Likewise.
32468         * modules/wchar (Depends-on): Likewise.
32469         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32470         * lib/stdlib.in.h (includes): Likewise.
32471         * lib/string.in.h (includes): Likewise.
32472         * lib/time.in.h (includes): Likewise.
32473         * lib/unistd.in.h (includes): Likewise.
32474         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32475         replaced.
32476         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32477         * m4/stddef_h.m4: New file.
32478         * modules/stddef: Likewise.
32479         * lib/stddef.in.h: Likewise.
32480         * modules/stddef-tests: Likewise.
32481         * tests/test-stddef.c: Likewise.
32482         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32483         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32484         * doc/posix-headers/locale.texi (locale.h): Likewise.
32485         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32486         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32487         * doc/posix-headers/string.texi (string.h): Likewise.
32488         * doc/posix-headers/time.texi (time.h): Likewise.
32489         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32490         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32491
32492 2009-08-14  Eric Blake  <ebb9@byu.net>
32493
32494         doc: improve git diff of texinfo files
32495         * .gitattributes: Add rule for *.texi files, with hint on how to
32496         use it.
32497         Copied from m4, and based on a report by Bruno Haible.
32498
32499 2009-08-14  Bruno Haible  <bruno@clisp.org>
32500
32501         Disable multithread support by default on Cygwin 1.5.x for real.
32502         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32503
32504 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32505
32506         update-copyright: much ado about intervals
32507         * build-aux/update-copyright: Implement and document
32508         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32509         of copyright year intervals.
32510         Also, document UPDATE_COPYRIGHT_YEAR.
32511         * tests/test-update-copyright.sh: Test it.
32512
32513         update-copyright: convert 2-digit to 4-digit years
32514         * build-aux/update-copyright: Implement and document.
32515         * tests/test-update-copyright.sh: Update.
32516
32517 2009-08-14  Jim Meyering  <meyering@redhat.com>
32518
32519         test-exclude: avoid coreutils "make check" failure
32520         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32521         just as in test-argmatch.c.
32522
32523 2009-08-13  Eric Blake  <ebb9@byu.net>
32524
32525         test-dup2: fix bad assumption
32526         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32527         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32528
32529         test-version-etc: fix CRLF portability issue
32530         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32531         recognize \r.
32532         * tests/test-argp-version-etc-1.sh: Likewise.
32533
32534         getopt: update client modules
32535         * modules/argp (Depends-on): Use getopt-gnu.
32536         * modules/git-merge-changelog (Depends-on): Likewise.
32537         * modules/long-options (Depends-on): Likewise.
32538         * modules/xstrtol (Depends-on): Likewise.
32539
32540 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32541
32542         * tests/test-version-etc.sh: Don't fail on different
32543         project/version.  Don't fail on CRLF differences.  Rewrite to use
32544         multiple -e instead of multiple sed forks, suggested by Eric Blake
32545         <ebb9@byu.net>.
32546         * tests/test-argp-version-etc-1.sh: Likewise.
32547
32548 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32549
32550         * tests/test-version-etc.sh: Don't fail on different
32551         project/version.
32552
32553 2009-08-12  Bruno Haible  <bruno@clisp.org>
32554
32555         Tests for modules 'getopt-posix', 'getopt-gnu'.
32556         * modules/getopt-posix-tests: New file.
32557         * tests/test-getopt.c: New file.
32558         * tests/test-getopt.h: New file.
32559         * tests/test-getopt_long.h: New file.
32560
32561         New modules 'getopt-posix', 'getopt-gnu'.
32562         * modules/getopt-gnu: New file, renamed from modules/getopt.
32563         * modules/getopt-posix: New file.
32564         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32565         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32566         (gl_GETOPT): Remove macro.
32567         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32568         Disable the test against BSD systems that declare optreset. Test
32569         against mingw bug. Test against lack of support of optional arguments
32570         on many platforms.
32571         * doc/glibc-headers/getopt.texi: Update module name and list of
32572         relevant platforms.
32573         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32574         'getopt-gnu' and more portability problems.
32575         * NEWS: Mention the changes.
32576
32577 2009-08-12  Bruno Haible  <bruno@clisp.org>
32578
32579         Ensure that optarg etc. get declared by <unistd.h>.
32580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32581         AC_USE_SYSTEM_EXTENSIONS.
32582         * modules/getopt (Depends-on): Add 'extensions'.
32583
32584 2009-08-12  Bruno Haible  <bruno@clisp.org>
32585
32586         Avoid test link errors.
32587         * modules/pipe-filter-ii-tests (Makefile.am): Define
32588         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32589         * modules/pipe-filter-gi-tests (Makefile.am): Define
32590         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32592
32593 2009-08-12  Bruno Haible  <bruno@clisp.org>
32594
32595         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32596         gl_GETOPT_SUBSTITUTE before.
32597         (gl_GETOPT): Use it.
32598         * m4/argp.m4 (gl_ARGP): Update.
32599         Reported by Sergey Poznyakoff.
32600
32601         * m4/getopt.m4: Reorder macros.
32602         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32603         (gl_GETOPT_SUBSTITUTE): Remove macro.
32604
32605 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32606
32607         Minor improvement in gitlog-to-changelog
32608
32609         * build-aux/gitlog-to-changelog: New option `--format' makes
32610         output format string configurable.
32611
32612 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32613
32614         Optimize exclude: use hash tables for non-wildcard patterns.
32615
32616         * lib/exclude.c: Include hash.h and mbuiter.h
32617         (struct exclude_pattern, exclude_segment): New data types.
32618         (struct exclude): Rewrite.
32619         (fnmatch_pattern_has_wildcards): New function.
32620         (new_exclude_segment, free_exclude_segment): New functions.
32621         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32622         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32623         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32624         * modules/exclude: Depend on hash and mbuiter.
32625
32626         * modules/exclude-tests: New file.
32627         * tests/test-exclude.c: New file.
32628         * tests/test-exclude1.sh: New file.
32629         * tests/test-exclude2.sh: New file.
32630         * tests/test-exclude3.sh: New file.
32631         * tests/test-exclude4.sh: New file.
32632         * tests/test-exclude5.sh: New file.
32633         * tests/test-exclude6.sh: New file.
32634         * tests/test-exclude7.sh: New file.
32635
32636 2009-08-12  Bruno Haible  <bruno@clisp.org>
32637
32638         Ensure that getopt() gets declared by <unistd.h>.
32639         * lib/unistd.in.h: Conditionally include getopt.h.
32640         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32641         Set GNULIB_UNISTD_H_GETOPT.
32642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32643         GNULIB_UNISTD_H_GETOPT.
32644         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32645
32646 2009-08-12  Bruno Haible  <bruno@clisp.org>
32647
32648         Clarify logic.
32649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32650         gl_replace_getopt instead of GETOPT_H.
32651
32652 2009-08-12  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/getopt.m4: Add comments.
32655
32656 2009-08-12  Bruno Haible  <bruno@clisp.org>
32657
32658         Disable multithread support by default on Cygwin 1.5.x.
32659         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32660         set gl_use_threads=no if not specified otherwise.
32661
32662 2009-08-11  Bruno Haible  <bruno@clisp.org>
32663
32664         Avoid compilation error on NetBSD 5.0.
32665         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32666         * tests/test-stdio.c: Likewise.
32667         * tests/test-stdlib.c: Likewise.
32668         * tests/test-string.c: Likewise.
32669         * tests/test-unistd.c: Likewise.
32670         Reported by Greg Troxel <gdt@ir.bbn.com>
32671         at <https://savannah.gnu.org/support/?106973>.
32672
32673 2009-08-11  Bruno Haible  <bruno@clisp.org>
32674
32675         * modules/dup2-tests (Depends-on): Remove close.
32676
32677         Undo 2009-07-19 commit.
32678         * modules/acl-tests (Depends-on): Remove close.
32679         * modules/binary-io-tests (Depends-on): Likewise.
32680         * modules/closein-tests (Depends-on): Likewise.
32681         * modules/flock-tests (Depends-on): Likewise.
32682         * modules/fsync-tests (Depends-on): Likewise.
32683         * modules/lseek-tests (Depends-on): Likewise.
32684         * modules/pipe-tests (Depends-on): Likewise.
32685         * modules/posix_spawn-tests (Depends-on): Likewise.
32686         * modules/posix_spawnp-tests (Depends-on): Likewise.
32687         * modules/stat-time-tests (Depends-on): Likewise.
32688         * modules/yesno-tests (Depends-on): Likewise.
32689
32690 2009-08-10  Bruno Haible  <bruno@clisp.org>
32691
32692         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32693
32694 2009-08-10  Bruno Haible  <bruno@clisp.org>
32695
32696         Fix a gcc warning.
32697         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32698
32699 2009-08-10  Bruno Haible  <bruno@clisp.org>
32700
32701         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32702         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32703         not only the first time.
32704         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32705         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32706         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32707         is 1, not only the the first time.
32708
32709 2009-08-10  Bruno Haible  <bruno@clisp.org>
32710
32711         Make it possible to use module 'gethostname' without module 'close'.
32712         * lib/unistd.in.h (close): Evoke a link error only if
32713         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32715         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32716         * modules/unistd (Makefile.am): Substitute
32717         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32718         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32719         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32721         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32722         * modules/sys_ioctl (Makefile.am): Substitute
32723         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32724         * modules/socket (configure.ac): On native Windows, set
32725         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32726         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32727         Reported by Sam Steingold <sds@gnu.org>.
32728
32729 2009-08-10  Bruno Haible  <bruno@clisp.org>
32730
32731         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32732         * modules/ioctl (configure.ac): Likewise.
32733
32734 2009-08-10  Bruno Haible  <bruno@clisp.org>
32735
32736         Avoid collision between gnulib wrapper and libintl wrapper.
32737         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32738         already defined in intl/printf.c.
32739         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32740         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32741
32742 2009-08-09  Bruno Haible  <bruno@clisp.org>
32743
32744         Make <sys/select.h> really self-contained, also on Solaris 10.
32745         * lib/sys_select.in.h: Include <string.h>.
32746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32747         Solaris 10 problem.
32748         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32749         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32750         Reported by Jim Meyering.
32751
32752 2009-08-09  Bruno Haible  <bruno@clisp.org>
32753
32754         Avoid warnings from 'aclocal' that are due to a use of macro name
32755         AM_XGETTEXT_OPTION that is not defined in automake.
32756         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32757         automake.
32758         * modules/error (configure.ac): Likewise.
32759         * modules/propername (configure.ac): Likewise.
32760         * modules/vasprintf (configure.ac): Likewise.
32761         * modules/verror (configure.ac): Likewise.
32762         * modules/xprintf (configure.ac): Likewise.
32763         * modules/xvasprintf (configure.ac): Likewise.
32764
32765 2009-08-08  Bruno Haible  <bruno@clisp.org>
32766
32767         Avoid compilation error in C++ mode.
32768         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32769         Reported by Sam Steingold <sds@gnu.org>.
32770
32771 2009-08-08  Bruno Haible  <bruno@clisp.org>
32772
32773         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32774         for the various Unix platforms.
32775         * doc/posix-headers/limits.texi: Update platforms list regarding
32776         HOST_NAME_MAX.
32777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32778
32779 2009-08-07  Jim Meyering  <meyering@redhat.com>
32780
32781         selinux-at: fix typo in a comment
32782         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32783         Spotted by Paolo Bonzini.
32784
32785         selinux-at: remove redundant m4 code, add documentation
32786         * modules/selinux-at (configure.ac): Remove redundant code.
32787         LIB_SELINUX is already set via the dependent module, selinux-h.
32788         (Include): Add quotes around selinux-at.h.
32789         * lib/selinux-at.h: Add documentation.
32790         Reported by Bruno Haible in
32791         http://marc.info/?l=gnulib-bug&m=124958988300749
32792
32793 2009-08-07  Bruno Haible  <bruno@clisp.org>
32794
32795         Avoid link error on MacOS X 10.3 and 10.4.
32796         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32797         on non-ELF systems.
32798         * lib/argp-pv.c (argp_program_version): Likewise.
32799         Reported by Simon Josefsson.
32800
32801 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32802
32803         * tests/test-version-etc.sh: Use $EXEEXT.
32804
32805 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32806
32807         update-copyright: update documentation to point to maint.mk
32808         * build-aux/update-copyright: Here.
32809
32810 2009-08-06  Jim Meyering  <meyering@redhat.com>
32811
32812         maint.mk: support update-copyright-local
32813         * top/maint.mk (update-copyright-local): Define place-holder.
32814         (update-copyright): Depend on $(update-copyright-local).
32815
32816 2009-08-06  Jim Meyering  <meyering@redhat.com>
32817
32818         selinux-at: new module
32819         Initially written for coreutils, this module will soon be
32820         used by findutils, too.
32821         * MODULES.html.sh [Misc]: Add selinux-at.
32822         * lib/selinux-at.h: New file, from coreutils.
32823         * lib/selinux-at.c: Likewise.
32824         * modules/selinux-at: Likewise.
32825         (License): Change from LGPL to GPL, since it depends
32826         on the GPL'd openat module.
32827
32828         doc: update README
32829         * README: Remove references to cogito.
32830         Remove cvs-repo-updating instructions from 2007.
32831         Don't imply that CVS is better if you have limited disk space.
32832
32833 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32834
32835         update-copyright: support C-style comments
32836         * build-aux/update-copyright: Implement and document.
32837         * tests/test-update-copyright.sh: Test.
32838
32839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32840
32841         update-copyright: support omitted "(C)"
32842         * build-aux/update-copyright: Implement and document.  Also,
32843         allow variable whitespace before "(C)".
32844         * tests/test-update-copyright.sh: Test.
32845
32846 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32847
32848         update-copyright: don't trip on non-FSF copyright statements
32849         * build-aux/update-copyright: Fix so that the first correctly
32850         formatted FSF copyright statement is recognized no matter what
32851         appears before it.  Update documentation.
32852         * tests/test-update-copyright.sh: Test that.
32853
32854 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32855
32856         update-copyright: clean up code a little
32857         * build-aux/update-copyright: Append "_re" to the name of any
32858         variable holding a regular expression.
32859         Replace "old" and "new" with "stmt" in variable names.
32860         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32861         handled correctly.
32862         Format code more consistently.
32863
32864 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32865
32866         update-copyright-tests: improve portability
32867         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32868         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32869
32870 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32871
32872         update-copyright: support @copyright{} and &copy;
32873         * build-aux/update-copyright: Implement and document.
32874         * tests/test-update-copyright.sh: Test.
32875
32876 2009-08-04  Jim Meyering  <meyering@redhat.com>
32877
32878         update-copyright-tests: correctly test EOL=\r\n handling
32879         * tests/test-update-copyright.sh: Put \r at the end of some lines
32880         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32881
32882         maint.mk: make update-copyright exclusion list more configurable
32883         * top/maint.mk (update-copyright): Default to excluding COPYING,
32884         but allow an override, in case someone does want to update that file.
32885
32886         maint.mk: don't update copyright date in COPYING
32887         * top/maint.mk (update-copyright): Exclude COPYING.
32888
32889         maint.mk: add a copyright-updating rule
32890         * top/maint.mk (update-copyright): New rule.
32891         Derived from coreutils/Makefile.am.
32892
32893         update-copyright: rename some variables
32894         * build-aux/update-copyright: Rename a few variables for clarity.
32895         Tweak syntax.  List Joel E. Denny as coauthor.
32896
32897 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32898
32899         update-copyright: fix bug for 2-digit last year and add tests
32900         * build-aux/update-copyright: Fix bug.
32901         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32902         specified.
32903         * modules/update-copyright-tests: New
32904         * tests/test-update-copyright.sh: New.
32905
32906 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32907
32908         update-copyright: handle leading tabs in line prefix
32909         * build-aux/update-copyright: Count leading tabs as 8 spaces
32910         when computing margin.  This helps with the formatting of
32911         ChangeLogs, for example.
32912         Fix documentation a little.
32913
32914 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32915
32916         update-copyright: support EOL=\r\n
32917         * build-aux/update-copyright: Implement that.
32918
32919 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32920
32921         update-copyright: automatically format copyright statements
32922         * build-aux/update-copyright: Implement that.
32923         Also, be a little more predictable and safer by always failing
32924         when the full copyright format is not perfectly recognized as an
32925         unbroken whole.  Discussed at
32926         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32927         Rewrite documentation.
32928
32929 2009-08-03  Bruno Haible  <bruno@clisp.org>
32930
32931         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32932
32933 2009-08-02  Bruno Haible  <bruno@clisp.org>
32934
32935         Tests for module 'uname'.
32936         * modules/uname-tests: New file.
32937         * tests/test-uname.c: New file.
32938
32939         New module 'uname'.
32940         * lib/uname.c: New file.
32941         * m4/uname.m4: New file.
32942         * modules/uname: New file.
32943         * doc/posix-functions/uname.texi: Mention the new module.
32944
32945 2009-08-02  Bruno Haible  <bruno@clisp.org>
32946
32947         Tests for module 'sys_utsname'.
32948         * modules/sys_utsname-tests: New file.
32949         * tests/test-sys_utsname.c: New file.
32950
32951         New module 'sys_utsname'.
32952         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32953         * m4/sys_utsname_h.m4: New file.
32954         * modules/sys_utsname: New file.
32955         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32956
32957 2009-08-02  Bruno Haible  <bruno@clisp.org>
32958
32959         Implicitly initialize the sockets library.
32960         * lib/gethostname.c: Include sockets.h.
32961         (rpl_gethostname): Invoke gl_sockets_startup.
32962         * lib/socket.c: Include sockets.h.
32963         (rpl_socket): Invoke gl_sockets_startup.
32964         * modules/gethostname (Depends-on): Add sockets.
32965         * modules/socket (Depends-on): Likewise.
32966         * tests/test-poll.c: Don't include sockets.h.
32967         (main): Don't invoke gl_sockets_startup.
32968         * tests/test-select.c: Don't include sockets.h.
32969         (main): Don't invoke gl_sockets_startup.
32970
32971 2009-08-02  Bruno Haible  <bruno@clisp.org>
32972
32973         Allow multiple calls to gl_sockets_startup.
32974         * lib/sockets.c (initialized_sockets_version): New variable.
32975         (gl_sockets_startup): Do nothing if already called for this or a higher
32976         version.
32977         (gl_sockets_cleanup): Reset initialized_sockets_version.
32978
32979 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32980
32981         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32982         different project/version.
32983
32984 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32985             Bruno Haible  <bruno@clisp.org>
32986
32987         Tests for module 'pipe-filter-gi'.
32988         * modules/pipe-filter-gi-tests: New file.
32989         * tests/test-pipe-filter-gi1.sh: New file.
32990         * tests/test-pipe-filter-gi1.c: New file.
32991         * tests/test-pipe-filter-gi2.sh: New file.
32992         * tests/test-pipe-filter-gi2-main.c: New file.
32993         * tests/test-pipe-filter-gi2-child.c: New file.
32994
32995         New module 'pipe-filter-gi'.
32996         * lib/pipe-filter-gi.c: New file.
32997         * modules/pipe-filter-gi: New file.
32998
32999 2009-08-02  Bruno Haible  <bruno@clisp.org>
33000             Paolo Bonzini  <bonzini@gnu.org>
33001
33002         Tests for module 'pipe-filter-ii'.
33003         * modules/pipe-filter-ii-tests: New file.
33004         * tests/test-pipe-filter-ii1.sh: New file.
33005         * tests/test-pipe-filter-ii1.c: New file.
33006         * tests/test-pipe-filter-ii2.sh: New file.
33007         * tests/test-pipe-filter-ii2-main.c: New file.
33008         * tests/test-pipe-filter-ii2-child.c: New file.
33009
33010         New module 'pipe-filter-ii'.
33011         * lib/pipe-filter.h: New file.
33012         * lib/pipe-filter-ii.c: New file.
33013         * lib/pipe-filter-aux.h: New file.
33014         * modules/pipe-filter-ii: New file.
33015
33016 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33017
33018         * lib/gc-libgcrypt.c: Change copyright to FSF.
33019         * lib/gc-gnulib.c: Likewise.
33020
33021 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33022
33023         * lib/gethostname.c: Include limits.h.
33024
33025 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33026             Bruno Haible  <bruno@clisp.org>
33027
33028         Ensure HOST_NAME_MAX as part of the gethostname module.
33029         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33030         define also HOST_NAME_MAX.
33031         * tests/test-gethostname.c: Include <limits.h>.
33032         (main): Check also HOST_NAME_MAX.
33033         * doc/posix-headers/limits.texi: Document the mingw problem.
33034
33035 2009-08-02  Bruno Haible  <bruno@clisp.org>
33036
33037         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33038         Add comments.
33039
33040 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33041
33042         * lib/gethostname.c: Add Windows wrapper.
33043         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33044         * modules/gethostname: Depend on sys_socket & errno, for also
33045         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33046         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33047
33048 2009-07-31  Jim Meyering  <meyering@redhat.com>
33049
33050         getloadavg: fix symbol name in comment
33051         * lib/getloadavg.c: Correct a typo I introduced when adding
33052         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33053         Matt Kraai spotted the problem.
33054
33055 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33056
33057         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33058         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33059         code also if ! defined N_NAME_POINTER.
33060         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33061         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33062         but the n_name member is a 12-byte array.
33063
33064 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33065
33066         update-copyright: generalize comment handling
33067         * build-aux/update-copyright: Handle copyright statements
33068         within more comment styles.
33069         Document usage.
33070         Report any file with an external copyright holder or parse failure.
33071
33072 2009-07-29  Jim Meyering  <meyering@redhat.com>
33073
33074         mktime: correct setting of REPLACE_MKTIME
33075         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33076
33077         update-copyright: new module
33078         * modules/update-copyright: New file.
33079         * build-aux/update-copyright: New file.
33080         * MODULES.html.sh (maint+release support): Add update-copyright.
33081
33082 2009-07-27  Bruno Haible  <bruno@clisp.org>
33083
33084         Fix compilation error when <ctime> is used and mktime is replaced.
33085         * lib/time.in.h (mktime): New declaration.
33086         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33087         REPLACE_MKTIME instead of defining mktime in config.h.
33088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33089         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33090         Reported by Ross McFarland <rwmcfa1@neces.com>.
33091
33092 2009-07-27  Bruno Haible  <bruno@clisp.org>
33093
33094         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33095         Reported by Matt Kraai <mkraai@beckman.com>.
33096
33097 2009-07-25  Jim Meyering  <meyering@redhat.com>
33098
33099         maint.mk: avoid warnings about missing files
33100         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33101         diagnostic when .prev-version does not exist.
33102         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33103         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33104         nonexistent cfg.mk.
33105         Suggestions from Simon Josefsson.
33106
33107 2009-07-25  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33110         defined as macros. Needed on QNX 6.4.1.
33111         Reported by Matt Kraai <mkraai@beckman.com>.
33112
33113 2009-07-23  Jim Meyering  <meyering@redhat.com>
33114
33115         maint.mk: invoke "make dist" with a working value of XZ_OPT
33116         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33117
33118 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33119
33120         Make fseeko.c compile on QNX.
33121         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33122
33123 2009-07-22  Peter Simons  <simons@cryp.to>
33124
33125         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33126         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33127         * lib/md4.h: Likewise.
33128         * lib/md5.h: Likewise.
33129         * lib/sha1.h: Likewise.
33130         * lib/sha256.h: Likewise.
33131         * lib/sha512.h: Likewise.
33132
33133         tests-sha1: don't assign literal string to 'char *' variable
33134         * tests/test-sha1.c (main): Declare locals with "const" to match
33135         attributes of the right hand side.
33136
33137 2009-07-21  Eric Blake  <ebb9@byu.net>
33138
33139         dup2: fix more mingw problems
33140         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33141         fd to itself.
33142         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33143         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33144         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33145         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33146         care of mingw bugs.
33147
33148 2009-07-21  Jim Meyering  <meyering@redhat.com>
33149
33150         vc-list-files: avoid failure when /bin/sh is dash
33151         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33152         On some Debian based systems, /bin/sh is a symlink to dash, and running
33153         this command would omit the "/" following each 'tests' prefix:
33154           dash -x build-aux/vc-list-files -C . tests
33155         That is because bash and dash work differently:
33156           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33157           bash ok
33158           dash odd
33159
33160 2009-07-21  Eric Blake  <ebb9@byu.net>
33161
33162         dup2-tests: test previous patch
33163         * modules/dup2-tests: New file.
33164         * tests/test-dup2.c: Likewise.
33165         * tests/test-open.c (main): Avoid unspecified behavior.
33166         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33167         test.
33168
33169         dup2: work around mingw and cygwin 1.5 bug
33170         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33172         * modules/unistd (Makefile.am): Substitute it.
33173         * lib/unistd.in.h (dup2): Declare the replacement.
33174         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33175         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33176         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33177         * modules/execute (Depends-on): Add dup2.
33178         * modules/fseterr (Depends-on): Likewise.
33179         * modules/pipe (Depends-on): Likewise.
33180         * modules/posix_spawn-internal (Depends-on): Likewise.
33181
33182 2009-07-21  Bruno Haible  <bruno@clisp.org>
33183
33184         * modules/.gitattributes: New file.
33185
33186 2009-07-20  Bruno Haible  <bruno@clisp.org>
33187
33188         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33189         (main): Use it.
33190
33191 2009-07-20  Eric Blake  <ebb9@byu.net>
33192
33193         test-pipe: make a bit more robust.
33194         * tests/test-pipe.c (myerr): Allow error messages regardless of
33195         what we do to stderr.
33196         (test_pipe): Rearrange to avoid deadlock.
33197         (child_main): Try a larger read, to ensure we avoided deadlock.
33198         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33199         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33200         if misused.
33201
33202 2009-07-19  Jim Meyering  <meyering@redhat.com>
33203
33204         fts: avoid false-positive cycle-detection
33205         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33206         for each new command line argument.
33207
33208 2009-07-19  Bruno Haible  <bruno@clisp.org>
33209
33210         Fix build error on mingw with the modules sys_select and unistd.
33211         * modules/acl-tests (Depends-on): Add close.
33212         * modules/binary-io-tests (Depends-on): Likewise.
33213         * modules/closein-tests (Depends-on): Likewise.
33214         * modules/flock-tests (Depends-on): Likewise.
33215         * modules/fsync-tests (Depends-on): Likewise.
33216         * modules/lseek-tests (Depends-on): Likewise.
33217         * modules/pipe-tests (Depends-on): Likewise.
33218         * modules/posix_spawn-tests (Depends-on): Likewise.
33219         * modules/posix_spawnp-tests (Depends-on): Likewise.
33220         * modules/stat-time-tests (Depends-on): Likewise.
33221         * modules/yesno-tests (Depends-on): Likewise.
33222
33223 2009-07-19  Bruno Haible  <bruno@clisp.org>
33224
33225         Unify conditionals.
33226         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33227         macros, not at the compiler macros.
33228         * lib/pipe.c: Likewise.
33229         * lib/execute.c: Likewise.
33230         * lib/spawni.c: Likewise.
33231
33232 2009-07-19  Bruno Haible  <bruno@clisp.org>
33233
33234         Fix handling of closed stdin/stdout/stderr on mingw.
33235         * lib/w32spawn.h: Include unistd.h.
33236         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33237         file descriptor with O_NOINHERIT flag.
33238         (fd_safer_noinherit): New function, based on fd-safer.c.
33239         (dup_safer_noinherit): New function, based on dup-safer.c.
33240         (undup_safer_noinherit): New function.
33241         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33242         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33243         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33244         instead of fd_safer.
33245         * tests/test-pipe.c: Include <windows.h>.
33246         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33247         result.
33248
33249         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33250         from main.
33251         (test_pipe): Pass an extra argument for disambiguation.
33252         (main): Invoke parent_main or child_main.
33253
33254         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33255         consistently.
33256
33257 2009-07-18  Eric Blake  <ebb9@byu.net>
33258
33259         test-pipe: fix mingw build
33260         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33261
33262 2009-07-18  Bruno Haible  <bruno@clisp.org>
33263
33264         * modules/pipe-tests (Makefile.am): Fix typo.
33265
33266 2009-07-18  Eric Blake  <ebb9@byu.net>
33267
33268         error: fix mingw build
33269         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33270         Reported by Bruno Haible.
33271
33272         error: avoid undefined use of stdout
33273         * lib/error.c (error, error_at_line): Check that fd 1 is open
33274         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33275         is handling faults and the close_stdout module wants to report the
33276         detection of closed stdout as an error.
33277
33278 2009-07-17  Eric Blake  <ebb9@byu.net>
33279
33280         pipe: be robust in face of closed fds
33281         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33282         should cause child to misbehave.
33283         * modules/pipe-tests: New module.
33284         * tests/test-pipe.c: New file.
33285         * tests/test-pipe.sh: New file.
33286         Reported by Akim Demaille.
33287
33288 2009-07-14  Bruno Haible  <bruno@clisp.org>
33289
33290         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33291         Reported by anonymous kc.
33292
33293 2009-07-07  Jim Meyering  <meyering@redhat.com>
33294
33295         maint.mk: don't look for translatable strings in *.m4 or *.mk
33296         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33297         when searching for translatable strings.
33298
33299 2009-07-05  Jim Meyering  <meyering@redhat.com>
33300
33301         remove superfluous parentheses in STREQ definition
33302         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33303         * lib/getugroups.c (STREQ): Likewise.
33304         * lib/fnmatch.c (STREQ): Likewise.
33305         Spotted by Bruno Haible.
33306
33307 2009-07-04  Jim Meyering  <meyering@redhat.com>
33308
33309         argv-iter: new module
33310         * MODULES.html.sh: Add argv-iter.
33311         * lib/argv-iter.c, lib/argv-iter.h: New files.
33312         * modules/argv-iter: New file.
33313         * modules/argv-iter-tests: New file.
33314         * tests/test-argv-iter.c: Test it.
33315
33316 2009-07-04  Bruno Haible  <bruno@clisp.org>
33317
33318         Fix assertion.
33319         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33320         contains more exact copies of a given entry than file2, leave the extra
33321         copies unpaired rather than aborting.
33322         Reported by Eric Blake.
33323
33324 2009-07-02  Bruno Haible  <bruno@clisp.org>
33325
33326         Speedup git-merge-changelog for git cherry-pick.
33327         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33328         (entries_mapping_get): New function, extracted from compute_mapping.
33329         (entries_mapping_reverse_get): New function.
33330         (compute_mapping): Add a 'full' argument. Return the result in a
33331         'struct entries_mapping'.
33332         (main): Update. Access the mappings through entries_mapping_get.
33333         Reported by Eric Blake.
33334
33335 2009-07-02  Bruno Haible  <bruno@clisp.org>
33336
33337         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33338         best_i.
33339
33340 2009-07-02  Bruno Haible  <bruno@clisp.org>
33341
33342         Speed up approximate search for matching ChangeLog entries.
33343         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33344         argument. Call fstrcmp_bounded instead of fstrcmp.
33345         (compute_mapping, try_split_merged_entry, main): Update callers.
33346
33347 2009-07-02  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33350
33351 2009-06-30  Bruno Haible  <bruno@clisp.org>
33352
33353         Reduce the number of uc_is_cased calls.
33354         * lib/unicase.h (casing_suffix_context_t): Add
33355         'first_char_except_ignorable' field.
33356         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33357         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33358         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33359         Update initializer.
33360         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33361         case-ignorable characters.
33362         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33363         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33364         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33365         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33366         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33367
33368 2009-06-30  Bruno Haible  <bruno@clisp.org>
33369
33370         Tests for module 'unicase/ignorable'.
33371         * modules/unicase/ignorable-tests: New file.
33372         * tests/unicase/test-ignorable.c: New file, generated by
33373         gen-uni-tables.
33374
33375         Tests for module 'unicase/cased'.
33376         * modules/unicase/cased-tests: New file.
33377         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33378         * tests/unicase/test-predicate-part1.h: New file, derived from
33379         tests/unictype/test-predicate-part1.h.
33380         * tests/unicase/test-predicate-part2.h: New file, same as
33381         tests/unictype/test-predicate-part2.h.
33382
33383         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33384         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33385         (output_casing_properties): New function.
33386         (main): Call it.
33387         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33388         * lib/unicase/cased.c: Include unictype/bitmap.h.
33389         (uc_is_cased): Define through a bitmap lookup.
33390         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33391         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33392         (uc_is_case_ignorable): Define through a bitmap lookup.
33393         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33394         lib/unictype/bitmap.h.
33395         (Depends-on): Add inline. Clean up.
33396         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33397         lib/unictype/bitmap.h.
33398         (Depends-on): Add inline. Clean up.
33399         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33400         recognition.
33401         * tests/unicase/test-u16-tolower.c (main): Likewise.
33402         * tests/unicase/test-u32-tolower.c (main): Likewise.
33403
33404 2009-06-30  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33407         * lib/unicase/u16-casemap.c: Likewise.
33408         * lib/unicase/u32-casemap.c: Likewise.
33409
33410 2009-06-29  Bruno Haible  <bruno@clisp.org>
33411
33412         Define u32_casefold as a wrapper around u32_ct_casefold.
33413         * lib/unicase/u32-casefold.c: Update.
33414         * modules/unicase/u32-casefold (Depends-on): Add
33415         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33416         unicase/empty-suffix-context. Clean up.
33417
33418         Define u16_casefold as a wrapper around u16_ct_casefold.
33419         * lib/unicase/u16-casefold.c: Update.
33420         * modules/unicase/u16-casefold (Depends-on): Add
33421         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33422         unicase/empty-suffix-context. Clean up.
33423
33424         Define u8_casefold as a wrapper around u8_ct_casefold.
33425         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33426         * lib/unicase/u8-casefold.c: Update.
33427         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33428         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33429
33430         Define u32_totitle as a wrapper around u32_ct_totitle.
33431         * lib/unicase/u32-totitle.c: Update.
33432         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33433         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33434
33435         Define u16_totitle as a wrapper around u16_ct_totitle.
33436         * lib/unicase/u16-totitle.c: Update.
33437         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33438         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33439
33440         Define u8_totitle as a wrapper around u8_ct_totitle.
33441         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33442         functions.
33443         (FUNC): Delegate to U_CT_TOTITLE.
33444         * lib/unicase/u8-totitle.c: Update.
33445         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33446         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33447
33448         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33449         invocation.
33450         * modules/unicase/u32-tolower (Depends-on): Add
33451         unicase/empty-prefix-context, unicase/empty-suffix-context.
33452
33453         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33454         invocation.
33455         * modules/unicase/u16-tolower (Depends-on): Add
33456         unicase/empty-prefix-context, unicase/empty-suffix-context.
33457
33458         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33459         * modules/unicase/u8-tolower (Depends-on): Add
33460         unicase/empty-prefix-context, unicase/empty-suffix-context.
33461
33462         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33463         invocation.
33464         * modules/unicase/u32-toupper (Depends-on): Add
33465         unicase/empty-prefix-context, unicase/empty-suffix-context.
33466
33467         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33468         invocation.
33469         * modules/unicase/u16-toupper (Depends-on): Add
33470         unicase/empty-prefix-context, unicase/empty-suffix-context.
33471
33472         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33473         * modules/unicase/u8-toupper (Depends-on): Add
33474         unicase/empty-prefix-context, unicase/empty-suffix-context.
33475
33476         New module 'unicase/u32-ct-casefold'.
33477         * lib/unicase/u32-ct-casefold.c: New file.
33478         * modules/unicase/u32-ct-casefold: New file.
33479
33480         New module 'unicase/u16-ct-casefold'.
33481         * lib/unicase/u16-ct-casefold.c: New file.
33482         * modules/unicase/u16-ct-casefold: New file.
33483
33484         New module 'unicase/u8-ct-casefold'.
33485         * lib/unicase/u8-ct-casefold.c: New file.
33486         * lib/unicase/u-ct-casefold.h: New file, derived from
33487         lib/unicase/u-casefold.h.
33488         * modules/unicase/u8-ct-casefold: New file.
33489
33490         New module 'unicase/u32-ct-totitle'.
33491         * lib/unicase/u32-ct-totitle.c: New file.
33492         * modules/unicase/u32-ct-totitle: New file.
33493
33494         New module 'unicase/u16-ct-totitle'.
33495         * lib/unicase/u16-ct-totitle.c: New file.
33496         * modules/unicase/u16-ct-totitle: New file.
33497
33498         New module 'unicase/u8-ct-totitle'.
33499         * lib/unicase/u8-ct-totitle.c: New file.
33500         * lib/unicase/u-ct-totitle.h: New file, derived from
33501         lib/unicase/u-totitle.h.
33502         * modules/unicase/u8-ct-totitle: New file.
33503
33504         New module 'unicase/u32-ct-tolower'.
33505         * lib/unicase/u32-ct-tolower.c: New file.
33506         * modules/unicase/u32-ct-tolower: New file.
33507
33508         New module 'unicase/u16-ct-tolower'.
33509         * lib/unicase/u16-ct-tolower.c: New file.
33510         * modules/unicase/u16-ct-tolower: New file.
33511
33512         New module 'unicase/u8-ct-tolower'.
33513         * lib/unicase/u8-ct-tolower.c: New file.
33514         * modules/unicase/u8-ct-tolower: New file.
33515
33516         New module 'unicase/u32-ct-toupper'.
33517         * lib/unicase/u32-ct-toupper.c: New file.
33518         * modules/unicase/u32-ct-toupper: New file.
33519
33520         New module 'unicase/u16-ct-toupper'.
33521         * lib/unicase/u16-ct-toupper.c: New file.
33522         * modules/unicase/u16-ct-toupper: New file.
33523
33524         New module 'unicase/u8-ct-toupper'.
33525         * lib/unicase/u8-ct-toupper.c: New file.
33526         * modules/unicase/u8-ct-toupper: New file.
33527
33528         Add context arguments to u*_casemap functions.
33529         * lib/unicase/unicasemap.h: Include unicase.h.
33530         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33531         suffix_context arguments.
33532         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33533         functions.
33534         (FUNC): Add prefix_context and suffix_context arguments. Use
33535         uc_is_cased and uc_is_case_ignorable.
33536         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33537         * lib/unicase/u16-casemap.c: Likewise.
33538         * lib/unicase/u32-casemap.c: Likewise.
33539         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33540         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33541         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33542         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33543         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33544         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33545
33546         New module 'unicase/u32-suffix-context'.
33547         * lib/unicase/u32-suffix-context.c: New file.
33548         * modules/unicase/u32-suffix-context: New file.
33549
33550         New module 'unicase/u16-suffix-context'.
33551         * lib/unicase/u16-suffix-context.c: New file.
33552         * modules/unicase/u16-suffix-context: New file.
33553
33554         New module 'unicase/u8-suffix-context'.
33555         * lib/unicase/u8-suffix-context.c: New file.
33556         * lib/unicase/u-suffix-context.h: New file.
33557         * modules/unicase/u8-suffix-context: New file.
33558
33559         New module 'unicase/empty-suffix-context'.
33560         * lib/unicase/empty-suffix-context.c: New file.
33561         * modules/unicase/empty-suffix-context: New file.
33562
33563         New module 'unicase/u32-prefix-context'.
33564         * lib/unicase/u32-prefix-context.c: New file.
33565         * modules/unicase/u32-prefix-context: New file.
33566
33567         New module 'unicase/u16-prefix-context'.
33568         * lib/unicase/u16-prefix-context.c: New file.
33569         * modules/unicase/u16-prefix-context: New file.
33570
33571         New module 'unicase/u8-prefix-context'.
33572         * lib/unicase/u8-prefix-context.c: New file.
33573         * lib/unicase/u-prefix-context.h: New file.
33574         * lib/unicase/context.h: New file.
33575         * modules/unicase/u8-prefix-context: New file.
33576
33577         New module 'unicase/empty-prefix-context'.
33578         * lib/unicase/empty-prefix-context.c: New file.
33579         * modules/unicase/empty-prefix-context: New file.
33580
33581         New module 'unicase/ignorable'.
33582         * lib/unicase/ignorable.c: New file.
33583         * modules/unicase/ignorable: New file.
33584
33585         New module 'unicase/cased'.
33586         * lib/unicase/caseprop.h: New file.
33587         * lib/unicase/cased.c: New file.
33588         * modules/unicase/cased: New file.
33589
33590         New functions for case mapping of substrings.
33591         * lib/unicase.h (casing_prefix_context_t): New type.
33592         (unicase_empty_prefix_context): New variable.
33593         (u8_casing_prefix_context, u16_casing_prefix_context,
33594         u32_casing_prefix_context, u8_casing_prefixes_context,
33595         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33596         declarations.
33597         (casing_suffix_context_t): New type.
33598         (unicase_empty_suffix_context): New variable.
33599         (u8_casing_suffix_context, u16_casing_suffix_context,
33600         u32_casing_suffix_context, u8_casing_suffixes_context,
33601         u16_casing_suffixes_context, u32_casing_suffixes_context,
33602         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33603         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33604         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33605         declarations.
33606
33607 2009-06-28  Jim Meyering  <meyering@redhat.com>
33608
33609         boostrap: indent only with spaces
33610         * build-aux/bootstrap: Indent only with spaces, never TABs.
33611
33612         bootstrap: split long lines
33613         * build-aux/bootstrap: Keep line length < 80.
33614
33615         bootstrap: sync from coreutils
33616         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33617         just as autoreconf does.  Verify a list of prerequisite
33618         package-name,version-number pairs if defined in bootstrap.conf.
33619         Refer to README-prereq, if prerequisites are not satisfied.
33620
33621 2009-06-27  Eric Blake  <ebb9@byu.net>
33622
33623         tests: add test for bogus NULL definition
33624         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33625         * tests/test-stdlib.c: Likewise.
33626         * tests/test-string.c: Likewise.
33627         * tests/test-locale.c: Likewise.
33628         * tests/test-unistd.c: Likewise.
33629         * modules/stdio-tests (Depends-on): Add verify.
33630         * modules/stdlib-tests (Depends-on): Likewise.
33631         * modules/string-tests (Depends-on): Likewise.
33632         * modules/locale-tests (Depends-on): Likewise.
33633         * modules/unistd-tests (Depends-on): Likewise.
33634
33635 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33636
33637         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33638         self-explaining comment.
33639         * m4/selinux-selinux-h: Update serial.
33640         (gl_LIBSELINUX): New macro, adding a warning for missing development
33641         packages to code extracted from...
33642         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33643         Add warning for missing development packages here, too.
33644
33645 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33646
33647         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33648
33649 2009-06-25  Eric Blake  <ebb9@byu.net>
33650
33651         version-etc: fix regression
33652         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33653         gcc.
33654         (version_etc): Use it, to catch bugs with trailing NULL.
33655         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33656         (version_etc_va): Fix logic bug.
33657         * modules/version-etc-tests: Add test.
33658         * tests/test-version-etc.c: New file.
33659         * tests/test-version-etc.sh: Likewise.
33660
33661 2009-06-25  Sam Steingold  <sds@gnu.org>
33662
33663         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33664         mbtowc declaration.
33665
33666 2009-06-25  Eric Blake  <ebb9@byu.net>
33667
33668         fpurge: migrate into <stdio.h>
33669         * lib/fpurge.h: Delete...
33670         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33671         * lib/fpurge.c (fpurge): Change declaring header.
33672         * modules/fpurge (Files): Drop deleted file.
33673         (Depends-on): Add stdio.
33674         (configure.ac): Set witness.
33675         * modules/stdio (Makefile.am): Support fpurge macros.
33676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33677         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33678         * lib/fflush.c: Update client.
33679         * tests/test-fpurge.c: Likewise.
33680         * NEWS: Mention the change.
33681
33682 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33683
33684         * lib/argp-version-etc.c (program_authors): Add const
33685         qualifier.
33686         * lib/version-etc.c: Fix typos in the comments.
33687         * modules/argp-version-etc: Depends on version-etc.
33688
33689 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33690
33691         argp-version-etc: new module.
33692
33693         * lib/argp-version-etc.c: New file.
33694         * lib/argp-version-etc.h: New file.
33695         * modules/argp-version-etc: New file.
33696         * modules/argp-version-etc-tests: New file.
33697         * tests/test-argp-version-etc.c: New test.
33698         * tests/test-argp-version-etc-1.sh: New test.
33699
33700 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33701
33702         Provide additional interfaces and documentation for version-etc
33703         module.
33704
33705         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33706         interfaces.
33707         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33708         prototypes.
33709
33710 2009-06-24  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33713         HAVE_LIB${NAME} macro.
33714         Reported by Sam Steingold <sds@gnu.org>.
33715
33716 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33717
33718         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33719         needed.
33720
33721 2009-06-21  Bruno Haible  <bruno@clisp.org>
33722
33723         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33724         work.
33725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33726         together with LIB${NAME}, LTLIB${NAME}.
33727         Reported by Sam Steingold <sds@gnu.org>.
33728
33729 2009-06-20  Jim Meyering  <meyering@redhat.com>
33730
33731         tests: make sc_require_test_exit_idiom more generic
33732         * top/maint.mk (Exit_witness_file): New overridable variable.
33733         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33734         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33735
33736 2009-06-19  Jim Meyering  <meyering@redhat.com>
33737
33738         hash: reverse order of src/dst parameters in an internal interface
33739         * lib/hash.c (transfer_entries): Reverse order of parameters to
33740         put DST before SRC.  Adjust callers.
33741
33742         tests: test-hash: avoid wholesale duplication
33743         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33744         Instead, use a loop and add a single conditional.
33745
33746         tests: test-hash: allow seed selection via a command line argument
33747         * tests/test-hash.c (get_seed): New function.
33748         (main): Use it.
33749
33750 2009-06-19  Eric Blake  <ebb9@byu.net>
33751
33752         hash: avoid memory leak on allocation failure
33753         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33754         failure.  Factor repeated algorithm...
33755         (transfer_entries): ...into new helper routine.
33756         (hash_delete): React to hash_rehash return value.
33757
33758         hash: reduce memory pressure in hash_rehash no-op case
33759         * lib/hash.c (next_prime): Avoid overflow.
33760         (hash_initialize): Factor bucket size computation...
33761         (compute_bucket_size): ...into new helper function.
33762         (hash_rehash): Use new function and open coding to reduce memory
33763         pressure, and avoid a memory leak in USE_OBSTACK code.
33764         Reported by Jim Meyering.
33765
33766 2009-06-18  Eric Blake  <ebb9@byu.net>
33767
33768         hash: make rotation more obvious
33769         * modules/hash (Depends-on): Add bitrotate and stdint.
33770         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33771         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33772         (SIZE_MAX): Rely on headers for definition.
33773         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33774         (raw_hasher): Use rotr_sz.
33775         Suggested by Jim Meyering.
33776
33777         hash: fix memory leak in last patch
33778         * lib/hash.c (hash_rehash): Avoid memory leak.
33779
33780         hash: avoid no-op rehashing
33781         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33782
33783         hash: provide default callback functions
33784         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33785         (hash_initialize): Use them as defaults.
33786         * tests/test-hash.c (main): Test this.
33787
33788         hash: minor optimization
33789         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33790         when possible.
33791         (hash_initialize): Document this promise.
33792         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33793         * tests/test-hash.c (hash_compare_strings): Test this.
33794
33795 2009-06-18  Bruno Haible  <bruno@clisp.org>
33796
33797         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33798         going to be replaced anyway.
33799
33800 2009-06-18  Bruno Haible  <bruno@clisp.org>
33801
33802         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33803         in one place.
33804         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33805         be replaced anyway.
33806
33807 2009-06-18  Eric Blake  <ebb9@byu.net>
33808
33809         hash: check for resize before insertion
33810         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33811         threshold before insertion, so that a pathological hash_rehash
33812         that fills every bucket can still trigger another rehash.
33813
33814 2009-06-18  Jim Meyering  <meyering@redhat.com>
33815
33816         hash-tests: add a loop around the small tests
33817         * tests/test-hash.c (main): Repeat small tests with selected
33818         small initial table sizes.
33819
33820 2009-06-17  Eric Blake  <ebb9@byu.net>
33821
33822         hash: minor cleanups
33823         * lib/hash.h (hash_entry): Make opaque, by moving...
33824         * lib/hash.c (hash_entry): ...here.
33825         (hash_insert): Clarify restrictions on what can be inserted.
33826         (hash_get_next): Clarify when it is safe to remove an element
33827         during traversal.
33828         (check_tuning): Skip verification when tuning is known safe.
33829         (hash_initialize): Clarify restrictions on tuning.
33830
33831 2009-06-17  Jim Meyering  <jim@meyering.net>
33832         and Eric Blake  <ebb9@byu.net>
33833
33834         hash-tests: new module
33835         * modules/hash-tests: New file.
33836         * tests/test-hash.c: New file.
33837
33838 2009-06-17  Eric Blake  <ebb9@byu.net>
33839
33840         strstr-simple: document new module
33841         * MODULES.html.sh: Document new module.
33842
33843         strstr, strcasestr: replace on platforms with broken memchr
33844         * modules/strstr: Split into...
33845         * modules/strstr-simple: ...new module that does not care about
33846         performance, but does care about glibc bug.
33847         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33848         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33849         if platform memchr is broken, per Debian bug 521737.
33850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33851         memchr.
33852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33853         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33854         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33855         * modules/mountlist (Depends-on): Add strstr-simple.
33856         * modules/gen-uni-tables (Depends-on): Likewise.
33857         * modules/argz (Depends-on): Add strstr.
33858
33859 2009-06-17  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/posix_spawn-internal (Depends-on): Add errno.
33862
33863 2009-06-17  Bruno Haible  <bruno@clisp.org>
33864
33865         Define missing ESTALE on Interix 3.5.
33866         * lib/errno.in.h (ESTALE): Assign a value if missing.
33867         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33869         missing.
33870         * doc/posix-headers/errno.texi: Mention the Interix bug.
33871         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33872
33873 2009-06-15  Eric Blake  <ebb9@byu.net>
33874
33875         memchr, memchr2: add valgrind exception
33876         * lib/memchr.valgrind: New file.
33877         * lib/memchr2.valgrind: New file.
33878         * modules/memchr (Files): Distribute valgrind file.
33879         * modules/memchr2 (Files): Likewise.
33880
33881         docs: memchr is no longer obsolete
33882         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33883         * lib/string.in.h (memchr): Simplify logic.
33884
33885 2009-06-14  Jim Meyering  <meyering@redhat.com>
33886
33887         link-follow: fix the "checking..." message to not mention trailing slash
33888         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33889         never considered trailing slashes.
33890
33891 2009-06-14  Bruno Haible  <bruno@clisp.org>
33892
33893         * m4/memchr.m4: Mention also the bug on IA-64.
33894         * doc/posix-functions/memchr.texi: Likewise.
33895
33896 2009-06-12  Eric Blake  <ebb9@byu.net>
33897
33898         memchr: detect broken x86_64 and alpha implementations
33899         * modules/memchr-tests (Depends-on): Move mmap detection...
33900         * modules/memchr (Depends-on): ...here.
33901         (configure.ac): Set indicator.
33902         * lib/string.in.h (memchr): Declare replacement.
33903         * modules/string (Makefile.am): Trigger replacement.
33904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33905         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33906         bugs.
33907         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33908         * modules/getpagesize (License): Relax license.
33909
33910 2009-06-11  Bruno Haible  <bruno@clisp.org>
33911
33912         * lib/idpriv.h: Add more references.
33913
33914 2009-06-08  Bruno Haible  <bruno@clisp.org>
33915
33916         Tests for module 'idpriv-droptemp'.
33917         * modules/idpriv-droptemp-tests: New file.
33918         * tests/test-idpriv-droptemp.sh: New file.
33919         * tests/test-idpriv-droptemp.su.sh: New file.
33920         * tests/test-idpriv-droptemp.c: New file.
33921
33922         New module 'idpriv-droptemp'.
33923         * lib/idpriv-droptemp.c: New file.
33924         * modules/idpriv-droptemp: New file.
33925
33926 2009-06-08  Bruno Haible  <bruno@clisp.org>
33927
33928         Tests for module 'idpriv-drop'.
33929         * modules/idpriv-drop-tests: New file.
33930         * tests/test-idpriv-drop.sh: New file.
33931         * tests/test-idpriv-drop.su.sh: New file.
33932         * tests/test-idpriv-drop.c: New file.
33933
33934         New module 'idpriv-drop'.
33935         * lib/idpriv.h: New file.
33936         * lib-idpriv-drop.c: New file.
33937         * m4/idpriv.m4: New file.
33938         * modules/idpriv-drop: New file.
33939
33940 2009-06-08  Bruno Haible  <bruno@clisp.org>
33941
33942         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33944         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33945         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33946         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33949
33950 2009-06-08  Eric Blake  <ebb9@byu.net>
33951
33952         test-strstr: use memory fence, when possible
33953         * tests/test-strstr.c (main): Use memory fence, in order to be
33954         more likely to trigger Debian bug 521737.
33955         * modules/strstr-tests (Files): Pull in additional files.
33956
33957         memchr: no longer obsolete, for wider field testing
33958         * modules/memchr (Status, Notice): Delete, this module is no
33959         longer obsolete.
33960         * modules/vasnprintf (Depends-on): Add memchr.
33961
33962 2009-06-07  Jim Meyering  <meyering@redhat.com>
33963
33964         hash: declare some functions with the warn_unused_result attribute
33965         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33966
33967 2009-06-07  Bruno Haible  <bruno@clisp.org>
33968
33969         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33970         Reported by Eric Blake.
33971
33972 2009-06-06  Eric Blake  <ebb9@byu.net>
33973
33974         test-alignof: fix typo with long double
33975         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33976         compiler error.
33977
33978 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33979
33980         Escape non-texinfo { and }s.
33981         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33982         markup error.
33983
33984 2009-06-04  Jim Meyering  <meyering@redhat.com>
33985
33986         gitlog-to-changelog: don't infloop on an empty commit log
33987         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33988         Reported by Boris Petersen <transacid@centerim.org>.
33989
33990 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33991
33992         version-etc: extend for packagers
33993         Add three new configure options, intended for packagers:
33994           --with-packager="packager name"
33995           --with-packager-version="packager-specific version"
33996           --with-packager-bug-reports="packager bug reporting"
33997         An example with coreutils:
33998           $ ./configure \
33999             --with-packager=Gentoo \
34000             --with-packager-bug-report=http://bugs.gentoo.org/ \
34001             --with-packager-version="patchset 1.6"
34002           $ ./src/ls --version | head -n2
34003           ls (GNU coreutils) 7.1-dirty
34004           Packaged by Gentoo (patchset 1.6)
34005         Note that the bug reporting info via --help doesn't show up because
34006         coreutils uses its own custom emit_bug_reporting_address() implementation
34007         in src/system.h.  If it didn't, it'd look like:
34008           $ ./src/ls --help | tail -n4
34009           Report bugs to <bug-coreutils@gnu.org>.
34010           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34011           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34012           General help using GNU software: <http://www.gnu.org/gethelp/>.
34013         * lib/version-etc.c: Print new information, if provided.
34014         * m4/version-etc.m4: New file.
34015         * modules/version-etc (Files): Add m4/version-etc.m4.
34016         (configure.ac): Add gl_VERSION_ETC.
34017
34018 2009-05-31  Bruno Haible  <bruno@clisp.org>
34019
34020         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34021         and 'int64_t'.
34022         * modules/alignof-tests (Dependencies): Add stdint.
34023         Reported by Eric Blake.
34024
34025 2009-05-31  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34028         restriction due to compiler bugs.
34029         Reported by Eric Blake.
34030
34031 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34032             Bruno Haible  <bruno@clisp.org>
34033
34034         Fix test-alignof failure.
34035         * lib/alignof.h (alignof_slot): New macro.
34036         (alignof_type): New macro, with the same semantics as the previous
34037         'alignof'.
34038         (alignof): Alias to alignof_slot.
34039         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34040         check that the results are usable as constant expressions.
34041
34042 2009-05-31  Bruno Haible  <bruno@clisp.org>
34043
34044         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34045         * tests/test-memchr.c (main): Check that memchr does not read past the
34046         first occurrence of the byte.
34047         * tests/test-strstr.c (main): Update comment.
34048         Suggested by Eric Blake.
34049
34050 2009-05-30  Bruno Haible  <bruno@clisp.org>
34051
34052         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34053         detail how to use dumpbin.
34054         Reported by David Byron <dbyron@dbyron.com>.
34055
34056 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34057
34058         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34059
34060 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34061
34062         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34063
34064 2009-05-28  Bruno Haible  <bruno@clisp.org>
34065
34066         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34067         build-aux/ files.
34068
34069 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34070
34071         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34072
34073 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34074
34075         * gnulib-tool (sed_transform_main_lib_file)
34076         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34077         regexps.
34078
34079 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34080
34081         * tests/test-strstr.c: Add another self-test.
34082         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34083         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34084
34085 2009-05-23  Bruno Haible  <bruno@clisp.org>
34086
34087         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34088         change.
34089
34090 2009-05-21  Bruno Haible  <bruno@clisp.org>
34091
34092         Simplify use of mode_t varargs.
34093         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34094         uses 'mode_t' or 'int'.
34095         * lib/openat.c (openat): Likewise.
34096         * lib/open-safer.c (open_safer): Likewise.
34097         * m4/mode_t.m4: New file.
34098         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34099         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34100         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34101         * modules/open (Files): Add m4/mode_t.m4.
34102         * modules/openat (Files): Likewise.
34103         * modules/fcntl-safer (Files): Likewise.
34104         Suggested by Eric Blake.
34105
34106 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34107
34108         * doc/glibc-functions/fallocate.texi: New file.
34109         * doc/gnulib.texi: Include it.
34110
34111 2009-05-21  Eric Blake  <ebb9@byu.net>
34112             Bruno Haible  <bruno@clisp.org>
34113
34114         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34115         invocations.
34116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34117
34118 2009-05-21  Eric Blake  <ebb9@byu.net>
34119             Bruno Haible  <bruno@clisp.org>
34120
34121         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34122         include_next. Fix of 2008-11-20 commit.
34123         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34124         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34125         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34126         NEXT_MATH_H.
34127         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34128         instead of NEXT_MATH_H.
34129
34130 2009-05-21  Bruno Haible  <bruno@clisp.org>
34131
34132         Avoid redefinition warnings for SIZE_MAX.
34133         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34134         Reported by Simon Josefsson.
34135
34136 2009-05-21  Bruno Haible  <bruno@clisp.org>
34137
34138         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34139         AC_CACHE_VAL.
34140
34141 2009-05-20  Bruno Haible  <bruno@clisp.org>
34142
34143         Make zeroptr.h work on mingw.
34144         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34145         mprotect.
34146         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34147         * modules/memchr2-tests (configure.ac): Likewise.
34148         * modules/memcmp-tests (configure.ac): Likewise.
34149         * modules/memmem-tests (configure.ac): Likewise.
34150         * modules/memrchr-tests (configure.ac): Likewise.
34151         Reported by Simon Josefsson.
34152
34153 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34154
34155         * tests/test-glob.c: Include string.h for strcmp prototype.
34156
34157 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34158
34159         * modules/getdelim (Depends-on): Add explicit stdint, although it
34160         was implicitly already pulled in via realloc-posix.
34161         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34162
34163 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34164
34165         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34166         G. Christensen" <tgc@jupiterrise.com>.
34167         * m4/sys_socket_h.m4: Check for sa_family_t.
34168         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34169         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34170         * tests/test-sys_socket.c: Check that sa_family_t works.
34171
34172 2009-05-18  Eric Blake  <ebb9@byu.net>
34173
34174         maint.mk: allow gnulib_dir in VPATH build
34175         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34176
34177 2009-05-15  Jim Meyering  <meyering@redhat.com>
34178
34179         maint.mk: Give gnulib_dir a default definition.
34180         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34181         Thus, most packages no longer need to specify this variable in cfg.mk
34182
34183 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34184
34185         rename.m4: fix typos that would make non-mingw cross-configure fail
34186         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34187
34188 2009-05-13  Eric Blake  <ebb9@byu.net>
34189
34190         mmap-anon: avoid out-of-order autoconf expansion
34191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34192         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34193         * modules/memchr-tests (Depends-on): Add extensions.
34194         * modules/memchr2-tests (Depends-on): Add extensions.
34195         * modules/memcmp-tests (Depends-on): Add extensions.
34196         * modules/memmem-tests (Depends-on): Add extensions.
34197         * modules/memrchr-tests (Depends-on): Add extensions.
34198
34199 2009-05-13  Bruno Haible  <bruno@clisp.org>
34200
34201         Make some tests ISO C 99 compliant.
34202         * tests/zerosize-ptr.h: New file.
34203         * tests/test-memchr.c: Include zerosize-ptr.h.
34204         (main): Use a zero-size object pointer instead of NULL.
34205         * tests/test-memchr2.c: Include zerosize-ptr.h.
34206         (main): Use a zero-size object pointer instead of NULL.
34207         * tests/test-memcmp.c: Include zerosize-ptr.h.
34208         (main): Use a zero-size object pointer instead of NULL.
34209         * tests/test-memmem.c: Include zerosize-ptr.h.
34210         (main): Use a zero-size object pointer instead of NULL.
34211         * tests/test-memrchr.c: Include zerosize-ptr.h.
34212         (main): Use a zero-size object pointer instead of NULL.
34213         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34214         m4/mmap-anon.m4.
34215         (Depends-on): Add getpagesize.
34216         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34217         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34218         m4/mmap-anon.m4.
34219         (Depends-on): Add getpagesize.
34220         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34221         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34222         m4/mmap-anon.m4.
34223         (Depends-on): Add getpagesize.
34224         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34225         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34226         m4/mmap-anon.m4.
34227         (Depends-on): Add getpagesize.
34228         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34229         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34230         m4/mmap-anon.m4.
34231         (Depends-on): Add getpagesize.
34232         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34233
34234 2009-05-12  Bruno Haible  <bruno@clisp.org>
34235
34236         Tests for module 'alignof'.
34237         * modules/alignof-tests: New file.
34238         * tests/test-alignof.c: New file.
34239
34240 2009-05-12  Bruno Haible  <bruno@clisp.org>
34241
34242         Fix alignof macro.
34243         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34244         vendor compilers that are always correct.
34245
34246 2009-05-12  Bruno Haible  <bruno@clisp.org>
34247
34248         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34249         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34250         not whether its fully works.
34251
34252 2009-05-12  Bruno Haible  <bruno@clisp.org>
34253
34254         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34255
34256 2009-05-12  Jim Meyering  <meyering@redhat.com>
34257
34258         * top/maint.mk: Adjust backslash alignment.
34259
34260 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34261
34262         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34263
34264 2009-05-11  Eric Blake  <ebb9@byu.net>
34265
34266         argp: avoid undefined behavior
34267         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34268         macros.
34269
34270 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34271
34272         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34273         user.name to prevent git commit from complaining.
34274
34275 2009-05-10  Bruno Haible  <bruno@clisp.org>
34276
34277         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34278         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34279         it rewrites every file name only once.
34280         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34281
34282 2009-05-08  Bruno Haible  <bruno@clisp.org>
34283
34284         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34285         instead of 'max'.
34286
34287 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34288
34289         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34290         sockaddr_storage test.
34291
34292 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34293
34294         * modules/sys_socket (Makefile.am): Substitute
34295         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34296         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34297         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34298         * tests/test-sys_socket.c: Check sockaddr_storage.
34299
34300 2009-05-08  Bruno Haible  <bruno@clisp.org>
34301
34302         New module 'alignof'.
34303         * lib/alignof.h: New file.
34304         * modules/alignof: New file.
34305
34306 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34307             Bruno Haible  <bruno@clisp.org>
34308
34309         Fix test-file-has-acl on FreeBSD.
34310         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34311         mask is implicitly added.
34312         * tests/test-file-has-acl.c: Include <signal.h>.
34313         (main): Terminate the test after 5 seconds.
34314         * modules/acl-tests (configure.ac): Check for alarm function.
34315
34316 2009-05-04  Bruno Haible  <bruno@clisp.org>
34317
34318         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34319         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34320         * modules/errno (configure.ac): Drop AC_REQUIRE.
34321         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34322         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34323
34324 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34325
34326         * modules/glob-tests: New module.
34327         * tests/test-glob.c: Add.
34328
34329 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34330
34331         * modules/fnmatch-tests: New module.
34332         * tests/test-fnmatch.c: Add.
34333
34334 2009-05-04  Eric Blake  <ebb9@byu.net>
34335
34336         maint: make the new no-submodule-changes rule VPATH-safe
34337         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34338
34339 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34340             Bruno Haible  <bruno@clisp.org>
34341
34342         acl: Fix infinite loop on FreeBSD.
34343         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34344         of return value from acl_get_entry.
34345         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34346         Likewise.
34347
34348 2009-05-03  Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/acl-internal.h (acl_entries): Clarify return value.
34351         * lib/acl_entries.c (acl_entries): Likewise.
34352
34353 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34354
34355         Bug fix in acl module.
34356         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34357
34358 2009-05-03  Bruno Haible  <bruno@clisp.org>
34359
34360         Create gperf-generated file in the source dir, not in the build dir.
34361         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34362         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34363         * modules/unicase/locale-language (unicase/locale-languages.h):
34364         Likewise.
34365         * modules/unicase/special-casing (unicase/special-casing-table.h):
34366         Likewise.
34367         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34368         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34369         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34370         Reported by Ralf Wildenhues.
34371
34372 2009-05-03  Bruno Haible  <bruno@clisp.org>
34373
34374         * modules/fnmatch (Description, configure.ac): Taken from
34375         fnmatch-posix.
34376         * modules/fnmatch-posix: Turn into a symbolic reference to the
34377         'fnmatch' module, and deprecate.
34378         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34379
34380 2009-05-03  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34383         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34384         Reported by Ralf Wildenhues.
34385
34386 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34387
34388         * m4/fnmatch.m4: Fix fnmatch re-define.
34389
34390 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34391
34392         priv-set: new module and tests; adapt write-any-file
34393         * lib/priv-set.c: New file.
34394         * lib/priv-set.h: New file.
34395         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34396         * lib/write-any-file.c: Simplify by using priv-set module.
34397         * m4/priv-set.m4: New file.
34398         * modules/priv-set: New file.
34399         * modules/unlinkdir: Add dependency on priv-set module.
34400         * modules/write-any-file: Likewise.
34401
34402         Tests for module 'priv-set'.
34403         * modules/priv-set-tests: New file.
34404         * tests/test-priv-set.c: New file.
34405
34406 2009-05-03  Jim Meyering  <meyering@redhat.com>
34407             Bruno Haible  <bruno@clisp.org>
34408
34409         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34410         use the converted UTF-8 variant of the name instead.
34411
34412 2009-05-03  Jim Meyering  <meyering@redhat.com>
34413
34414         tests: tighten some getdate tests
34415         * tests/test-getdate.c (main): Tighten tests: require equality,
34416         not just greater than.  Set TZ envvar to UTC0.
34417
34418 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34419
34420         getdate: correctly interpret "next monday" when run on a Monday
34421         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34422         that e.g., "next tues" (when run on a tuesday) results in a date
34423         that is one week in the future, and not today's date.
34424         I.e., add a week when the wday is the same as the current one.
34425         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34426         and earlier by Martin Bernreuther and Jan Minář.
34427         * tests/test-getdate.c (main): Check that "next DAY" is always in
34428         the future and that "last DAY" is always in the past.
34429
34430 2009-05-02  Jim Meyering  <meyering@redhat.com>
34431
34432         build: ensure that a release build fails when a submodule is unclean
34433         * top/maint.mk (no-submodule-changes): New rule.
34434         (alpha beta major): Depend on it.
34435
34436 2009-05-02  Bruno Haible  <bruno@clisp.org>
34437
34438         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34439         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34440         shell variable gl_fnmatch_required to detect which variant is
34441         requested.
34442         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34443         gl_FUNC_FNMATCH_POSIX.
34444         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34445         exclude fnmatch-posix.
34446
34447 2009-05-02  Bruno Haible  <bruno@clisp.org>
34448
34449         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34450         * modules/mbsrtowcs (License): Change to LGPLv2+.
34451         * modules/strnlen1 (License): Likewise.
34452         Reported by Simon Josefsson.
34453
34454 2009-05-02  Bruno Haible  <bruno@clisp.org>
34455
34456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34457         "cross".
34458         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34459         gnulib-tool was called with option --source-base=lib.
34460
34461 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34462
34463         Use automake *-local hooks without commands, for extensibility.
34464         * modules/localcharset (Makefile.am): Rename install-exec-local
34465         rule to install-exec-localcharset, and make it a prerequisite of
34466         install-exec-local.  Likewise, rename the uninstall-local rule to
34467         uninstall-localcharset, and make it a prerequisite of the former.
34468
34469 2009-05-01  Bruno Haible  <bruno@clisp.org>
34470
34471         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34472         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34473         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34475         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34476         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34477         m4/locale-zh.m4, m4/codeset.m4.
34478
34479         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34480         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34481         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34482         m4/locale-zh.m4.
34483
34484         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34485         REPLACE_WCRTOMB if mbstate_t must be replaced.
34486         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34487         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34488
34489 2009-05-01  Bruno Haible  <bruno@clisp.org>
34490
34491         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34492         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34493         dngettext, dcngettext, textdomain, bindtextdomain,
34494         bind_textdomain_codeset): Undefine before redefining.
34495
34496 2009-04-30  Bruno Haible  <bruno@clisp.org>
34497
34498         Fix bug introduced on 2009-04-25.
34499         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34500         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34501         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34502         is defined.
34503         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34504         is defined.
34505         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34506         is defined.
34507         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34508
34509 2009-04-28  Bruno Haible  <bruno@clisp.org>
34510
34511         Comment tweaks.
34512         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34513         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34514         * lib/unicase.h (u*_casexfrm): Likewise.
34515         Reported by Paolo Bonzini.
34516
34517 2009-04-28  Bruno Haible  <bruno@clisp.org>
34518
34519         Fix a compilation error.
34520         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34521         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34522         Reported by Jim Meyering.
34523
34524 2009-04-27  Bruno Haible  <bruno@clisp.org>
34525
34526         New module 'libunistring'.
34527         * modules/libunistring: New file.
34528         * m4/libunistring.m4: New file.
34529         * MODULES.html.sh (Unicode string functions): Add it.
34530
34531 2009-04-27  Eric Blake  <ebb9@byu.net>
34532
34533         maint.mk: allow package-specific header to provide <config.h>
34534         * top/maint.mk (sc_require_config_h): New variable.
34535         (sc_require_config_h, sc_require_config_h_first): Use it.
34536
34537 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34538
34539         * top/maint.mk (sc_avoid_if_before_free): Except
34540         useless-if-before-free script.
34541
34542 2009-04-27  Eric Blake  <ebb9@byu.net>
34543
34544         maintainer-makefile: depend on all required helper scripts
34545         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34546         useless-if-before-free.
34547         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34548         version, rather than assuming gnulib checkout is available.
34549         Reported by Simen Josefsson.
34550
34551 2009-04-26  Bruno Haible  <bruno@clisp.org>
34552
34553         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34554         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34555         "../" or "..".
34556
34557 2009-04-26  Bruno Haible  <bruno@clisp.org>
34558
34559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34560         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34561         AC_LIB_HAVE_LINKFLAGS.
34562
34563 2009-04-26  Bruno Haible  <bruno@clisp.org>
34564
34565         Simplify calling convention of u*_conv_from_encoding.
34566         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34567         u32_conv_from_encoding): Expect a resultbuf argument and return the
34568         result directly as a pointer.
34569         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34570         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34571         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34572         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34573         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34574         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34575         Update.
34576         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34577         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34578         * lib/vasnprintf.c (VASNPRINTF): Update.
34579         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34580         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34581         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34582         * NEWS: Mention the change.
34583
34584 2009-04-26  Bruno Haible  <bruno@clisp.org>
34585
34586         Simplify calling convention of u*_conv_to_encoding.
34587         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34588         u32_conv_to_encoding): Expect a resultbuf argument and return the
34589         result directly as a pointer.
34590         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34591         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34592         freeing scaled_offsets if mem_iconveha failed.
34593         * lib/unicase/u-casexfrm.h (FUNC): Update.
34594         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34595         * lib/vasnprintf.c (VASNPRINTF): Update.
34596         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34597         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34598         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34599         * NEWS: Mention the change.
34600
34601 2009-04-26  Bruno Haible  <bruno@clisp.org>
34602
34603         Avoid test failures on AIX and OSF/1.
34604         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34605         malloc(0).
34606         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34607         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34608         Likewise.
34609         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34610         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34611         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34612         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34613         * doc/posix-functions/malloc.texi: Document the portability problem
34614         related to malloc(0).
34615
34616 2009-04-26  Bruno Haible  <bruno@clisp.org>
34617
34618         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34619         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34620         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34621
34622 2009-04-25  Bruno Haible  <bruno@clisp.org>
34623
34624         Avoid link error when creating a namespace clean library.
34625         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34626         as macro with arguments if already defined as an alias.
34627         * lib/signbitf.c (gl_signbitf): Don't undefine.
34628         * lib/signbitd.c (gl_signbitd): Don't undefine.
34629         * lib/signbitl.c (gl_signbitl): Don't undefine.
34630
34631 2009-04-25  Jim Meyering  <meyering@redhat.com>
34632
34633         vc-list-files: fix another quoting bug
34634         * build-aux/vc-list-files: Avoid sed backslash expansion
34635         of pathological directory names.
34636
34637 2009-04-25  Eric Blake  <ebb9@byu.net>
34638
34639         vc-list-files: fix shell quoting error
34640         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34641         timestamp.
34642
34643 2009-04-25  Jim Meyering  <meyering@redhat.com>
34644
34645         vc-list-files: restore lost functionality with subdir argument
34646         * build-aux/vc-list-files: When given a non-"." sub-directory
34647         argument, substitute the $dir/ prefix back onto each resulting name.
34648         Otherwise, coreutils' root_tests check would fail.
34649
34650 2009-04-24  Eric Blake  <ebb9@byu.net>
34651
34652         vc-list-files: ignore git symlinks
34653         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34654         than ls-files, to ignore git symlinks.
34655
34656         maint.mk: import improvements from m4
34657         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34658         (move_if_change): Delete unused macro.
34659         (news-date-check, vc-diff-check): Support VPATH builds.
34660         (announcement): Likewise.  Split --bootstrap-tools list...
34661         (boostrap-tools): ...into separate list, which can be overridden
34662         in cfg.mk.
34663         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34664         requiring dependency on useless-if-before-free module.
34665         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34666         Support VPATH builds.
34667
34668 2009-04-24  Jim Meyering  <meyering@redhat.com>
34669
34670         maint.mk: remove coreutils-specific rules and variables
34671         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34672         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34673         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34674
34675         maint.mk: remove obsolete rule
34676         * top/maint.mk (rel-check): Remove rule.
34677         (WGET, WGETFLAGS): Remove now-unused variables.
34678
34679 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34680
34681         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34682         consistency.
34683
34684         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34685         '$(PATH_SEPARATOR)' instead of ':'.
34686
34687 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34688
34689         * lib/getopt1.c (main): Use 'const' for static array.
34690
34691 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34692
34693         * top/maint.mk: Sync with coreutils.
34694         * NEWS: Explain incompatibilities.
34695
34696 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34697             Bruno Haible  <bruno@clisp.org>
34698
34699         Fix cross-compilation results.
34700         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34701         statement, as third argument of AC_TRY_RUN.
34702         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34704         Likewise.
34705         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34706         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34707         Likewise.
34708         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34709         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34710         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34711
34712 2009-04-20  Bruno Haible  <bruno@clisp.org>
34713
34714         Avoid test failure on mingw.
34715         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34716
34717 2009-04-20  Bruno Haible  <bruno@clisp.org>
34718
34719         Avoid compilation error on mingw.
34720         * modules/localename-tests (Depends-on): Add locale.
34721
34722 2009-04-19  Bruno Haible  <bruno@clisp.org>
34723
34724         Support for building a shared library on Windows platforms.
34725         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34726         (main): Test the presence of UNINORM_NFC here.
34727         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34728         (main): Test the presence of UNINORM_NFD here.
34729         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34730         (main): Test the presence of UNINORM_NFKC here.
34731         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34732         (main): Test the presence of UNINORM_NFKD here.
34733
34734 2009-04-19  Bruno Haible  <bruno@clisp.org>
34735
34736         Avoid a compiler warning.
34737         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34738         Change type of variable 'sequence'.
34739
34740 2009-04-19  Bruno Haible  <bruno@clisp.org>
34741
34742         * modules/configmake (Makefile.am): When the contents of configmake.h
34743         does not change, arrange to preserve its modification time.
34744
34745 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34746
34747         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34748         gettext domain.
34749
34750 2009-04-16  Jim Meyering  <meyering@redhat.com>
34751
34752         useless-if-before-free: improve conversion code
34753         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34754         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34755
34756 2009-04-14  Bruno Haible  <bruno@clisp.org>
34757
34758         * modules/fcntl (Depends-on): Add extensions.
34759         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34760
34761 2009-04-12  Ben Pfaff  <blp@gnu.org>
34762
34763         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34764         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34765
34766 2009-03-20  Ben Pfaff  <blp@gnu.org>
34767
34768         Make rename replace existing destinations on Windows.
34769         * m4/rename.m4: Add test for Mingw.
34770         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34771         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34772         * doc/posix-functions/rename.texi: Document.
34773
34774 2009-04-10  Bruno Haible  <bruno@clisp.org>
34775
34776         New include file "iconveh.h".
34777         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34778         * lib/striconveh.h: Include it.
34779         (enum iconv_ilseq_handler): Remove definition.
34780         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34781         striconveh.h.
34782         * lib/striconveha.c: Include striconveh.h.
34783         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34784         * modules/striconveh (Files): Add lib/iconveh.h.
34785         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34786         lib/striconveh.h.
34787
34788 2009-04-10  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/uniconv.h: Update comment.
34791
34792 2009-04-10  Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34795         always.
34796         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34797         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34798         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34799         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34800         "unistring-notinline.h", so that the function gets defined always.
34801         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34802         * lib/unistr/u8-uctomb.c: Likewise.
34803         * lib/unistr/u16-mbtouc.c: Likewise.
34804         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34805         * lib/unistr/u16-uctomb.c: Likewise.
34806         * lib/unistr/u32-mbtouc.c: Likewise.
34807         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34808         * lib/unistr/u32-uctomb.c: Likewise.
34809
34810 2009-04-10  Bruno Haible  <bruno@clisp.org>
34811
34812         Mark 'utime' obsolete.
34813         * modules/utime (Status, Notice): New sections.
34814         Suggested by Jim Meyering.
34815
34816         Fix cross-compile guess for utime test.
34817         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34818         autoconf.
34819         * doc/posix-functions/utime.texi: Give more precisions.
34820         Reported by Jan <ipif@ymail.com>.
34821
34822 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34823
34824         filevercmp: correct today's change
34825         * lib/filevercmp.c: Also handle coreutils' test inputs.
34826         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34827
34828         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34829         for reporting it.
34830         * lib/filevercmp.c: Special handle for "", "." and "..".
34831         * tests/test-filevercmp.c: Enlarge the set suite.
34832
34833 2009-04-07  Jim Meyering  <meyering@redhat.com>
34834
34835         useless-if-before-free: show how to remove braced useless free, too
34836         * build-aux/useless-if-before-free: still only in a comment, though.
34837
34838 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34839
34840         maint.mk: import changes to syntax-check macros from coreutils
34841         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34842         Use them in the relevant macros.
34843
34844 2009-04-06  Bruno Haible  <bruno@clisp.org>
34845
34846         Fix unportable use of bit-fields.
34847         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34848         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34849         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34850
34851 2009-04-06  Bruno Haible  <bruno@clisp.org>
34852
34853         Avoid test failures on AIX and OSF/1.
34854         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34855         that malloc(0) = NULL.
34856         * tests/unicase/test-u8-tolower.c (check): Likewise.
34857         * tests/unicase/test-u8-totitle.c (check): Likewise.
34858         * tests/unicase/test-u8-toupper.c (check): Likewise.
34859         * tests/unicase/test-u16-casefold.c (check): Likewise.
34860         * tests/unicase/test-u16-tolower.c (check): Likewise.
34861         * tests/unicase/test-u16-totitle.c (check): Likewise.
34862         * tests/unicase/test-u16-toupper.c (check): Likewise.
34863         * tests/unicase/test-u32-casefold.c (check): Likewise.
34864         * tests/unicase/test-u32-tolower.c (check): Likewise.
34865         * tests/unicase/test-u32-totitle.c (check): Likewise.
34866         * tests/unicase/test-u32-toupper.c (check): Likewise.
34867         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34868         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34869         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34870         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34871         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34872         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34873         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34874         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34875         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34876         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34877         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34878         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34879
34880 2009-04-05  Bruno Haible  <bruno@clisp.org>
34881
34882         Work around an autoconf limitation.
34883         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34884         comment line if it would be longer than 3 KB.
34885
34886 2009-04-05  Bruno Haible  <bruno@clisp.org>
34887
34888         Avoid test failure with libiconv-1.13.
34889         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34890         of the expected test results.
34891
34892 2009-04-05  Bruno Haible  <bruno@clisp.org>
34893
34894         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34895         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34896         that it should be installed.
34897
34898 2009-04-05  Bruno Haible  <bruno@clisp.org>
34899
34900         * gnulib-tool: New option --copy-file.
34901         (func_usage): Document it.
34902         (func_dest_tmpfilename): Moved out of func_import.
34903         (func_add_file, func_update_file): New functions, extracted from
34904         func_import.
34905         (func_import): Update.
34906
34907 2009-04-05  Karl Berry  <karl@gnu.org>
34908
34909         * README: prominently mention gnulib-tool.
34910         Rearrange sections so getting the code is near the top.
34911
34912 2009-04-05  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/unicase.h: Mention u*_cmp2.
34915         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34916         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34917         * lib/unicase/ulc-casecmp.c: Likewise.
34918         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34919         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34920         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34921         unistr/u8-cmp.
34922         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34923         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34924         unistr/u16-cmp.
34925         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34926         unistr/u32-cmp.
34927
34928         * lib/uninorm.h: Mention u*_cmp2.
34929         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34930         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34931         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34932         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34933         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34934         unistr/u8-cmp.
34935         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34936         unistr/u16-cmp.
34937         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34938         unistr/u32-cmp.
34939
34940         New module 'unistr/u32-cmp2'.
34941         * lib/unistr/u32-cmp2.c: New file.
34942         * modules/unistr/u32-cmp2: New file.
34943
34944         New module 'unistr/u16-cmp2'.
34945         * lib/unistr/u16-cmp2.c: New file.
34946         * modules/unistr/u16-cmp2: New file.
34947
34948         New module 'unistr/u8-cmp2'.
34949         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34950         * lib/unistr/u8-cmp2.c: New file.
34951         * lib/unistr/u-cmp2.h: New file.
34952         * modules/unistr/u8-cmp2: New file.
34953
34954 2009-04-05  Bruno Haible  <bruno@clisp.org>
34955
34956         * lib/unictype.h (uc_property_is_valid): New macro.
34957         * tests/unictype/test-pr_byname.c (main): Use it.
34958
34959         * lib/unistr.h: Doc fixes.
34960         * lib/uniconv.h: Doc fixes.
34961         * lib/unictype.h: Doc fixes.
34962
34963 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34964
34965         Port coreutils 7.2 to Solaris 8.
34966
34967         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34968         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34969         for Solaris 8.  This is a bit of a hack, as it means it's the
34970         caller's responsibility to add -lnsl if needed, but most likely it
34971         won't be needed since only getaddrinfo uses this and getaddrinfo
34972         isn't needed on Solaris 8.
34973
34974         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34975         problem to Solaris 8 encountered with coreutils 7.2, which
34976         resulted in a message "fnmatch.c:292: warning: passing argument 4
34977         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34978         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34979
34980 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34981
34982         * m4/ld-version-script.m4: Add FIXME comment.
34983
34984 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34985
34986         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34987         SOVERSION variable.
34988
34989 2009-04-02  Bruno Haible  <bruno@clisp.org>
34990
34991         * Makefile (info, html, dvi, pdf): Combine the rules.
34992         Suggested by Jim Meyering.
34993
34994 2009-04-01  Bruno Haible  <bruno@clisp.org>
34995
34996         * Makefile (info, html, dvi, pdf): New targets.
34997         Reported by Reuben Thomas <rrt@sc3d.org>.
34998
34999 2009-04-01  Bruno Haible  <bruno@clisp.org>
35000
35001         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35002         can be put into PATH.
35003         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35004
35005 2009-04-01  Bruno Haible  <bruno@clisp.org>
35006
35007         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35008
35009 2009-04-01  Bruno Haible  <bruno@clisp.org>
35010
35011         Rename module 'visibility'.
35012         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35013         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35014         * doc/gnulib.texi: Update.
35015         * MODULES.html.sh (Misc): Update.
35016         * NEWS: Mention the change.
35017
35018 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35019
35020         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35021         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35022         Eric Blake <ebb9@byu.net> for review.
35023         * MODULES.html.sh: Add lib-msvc-compat.
35024         * doc/gnulib.texi: Link to new section.
35025         * m4/ld-output-def.m4: New file.
35026         * doc/ld-output-def.texi: New file.
35027
35028 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35029
35030         Rename ld-version-script to lib-symbol-versions.  Suggested by
35031         Bruno Haible <bruno@clisp.org>.
35032         * modules/ld-version-script: Renamed to lib-symbol-versions.
35033         * doc/ld-version-script.texi: Fix module name.
35034         * MODULES.html.sh: Add lib-symbol-versions.
35035
35036 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35037
35038         * modules/u64-tests: New file.
35039         * tests/test-u64.c: New file.
35040
35041 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35042
35043         * MODULES.html.sh: Mention u64.
35044         * modules/u64: New module.
35045         * modules/crypto/sha512: Depend on u64 module instead of providing
35046         u64.h.
35047
35048 2009-03-27  Eric Blake  <ebb9@byu.net>
35049
35050         test-strerror: make debugging EAI_SYSTEM easier
35051         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35052         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35053         failure was EAI_SYSTEM.
35054
35055 2009-03-25  Bruno Haible  <bruno@clisp.org>
35056
35057         Fix a problem with --enable-relocatable on Solaris 7.
35058         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35059         since 2008-02-24.
35060
35061 2009-03-25  Eric Blake  <ebb9@byu.net>
35062
35063         test-sockets: avoid gcc warning
35064         * tests/test-sockets.c (main): Silence compiler warning.
35065
35066 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35067
35068         New modules nproc, pthread, contributed by Glen Lenker.
35069
35070         * MODULES.html.sh: Add pthread, nproc.
35071         * lib/nproc.c: New file.
35072         * lib/nproc.h: New file.
35073         * lib/pthread.in.h: New file.
35074         * m4/pthread.m4: New file.
35075         * modules/nproc: New file.
35076         * modules/pthread: New file.
35077
35078 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35079
35080         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35081         New variable.
35082
35083 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35084
35085         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35086         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35087         * tests/test-filevercmp.c: Add tests for backup suffixes.
35088
35089 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35090
35091         * modules/stdlib (Depends-on): Add stdint, needed when defining
35092         struct random_data on, for example, HP-UX 10.20.  Reported by
35093         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35094
35095 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35096
35097         * lib/readline.c (readline): Call fflush on stdout after printing
35098         prompt.
35099
35100 2009-03-20  Bruno Haible  <bruno@clisp.org>
35101
35102         Remove dependency from 'close' module to -lws2_32 on native Windows.
35103         * lib/close-hook.h: New file.
35104         * lib/close-hook.c: New file.
35105         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35106         w32sock.h.
35107         (_gl_close_fd_maybe_socket): Remove function.
35108         (rpl_close): Invoke execute_all_close_hooks instead of
35109         _gl_close_fd_maybe_socket.
35110         * lib/sockets.c: Include close-hook.h, w32sock.h.
35111         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35112         (close_sockets_hook): New variable.
35113         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35114         (gl_sockets_cleanup): Unregister it.
35115         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35116         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35117         * modules/close-hook: New file.
35118         * modules/close (Files): Remove lib/w32sock.h.
35119         (Depends-on): Add close-hook.
35120         (Link): Remove section.
35121         * modules/sockets (Files): Add lib/w32sock.h.
35122         (Depends-on): Add close-hook.
35123         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35124         invocation.
35125         * NEWS: Mention that LIB_CLOSE is gone.
35126
35127 2009-03-23  Eric Blake  <ebb9@byu.net>
35128
35129         signal-tests: test previous patch
35130         * tests/test-signal.c: New file.
35131         * modules/signal-tests: Likewise.
35132
35133         signal.h: always support 'volatile sig_atomic_t'
35134         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35135         (gl_SIGNAL_H_DEFAULTS): Add a default.
35136         * modules/signal (Makefile.am): Substitute if needed.
35137         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35138         users can blindly add volatile.
35139         * doc/posix-headers/signal.texi (signal.h): Document it.
35140         Reported by Matthew Woehlke.
35141
35142 2009-03-23  Jim Meyering  <meyering@redhat.com>
35143
35144         pathmax: PATH_MAX: use pathconf only when available
35145         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35146         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35147         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35148         This avoids a link failure in a PSP cross-compilation environment
35149         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35150
35151         * lib/vasnprintf.c (divide): Fix typo in comment.
35152
35153 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35154
35155         * gnulib-tool (func_filter_filelist): Fix comment.
35156
35157 2009-03-20  Bruno Haible  <bruno@clisp.org>
35158
35159         Make sockets.h self-contained.
35160         * lib/sockets.c: Include sockets.h first.
35161         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35162
35163 2009-03-19  Eric Blake  <ebb9@byu.net>
35164
35165         doc: mention more functions added in cygwin 1.7.0
35166         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35167         addition.
35168         * doc/posix-functions/log2f.texi: Likewise.
35169
35170 2009-03-19  Jim Meyering  <meyering@redhat.com>
35171
35172         fsusage: avoid syntax error due to statement-before-declaration
35173         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35174         after all declarations.  Reported by Matthew Woehlke in
35175         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35176
35177 2009-03-18  Eric Blake  <ebb9@byu.net>
35178
35179         build-aux/compile: sync from automake
35180         * build-aux/compile: New file, from automake.
35181         * config/srclist.txt: Mention build-aux/compile.
35182
35183 2009-03-17  Bruno Haible  <bruno@clisp.org>
35184
35185         * lib/git-merge-changelog.c: Fix typo in comment.
35186         Reported by Reuben Thomas <rrt@sc3d.org>.
35187
35188 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35189
35190         * m4/regex.m4: update and improve help for
35191         --without-included-regex.
35192
35193 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35194
35195         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35196         failure on missing include files.
35197
35198 2009-03-17  Eric Blake  <ebb9@byu.net>
35199
35200         doc: mention more functions added in cygwin 1.7.0
35201         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35202         addition.
35203         * doc/posix-functions/fwscanf.texi: Likewise.
35204         * doc/posix-functions/swprintf.texi: Likewise.
35205         * doc/posix-functions/swscanf.texi: Likewise.
35206         * doc/posix-functions/vfwprintf.texi: Likewise.
35207         * doc/posix-functions/vfwscanf.texi: Likewise.
35208         * doc/posix-functions/vswprintf.texi: Likewise.
35209         * doc/posix-functions/vswscanf.texi: Likewise.
35210         * doc/posix-functions/vwprintf.texi: Likewise.
35211         * doc/posix-functions/vwscanf.texi: Likewise.
35212         * doc/posix-functions/wcscasecmp.texi: Likewise.
35213         * doc/posix-functions/wcsdup.texi: Likewise.
35214         * doc/posix-functions/wcsftime.texi: Likewise.
35215         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35216         * doc/posix-functions/wprintf.texi: Likewise.
35217         * doc/posix-functions/wscanf.texi: Likewise.
35218         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35219
35220 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35221
35222         maint.mk: really add $(AM_MAKEFLAGS)
35223         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35224         was inadvertently omitted in the last commit.
35225         Spotted by Bruno Haible.
35226
35227         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35228         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35229         $(AM_MAKEFLAGS)' rather than plain `make'.
35230
35231         gnulib-tool: execute $MAKE not make
35232         * gnulib-tool: Default $MAKE to 'make'.
35233         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35234         than make.  Initialize $MAKE in the do-autobuild script.
35235
35236         gnulib-tool: use $MAKE not make in generated files
35237         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35238         make, in generated files.  Initialize $MAKE in the do-autobuild
35239         script.
35240
35241         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35242
35243         GNUmakefile: disable parallelism only for multiple, recursive targets
35244         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35245         additions in the Makefile.
35246         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35247         by Automake.
35248         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35249         are listed on the command line and at least one of them is
35250         listed in $(ALL_RECURSIVE_TARGETS).
35251
35252 2009-03-14  Bruno Haible  <bruno@clisp.org>
35253
35254         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35255         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35256         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35257         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35258         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35259         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35260         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35261         unistr/u8-uctomb.
35262         * modules/unistr/u8-strchr (Depends-on): Likewise.
35263         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35264         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35265         unistr/u16-uctomb.
35266         * modules/unistr/u16-strchr (Depends-on): Likewise.
35267         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35268
35269 2009-03-12  Bruno Haible  <bruno@clisp.org>
35270
35271         Work around select() bug on Interix 3.5.
35272         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35273         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35274         * m4/select.m4: New file.
35275         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35276         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35277         * modules/select (Files): Add m4/select.m4.
35278         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35279         * modules/nanosleep (Depends-on): Add select.
35280         * modules/poll (Depends-on): Likewise.
35281         * doc/posix-functions/select.texi: Mention the Interix bug.
35282         Reported by Markus Duft <mduft@gentoo.org>.
35283
35284         * lib/select.c: Renamed from lib/winsock-select.c.
35285         * modules/select (Files): Add lib/select.c, remove
35286         lib/winsock-select.c.
35287         (configure.ac): Update.
35288
35289 2009-03-12  Jim Meyering  <meyering@redhat.com>
35290
35291         avoid gcc warnings about unused macro definitions
35292         * lib/readtokens.c (STREQ): Remove unused definition.
35293         * lib/xmalloc.c (SIZE_MAX): Likewise.
35294         * lib/openat-die.c (N_): Likewise.
35295         * lib/mountlist.c (SIZE_MAX): Remove definition.
35296         Instead, include <stdint.h>.
35297         * lib/readutmp.c: Likewise.
35298         * modules/readutmp (Depends-on): Add stdint.
35299         * modules/mountlist (Depends-on): Add stdint.
35300         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35301
35302 2009-03-10  Bruno Haible  <bruno@clisp.org>
35303
35304         Tests for module 'mbmemcasecoll'.
35305         * modules/mbmemcasecoll-tests: New file.
35306         * tests/test-mbmemcasecoll1.sh: New file.
35307         * tests/test-mbmemcasecoll2.sh: New file.
35308         * tests/test-mbmemcasecoll3.sh: New file.
35309         * tests/test-mbmemcasecoll.c: New file.
35310
35311         New module 'mbmemcasecoll'.
35312         * lib/mbmemcasecoll.h: New file.
35313         * lib/mbmemcasecoll.c: New file.
35314         * modules/mbmemcasecoll: New file.
35315
35316         * tests/test-mbmemcasecmp.h: New file, extracted from
35317         tests/test-mbmemcasecmp.c.
35318         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35319         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35320         (main): Update.
35321         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35322
35323 2009-03-09  Bruno Haible  <bruno@clisp.org>
35324
35325         Tests for module 'mbmemcasecmp'.
35326         * modules/mbmemcasecmp-tests: New file.
35327         * tests/test-mbmemcasecmp1.sh: New file.
35328         * tests/test-mbmemcasecmp2.sh: New file.
35329         * tests/test-mbmemcasecmp3.sh: New file.
35330         * tests/test-mbmemcasecmp.c: New file.
35331
35332         New module 'mbmemcasecmp'.
35333         * lib/mbmemcasecmp.h: New file.
35334         * lib/mbmemcasecmp.c: New file.
35335         * modules/mbmemcasecmp: New file.
35336
35337 2009-03-09  Bruno Haible  <bruno@clisp.org>
35338
35339         Tests for module 'unicase/ulc-casecoll'.
35340         * modules/unicase/ulc-casecoll-tests: New file.
35341         * tests/unicase/test-ulc-casecoll1.sh: New file.
35342         * tests/unicase/test-ulc-casecoll2.sh: New file.
35343         * tests/unicase/test-ulc-casecoll.c: New file.
35344
35345         New module 'unicase/ulc-casecoll'.
35346         * lib/unicase.h (ulc_casecoll): New declaration.
35347         * lib/unicase/ulc-casecoll.c: New file.
35348         * modules/unicase/ulc-casecoll: New file.
35349
35350         New module 'unicase/ulc-casexfrm'.
35351         * lib/unicase.h (ulc_casexfrm): New declaration.
35352         * lib/unicase/ulc-casexfrm.c: New file.
35353         * modules/unicase/ulc-casexfrm: New file.
35354
35355 2009-03-09  Bruno Haible  <bruno@clisp.org>
35356
35357         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35358         invocations.
35359
35360         * m4/mbscasecmp.m4: Remove file.
35361         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35362         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35363
35364         * m4/mbscasestr.m4: Remove file.
35365         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35366         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35367
35368         * m4/mbschr.m4: Remove file.
35369         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35370         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35371
35372         * m4/mbscspn.m4: Remove file.
35373         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35374         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35375
35376         * m4/mbslen.m4: Remove file.
35377         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35378         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35379
35380         * m4/mbsncasecmp.m4: Remove file.
35381         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35382         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35383
35384         * m4/mbsnlen.m4: Remove file.
35385         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35386         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35387
35388         * m4/mbspbrk.m4: Remove file.
35389         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35390         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35391
35392         * m4/mbspcasecmp.m4: Remove file.
35393         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35394         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35395
35396         * m4/mbsrchr.m4: Remove file.
35397         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35398         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35399
35400         * m4/mbssep.m4: Remove file.
35401         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35402         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35403
35404         * m4/mbsspn.m4: Remove file.
35405         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35406         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35407
35408         * m4/mbsstr.m4: Remove file.
35409         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35410         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35411
35412         * m4/mbstok_r.m4: Remove file.
35413         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35414         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35415
35416         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35417
35418         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35419         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35420
35421         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35422
35423 2009-03-08  Bruno Haible  <bruno@clisp.org>
35424
35425         Tests for module 'unicase/ulc-casecmp'.
35426         * modules/unicase/ulc-casecmp-tests: New file.
35427         * tests/unicase/test-ulc-casecmp1.sh: New file.
35428         * tests/unicase/test-ulc-casecmp2.sh: New file.
35429         * tests/unicase/test-ulc-casecmp.c: New file.
35430
35431         New module 'unicase/ulc-casecmp'.
35432         * lib/unicase.h (ulc_casecmp): New declaration.
35433         * lib/unicase/ulc-casecmp.c: New file.
35434         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35435         'const SRC_UNIT *'.
35436         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35437         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35438         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35439         * modules/unicase/ulc-casecmp: New file.
35440
35441         Tests for module 'unicase/u32-is-cased'.
35442         * modules/unicase/u32-is-cased-tests: New file.
35443         * tests/unicase/test-u32-is-cased.c: New file.
35444
35445         Tests for module 'unicase/u16-is-cased'.
35446         * modules/unicase/u16-is-cased-tests: New file.
35447         * tests/unicase/test-u16-is-cased.c: New file.
35448
35449         Tests for module 'unicase/u8-is-cased'.
35450         * modules/unicase/u8-is-cased-tests: New file.
35451         * tests/unicase/test-u8-is-cased.c: New file.
35452         * tests/unicase/test-is-cased.h: New file.
35453
35454         New module 'unicase/u32-is-cased'.
35455         * lib/unicase/u32-is-cased.c: New file.
35456         * modules/unicase/u32-is-cased: New file.
35457
35458         New module 'unicase/u16-is-cased'.
35459         * lib/unicase/u16-is-cased.c: New file.
35460         * modules/unicase/u16-is-cased: New file.
35461
35462         New module 'unicase/u8-is-cased'.
35463         * lib/unicase/u8-is-cased.c: New file.
35464         * lib/unicase/u-is-cased.h: New file.
35465         * modules/unicase/u8-is-cased: New file.
35466
35467         Tests for module 'unicase/u32-is-casefolded'.
35468         * modules/unicase/u32-is-casefolded-tests: New file.
35469         * tests/unicase/test-u32-is-casefolded.c: New file.
35470
35471         Tests for module 'unicase/u16-is-casefolded'.
35472         * modules/unicase/u16-is-casefolded-tests: New file.
35473         * tests/unicase/test-u16-is-casefolded.c: New file.
35474
35475         Tests for module 'unicase/u8-is-casefolded'.
35476         * modules/unicase/u8-is-casefolded-tests: New file.
35477         * tests/unicase/test-u8-is-casefolded.c: New file.
35478         * tests/unicase/test-is-casefolded.h: New file.
35479
35480         New module 'unicase/u32-is-casefolded'.
35481         * lib/unicase/u32-is-casefolded.c: New file.
35482         * modules/unicase/u32-is-casefolded: New file.
35483
35484         New module 'unicase/u16-is-casefolded'.
35485         * lib/unicase/u16-is-casefolded.c: New file.
35486         * modules/unicase/u16-is-casefolded: New file.
35487
35488         New module 'unicase/u8-is-casefolded'.
35489         * lib/unicase/u8-is-casefolded.c: New file.
35490         * modules/unicase/u8-is-casefolded: New file.
35491
35492         Tests for module 'unicase/u32-is-titlecase'.
35493         * modules/unicase/u32-is-titlecase-tests: New file.
35494         * tests/unicase/test-u32-is-titlecase.c: New file.
35495
35496         Tests for module 'unicase/u16-is-titlecase'.
35497         * modules/unicase/u16-is-titlecase-tests: New file.
35498         * tests/unicase/test-u16-is-titlecase.c: New file.
35499
35500         Tests for module 'unicase/u8-is-titlecase'.
35501         * modules/unicase/u8-is-titlecase-tests: New file.
35502         * tests/unicase/test-u8-is-titlecase.c: New file.
35503         * tests/unicase/test-is-titlecase.h: New file.
35504
35505         New module 'unicase/u32-is-titlecase'.
35506         * lib/unicase/u32-is-titlecase.c: New file.
35507         * modules/unicase/u32-is-titlecase: New file.
35508
35509         New module 'unicase/u16-is-titlecase'.
35510         * lib/unicase/u16-is-titlecase.c: New file.
35511         * modules/unicase/u16-is-titlecase: New file.
35512
35513         New module 'unicase/u8-is-titlecase'.
35514         * lib/unicase/u8-is-titlecase.c: New file.
35515         * modules/unicase/u8-is-titlecase: New file.
35516
35517         Tests for module 'unicase/u32-is-lowercase'.
35518         * modules/unicase/u32-is-lowercase-tests: New file.
35519         * tests/unicase/test-u32-is-lowercase.c: New file.
35520
35521         Tests for module 'unicase/u16-is-lowercase'.
35522         * modules/unicase/u16-is-lowercase-tests: New file.
35523         * tests/unicase/test-u16-is-lowercase.c: New file.
35524
35525         Tests for module 'unicase/u8-is-lowercase'.
35526         * modules/unicase/u8-is-lowercase-tests: New file.
35527         * tests/unicase/test-u8-is-lowercase.c: New file.
35528         * tests/unicase/test-is-lowercase.h: New file.
35529
35530         New module 'unicase/u32-is-lowercase'.
35531         * lib/unicase/u32-is-lowercase.c: New file.
35532         * modules/unicase/u32-is-lowercase: New file.
35533
35534         New module 'unicase/u16-is-lowercase'.
35535         * lib/unicase/u16-is-lowercase.c: New file.
35536         * modules/unicase/u16-is-lowercase: New file.
35537
35538         New module 'unicase/u8-is-lowercase'.
35539         * lib/unicase/u8-is-lowercase.c: New file.
35540         * modules/unicase/u8-is-lowercase: New file.
35541
35542         Tests for module 'unicase/u32-is-uppercase'.
35543         * modules/unicase/u32-is-uppercase-tests: New file.
35544         * tests/unicase/test-u32-is-uppercase.c: New file.
35545
35546         Tests for module 'unicase/u16-is-uppercase'.
35547         * modules/unicase/u16-is-uppercase-tests: New file.
35548         * tests/unicase/test-u16-is-uppercase.c: New file.
35549
35550         Tests for module 'unicase/u8-is-uppercase'.
35551         * modules/unicase/u8-is-uppercase-tests: New file.
35552         * tests/unicase/test-u8-is-uppercase.c: New file.
35553         * tests/unicase/test-is-uppercase.h: New file.
35554
35555         New module 'unicase/u32-is-uppercase'.
35556         * lib/unicase/u32-is-uppercase.c: New file.
35557         * modules/unicase/u32-is-uppercase: New file.
35558
35559         New module 'unicase/u16-is-uppercase'.
35560         * lib/unicase/u16-is-uppercase.c: New file.
35561         * modules/unicase/u16-is-uppercase: New file.
35562
35563         New module 'unicase/u8-is-uppercase'.
35564         * lib/unicase/u8-is-uppercase.c: New file.
35565         * modules/unicase/u8-is-uppercase: New file.
35566
35567         New module 'unicase/u32-is-invariant'.
35568         * lib/unicase/u32-is-invariant.c: New file.
35569         * modules/unicase/u32-is-invariant: New file.
35570
35571         New module 'unicase/u16-is-invariant'.
35572         * lib/unicase/u16-is-invariant.c: New file.
35573         * modules/unicase/u16-is-invariant: New file.
35574
35575         New module 'unicase/u8-is-invariant'.
35576         * lib/unicase/u8-is-invariant.c: New file.
35577         * lib/unicase/invariant.h: New file.
35578         * lib/unicase/u-is-invariant.h: New file.
35579         * modules/unicase/u8-is-invariant: New file.
35580
35581         Tests for module 'unicase/u32-casecoll'.
35582         * modules/unicase/u32-casecoll-tests: New file.
35583         * tests/unicase/test-u32-casecoll.c: New file.
35584
35585         Tests for module 'unicase/u16-casecoll'.
35586         * modules/unicase/u16-casecoll-tests: New file.
35587         * tests/unicase/test-u16-casecoll.c: New file.
35588
35589         Tests for module 'unicase/u8-casecoll'.
35590         * modules/unicase/u8-casecoll-tests: New file.
35591         * tests/unicase/test-u8-casecoll.c: New file.
35592
35593         New module 'unicase/u32-casecoll'.
35594         * lib/unicase/u32-casecoll.c: New file.
35595         * modules/unicase/u32-casecoll: New file.
35596
35597         New module 'unicase/u16-casecoll'.
35598         * lib/unicase/u16-casecoll.c: New file.
35599         * modules/unicase/u16-casecoll: New file.
35600
35601         New module 'unicase/u8-casecoll'.
35602         * lib/unicase/u8-casecoll.c: New file.
35603         * lib/unicase/u-casecoll.h: New file.
35604         * modules/unicase/u8-casecoll: New file.
35605
35606         New module 'unicase/u32-casexfrm'.
35607         * lib/unicase/u32-casexfrm.c: New file.
35608         * modules/unicase/u32-casexfrm: New file.
35609
35610         New module 'unicase/u16-casexfrm'.
35611         * lib/unicase/u16-casexfrm.c: New file.
35612         * modules/unicase/u16-casexfrm: New file.
35613
35614         New module 'unicase/u8-casexfrm'.
35615         * lib/unicase/u8-casexfrm.c: New file.
35616         * lib/unicase/u-casexfrm.h: New file.
35617         * modules/unicase/u8-casexfrm: New file.
35618
35619         Tests for module 'unicase/u32-casecmp'.
35620         * modules/unicase/u32-casecmp-tests: New file.
35621         * tests/unicase/test-u32-casecmp.c: New file.
35622
35623         Tests for module 'unicase/u16-casecmp'.
35624         * modules/unicase/u16-casecmp-tests: New file.
35625         * tests/unicase/test-u16-casecmp.c: New file.
35626
35627         Tests for module 'unicase/u8-casecmp'.
35628         * modules/unicase/u8-casecmp-tests: New file.
35629         * tests/unicase/test-u8-casecmp.c: New file.
35630         * tests/unicase/test-casecmp.h: New file.
35631
35632         New module 'unicase/u32-casecmp'.
35633         * lib/unicase/u32-casecmp.c: New file.
35634         * modules/unicase/u32-casecmp: New file.
35635
35636         New module 'unicase/u16-casecmp'.
35637         * lib/unicase/u16-casecmp.c: New file.
35638         * modules/unicase/u16-casecmp: New file.
35639
35640         New module 'unicase/u8-casecmp'.
35641         * lib/unicase/u8-casecmp.c: New file.
35642         * lib/unicase/u-casecmp.h: New file.
35643         * modules/unicase/u8-casecmp: New file.
35644
35645         Tests for module 'unicase/u32-casefold'.
35646         * modules/unicase/u32-casefold-tests: New file.
35647         * tests/unicase/test-u32-casefold.c: New file.
35648
35649         Tests for module 'unicase/u16-casefold'.
35650         * modules/unicase/u16-casefold-tests: New file.
35651         * tests/unicase/test-u16-casefold.c: New file.
35652
35653         Tests for module 'unicase/u8-casefold'.
35654         * modules/unicase/u8-casefold-tests: New file.
35655         * tests/unicase/test-u8-casefold.c: New file.
35656
35657         New module 'unicase/u32-casefold'.
35658         * lib/unicase/u32-casefold.c: New file.
35659         * modules/unicase/u32-casefold: New file.
35660
35661         New module 'unicase/u16-casefold'.
35662         * lib/unicase/u16-casefold.c: New file.
35663         * modules/unicase/u16-casefold: New file.
35664
35665         New module 'unicase/u8-casefold'.
35666         * lib/unicase/u8-casefold.c: New file.
35667         * lib/unicase/u-casefold.h: New file.
35668         * modules/unicase/u8-casefold: New file.
35669
35670         New module 'unicase/tocasefold'.
35671         * lib/unicase/casefold.h: New file.
35672         * lib/unicase/tocasefold.c: New file.
35673         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35674         * modules/unicase/tocasefold: New file.
35675
35676         Tests for module 'unicase/u32-totitle'.
35677         * modules/unicase/u32-totitle-tests: New file.
35678         * tests/unicase/test-u32-totitle.c: New file.
35679
35680         Tests for module 'unicase/u16-totitle'.
35681         * modules/unicase/u16-totitle-tests: New file.
35682         * tests/unicase/test-u16-totitle.c: New file.
35683
35684         Tests for module 'unicase/u8-totitle'.
35685         * modules/unicase/u8-totitle-tests: New file.
35686         * tests/unicase/test-u8-totitle.c: New file.
35687
35688         New module 'unicase/u32-totitle'.
35689         * lib/unicase/u32-totitle.c: New file.
35690         * modules/unicase/u32-totitle: New file.
35691
35692         New module 'unicase/u16-totitle'.
35693         * lib/unicase/u16-totitle.c: New file.
35694         * modules/unicase/u16-totitle: New file.
35695
35696         New module 'unicase/u8-totitle'.
35697         * lib/unicase/u8-totitle.c: New file.
35698         * lib/unicase/u-totitle.h: New file.
35699         * modules/unicase/u8-totitle: New file.
35700
35701         Tests for module 'unicase/u32-tolower'.
35702         * modules/unicase/u32-tolower-tests: New file.
35703         * tests/unicase/test-u32-tolower.c: New file.
35704
35705         Tests for module 'unicase/u16-tolower'.
35706         * modules/unicase/u16-tolower-tests: New file.
35707         * tests/unicase/test-u16-tolower.c: New file.
35708
35709         Tests for module 'unicase/u8-tolower'.
35710         * modules/unicase/u8-tolower-tests: New file.
35711         * tests/unicase/test-u8-tolower.c: New file.
35712
35713         New module 'unicase/u32-tolower'.
35714         * lib/unicase/u32-tolower.c: New file.
35715         * modules/unicase/u32-tolower: New file.
35716
35717         New module 'unicase/u16-tolower'.
35718         * lib/unicase/u16-tolower.c: New file.
35719         * modules/unicase/u16-tolower: New file.
35720
35721         New module 'unicase/u8-tolower'.
35722         * lib/unicase/u8-tolower.c: New file.
35723         * modules/unicase/u8-tolower: New file.
35724
35725         Tests for module 'unicase/u32-toupper'.
35726         * modules/unicase/u32-toupper-tests: New file.
35727         * tests/unicase/test-u32-toupper.c: New file.
35728
35729         Tests for module 'unicase/u16-toupper'.
35730         * modules/unicase/u16-toupper-tests: New file.
35731         * tests/unicase/test-u16-toupper.c: New file.
35732
35733         Tests for module 'unicase/u8-toupper'.
35734         * modules/unicase/u8-toupper-tests: New file.
35735         * tests/unicase/test-u8-toupper.c: New file.
35736
35737         New module 'unicase/u32-toupper'.
35738         * lib/unicase/u32-toupper.c: New file.
35739         * modules/unicase/u32-toupper: New file.
35740
35741         New module 'unicase/u16-toupper'.
35742         * lib/unicase/u16-toupper.c: New file.
35743         * modules/unicase/u16-toupper: New file.
35744
35745         New module 'unicase/u8-toupper'.
35746         * lib/unicase/u8-toupper.c: New file.
35747         * modules/unicase/u8-toupper: New file.
35748
35749         New module 'unicase/u32-casemap'.
35750         * lib/unicase/u32-casemap.c: New file.
35751         * modules/unicase/u32-casemap: New file.
35752
35753         New module 'unicase/u16-casemap'.
35754         * lib/unicase/u16-casemap.c: New file.
35755         * modules/unicase/u16-casemap: New file.
35756
35757         New module 'unicase/u8-casemap'.
35758         * lib/unicase/unicasemap.h: New file.
35759         * lib/unicase/u8-casemap.c: New file.
35760         * lib/unicase/u-casemap.h: New file.
35761         * modules/unicase/u8-casemap: New file.
35762
35763         New module 'unicase/special-casing'.
35764         * lib/unicase/special-casing.h: New file.
35765         * lib/unicase/special-casing.c: New file.
35766         * lib/unicase/special-casing-table.gperf: New file, generated by
35767         gen-uni-tables.c.
35768         * modules/unicase/special-casing: New file.
35769
35770         Tests for module 'unicase/locale-language'.
35771         * modules/unicase/locale-language-tests: New file.
35772         * tests/unicase/test-locale-language.sh: New file.
35773         * tests/unicase/test-locale-language.c: New file.
35774
35775         New module 'unicase/locale-language'.
35776         * lib/unicase/locale-language.c: New file.
35777         * lib/unicase/locale-languages.gperf: New file.
35778         * modules/unicase/locale-language: New file.
35779
35780         Generate more tables for case conversion and case folding.
35781         * lib/gen-uni-tables.c (SCC_*): New enum items.
35782         (struct special_casing_rule): New type.
35783         (casing_rules, num_casing_rules, allocated_casing_rules): New
35784         variables.
35785         (add_casing_rule, fill_casing_rules): New functions.
35786         (struct casefold_rule): New type.
35787         (casefolding_rules, num_casefolding_rules,
35788         allocated_casefolding_rules): New variables.
35789         (fill_casefolding_rules): New function.
35790         (unicode_casefold): New variable.
35791         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35792         sort_casing_rules, output_casing_rules): New functions.
35793         (main): Accept to more arguments: SpecialCasing.txt and
35794         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35795         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35796         Output mapping for casefolding.
35797
35798         * lib/unicase.h: Include stdbool.h, uninorm.h.
35799         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35800         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35801         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35802         arguments.
35803         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35804         resultp arguments.
35805         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35806         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35807         resultp arguments.
35808         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35809         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35810         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35811         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35812         declarations.
35813         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35814
35815 2009-03-08  Bruno Haible  <bruno@clisp.org>
35816
35817         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35818         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35819         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35820         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35821
35822 2009-03-07  Bruno Haible  <bruno@clisp.org>
35823
35824         Adjust u*_normcmp, u*_normcoll API.
35825         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35826         u16_normcoll, u32_normcoll): Change failure conventions.
35827         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35828         errno and return -1.
35829         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35830
35831 2009-03-07  Bruno Haible  <bruno@clisp.org>
35832
35833         Tests for module 'uninorm/u32-normcoll'.
35834         * modules/uninorm/u32-normcoll-tests: New file.
35835         * tests/uninorm/test-u32-normcoll.c: New file.
35836
35837         Tests for module 'uninorm/u16-normcoll'.
35838         * modules/uninorm/u16-normcoll-tests: New file.
35839         * tests/uninorm/test-u16-normcoll.c: New file.
35840
35841         Tests for module 'uninorm/u8-normcoll'.
35842         * modules/uninorm/u8-normcoll-tests: New file.
35843         * tests/uninorm/test-u8-normcoll.c: New file.
35844
35845 2009-03-07  Bruno Haible  <bruno@clisp.org>
35846
35847         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35848         tests/uninorm/test-u32-normcmp.c.
35849         * tests/uninorm/test-u32-normcmp.c: Include it.
35850         (test_nonascii): New function, extracted from main. Add some more
35851         tests.
35852         (main): Invoke test_ascii and test_nonascii.
35853         * modules/uninorm/u32-normcmp-tests (Files): Add
35854         tests/uninorm/test-u32-normcmp.h.
35855         (Depends-on): Remove uninorm/u32-normcmp.
35856
35857         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35858         tests/uninorm/test-u16-normcmp.c.
35859         * tests/uninorm/test-u16-normcmp.c: Include it.
35860         (test_nonascii): New function, extracted from main. Add some more
35861         tests.
35862         (main): Invoke test_ascii and test_nonascii.
35863         * modules/uninorm/u16-normcmp-tests (Files): Add
35864         tests/uninorm/test-u16-normcmp.h.
35865         (Depends-on): Remove uninorm/u16-normcmp.
35866
35867         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35868         tests/uninorm/test-u8-normcmp.c.
35869         * tests/uninorm/test-u8-normcmp.c: Include it.
35870         (test_nonascii): New function, extracted from main. Add some more
35871         tests.
35872         (main): Invoke test_ascii and test_nonascii.
35873         * modules/uninorm/u8-normcmp-tests (Files): Add
35874         tests/uninorm/test-u8-normcmp.h.
35875         (Depends-on): Remove uninorm/u8-normcmp.
35876
35877 2009-03-07  Bruno Haible  <bruno@clisp.org>
35878
35879         New module 'uninorm/u32-normcoll'.
35880         * lib/uninorm/u32-normcoll.c: New file.
35881         * modules/uninorm/u32-normcoll: New file.
35882
35883         New module 'uninorm/u16-normcoll'.
35884         * lib/uninorm/u16-normcoll.c: New file.
35885         * modules/uninorm/u16-normcoll: New file.
35886
35887         New module 'uninorm/u8-normcoll'.
35888         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35889         declarations.
35890         * lib/uninorm/u8-normcoll.c: New file.
35891         * lib/uninorm/u-normcoll.h: New file.
35892         * modules/uninorm/u8-normcoll: New file.
35893
35894         New module 'uninorm/u32-normxfrm'.
35895         * lib/uninorm/u32-normxfrm.c: New file.
35896         * modules/uninorm/u32-normxfrm: New file.
35897
35898         New module 'uninorm/u16-normxfrm'.
35899         * lib/uninorm/u16-normxfrm.c: New file.
35900         * modules/uninorm/u16-normxfrm: New file.
35901
35902         New module 'uninorm/u8-normxfrm'.
35903         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35904         declarations.
35905         * lib/uninorm/u8-normxfrm.c: New file.
35906         * lib/uninorm/u-normxfrm.h: New file.
35907         * modules/uninorm/u8-normxfrm: New file.
35908
35909 2009-03-07  Bruno Haible  <bruno@clisp.org>
35910
35911         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35912         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35913         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35914
35915 2009-03-07  Bruno Haible  <bruno@clisp.org>
35916
35917         New module 'memxfrm'.
35918         * lib/memxfrm.h: New file.
35919         * lib/memxfrm.c: New file.
35920         * modules/memxfrm: New file.
35921
35922 2009-03-07  Bruno Haible  <bruno@clisp.org>
35923
35924         New module 'memcmp2'.
35925         * lib/memcmp2.h: New file.
35926         * lib/memcmp2.c: New file.
35927         * modules/memcmp2: New file.
35928
35929 2009-03-07  Bruno Haible  <bruno@clisp.org>
35930
35931         Tests for module 'uninorm/decomposing-form'.
35932         * modules/uninorm/decomposing-form-tests: New file.
35933         * tests/uninorm/test-decomposing-form.c: New file.
35934
35935         New module 'uninorm/decomposing-form'.
35936         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35937         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35938         Add 'decomposing_variant' field.
35939         * lib/uninorm/decomposing-form.c: New file.
35940         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35941         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35942         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35943         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35944         * modules/uninorm/decomposing-form: New file.
35945         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35946         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35947
35948 2009-03-07  Bruno Haible  <bruno@clisp.org>
35949
35950         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35951         strings.
35952
35953 2009-03-06  Bruno Haible  <bruno@clisp.org>
35954
35955         Tests for module 'uninorm/u32-normcmp'.
35956         * tests/uninorm/test-u32-normcmp.c: New file.
35957         * modules/uninorm/u32-normcmp-tests: New file.
35958
35959         Tests for module 'uninorm/u16-normcmp'.
35960         * tests/uninorm/test-u16-normcmp.c: New file.
35961         * modules/uninorm/u16-normcmp-tests: New file.
35962
35963         Tests for module 'uninorm/u8-normcmp'.
35964         * tests/uninorm/test-u8-normcmp.c: New file.
35965         * modules/uninorm/u8-normcmp-tests: New file.
35966
35967         New module 'uninorm/u32-normcmp'.
35968         * lib/uninorm/u32-normcmp.c: New file.
35969         * modules/uninorm/u32-normcmp: New file.
35970
35971         New module 'uninorm/u16-normcmp'.
35972         * lib/uninorm/u16-normcmp.c: New file.
35973         * modules/uninorm/u16-normcmp: New file.
35974
35975         New module 'uninorm/u8-normcmp'.
35976         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35977         declarations.
35978         * lib/uninorm/u8-normcmp.c: New file.
35979         * lib/uninorm/u-normcmp.h: New file.
35980         * modules/uninorm/u8-normcmp: New file.
35981
35982 2009-03-06  Bruno Haible  <bruno@clisp.org>
35983
35984         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35985         Reported by Eric Blake.
35986
35987 2009-03-06  Eric Blake  <ebb9@byu.net>
35988             Bruno Haible  <bruno@clisp.org>
35989
35990         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35991         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35992         condition.
35993         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35994         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35995         condition.
35996         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35997
35998 2009-03-06  Eric Blake  <ebb9@byu.net>
35999
36000         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36001         to avoid compiler warnings.
36002         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36003
36004 2009-03-05  Bruno Haible  <bruno@clisp.org>
36005
36006         * tests/test-ftell.c (main): Disable test beyond end of file on
36007         FreeMiNT.
36008         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36009
36010 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36011
36012         * lib/filevercmp.c: Move hidden files up in ordering.
36013         * tests/test-filevercmp.c: Add tests for hidden files.
36014
36015 2009-03-04  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36018         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36019         AM_CFLAGS.
36020         Reported by Simon Josefsson.
36021
36022 2009-03-03  Bruno Haible  <bruno@clisp.org>
36023
36024         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36025         Reported by Simon Josefsson.
36026
36027         * doc/ld-version-script.texi: Update node reference.
36028
36029 2009-03-03  Bruno Haible  <bruno@clisp.org>
36030
36031         * modules/visibility (License): Change to 'unlimited'.
36032         Suggested by Simon Josefsson.
36033
36034 2009-03-03  Jim Meyering  <meyering@redhat.com>
36035
36036         unlinkdir: cannot_unlink_dir may modify process state
36037         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36038         it's neither thread-safe nor appropriate for use in a library.
36039
36040 2009-03-03  Eric Blake  <ebb9@byu.net>
36041
36042         test-closein: silence test under Darwin
36043         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36044         care if it dies from EPIPE or EBADF.
36045
36046 2009-03-03  Bruno Haible  <bruno@clisp.org>
36047
36048         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36049         earlier.
36050         * doc/visibility.texi: Fix @node and @section.
36051
36052 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36053
36054         * doc/gnulib.texi: Link to sections for ld version script and
36055         visibility.
36056         * doc/visibility.texi: Add @node and @section.
36057         * modules/ld-version-script: New module.
36058         * m4/ld-version-script.m4: New file.
36059         * doc/ld-version-script.texi: New file.
36060
36061 2009-03-02  David Lutterkort  <lutter@redhat.com>
36062
36063         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36065
36066 2009-03-02  Bruno Haible  <bruno@clisp.org>
36067
36068         * doc/visibility.texi: Mention libtool's -export-symbols option.
36069
36070 2009-03-02  Jim Meyering  <meyering@redhat.com>
36071
36072         announce-gen: new option: --no-print-checksums
36073         * build-aux/announce-gen (usage): Describe it.
36074         (print_checksums): Print a newline here, not in the [*] footnote.
36075         (main): Honor it.
36076
36077 2009-03-01  Bruno Haible  <bruno@clisp.org>
36078
36079         Use socklen_t in the native Windows replacements prototypes.
36080         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36081         instead of 'int'.
36082         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36083         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36084         * modules/getsockopt (Depends-on): Add socklen.
36085         * modules/setsockopt (Depends-on): Add socklen.
36086
36087 2009-03-01  Bruno Haible  <bruno@clisp.org>
36088
36089         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36090         least 4.2.
36091
36092 2009-03-01  Eric Blake  <ebb9@byu.net>
36093             Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36096         error messages.
36097         * lib/wait-process.c (wait_subprocess): Omit error message about
36098         deadly signal sent to the child of termsigp != NULL.
36099
36100 2009-03-01  Eric Blake  <ebb9@byu.net>
36101
36102         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36103
36104 2009-03-01  Bruno Haible  <bruno@clisp.org>
36105
36106         Avoid a gcc warning.
36107         * tests/test-sched.c (b): Make global.
36108         Reported by Eric Blake.
36109
36110 2009-01-19  Martin Lambers  <marlam@marlam.de>
36111
36112         Provide POSIX semantics for socket timeout options on W32.
36113         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36114         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36115         * modules/setsockopt: Depend on sys_time module for struct timeval.
36116         * modules/getsockopt: Depend on sys_time module for struct timeval.
36117
36118 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36119
36120         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36121         __USE_GNU, for consistency with netdb.in.h.
36122         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36123
36124 2009-03-01  Bruno Haible  <bruno@clisp.org>
36125
36126         More support for FreeMiNT.
36127         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36129
36130 2009-03-01  Bruno Haible  <bruno@clisp.org>
36131
36132         More support for FreeMiNT.
36133         * lib/fpurge.c (fpurge): Correct last commit.
36134         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36135
36136 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36137
36138         Fix unportable awk script in vc-list-files.
36139         * build-aux/vc-list-files: In the replacement awk script, use
36140         substr with a second argument of 1, not zero.
36141         Report by Simon Josefsson.
36142
36143 2009-02-28  Bruno Haible  <bruno@clisp.org>
36144
36145         More support for FreeMiNT.
36146         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36147         to FreeMiNT today.
36148         * lib/fwriting.c (fwriting): Likewise.
36149         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36150
36151 2009-02-28  Bruno Haible  <bruno@clisp.org>
36152
36153         * tests/test-freadseek.c (main): Disable test beyond end of file on
36154         FreeMiNT.
36155         * tests/test-ftello.c (main): Likewise.
36156         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36157
36158 2009-02-28  Bruno Haible  <bruno@clisp.org>
36159
36160         Add tentative support for FreeMiNT.
36161         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36162         * lib/fpurge.c (fpurge): Likewise.
36163         * lib/freadable.c (freadable): Likewise.
36164         * lib/freading.c (freading): Likewise.
36165         * lib/freadptr.c (freadptr): Likewise.
36166         * lib/freadseek.c (freadptrinc): Likewise.
36167         * lib/fseeko.c (rpl_fseeko): Likewise.
36168         * lib/fseterr.c (fseterr): Likewise.
36169         * lib/fwritable.c (fwritable): Likewise.
36170         * lib/fwriting.c (fwriting): Likewise.
36171         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36172         Hourihane.
36173         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36174
36175 2009-02-28  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36178         SIGCHLD.
36179         Reported by Jim Meyering.
36180
36181 2009-02-28  Bruno Haible  <bruno@clisp.org>
36182
36183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36184         Mention the results of these tests on various platforms.
36185         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36186         order.
36187         * doc/posix-functions/printf.texi: Likewise.
36188         * doc/posix-functions/snprintf.texi: Likewise.
36189         * doc/posix-functions/sprintf.texi: Likewise.
36190         * doc/posix-functions/vfprintf.texi: Likewise.
36191         * doc/posix-functions/vprintf.texi: Likewise.
36192         * doc/posix-functions/vsnprintf.texi: Likewise.
36193         * doc/posix-functions/vsprintf.texi: Likewise.
36194         * doc/glibc-functions/obstack_printf.texi: Likewise.
36195         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36196
36197 2009-02-28  Bruno Haible  <bruno@clisp.org>
36198
36199         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36200         Reported by Loïc Minier <lool@dooz.org>.
36201
36202 2009-02-27  Bruno Haible  <bruno@clisp.org>
36203
36204         * gnulib-tool (func_import): Make the sed expression used to create the
36205         sed script for updating the .gitignore file POSIX compliant.
36206         Reported by Eric Blake.
36207
36208 2009-02-27  Bruno Haible  <bruno@clisp.org>
36209
36210         * gnulib-tool (sed): Don't alias as "sed --posix".
36211         Reported by Eric Blake.
36212
36213 2009-02-27  Bruno Haible  <bruno@clisp.org>
36214
36215         Avoid test link errors.
36216         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36217         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36218         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36219         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36221
36222 2009-02-27  Bruno Haible  <bruno@clisp.org>
36223
36224         Avoid spurious "(cached)" in configure output.
36225         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36226         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36227         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36228         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36229         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36230         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36231         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36232         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36233         Reported by Eric Blake.
36234
36235 2009-02-27  Eric Blake  <ebb9@byu.net>
36236
36237         printf: fix regression in previous patch
36238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36239
36240 2009-02-27  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36243         value.
36244         * lib/stdint.in.h: Likewise.
36245         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36246
36247 2009-02-27  Eric Blake  <ebb9@byu.net>
36248
36249         doc: mention more functions added in cygwin 1.7.0
36250         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36251         addition.
36252         * doc/posix-functions/open_wmemstream.texi: Likewise.
36253         * doc/posix-functions/wcsnlen.texi: Likewise.
36254         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36255         * doc/posix-functions/wcstod.texi: Likewise.
36256         * doc/posix-functions/wcstof.texi: Likewise.
36257         * doc/posix-functions/wcstoimax.texi: Likewise.
36258         * doc/posix-functions/wcstok.texi: Likewise.
36259         * doc/posix-functions/wcstoumax.texi: Likewise.
36260
36261         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36263         * doc/posix-functions/fprintf.texi: Update.
36264         * doc/posix-functions/printf.texi: Update.
36265         * doc/posix-functions/snprintf.texi: Update.
36266         * doc/posix-functions/sprintf.texi: Update.
36267         * doc/posix-functions/vfprintf.texi: Update.
36268         * doc/posix-functions/vprintf.texi: Update.
36269         * doc/posix-functions/vsnprintf.texi: Update.
36270         * doc/posix-functions/vsprintf.texi: Update.
36271         * doc/glibc-functions/obstack_printf.texi: Update.
36272         * doc/glibc-functions/obstack_vprintf.texi: Update.
36273
36274 2009-02-26  Eric Blake  <ebb9@byu.net>
36275
36276         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36277         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36278         compilation bug by using runtime conversion.
36279         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36280         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36281         * modules/ceill-tests (Files): Use nan.h.
36282         * modules/floorl-tests (Files): Likewise.
36283         * modules/frexpl-tests (Files): Likewise.
36284         * modules/isnanl-tests (Files): Likewise.
36285         * modules/ldexpl-tests (Files): Likewise.
36286         * modules/roundl-tests (Files): Likewise.
36287         * modules/truncl-tests (Files): Likewise.
36288         * tests/test-ceill.c (main): Use a working NaN.
36289         * tests/test-floorl.c (main): Likewise.
36290         * tests/test-frexpl.c (main): Likewise.
36291         * tests/test-isnan.c (test_long_double): Likewise.
36292         * tests/test-isnanl.h (main): Likewise.
36293         * tests/test-ldexpl.h (main): Likewise.
36294         * tests/test-roundl.h (main): Likewise.
36295         * tests/test-truncl.h (main): Likewise.
36296         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36297
36298 2009-02-26  Eric Blake  <ebb9@byu.net>
36299             Bruno Haible  <bruno@clisp.org>
36300
36301         Work around a *printf bug with %ls on Solaris.
36302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36303         precision is specified, sprintf stops converting the wide string
36304         argument when the number of bytes that have been produced by this
36305         conversion equals or exceeds the precision.
36306         * doc/posix-functions/fprintf.texi: Update.
36307         * doc/posix-functions/printf.texi: Update.
36308         * doc/posix-functions/snprintf.texi: Update.
36309         * doc/posix-functions/sprintf.texi: Update.
36310         * doc/posix-functions/vfprintf.texi: Update.
36311         * doc/posix-functions/vprintf.texi: Update.
36312         * doc/posix-functions/vsnprintf.texi: Update.
36313         * doc/posix-functions/vsprintf.texi: Update.
36314         * doc/glibc-functions/obstack_printf.texi: Update.
36315         * doc/glibc-functions/obstack_vprintf.texi: Update.
36316
36317 2009-02-26  Eric Blake  <ebb9@byu.net>
36318
36319         stdlib: favor compiler check of random.h
36320         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36321         to avoid an ObjC random.h installed by Swarm.
36322
36323 2009-02-26  Bruno Haible  <bruno@clisp.org>
36324
36325         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36326         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36327         Reported by Gary V. Vaughan <gary@gnu.org>.
36328
36329 2009-02-26  Bruno Haible  <bruno@clisp.org>
36330
36331         Fix *printf behaviour regarding the %ls directive.
36332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36333         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36334         NEED_PRINTF_DIRECTIVE_LS.
36335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36336         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36338         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36339         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36340         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36341         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36346         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36350         * doc/posix-functions/fprintf.texi: Update.
36351         * doc/posix-functions/printf.texi: Update.
36352         * doc/posix-functions/snprintf.texi: Update.
36353         * doc/posix-functions/sprintf.texi: Update.
36354         * doc/posix-functions/vfprintf.texi: Update.
36355         * doc/posix-functions/vprintf.texi: Update.
36356         * doc/posix-functions/vsnprintf.texi: Update.
36357         * doc/posix-functions/vsprintf.texi: Update.
36358         * doc/glibc-functions/obstack_printf.texi: Update.
36359         * doc/glibc-functions/obstack_vprintf.texi: Update.
36360         Reported by Eric Blake.
36361
36362 2009-02-25  Bruno Haible  <bruno@clisp.org>
36363
36364         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36365         with known value.
36366         Reported by Gary V. Vaughan <gary@gnu.org>.
36367
36368 2009-02-25  Bruno Haible  <bruno@clisp.org>
36369
36370         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36371         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36372         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36373         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36374         Reported by Gary V. Vaughan <gary@gnu.org>.
36375
36376 2009-02-25  Bruno Haible  <bruno@clisp.org>
36377
36378         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36379         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36380         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36381         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36382         Reported by Gary V. Vaughan <gary@gnu.org>.
36383
36384 2009-02-25  Eric Blake  <ebb9@byu.net>
36385
36386         tests: skip fseek/ftell tests if ungetc is broken
36387         * m4/ungetc.m4: New file.
36388         * modules/fseek-tests: Split test, so ungetc dependency is
36389         separate from rest of test.
36390         * modules/fseeko-tests: Likewise.
36391         * modules/ftell-tests: Likewise.
36392         * modules/ftello-tests: Likewise.
36393         * tests/test-fseek.c (main): Isolate ungetc dependency.
36394         * tests/test-fseeko.c (main): Likewise.
36395         * tests/test-ftell.c (main): Likewise.
36396         * tests/test-ftello.c (main): Likewise.
36397         * tests/test-fseek2.sh: New file.
36398         * tests/test-fseeko2.sh: Likewise.
36399         * tests/test-ftell2.sh: Likewise.
36400         * tests/test-ftello2.sh: Likewise.
36401
36402 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36403
36404         test-getaddrinfo: fix usage of skip return code 77
36405         * tests/test-gettaddrinfo.c: Return skip code 77 only
36406         for first occurance of skip (4x77 is not 77)
36407
36408 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36409
36410         strtod: avoid C99 decl-after-statement
36411         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36412
36413 2009-02-24  Eric Blake  <ebb9@byu.net>
36414
36415         strtod: detect HP-UX 11.31 bug
36416         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36417         Reported by Gary V. Vaughan.
36418
36419 2009-02-23  Bruno Haible  <bruno@clisp.org>
36420
36421         Fix invalid read past end of memory block.
36422         * lib/vasnprintf.c (DCHAR_SET): Define.
36423         (local_wcslen): Define only when needed.
36424         (local_strnlen, local_wcsnlen): New functions.
36425         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36426         directives that involve a conversion ourselves.
36427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36428         wcsnlen, mbrtowc, wcrtomb.
36429         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36430         * tests/test-vasprintf-posix.c (test_function): Likewise.
36431         * tests/test-snprintf-posix.h (test_function): Likewise.
36432         * tests/test-sprintf-posix.h (test_function): Likewise.
36433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36434
36435 2009-02-22  Bruno Haible  <bruno@clisp.org>
36436
36437         Implement new clarified decomposition of Hangul syllables.
36438         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36439         of type LTV, return only a pairwise decomposition.
36440         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36441         Likewise.
36442         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36443         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36444         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36445
36446 2009-02-22  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36449         zero-length results and shrink excess allocated memory.
36450         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36451         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36452         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36453         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36454         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36455         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36456         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36457         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36458         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36459         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36460         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36461         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36462
36463 2009-02-21  Bruno Haible  <bruno@clisp.org>
36464
36465         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36466         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36467         spaces after a period. Put a space between a macro name and its
36468         argument list. Trivial rewordings.
36469         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36470         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36471         (main): Return 0 explicitly.
36472
36473 2009-02-21  Bruno Haible  <bruno@clisp.org>
36474
36475         Tests for module 'uninorm/filter'.
36476         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36477         * modules/uninorm/filter-tests: New file.
36478
36479         New module 'uninorm/filter'.
36480         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36481         uninorm_filter_flush, uninorm_filter_free): New declarations.
36482         * lib/uninorm/uninorm-filter.c: New file.
36483         * modules/uninorm/filter: New file.
36484
36485 2009-02-21  Bruno Haible  <bruno@clisp.org>
36486
36487         Tests for module 'uninorm/nfkc'.
36488         * tests/uninorm/test-nfkc.c: New file.
36489         * tests/uninorm/test-u8-nfkc.c: New file.
36490         * tests/uninorm/test-u16-nfkc.c: New file.
36491         * tests/uninorm/test-u32-nfkc.c: New file.
36492         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36493         * tests/uninorm/test-u32-nfkc-big.c: New file.
36494         * modules/uninorm/nfkc-tests: New file.
36495
36496         New module 'uninorm/nfkc'.
36497         * lib/uninorm/nfkc.c: New file.
36498         * modules/uninorm/nfkc: New file.
36499
36500         Tests for module 'uninorm/nfkd'.
36501         * tests/uninorm/test-nfkd.c: New file.
36502         * tests/uninorm/test-u8-nfkd.c: New file.
36503         * tests/uninorm/test-u16-nfkd.c: New file.
36504         * tests/uninorm/test-u32-nfkd.c: New file.
36505         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36506         * tests/uninorm/test-u32-nfkd-big.c: New file.
36507         * modules/uninorm/nfkd-tests: New file.
36508
36509         New module 'uninorm/nfkd'.
36510         * lib/uninorm/nfkd.c: New file.
36511         * modules/uninorm/nfkd: New file.
36512
36513         Tests for module 'uninorm/nfc'.
36514         * tests/uninorm/test-nfc.c: New file.
36515         * tests/uninorm/test-u8-nfc.c: New file.
36516         * tests/uninorm/test-u16-nfc.c: New file.
36517         * tests/uninorm/test-u32-nfc.c: New file.
36518         * tests/uninorm/test-u32-nfc-big.sh: New file.
36519         * tests/uninorm/test-u32-nfc-big.c: New file.
36520         * modules/uninorm/nfc-tests: New file.
36521
36522         New module 'uninorm/nfc'.
36523         * lib/uninorm/nfc.c: New file.
36524         * modules/uninorm/nfc: New file.
36525
36526         Tests for module 'uninorm/nfd'.
36527         * tests/uninorm/test-nfd.c: New file.
36528         * tests/uninorm/test-u8-nfd.c: New file.
36529         * tests/uninorm/test-u16-nfd.c: New file.
36530         * tests/uninorm/test-u32-nfd.c: New file.
36531         * tests/uninorm/test-u32-nfd-big.sh: New file.
36532         * tests/uninorm/test-u32-nfd-big.c: New file.
36533         * tests/uninorm/test-u32-normalize-big.h: New file.
36534         * tests/uninorm/test-u32-normalize-big.c: New file.
36535         * tests/uninorm/NormalizationTest.txt: New file, created from
36536         Unicode 5.1.0 NormalizationTest.txt.
36537         * modules/uninorm/nfd-tests: New file.
36538
36539         New module 'uninorm/nfd'.
36540         * lib/uninorm/nfd.c: New file.
36541         * modules/uninorm/nfd: New file.
36542
36543         New module 'uninorm/u32-normalize'.
36544         * lib/uninorm/u32-normalize.c: New file.
36545         * modules/uninorm/u32-normalize: New file.
36546
36547         New module 'uninorm/u16-normalize'.
36548         * lib/uninorm/u16-normalize.c: New file.
36549         * modules/uninorm/u16-normalize: New file.
36550
36551         New module 'uninorm/u8-normalize'.
36552         * lib/uninorm/u8-normalize.c: New file.
36553         * lib/uninorm/normalize-internal.h: New file.
36554         * lib/uninorm/u-normalize-internal.h: New file.
36555         * modules/uninorm/u8-normalize: New file.
36556
36557         New module 'uninorm/decompose-internal'.
36558         * lib/uninorm/decompose-internal.c: New file.
36559         * modules/uninorm/decompose-internal: New file.
36560
36561         Tests for module 'uninorm/composition'.
36562         * tests/uninorm/test-composition.c: New file.
36563         * modules/uninorm/composition-tests: New file.
36564
36565         New module 'uninorm/composition'.
36566         * lib/uninorm/composition.c: New file.
36567         * lib/uninorm/composition-table.gperf: New file, generated by
36568         gen-uni-tables.
36569         * modules/uninorm/composition: New file.
36570
36571         Tests for module 'uninorm/compat-decomposition'.
36572         * tests/uninorm/test-compat-decomposition.c: New file.
36573         * modules/uninorm/compat-decomposition-tests: New file.
36574
36575         New module 'uninorm/compat-decomposition'.
36576         * lib/uninorm/decompose-internal.h: New file.
36577         * lib/uninorm/compat-decomposition.c: New file.
36578         * modules/uninorm/compat-decomposition: New file.
36579
36580         Tests for module 'uninorm/canonical-decomposition'.
36581         * tests/uninorm/test-canonical-decomposition.c: New file.
36582         * modules/uninorm/canonical-decomposition-tests: New file.
36583
36584         New module 'uninorm/canonical-decomposition'.
36585         * lib/uninorm/canonical-decomposition.c: New file.
36586         * modules/uninorm/canonical-decomposition: New file.
36587
36588         Tests for module 'uninorm/decomposition'.
36589         * tests/uninorm/test-decomposition.c: New file.
36590         * modules/uninorm/decomposition-tests: New file.
36591
36592         New module 'uninorm/decomposition'.
36593         * lib/uninorm/decomposition.c: New file.
36594         * modules/uninorm/decomposition: New file.
36595
36596         New module 'uninorm/decomposition-table'.
36597         * lib/uninorm/decomposition-table.h: New file.
36598         * lib/uninorm/decomposition-table.c: New file.
36599         * lib/uninorm/decomposition-table1.h: New file, generated by
36600         gen-uni-tables.
36601         * lib/uninorm/decomposition-table2.h: New file, generated by
36602         gen-uni-tables.
36603         * modules/uninorm/decomposition-table: New file.
36604
36605         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36606         (UC_DECOMP_*): New enumeration items.
36607         (get_decomposition): New function.
36608         (struct decomp_table): New type.
36609         (output_decomposition, output_decomposition_tables): New functions.
36610         (unicode_composition_exclusions): New variable.
36611         (fill_composition_exclusions, debug_output_composition_tables): New
36612         functions.
36613         (main): Accept one more argument. Invoke fill_composition_exclusions.
36614         Output decomposition and composition tables.
36615
36616         New module 'uninorm/base'.
36617         * lib/uninorm.h: New file.
36618         * lib/unictype.h: Update comment.
36619         * modules/uninorm/base: New file.
36620
36621 2009-02-21  David Lutterkort  <lutter@redhat.com>
36622
36623         Tests for module 'safe-alloc'.
36624         * tests/test-safe-alloc.c: New file.
36625         * modules/safe-alloc-tests: New file.
36626
36627         New module 'safe-alloc'.
36628         * lib/safe-alloc.h: New file.
36629         * lib/safe-alloc.c: New file.
36630         * m4/safe-alloc.m4: New file.
36631         * modules/safe-alloc: New file.
36632         * doc/safe-alloc.texi: New file.
36633         * doc/gnulib.texi: Include it.
36634         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36635         safe-alloc.
36636
36637 2009-02-18  Bruno Haible  <bruno@clisp.org>
36638
36639         Fix link error on non-glibc systems.
36640         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36641         variable.
36642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36643
36644 2009-02-18  Jim Meyering  <meyering@redhat.com>
36645
36646         fts: avoid used-uninitialized error due to recent change
36647         * lib/fts.c (fts_read): Guard uses of the new member,
36648         parent->fts_n_dirs_remaining, since it's not relevant for
36649         the parent of a directory specified on the command-line.
36650
36651 2009-02-17  James Youngman  <jay@gnu.org>
36652             Bruno Haible  <bruno@clisp.org>
36653
36654         * m4/include_next.m4: Reformulate comment.
36655
36656 2009-02-16  Jim Meyering  <meyering@redhat.com>
36657
36658         fts: add #if guards so that the fts_lgpl module still builds
36659         * lib/fts.c: Guard just-added hash-table-using parts with
36660         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36661         Reported by Simon Josefsson.
36662
36663 2009-02-15  Bruno Haible  <bruno@clisp.org>
36664
36665         * modules/array-mergesort-tests: New file.
36666         * tests/test-array-mergesort.c: New file.
36667
36668         New module 'array-mergesort'.
36669         * modules/array-mergesort: New file.
36670         * lib/array-mergesort.h: New file.
36671
36672 2009-02-15  Bruno Haible  <bruno@clisp.org>
36673
36674         Fix 2009-02-07 commit.
36675         * lib/gen-uni-tables.c (output_predicate, output_category,
36676         output_combclass, output_bidi_category, output_decimal_digit,
36677         output_digit, output_numeric, output_mirror, output_scripts,
36678         output_ident_category, output_simple_mapping): Fix format directives.
36679         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36680
36681 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36682
36683         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36684         fixes are available from IBM.
36685
36686 2009-02-13  Jim Meyering  <meyering@redhat.com>
36687
36688         fts: arrange not to stat non-directories in more cases
36689         This makes GNU find (when it doesn't need to stat each file)
36690         *much* more efficient at traversing reiserfs file systems.
36691         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36692         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36693         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36694         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36695         (leaf_optimization_applies): New function.
36696         (LCO_hash, LCO_compare): New helper functions.
36697         (link_count_optimize_ok): New function.
36698         (fts_stat): Initialize new member (if dir).
36699         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36700         we've just stat'ed a directory.  Skip the stat call when possible.
36701         ---
36702         Note this AFS-related exchange:
36703         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36704         and note find's pioctl call in find/fstype.c.
36705         But that is necessary only if you want to enable the
36706         optimization for AFS, and for now, I don't.
36707
36708         fts: move a function definition "up" (no semantic change)
36709         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36710         "up" to precede upcoming use of a related function.
36711
36712 2009-02-11  Jim Meyering  <meyering@redhat.com>
36713
36714         fts: correct internal computation of nlinks (optimization-related)
36715         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36716         whether the current entry is a directory, so don't test it.
36717
36718 2009-02-10  Bruno Haible  <bruno@clisp.org>
36719
36720         Tests for module 'uniwbrk/ulc-wordbreaks'.
36721         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36722         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36723         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36724
36725         Tests for module 'uniwbrk/u32-wordbreaks'.
36726         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36727         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36728
36729         Tests for module 'uniwbrk/u16-wordbreaks'.
36730         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36731         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36732
36733         Tests for module 'uniwbrk/u8-wordbreaks'.
36734         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36735         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36736
36737 2009-02-10  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36740         property.
36741         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36742         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36743         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36744
36745 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36746
36747         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36748         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36749
36750 2009-02-10  Bruno Haible  <bruno@clisp.org>
36751
36752         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36753         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36754         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36755         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36756         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36757         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36758
36759 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36760
36761         * lib/sockets.h (gl_fd_to_handle): New function.
36762
36763         * tests/test-sockets.c: Call gl_fd_to_handle.
36764
36765 2009-02-09  Bruno Haible  <bruno@clisp.org>
36766
36767         * doc/havelib.texi: Document the conventions on bi-arch systems.
36768
36769 2009-02-08  Bruno Haible  <bruno@clisp.org>
36770
36771         Document the AC_LIB_LINKFLAGS macro.
36772         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36773         * doc/gnulib.texi: Include it.
36774
36775 2009-02-08  Bruno Haible  <bruno@clisp.org>
36776
36777         Fix wrong order of sections, compared to TOC.
36778         * doc/gnulib.texi: Include relocatable-maint.texi after the
36779         "Regular expressions" node, not before.
36780
36781 2009-02-08  Bruno Haible  <bruno@clisp.org>
36782
36783         Tests for module 'unicase/totitle'.
36784         * modules/unicase/totitle-tests: New file.
36785
36786         Tests for module 'unicase/tolower'.
36787         * modules/unicase/tolower-tests: New file.
36788
36789         Tests for module 'unicase/toupper'.
36790         * modules/unicase/toupper-tests: New file.
36791         * tests/unicase/test-mapping-part1.h: New file.
36792         * tests/unicase/test-mapping-part2.h: New file.
36793
36794         New module 'unicase/totitle'.
36795         * modules/unicase/totitle: New file.
36796         * lib/unicase/totitle.c: New file.
36797
36798         New module 'unicase/tolower'.
36799         * modules/unicase/tolower: New file.
36800         * lib/unicase/tolower.c: New file.
36801
36802         New module 'unicase/toupper'.
36803         * modules/unicase/toupper: New file.
36804         * lib/unicase/toupper.c: New file.
36805         * lib/unicase/simple-mapping.h: New file.
36806
36807         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36808         (mapping_table): New structure.
36809         (output_simple_mapping): New function.
36810         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36811         * modules/gen-uni-tables (Description): Update.
36812         * lib/unicase/toupper.h: New file, automatically generated by
36813         gen-uni-tables.
36814         * lib/unicase/tolower.h: New file, automatically generated by
36815         gen-uni-tables.
36816         * lib/unicase/totitle.h: New file, automatically generated by
36817         gen-uni-tables.
36818         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36819         gen-uni-tables.
36820         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36821         gen-uni-tables.
36822         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36823         gen-uni-tables.
36824
36825         New module 'unicase/base'.
36826         * modules/unicase/base: New file.
36827         * lib/unicase.h: New file.
36828
36829 2009-02-08  Bruno Haible  <bruno@clisp.org>
36830
36831         New module 'uniwbrk/ulc-wordbreaks'.
36832         * modules/uniwbrk/ulc-wordbreaks: New file.
36833         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36834
36835         New module 'uniwbrk/u32-wordbreaks'.
36836         * modules/uniwbrk/u32-wordbreaks: New file.
36837         * lib/uniwbrk/u32-wordbreaks.c: New file.
36838
36839         New module 'uniwbrk/u16-wordbreaks'.
36840         * modules/uniwbrk/u16-wordbreaks: New file.
36841         * lib/uniwbrk/u16-wordbreaks.c: New file.
36842
36843         New module 'uniwbrk/u8-wordbreaks'.
36844         * modules/uniwbrk/u8-wordbreaks: New file.
36845         * lib/uniwbrk/u8-wordbreaks.c: New file.
36846         * lib/uniwbrk/u-wordbreaks.h: New file.
36847
36848         New module 'uniwbrk/table'.
36849         * modules/uniwbrk/table: New file.
36850         * lib/uniwbrk/wbrktable.h: New file.
36851         * lib/uniwbrk/wbrktable.c: New file.
36852
36853         New module 'uniwbrk/wordbreak-property'.
36854         * modules/uniwbrk/wordbreak-property: New file.
36855         * lib/uniwbrk/wordbreak-property.c: New file.
36856
36857         * lib/gen-uni-tables.c (WBP_*): New enum items.
36858         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36859         (unicode_org_wbp): New variable.
36860         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36861         New functions.
36862         (wbp_table): New structure.
36863         (output_wbp, output_wbrk_tables): New functions.
36864         (main): Accept additional argument. Invoke fill_org_wbp,
36865         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36866         output_wbrk_tables.
36867         * modules/gen-uni-tables (Description): Update.
36868         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36869         gen-uni-tables.
36870
36871         New module 'uniwbrk/base'.
36872         * modules/uniwbrk/base: New file.
36873         * lib/uniwbrk.h: New file.
36874
36875 2009-02-08  Bruno Haible  <bruno@clisp.org>
36876
36877         Update to Unicode 5.1.0.
36878         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36879         U+2185..U+2188.
36880         (is_property_default_ignorable_code_point): Don't include characters
36881         of category Cc or Cs and not-a-characters.
36882         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36883         U+0D79, U+109E, U+109F, U+A60C.
36884         * lib/unictype/bidi_of.h: Regenerated.
36885         * lib/unictype/blocks.h: Regenerated.
36886         * lib/unictype/categ_C.h: Regenerated.
36887         * lib/unictype/categ_Cf.h: Regenerated.
36888         * lib/unictype/categ_Cn.h: Regenerated.
36889         * lib/unictype/categ_L.h: Regenerated.
36890         * lib/unictype/categ_Ll.h: Regenerated.
36891         * lib/unictype/categ_Lm.h: Regenerated.
36892         * lib/unictype/categ_Lo.h: Regenerated.
36893         * lib/unictype/categ_Lu.h: Regenerated.
36894         * lib/unictype/categ_M.h: Regenerated.
36895         * lib/unictype/categ_Mc.h: Regenerated.
36896         * lib/unictype/categ_Me.h: Regenerated.
36897         * lib/unictype/categ_Mn.h: Regenerated.
36898         * lib/unictype/categ_N.h: Regenerated.
36899         * lib/unictype/categ_Nd.h: Regenerated.
36900         * lib/unictype/categ_Nl.h: Regenerated.
36901         * lib/unictype/categ_No.h: Regenerated.
36902         * lib/unictype/categ_P.h: Regenerated.
36903         * lib/unictype/categ_Pd.h: Regenerated.
36904         * lib/unictype/categ_Pe.h: Regenerated.
36905         * lib/unictype/categ_Pf.h: Regenerated.
36906         * lib/unictype/categ_Pi.h: Regenerated.
36907         * lib/unictype/categ_Po.h: Regenerated.
36908         * lib/unictype/categ_Ps.h: Regenerated.
36909         * lib/unictype/categ_S.h: Regenerated.
36910         * lib/unictype/categ_Sk.h: Regenerated.
36911         * lib/unictype/categ_Sm.h: Regenerated.
36912         * lib/unictype/categ_So.h: Regenerated.
36913         * lib/unictype/categ_of.h: Regenerated.
36914         * lib/unictype/combining.h: Regenerated.
36915         * lib/unictype/ctype_alnum.h: Regenerated.
36916         * lib/unictype/ctype_alpha.h: Regenerated.
36917         * lib/unictype/ctype_graph.h: Regenerated.
36918         * lib/unictype/ctype_lower.h: Regenerated.
36919         * lib/unictype/ctype_print.h: Regenerated.
36920         * lib/unictype/ctype_punct.h: Regenerated.
36921         * lib/unictype/ctype_upper.h: Regenerated.
36922         * lib/unictype/decdigit.h: Regenerated.
36923         * lib/unictype/digit.h: Regenerated.
36924         * lib/unictype/mirror.h: Regenerated.
36925         * lib/unictype/numeric.h: Regenerated.
36926         * lib/unictype/pr_alphabetic.h: Regenerated.
36927         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36928         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36929         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36930         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36931         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36932         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36933         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36934         * lib/unictype/pr_combining.h: Regenerated.
36935         * lib/unictype/pr_dash.h: Regenerated.
36936         * lib/unictype/pr_decimal_digit.h: Regenerated.
36937         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36938         * lib/unictype/pr_deprecated.h: Regenerated.
36939         * lib/unictype/pr_diacritic.h: Regenerated.
36940         * lib/unictype/pr_extender.h: Regenerated.
36941         * lib/unictype/pr_format_control.h: Regenerated.
36942         * lib/unictype/pr_grapheme_base.h: Regenerated.
36943         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36944         * lib/unictype/pr_grapheme_link.h: Regenerated.
36945         * lib/unictype/pr_id_continue.h: Regenerated.
36946         * lib/unictype/pr_id_start.h: Regenerated.
36947         * lib/unictype/pr_ideographic.h: Regenerated.
36948         * lib/unictype/pr_ignorable_control.h: Regenerated.
36949         * lib/unictype/pr_lowercase.h: Regenerated.
36950         * lib/unictype/pr_math.h: Regenerated.
36951         * lib/unictype/pr_numeric.h: Regenerated.
36952         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36953         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36954         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36955         * lib/unictype/pr_other_id_continue.h: Regenerated.
36956         * lib/unictype/pr_other_lowercase.h: Regenerated.
36957         * lib/unictype/pr_other_math.h: Regenerated.
36958         * lib/unictype/pr_punctuation.h: Regenerated.
36959         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36960         * lib/unictype/pr_soft_dotted.h: Regenerated.
36961         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36962         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36963         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36964         * lib/unictype/pr_uppercase.h: Regenerated.
36965         * lib/unictype/pr_xid_continue.h: Regenerated.
36966         * lib/unictype/pr_xid_start.h: Regenerated.
36967         * lib/unictype/pr_zero_width.h: Regenerated.
36968         * lib/unictype/scripts.h: Regenerated.
36969         * lib/unictype/scripts_byname.gperf: Regenerated.
36970         * lib/unictype/sy_java_ident.h: Regenerated.
36971         * lib/unilbrk/lbrkprop1.h: Regenerated.
36972         * lib/unilbrk/lbrkprop2.h: Regenerated.
36973         * tests/unictype/test-categ_C.c: Regenerated.
36974         * tests/unictype/test-categ_Cf.c: Regenerated.
36975         * tests/unictype/test-categ_Cn.c: Regenerated.
36976         * tests/unictype/test-categ_L.c: Regenerated.
36977         * tests/unictype/test-categ_Ll.c: Regenerated.
36978         * tests/unictype/test-categ_Lm.c: Regenerated.
36979         * tests/unictype/test-categ_Lo.c: Regenerated.
36980         * tests/unictype/test-categ_Lu.c: Regenerated.
36981         * tests/unictype/test-categ_M.c: Regenerated.
36982         * tests/unictype/test-categ_Mc.c: Regenerated.
36983         * tests/unictype/test-categ_Me.c: Regenerated.
36984         * tests/unictype/test-categ_Mn.c: Regenerated.
36985         * tests/unictype/test-categ_N.c: Regenerated.
36986         * tests/unictype/test-categ_Nd.c: Regenerated.
36987         * tests/unictype/test-categ_Nl.c: Regenerated.
36988         * tests/unictype/test-categ_No.c: Regenerated.
36989         * tests/unictype/test-categ_P.c: Regenerated.
36990         * tests/unictype/test-categ_Pd.c: Regenerated.
36991         * tests/unictype/test-categ_Pe.c: Regenerated.
36992         * tests/unictype/test-categ_Pf.c: Regenerated.
36993         * tests/unictype/test-categ_Pi.c: Regenerated.
36994         * tests/unictype/test-categ_Po.c: Regenerated.
36995         * tests/unictype/test-categ_Ps.c: Regenerated.
36996         * tests/unictype/test-categ_S.c: Regenerated.
36997         * tests/unictype/test-categ_Sk.c: Regenerated.
36998         * tests/unictype/test-categ_Sm.c: Regenerated.
36999         * tests/unictype/test-categ_So.c: Regenerated.
37000         * tests/unictype/test-ctype_alnum.c: Regenerated.
37001         * tests/unictype/test-ctype_alpha.c: Regenerated.
37002         * tests/unictype/test-ctype_graph.c: Regenerated.
37003         * tests/unictype/test-ctype_lower.c: Regenerated.
37004         * tests/unictype/test-ctype_print.c: Regenerated.
37005         * tests/unictype/test-ctype_punct.c: Regenerated.
37006         * tests/unictype/test-ctype_upper.c: Regenerated.
37007         * tests/unictype/test-decdigit.h: Regenerated.
37008         * tests/unictype/test-digit.h: Regenerated.
37009         * tests/unictype/test-numeric.h: Regenerated.
37010         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37011         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37012         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37013         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37014         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37015         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37016         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37017         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37018         * tests/unictype/test-pr_combining.c: Regenerated.
37019         * tests/unictype/test-pr_dash.c: Regenerated.
37020         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37021         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37022         * tests/unictype/test-pr_deprecated.c: Regenerated.
37023         * tests/unictype/test-pr_diacritic.c: Regenerated.
37024         * tests/unictype/test-pr_extender.c: Regenerated.
37025         * tests/unictype/test-pr_format_control.c: Regenerated.
37026         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37027         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37028         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37029         * tests/unictype/test-pr_id_continue.c: Regenerated.
37030         * tests/unictype/test-pr_id_start.c: Regenerated.
37031         * tests/unictype/test-pr_ideographic.c: Regenerated.
37032         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37033         * tests/unictype/test-pr_lowercase.c: Regenerated.
37034         * tests/unictype/test-pr_math.c: Regenerated.
37035         * tests/unictype/test-pr_numeric.c: Regenerated.
37036         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37037         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37038         Regenerated.
37039         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37040         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37041         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37042         * tests/unictype/test-pr_other_math.c: Regenerated.
37043         * tests/unictype/test-pr_punctuation.c: Regenerated.
37044         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37045         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37046         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37047         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37048         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37049         * tests/unictype/test-pr_uppercase.c: Regenerated.
37050         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37051         * tests/unictype/test-pr_xid_start.c: Regenerated.
37052         * tests/unictype/test-pr_zero_width.c: Regenerated.
37053
37054         Update to Unicode 5.1.0.
37055         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37056         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37057         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37058         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37059         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37060         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37061         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37062         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37063         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37064         (nonspacing_table_ind): Update.
37065         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37066
37067         Update to Unicode 5.1.0.
37068         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37069         code transform.
37070         * lib/uniname/uniname.c (unicode_character_name,
37071         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37072         * lib/uniname/uninames.h: Regenerated.
37073         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37074
37075 2009-02-07  Bruno Haible  <bruno@clisp.org>
37076
37077         Merge gen-ctype and gen-lbrk into a single program.
37078         * lib/gen-uni-tables.c: New file, incorporating
37079         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37080         Add directory prefixes to the names of the generated files.
37081         * lib/unictype/gen-ctype.c: Remove file.
37082         * lib/unilbrk/gen-lbrk.c: Remove file.
37083         * modules/gen-uni-tables: New file.
37084         * modules/unictype/gen-ctype: Remove file.
37085         * modules/unilbrk/gen-lbrk: Remove file.
37086
37087 2009-02-07  Bruno Haible  <bruno@clisp.org>
37088
37089         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37090
37091         New module 'unistr/u32-strcoll'.
37092         * modules/unistr/u32-strcoll: New file.
37093         * lib/unistr/u32-strcoll.c: New file.
37094
37095         New module 'unistr/u16-strcoll'.
37096         * modules/unistr/u16-strcoll: New file.
37097         * lib/unistr/u16-strcoll.c: New file.
37098
37099         New module 'unistr/u8-strcoll'.
37100         * modules/unistr/u8-strcoll: New file.
37101         * lib/unistr/u8-strcoll.c: New file.
37102         * lib/unistr/u-strcoll.h: New file.
37103
37104 2009-02-07  Bruno Haible  <bruno@clisp.org>
37105
37106         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37107         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37108         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37109         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37110         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37111         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37112
37113 2009-02-07  Bruno Haible  <bruno@clisp.org>
37114
37115         Make 64-bit clean.
37116         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37117         output_combclass, output_bidi_category, output_decimal_digit,
37118         output_digit, output_numeric, output_mirror, output_scripts,
37119         output_ident_category): Use proper width specifier in format strings.
37120
37121 2009-02-07  Bruno Haible  <bruno@clisp.org>
37122
37123         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37124         failure behaviour.
37125
37126 2009-02-07  Jim Meyering  <meyering@redhat.com>
37127
37128         regex: avoid compilation failure with upcoming gcc-4.4
37129         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37130         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37131         "... error: integer overflow in preprocessor expression".
37132
37133 2009-02-05  Ben Pfaff  <blp@gnu.org>
37134
37135         Fix link errors on Windows when close module is used.
37136         * modules/close: Add $(LIB_CLOSE) to Link section.
37137         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37138         $(LIB_CLOSE) on Windows.
37139
37140 2009-02-05  Jim Meyering  <meyering@redhat.com>
37141
37142         still avoid unused-parameter warnings, but do it cleanly
37143         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37144         (get_fs_usage): Cast to void instead.
37145         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37146         (dev_from_mount_options, read_file_system_list): Cast to void.
37147         Prompted by Bruno Haible.
37148
37149 2009-02-04  Jim Meyering  <meyering@redhat.com>
37150
37151         fsusage.c: correct copyright year
37152         * lib/fsusage.c: Reflect year in which the change is pushed into
37153
37154         avoid misc. warnings
37155         * lib/fsusage.c (UNUSED_PARAM): Define.
37156         (get_fs_usage): Mark parameter "disk" as unused.
37157         * lib/getugroups.c (getgrent): Use "void" in prototype.
37158         * lib/mountlist.c: Mark unused parameters.
37159         (read_file_system_list): Declare a local with "const".
37160         * lib/nanosleep.c (getnow): Declare static.
37161         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37162
37163         dirfd: set errno upon failure
37164         * lib/dirfd.c: Include <errno.h>.
37165         Set errno to ENOTSUP when returning -1.
37166         * modules/dirfd (Depends-on): Add errno.
37167         Suggested by John Kodis <kodis@comcast.net>.
37168
37169 2009-02-01  Bruno Haible  <bruno@clisp.org>
37170
37171         Don't assume sizeof (long) >= sizeof (void *).
37172         * lib/memcmp.c: Include stdint.h.
37173         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37174         srcp2 to 'const byte *'.
37175         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37176         types to uintptr_t.
37177         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37178         * modules/memcmp (Depends-on): Add stdint.
37179         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37180
37181 2009-01-30  Eric Blake  <ebb9@byu.net>
37182
37183         fix more require-before-expand issues
37184         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37185         expand, AC_PROG_AWK.
37186         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37187
37188 2009-01-28  Eric Blake  <ebb9@byu.net>
37189
37190         version-etc: use consistent URL formatting
37191         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37192         Improve formatting.  Use fputs for string without %.
37193
37194 2009-01-28  Jim Meyering  <meyering@redhat.com>
37195
37196         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37197         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37198         "underquoted definition of NAME" from autoconf-2.59.
37199
37200 2009-01-28  Bruno Haible  <bruno@clisp.org>
37201
37202         * doc/gnulib.texi: Add "Obsolete modules" to index.
37203
37204 2009-01-28  Jim Meyering  <meyering@redhat.com>
37205
37206         useless-if-before-free: recognize more variants
37207         * build-aux/useless-if-before-free: Also recognize e.g.,
37208         if (NULL != p) free (p);
37209
37210 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37211
37212         test-getaddrinfo: skip (don't fail) this test when there's no network
37213         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37214         on the presumption that it means you lack network access.
37215
37216 2009-01-26  Jim Meyering  <meyering@redhat.com>
37217
37218         fflush: avoid warnings on modern systems
37219         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37220         pos and result, into scopes where they're used.
37221
37222 2009-01-26  Eric Blake  <ebb9@byu.net>
37223
37224         Silence warning reintroduced by recent extensions patch.
37225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37226         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37227         autoconf.
37228
37229         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37230         * m4/00gnulib.m4: New file.
37231         * gnulib-tool (func_get_filelist): Always use it.
37232         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37233         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37234
37235 2009-01-25  Bruno Haible  <bruno@clisp.org>
37236
37237         Make test-quotearg work on MacOS X and AIX.
37238         * tests/test-quotearg.sh: New file.
37239         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37240         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37241         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37242         include <libintl.h>.
37243         (fake_locale): Remove variable.
37244         (gettext, dgettext, dcgettext): Remove functions.
37245         (main): Instead of setting a fake locale, set a real locale. Call
37246         textdomain and bindtextdomain.
37247         * modules/quotearg-tests (Files): Add the new files.
37248         (Depends-on): Add gettext, setenv, unsetenv.
37249         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37250         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37251         Augment TESTS_ENVIRONMENT.
37252
37253 2009-01-25  Bruno Haible  <bruno@clisp.org>
37254
37255         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37256         fr_FR.ISO8859-1 locale on MacOS X.
37257         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37258         ja_JP.eucJP locale on MacOS X.
37259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37260         zh_CN.GB18030 locale on MacOS X.
37261
37262 2009-01-25  Bruno Haible  <bruno@clisp.org>
37263
37264         Avoid link errors on MacOS X 10.3.
37265         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37266         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37267
37268 2009-01-25  Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37271         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37272         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37273         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37274         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37275         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37276         posix_spawnattr_init, posix_spawnattr_setsigmask,
37277         posix_spawnattr_setflags, posix_spawnattr_destroy.
37278
37279         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37280         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37281         * modules/execute (Files): Remove m4/posix_spawn.m4.
37282         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37283         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37284         posix_spawnattr_init, posix_spawnattr_setsigmask,
37285         posix_spawnattr_setflags, posix_spawnattr_destroy.
37286
37287 2009-01-25  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/glthread/threadlib.c: Include <stdlib.h>.
37290
37291 2009-01-25  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/glthread/threadlib.c (dummy): New declaration.
37294
37295 2009-01-25  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37298         multibyte characters also for the GB18030 encoding. Don't crash when
37299         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37300
37301 2009-01-25  Bruno Haible  <bruno@clisp.org>
37302
37303         Avoid redefining 'struct random_data' on OSF/1 5.1.
37304         * lib/stdlib.in.h: Include <random.h> if it exists.
37305         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37306         HAVE_RANDOM_H. Include <random.h> when testing whether
37307         'struct random_data' exists.
37308         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37309
37310 2009-01-25  Bruno Haible  <bruno@clisp.org>
37311
37312         Don't install charset.alias on MacOS X >= 10.3.
37313         * lib/localcharset.c (DARWIN7): New macro.
37314         (get_charset_aliases): Hardcode the result for Darwin7.
37315         * modules/localcharset (install-exec-local): Don't install
37316         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37317
37318 2009-01-25  Bruno Haible  <bruno@clisp.org>
37319
37320         Don't install charset.alias on mingw and Cygwin.
37321         * modules/localcharset (install-exec-local): Don't install
37322         charset.alias on mingw and Cygwin, if the file does not yet exist.
37323         The result for these platforms is hardcoded in localcharset.c.
37324
37325 2009-01-25  Bruno Haible  <bruno@clisp.org>
37326
37327         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37329         before requiring AC_USE_SYSTEM_EXTENSIONS.
37330
37331 2009-01-25  Jim Meyering  <meyering@redhat.com>
37332
37333         c-strtod: avoid warnings
37334         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37335         "assignment discards qualifiers from pointer target type" warnings.
37336
37337 2009-01-24  Bruno Haible  <bruno@clisp.org>
37338
37339         Add support for non-UTF-8 locales on MacOS X.
37340         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37341         canonical encodings. For Darwin 7 and newer, don't map traditional
37342         encodings to UTF-8.
37343         Reported by Vincent Lefevre <vincent@vinc17.org>
37344         at <http://savannah.gnu.org/bugs/?25235>.
37345
37346 2009-01-24  Bruno Haible  <bruno@clisp.org>
37347
37348         * doc/gnulib.texi (Obsolete modules): New section.
37349         Reported by Mike Frysinger <vapier@gentoo.org>.
37350
37351 2009-01-24  Bruno Haible  <bruno@clisp.org>
37352
37353         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37354         (%.dvi): New rule.
37355
37356 2009-01-24  Bruno Haible  <bruno@clisp.org>
37357
37358         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37359         Reported by Eric Blake.
37360
37361 2009-01-24  Bruno Haible  <bruno@clisp.org>
37362
37363         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37364         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37365         Reported by Gary V. Vaughan <gary@gnu.org>.
37366
37367 2009-01-24  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37370
37371 2009-01-23  Bruno Haible  <bruno@clisp.org>
37372
37373         Make c-strtod, c-strtold usable in libraries.
37374         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37375         (C_STRTOD): Call strdup instead of xstrdup.
37376         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37377         * modules/c-strtold (Depends-on): Likewise.
37378         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37379         * NEWS: Mention the change.
37380         Reported by Michael Gold <mgold@ncf.ca>.
37381
37382 2009-01-23  Jim Meyering  <meyering@redhat.com>
37383
37384         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37385         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37386         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37387
37388 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37389
37390         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37391         GNU CoreUtils.
37392         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37393         * modules/version-etc (Description): Update.
37394
37395 2009-01-22  Bruno Haible  <bruno@clisp.org>
37396
37397         Cache the C locale object.
37398         * lib/c-strtod.c (c_locale_cache): New variable.
37399         (c_locale): New function.
37400         (C_STRTOD): Use it, and don't call freelocale.
37401         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37402         Suggested by Paolo Bonzini.
37403
37404 2009-01-21  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37407         conditions other than overflow.
37408
37409 2009-01-21  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/c-strtod.c: Include errno.h.
37412         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37413         value from STRTOD_L and STRTOD.
37414
37415 2009-01-21  Bruno Haible  <bruno@clisp.org>
37416         and Jim Meyering  <meyering@redhat.com>
37417
37418         nanosleep: skip configure test (fail it) for apple universal builds
37419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37420         universal builds, assume that nanosleep does not work.
37421         * modules/nanosleep (Depends-on): Add multiarch.
37422
37423         mktime: skip configure test (fail it) for apple universal builds
37424         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37425         universal builds, assume that mktime does not work.
37426         * modules/mktime (Depends-on): Add multiarch.
37427
37428 2009-01-21  Eric Blake  <ebb9@byu.net>
37429
37430         multiarch: avoid expand-before-require warning
37431         * modules/multiarch (configure.ac): Require, rather than expand,
37432         gl_MULTIARCH.
37433         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37434         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37435         enforce that all clients require it.  Partial reversion of
37436         2008-12-29 patch.
37437
37438         error: avoid expand-before-require warning
37439         * modules/errno (configure.ac): Require, rather than expand,
37440         gl_HEADER_ERRNO_H.
37441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37442         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37443         enforce that all clients require it.
37444
37445         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37446         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37447         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37448         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37449
37450 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37451
37452         Revert:
37453         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37454
37455         regex: do not depend on obsolete modules.
37456         * modules/regex: Remove memcmp and memmove.
37457
37458 2009-01-20  Bruno Haible  <bruno@clisp.org>
37459
37460         Make the 'link' module link on Windows NT 4.
37461         * lib/link.c (_WIN32_WINNT): Don't define.
37462         (CreateHardLinkFuncType): New type.
37463         (CreateHardLinkFunc, initialized): New variables.
37464         (initialize): New function.
37465         (link): Invoke CreateHardLink indirectly through the function pointer.
37466
37467 2009-01-20  Bruno Haible  <bruno@clisp.org>
37468
37469         Fix compilation failure on mingw.
37470         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37471
37472 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37473
37474         * doc/c-strtod.texi: Mention a couple of restrictions.
37475
37476 2009-01-20  Jim Meyering  <meyering@redhat.com>
37477
37478         gettimeofday: move more declarations out of functions
37479         * lib/gettimeofday.c: Move extern declarations of tzset and
37480         gmtime out of containing functions.  Prompted by Bruno Haible.
37481
37482 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37483
37484         regex: do not depend on obsolete modules.
37485         * modules/regex: Remove memcmp and memmove.
37486
37487 2009-01-19  Bruno Haible  <bruno@clisp.org>
37488
37489         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37490         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37491         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37492         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37493         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37494
37495 2009-01-19  Bruno Haible  <bruno@clisp.org>
37496
37497         * tests/test-link.c: Include <errno.h>.
37498         (main): Exit with code 77 when a hard link cannot be created due to
37499         the file system.
37500         * tests/test-link.sh: Skip test when a hard link cannot be created due
37501         to the file system.
37502         Suggested by Eric Blake.
37503
37504 2009-01-19  Martin Lambers  <marlam@marlam.de>
37505
37506         * modules/link-tests: New file.
37507         * tests/test-link.sh: New file.
37508         * tests/test-link.c: New file.
37509
37510 2009-01-19  Eric Blake  <ebb9@byu.net>
37511
37512         doc: mention another function added in cygwin 1.7.0
37513         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37514         Another new function in cygwin 1.7.
37515
37516 2009-01-19  Bruno Haible  <bruno@clisp.org>
37517
37518         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37519         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37520         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37521         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37522         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37523         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37525         * m4/md4.m4 (gl_MD4): Likewise.
37526         * m4/md5.m4 (gl_MD5): Likewise.
37527         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37528         * m4/sha1.m4 (gl_SHA1): Likewise.
37529         * m4/sha256.m4 (gl_SHA256): Likewise.
37530         * m4/sha512.m4 (gl_SHA512): Likewise.
37531
37532 2009-01-19  Bruno Haible  <bruno@clisp.org>
37533
37534         * modules/uniname/uniname-tests (Depends-on): Add progname.
37535         * tests/uniname/test-uninames.c: Include progname.h.
37536         (main): Call set_program_name.
37537
37538         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37539         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37540         (main): Call set_program_name.
37541
37542         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37543         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37544         (main): Call set_program_name.
37545
37546         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37547         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37548         (main): Call set_program_name.
37549
37550         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37551         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37552         (main): Call set_program_name.
37553
37554         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37555         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37556         (main): Call set_program_name.
37557
37558         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37559         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37560         (main): Call set_program_name.
37561
37562         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37563         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37564         (main): Call set_program_name.
37565
37566         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37567         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37568         (main): Call set_program_name.
37569
37570 2009-01-19  Eric Blake  <ebb9@byu.net>
37571
37572         test-unistd: test previous patch
37573         * tests/test-unistd.c: Test *_FILENO macros.
37574
37575         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37576         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37577         Guarantee a definition.
37578         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37579         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37580         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37581         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37582         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37583         Likewise.
37584         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37585         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37586         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37587         Likewise.
37588         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37589         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37590         (STDERR_FILENO): Likewise.
37591         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37592         (STDERR_FILENO): Likewise.
37593         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37594         (STDERR_FILENO): Likewise.
37595         Reported by Elbert Pol.
37596
37597 2009-01-19  Eric Blake  <ebb9@byu.net>
37598
37599         doc: mention more functions added in cygwin 1.7.0
37600         * doc/posix-functions/abort.texi (abort): Update wording related
37601         to cygwin.
37602         * doc/posix-functions/daylight.texi (daylight): Likewise.
37603         * doc/posix-functions/optarg.texi (optarg): Likewise.
37604         * doc/posix-functions/optarg.texi (opterr): Likewise.
37605         * doc/posix-functions/optarg.texi (optind): Likewise.
37606         * doc/posix-functions/optarg.texi (optopt): Likewise.
37607         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37608         worked in 1.5.x, and was withdrawn in 1.7.
37609         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37610         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37611         cygwin versions.
37612         * doc/posix-functions/perror.texi (perror): Likewise.
37613         * doc/posix-functions/printf.texi (printf): Likewise.
37614         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37615         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37616         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37617         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37618         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37619         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37620         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37621         Likewise.
37622         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37623         Likewise.
37624         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37625         this function.
37626         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37627         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37628         Likewise.
37629         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37630         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37631         * doc/posix-functions/confstr.texi (confstr): Likewise.
37632         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37633         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37634         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37635         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37636         * doc/posix-functions/fputws.texi (fputws): Likewise.
37637         * doc/posix-functions/fwide.texi (fwide): Likewise.
37638         * doc/posix-functions/getwc.texi (getwc): Likewise.
37639         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37640         * doc/posix-functions/putwc.texi (putwc): Likewise.
37641         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37642         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37643         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37644         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37645         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37646         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37647         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37648         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37649         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37650         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37651         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37652
37653 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37654
37655         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37656         * lib/ioctl.c: Include <sys/ioctl.h>.
37657
37658 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37659
37660         * modules/getdate-tests (Depends-on): Add progname.
37661         * tests/test-getdate.c: Use progname module, to avoid link errors
37662         on non-glibc systems.
37663
37664 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37665
37666         * modules/filenamecat-tests (Depends-on): Add progname.
37667         * modules/fstrcmp-tests (Depends-on): Likewise.
37668
37669         * tests/test-filenamecat.c: Use progname module, to avoid link
37670         errors on non-glibc systems.
37671         * tests/test-fstrcmp.c: Likewise.
37672
37673 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37674
37675         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37676         * lib/gettimeofday.c: Move extern declaration out of function.
37677
37678 2009-01-18  Bruno Haible  <bruno@clisp.org>
37679
37680         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37681         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37682         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37683
37684 2009-01-18  Bruno Haible  <bruno@clisp.org>
37685
37686         * lib/strftime.c (MEMPCPY): Remove unused macro.
37687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37688
37689 2009-01-18  Martin Lambers  <marlam@marlam.de>
37690
37691         New module 'link'.
37692         * lib/unistd.in.h (link): New declaration.
37693         * lib/link.c: New file.
37694         * m4/link.m4: New file.
37695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37696         HAVE_LINK.
37697         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37698         * modules/link: New file.
37699         * doc/posix-functions/link.texi: Mention the new module.
37700
37701 2009-01-18  Bruno Haible  <bruno@clisp.org>
37702
37703         * tests/test-avltree_list.c (main): Call set_program_name.
37704         * tests/test-avltree_oset.c (main): Likewise.
37705         * tests/test-obstack-printf.c: Include progname.h.
37706         (main): Call set_program_name.
37707         * tests/test-quotearg.c: Include progname.h.
37708         (main): Call set_program_name.
37709         * tests/test-xmemdup0.c: Include progname.h.
37710         (main): Call set_program_name.
37711
37712 2009-01-18  Bruno Haible  <bruno@clisp.org>
37713
37714         New module 'alphasort'.
37715         * lib/dirent.in.h (alphasort): New declaration.
37716         * lib/alphasort.c: New file, from glibc with modifications.
37717         * m4/alphasort.m4: New file.
37718         * modules/alphasort: New file.
37719         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37720         HAVE_ALPHASORT.
37721         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37722         HAVE_ALPHASORT.
37723         * doc/posix-functions/alphasort.texi: Mention the new module and the
37724         portability problems.
37725
37726 2009-01-18  Bruno Haible  <bruno@clisp.org>
37727
37728         New module 'scandir'.
37729         * lib/dirent.in.h (scandir): New declaration.
37730         * lib/scandir.c: New file, from glibc with modifications.
37731         * m4/scandir.m4: New file.
37732         * modules/scandir: New file.
37733         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37734         HAVE_SCANDIR.
37735         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37736         HAVE_SCANDIR.
37737         * doc/posix-functions/scandir.texi: Mention the new module and the
37738         portability problems.
37739
37740 2009-01-17  Bruno Haible  <bruno@clisp.org>
37741
37742         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37743         Update documentation.
37744         (func_remove_suffix): Escape all dots in the suffix. Update
37745         documentation.
37746         (func_filter_filelist): Update documentation.
37747         Reported by Ralf Wildenhues.
37748
37749 2009-01-17  Bruno Haible  <bruno@clisp.org>
37750
37751         * modules/dprintf-posix-tests: New file.
37752         * tests/test-dprintf-posix.sh: New file.
37753         * tests/test-dprintf-posix.c: New file.
37754
37755         New modules 'dprintf', 'dprintf-posix'.
37756         * lib/stdio.in.h (dprintf): New declaration.
37757         * lib/dprintf.c: New file.
37758         * m4/dprintf.m4: New file.
37759         * m4/dprintf-posix.m4: New file.
37760         * modules/dprintf: New file.
37761         * modules/dprintf-posix: New file.
37762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37763         HAVE_DPRINTF, REPLACE_DPRINTF.
37764         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37765         HAVE_DPRINTF, REPLACE_DPRINTF.
37766         * doc/posix-functions/dprintf.texi: Mention the new modules.
37767
37768 2009-01-17  Bruno Haible  <bruno@clisp.org>
37769
37770         * modules/vdprintf-posix-tests: New file.
37771         * tests/test-vdprintf-posix.sh: New file.
37772         * tests/test-vdprintf-posix.c: New file.
37773
37774         New modules 'vdprintf', 'vdprintf-posix'.
37775         * lib/stdio.in.h (vdprintf): New declaration.
37776         * lib/vdprintf.c: New file.
37777         * m4/vdprintf.m4: New file.
37778         * m4/vdprintf-posix.m4: New file.
37779         * modules/vdprintf: New file.
37780         * modules/vdprintf-posix: New file.
37781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37782         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37783         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37784         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37785         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37786
37787 2009-01-17  Bruno Haible  <bruno@clisp.org>
37788
37789         Fix replacement of fopen on mingw.
37790         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37791         mingw.
37792
37793 2009-01-17  Bruno Haible  <bruno@clisp.org>
37794
37795         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37796         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37797
37798 2009-01-17  Bruno Haible  <bruno@clisp.org>
37799
37800         Avoid test-fflush2.sh failure on mingw.
37801         * tests/test-fflush2.c: Include binary-io.h.
37802         (main): Put standard input into binary mode.
37803         * modules/fflush-tests (Depends-on): Add binary-io.
37804
37805 2009-01-17  Bruno Haible  <bruno@clisp.org>
37806
37807         * lib/wchar.in.h: In another particular situation, include only the
37808         system's <wchar.h> file.
37809         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37810         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37811         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37812
37813 2009-01-17  Bruno Haible  <bruno@clisp.org>
37814
37815         Support for stripping executables in --enable-relocatable.
37816         * build-aux/install-reloc: Expect one more argument, or an environment
37817         variable RELOC_STRIP_PROG. If set, strip the destination program and
37818         its wrapper.
37819         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37820         RELOC_STRIP_PROG.
37821         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37822         to set RELOCATABLE_STRIP.
37823         * NEWS: Mention the new Makefile requirement.
37824
37825 2009-01-17  Bruno Haible  <bruno@clisp.org>
37826
37827         * build-aux/install-reloc: Remove debugging information left over by
37828         C compiler on MacOS X.
37829
37830 2009-01-17  Bruno Haible  <bruno@clisp.org>
37831
37832         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37833         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37834         _NSGetExecutablePath.
37835
37836 2009-01-16  Jim Meyering  <meyering@redhat.com>
37837
37838         strerror: avoid warnings about discarding "const"
37839         * lib/strerror.c (rpl_strerror): Instead of returning a const
37840         string from each and every "case", use a variable, and add a single
37841         cast after the switch.
37842
37843 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37844
37845         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37846
37847 2009-01-16  Bruno Haible  <bruno@clisp.org>
37848
37849         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37850         array initializer syntax that also works in C++ mode.
37851         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37852
37853 2009-01-16  Jim Meyering  <meyering@redhat.com>
37854
37855         poll: suppress a warning
37856         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37857         to ignore "...unsigned expression < 0 is always false" warnings.
37858
37859 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37860
37861         poll: remove declarations of unused variables
37862         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37863         sockbuf and optlen.
37864
37865 2009-01-15  Bruno Haible  <bruno@clisp.org>
37866
37867         Make fflush-after-ungetc POSIX compliant on BSD systems.
37868         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37869         (clear_ungetc_buffer): Implement also for other systems.
37870         (rpl_fflush): On glibc systems, invoke
37871         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37872         clear_ungetc_buffer after fetching the stream's position, not before.
37873
37874 2009-01-15  Bruno Haible  <bruno@clisp.org>
37875
37876         Make fflush-after-ungetc POSIX compliant on glibc systems.
37877         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37878         after ungetc.
37879         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37880         (rpl_fflush): On glibc systems, simply call the system's fflush
37881         function after clearing the ungetc buffer.
37882         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37883         Instead, lseek only to the end of file, then use the system's fseeko
37884         for the rest. On glibc systems, reset the EOF indicator bit.
37885
37886 2009-01-15  Jim Meyering  <meyering@redhat.com>
37887
37888         openmp.m4: revert quote-adding change, for portability to older autoconf
37889         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37890         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37891         Simon Josefsson noticed the problem when using autoconf-2.61.
37892
37893 2009-01-15  Bruno Haible  <bruno@clisp.org>
37894
37895         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37896         * tests/test-fflush2.c (ASSERT): Always fail.
37897         (main): Add two tests for fflush() after ungetc(), taking into account
37898         the Austin Group's clarification.
37899         Suggested by Eric Blake.
37900
37901 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37902
37903         mktime.m4: remove K&R-style function prototypes
37904         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37905         for the Sun C++ compiler.
37906
37907 2009-01-14  Bruno Haible  <bruno@clisp.org>
37908
37909         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37910         while including <wchar.h>.
37911         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37912         the system's <wchar.h> file.
37913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37914
37915 2009-01-14  Bruno Haible  <bruno@clisp.org>
37916
37917         * m4/csharp.m4: Don't mention gettext on the serial number line.
37918         * m4/csharpexec.m4: Likewise.
37919         * m4/eaccess.m4: Likewise.
37920         * m4/javaexec.m4: Likewise.
37921         * m4/sig_atomic_t.m4: Likewise.
37922         * m4/tmpdir.m4: Likewise.
37923         * m4/intldir.m4: Bump gettext version.
37924         * m4/lib-ld.m4: Likewise.
37925
37926 2009-01-14  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/progname.c (set_program_name): Add more comments.
37929         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37930
37931 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37932
37933         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37934         were sys/stat.h does not define it.
37935
37936 2009-01-14  Jim Meyering  <meyering@redhat.com>
37937
37938         many *.m4 files: improve m4 quoting
37939         99% of this change was performed by running the following commands:
37940         git ls-files | grep '\.m4$' | xargs perl -pi \
37941           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37942           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37943           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37944           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37945         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37946         The remainder were to add Copyright dates, increment serial numbers,
37947         undo some changes in comments, exclude m4/intl.m4, and add quotes
37948         around the "1" in ",1" where the unusual spacing prohibited the
37949         above regexps from doing the job.  For more details, see
37950         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37951         * m4/acl.m4: Modified.
37952         * m4/afs.m4: Likewise.
37953         * m4/alloca.m4: Likewise.
37954         * m4/argp.m4: Likewise.
37955         * m4/argz.m4: Likewise.
37956         * m4/atexit.m4: Likewise.
37957         * m4/bison-i18n.m4: Likewise.
37958         * m4/bison.m4: Likewise.
37959         * m4/byteswap.m4: Likewise.
37960         * m4/c-stack.m4: Likewise.
37961         * m4/c-strtod.m4: Likewise.
37962         * m4/calloc.m4: Likewise.
37963         * m4/canonicalize-lgpl.m4: Likewise.
37964         * m4/chown.m4: Likewise.
37965         * m4/clock_time.m4: Likewise.
37966         * m4/codeset.m4: Likewise.
37967         * m4/copy-file.m4: Likewise.
37968         * m4/csharp.m4: Likewise.
37969         * m4/csharpcomp.m4: Likewise.
37970         * m4/csharpexec.m4: Likewise.
37971         * m4/d-ino.m4: Likewise.
37972         * m4/d-type.m4: Likewise.
37973         * m4/dirfd.m4: Likewise.
37974         * m4/double-slash-root.m4: Likewise.
37975         * m4/eaccess.m4: Likewise.
37976         * m4/eealloc.m4: Likewise.
37977         * m4/environ.m4: Likewise.
37978         * m4/errno_h.m4: Likewise.
37979         * m4/euidaccess.m4: Likewise.
37980         * m4/execute.m4: Likewise.
37981         * m4/fatal-signal.m4: Likewise.
37982         * m4/fchdir.m4: Likewise.
37983         * m4/fcntl_h.m4: Likewise.
37984         * m4/fileblocks.m4: Likewise.
37985         * m4/filenamecat.m4: Likewise.
37986         * m4/findprog.m4: Likewise.
37987         * m4/flexmember.m4: Likewise.
37988         * m4/fnmatch.m4: Likewise.
37989         * m4/fopen.m4: Likewise.
37990         * m4/fpending.m4: Likewise.
37991         * m4/fprintf-posix.m4: Likewise.
37992         * m4/free.m4: Likewise.
37993         * m4/frexp.m4: Likewise.
37994         * m4/frexpl.m4: Likewise.
37995         * m4/fsusage.m4: Likewise.
37996         * m4/ftruncate.m4: Likewise.
37997         * m4/gc-camellia.m4: Likewise.
37998         * m4/gc-random.m4: Likewise.
37999         * m4/gc.m4: Likewise.
38000         * m4/getaddrinfo.m4: Likewise.
38001         * m4/getcwd-abort-bug.m4: Likewise.
38002         * m4/getcwd-path-max.m4: Likewise.
38003         * m4/getdate.m4: Likewise.
38004         * m4/getdomainname.m4: Likewise.
38005         * m4/getgroups.m4: Likewise.
38006         * m4/gethostname.m4: Likewise.
38007         * m4/gethrxtime.m4: Likewise.
38008         * m4/getline.m4: Likewise.
38009         * m4/getloadavg.m4: Likewise.
38010         * m4/getndelim2.m4: Likewise.
38011         * m4/getpass.m4: Likewise.
38012         * m4/gettext.m4: Likewise.
38013         * m4/gettime.m4: Likewise.
38014         * m4/gettimeofday.m4: Likewise.
38015         * m4/gnulib-common.m4: Likewise.
38016         * m4/group-member.m4: Likewise.
38017         * m4/host-os.m4: Likewise.
38018         * m4/iconv.m4: Likewise.
38019         * m4/iconv_open.m4: Likewise.
38020         * m4/inet_ntop.m4: Likewise.
38021         * m4/inet_pton.m4: Likewise.
38022         * m4/inline.m4: Likewise.
38023         * m4/intldir.m4: Likewise.
38024         * m4/intlmacosx.m4: Likewise.
38025         * m4/intmax.m4: Likewise.
38026         * m4/intmax_t.m4: Likewise.
38027         * m4/inttypes.m4: Likewise.
38028         * m4/inttypes_h.m4: Likewise.
38029         * m4/inttypes-pri.m4: Likewise.
38030         * m4/isapipe.m4: Likewise.
38031         * m4/isnand.m4: Likewise.
38032         * m4/isnanf.m4: Likewise.
38033         * m4/isnanl.m4: Likewise.
38034         * m4/javacomp.m4: Likewise.
38035         * m4/javaexec.m4: Likewise.
38036         * m4/jm-winsz1.m4: Likewise.
38037         * m4/jm-winsz2.m4: Likewise.
38038         * m4/lchown.m4: Likewise.
38039         * m4/lcmessage.m4: Likewise.
38040         * m4/ldexpl.m4: Likewise.
38041         * m4/lib-ld.m4: Likewise.
38042         * m4/lib-link.m4: Likewise.
38043         * m4/libsigsegv.m4: Likewise.
38044         * m4/link-follow.m4: Likewise.
38045         * m4/localcharset.m4: Likewise.
38046         * m4/locale-fr.m4: Likewise.
38047         * m4/locale-ja.m4: Likewise.
38048         * m4/locale-tr.m4: Likewise.
38049         * m4/locale-zh.m4: Likewise.
38050         * m4/lock.m4: Likewise.
38051         * m4/longlong.m4: Likewise.
38052         * m4/ls-mntd-fs.m4: Likewise.
38053         * m4/lstat.m4: Likewise.
38054         * m4/malloc.m4: Likewise.
38055         * m4/mathl.m4: Likewise.
38056         * m4/mbrtowc.m4: Likewise.
38057         * m4/mbstate_t.m4: Likewise.
38058         * m4/mbswidth.m4: Likewise.
38059         * m4/memchr.m4: Likewise.
38060         * m4/memcmp.m4: Likewise.
38061         * m4/memcpy.m4: Likewise.
38062         * m4/memmem.m4: Likewise.
38063         * m4/memmove.m4: Likewise.
38064         * m4/mempcpy.m4: Likewise.
38065         * m4/memrchr.m4: Likewise.
38066         * m4/memset.m4: Likewise.
38067         * m4/minmax.m4: Likewise.
38068         * m4/mkdir-slash.m4: Likewise.
38069         * m4/mkdtemp.m4: Likewise.
38070         * m4/mktime.m4: Likewise.
38071         * m4/mmap-anon.m4: Likewise.
38072         * m4/mountlist.m4: Likewise.
38073         * m4/nanosleep.m4: Likewise.
38074         * m4/nls.m4: Likewise.
38075         * m4/nocrash.m4: Likewise.
38076         * m4/open.m4: Likewise.
38077         * m4/openat.m4: Likewise.
38078         * m4/openmp.m4: Likewise.
38079         * m4/pathmax.m4: Likewise.
38080         * m4/perl.m4: Likewise.
38081         * m4/physmem.m4: Likewise.
38082         * m4/pipe.m4: Likewise.
38083         * m4/po.m4: Likewise.
38084         * m4/poll.m4: Likewise.
38085         * m4/posixtm.m4: Likewise.
38086         * m4/posixver.m4: Likewise.
38087         * m4/printf-frexp.m4: Likewise.
38088         * m4/printf-frexpl.m4: Likewise.
38089         * m4/printf-posix.m4: Likewise.
38090         * m4/printf-posix-rpl.m4: Likewise.
38091         * m4/printf.m4: Likewise.
38092         * m4/progtest.m4: Likewise.
38093         * m4/putenv.m4: Likewise.
38094         * m4/readline.m4: Likewise.
38095         * m4/readlink.m4: Likewise.
38096         * m4/readutmp.m4: Likewise.
38097         * m4/realloc.m4: Likewise.
38098         * m4/regex.m4: Likewise.
38099         * m4/relocatable.m4: Likewise.
38100         * m4/relocatable-lib.m4: Likewise.
38101         * m4/rename-dest-slash.m4: Likewise.
38102         * m4/rename.m4: Likewise.
38103         * m4/rmdir-errno.m4: Likewise.
38104         * m4/rmdir.m4: Likewise.
38105         * m4/roundf.m4: Likewise.
38106         * m4/roundl.m4: Likewise.
38107         * m4/rpmatch.m4: Likewise.
38108         * m4/save-cwd.m4: Likewise.
38109         * m4/selinux-selinux-h.m4: Likewise.
38110         * m4/setenv.m4: Likewise.
38111         * m4/settime.m4: Likewise.
38112         * m4/sig2str.m4: Likewise.
38113         * m4/sig_atomic_t.m4: Likewise.
38114         * m4/signalblocking.m4: Likewise.
38115         * m4/signbit.m4: Likewise.
38116         * m4/sigpipe.m4: Likewise.
38117         * m4/sockets.m4: Likewise.
38118         * m4/sockpfaf.m4: Likewise.
38119         * m4/st_dm_mode.m4: Likewise.
38120         * m4/stat-time.m4: Likewise.
38121         * m4/stdbool.m4: Likewise.
38122         * m4/stdint.m4: Likewise.
38123         * m4/stdint_h.m4: Likewise.
38124         * m4/stpcpy.m4: Likewise.
38125         * m4/stpncpy.m4: Likewise.
38126         * m4/strcase.m4: Likewise.
38127         * m4/strchrnul.m4: Likewise.
38128         * m4/strcspn.m4: Likewise.
38129         * m4/strdup.m4: Likewise.
38130         * m4/strftime.m4: Likewise.
38131         * m4/strndup.m4: Likewise.
38132         * m4/strnlen.m4: Likewise.
38133         * m4/strpbrk.m4: Likewise.
38134         * m4/strptime.m4: Likewise.
38135         * m4/strsep.m4: Likewise.
38136         * m4/strtod.m4: Likewise.
38137         * m4/strtoimax.m4: Likewise.
38138         * m4/strtok_r.m4: Likewise.
38139         * m4/strtol.m4: Likewise.
38140         * m4/strtoll.m4: Likewise.
38141         * m4/strtoul.m4: Likewise.
38142         * m4/strtoull.m4: Likewise.
38143         * m4/strtoumax.m4: Likewise.
38144         * m4/strverscmp.m4: Likewise.
38145         * m4/threadlib.m4: Likewise.
38146         * m4/timegm.m4: Likewise.
38147         * m4/tm_gmtoff.m4: Likewise.
38148         * m4/tmpdir.m4: Likewise.
38149         * m4/tmpfile.m4: Likewise.
38150         * m4/tzset.m4: Likewise.
38151         * m4/uintmax_t.m4: Likewise.
38152         * m4/unlinkdir.m4: Likewise.
38153         * m4/unlocked-io.m4: Likewise.
38154         * m4/uptime.m4: Likewise.
38155         * m4/userspec.m4: Likewise.
38156         * m4/utimbuf.m4: Likewise.
38157         * m4/utime.m4: Likewise.
38158         * m4/utimes-null.m4: Likewise.
38159         * m4/utimes.m4: Likewise.
38160         * m4/vararrays.m4: Likewise.
38161         * m4/vasnprintf.m4: Likewise.
38162         * m4/vfprintf-posix.m4: Likewise.
38163         * m4/vprintf-posix.m4: Likewise.
38164         * m4/wait-process.m4: Likewise.
38165         * m4/wchar_t.m4: Likewise.
38166         * m4/wint_t.m4: Likewise.
38167         * m4/write-any-file.m4: Likewise.
38168         * m4/yield.m4: Likewise.
38169
38170 2009-01-13  Bruno Haible  <bruno@clisp.org>
38171
38172         Avoid test-copy-file.sh failures when ACL support insufficient.
38173         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38174         TESTS_ENVIRONMENT.
38175         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38176         Reported by Jim Meyering.
38177
38178 2009-01-13  Bruno Haible  <bruno@clisp.org>
38179
38180         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38181         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38182         * modules/unistdio/u8-printf-parse (Files): Likewise.
38183         * modules/unistdio/u32-printf-parse (Files): Likewise.
38184         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38185
38186 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38187
38188         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38189         and m4/inttypes_h.m4 too.
38190
38191 2009-01-12  Eric Blake  <ebb9@byu.net>
38192
38193         tests: IRIX 6.2 cc can't compile -0.0 into .data
38194         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38195         rather than at compile-time.
38196         * tests/test-floorl.c (minus_zero): Likewise.
38197         * tests/test-frexpl.c (minus_zero): Likewise.
38198         * tests/test-isnan.c (minus_zerol): Likewise.
38199         * tests/test-isnanl.h (minus_zero): Likewise.
38200         * tests/test-ldexpl.c (minus_zero): Likewise.
38201         * tests/test-roundl.c (minus_zero): Likewise.
38202         * tests/test-signbit.c (minus_zerol): Likewise.
38203         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38204         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38205         * tests/test-truncl.c (minus_zero): Likewise.
38206         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38207         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38208         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38209
38210 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38211
38212         regex: fix glibc bug 9697
38213         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38214         handling.
38215
38216 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38217
38218         regex: fix glibc bug 697
38219         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38220         being NULL also if there are no backreferences.
38221
38222 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38223
38224         regex: merge glibc changes
38225         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38226         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38227         re_string_skip_chars, re_string_reconstruct): Likewise.
38228         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38229
38230 2009-01-07  Jim Meyering  <meyering@redhat.com>
38231
38232         poll: filter through cppi
38233         * lib/poll.c: Indent cpp directives to reflect nesting.
38234
38235 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38236
38237         poll: don't return uninitialized
38238         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38239
38240 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38241
38242         avoid compile failure on AIX 6.1
38243         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38244         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38245
38246 2009-01-04  Jim Meyering  <meyering@redhat.com>
38247
38248         remove duplicate inclusion of <stdio.h>
38249         * tests/test-fprintf-posix.c: Likewise.
38250         * tests/test-printf-posix.c: Likewise.
38251         * tests/test-snprintf-posix.c: Likewise.
38252         * tests/test-sprintf-posix.c: Likewise.
38253         * tests/test-vasprintf-posix.c: Likewise.
38254         * tests/test-vfprintf-posix.c: Likewise.
38255         * tests/test-vprintf-posix.c: Likewise.
38256         * tests/test-vsnprintf-posix.c: Likewise.
38257         * tests/test-vsprintf-posix.c: Likewise.
38258
38259 2009-01-03  Jim Meyering  <meyering@redhat.com>
38260
38261         gnulib-tool: fix sed-based filtering
38262         * gnulib-tool (func_filter_filelist): Remove extra backslash
38263         in sed_fff_filter definition.
38264
38265 2009-01-02  Jim Meyering  <meyering@redhat.com>
38266
38267         strftime: avoid compilation failure on Solaris 2.6
38268         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38269         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38270         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38271         be available.  Reported by Tom G. Christensen.  Details in
38272         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38273
38274 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38275             Bruno Haible  <bruno@clisp.org>
38276
38277         Speed up gnulib-tool by doing more string processing through shell
38278         built-ins.
38279         * gnulib-tool (fast_func_append): New variable.
38280         (func_remove_prefix, func_remove_suffix): New functions.
38281         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38282         (func_filter_filelist): New function.
38283         (func_get_dependencies): Use func_remove_suffix instead of sed.
38284         (func_get_automake_snippet): Use func_filter_filelist instead of a
38285         subshell and sed invocation.
38286
38287 2009-01-01  Bruno Haible  <bruno@clisp.org>
38288
38289         Fix a security bug.
38290         * gnulib-tool (func_import, import, update): Don't allow the characters
38291         '"', '$', '`', '\' in macro arguments that become part of commands that
38292         are evaluated.
38293
38294 2009-01-01  Bruno Haible  <bruno@clisp.org>
38295
38296         * gnulib-tool (func_reset_sigpipe): Add more comments.
38297
38298 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38299
38300         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38301         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38302         already know the answer.
38303
38304 2009-01-01  Jim Meyering  <meyering@redhat.com>
38305
38306         * lib/version-etc.c (version_etc_va): Update copyright year.
38307
38308 2008-12-30  Bruno Haible  <bruno@clisp.org>
38309
38310         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38311         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38312         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38313
38314 2008-12-29  Eric Blake  <ebb9@byu.net>
38315
38316         multiarch: avoid autoconf AC_REQUIRE bug
38317         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38318         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38319         2.63 and older.
38320         Reported by Bruno Haible, and analyzed in
38321         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38322
38323 2008-12-29  Bruno Haible  <bruno@clisp.org>
38324
38325         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38326         files in subdirectories correctly.
38327         Reported by Ralf Wildenhues.
38328
38329 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38330
38331         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38332         rather than 'join FILE -', for Solaris join.
38333
38334 2008-12-29  Bruno Haible  <bruno@clisp.org>
38335
38336         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38337         quoting.
38338         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38339         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38340         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38341         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38342         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38343         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38344         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38345         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38346         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38347         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38348         * m4/nls.m4 (AM_NLS): Likewise.
38349         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38350         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38351         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38352         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38353         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38355         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38356         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38357         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38358         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38359         * m4/xsize.m4 (gl_XSIZE): Likewise.
38360         Suggested by Jim Meyering.
38361
38362 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38363
38364         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38365         * lib/parse-duration.c: use a switch instead of cascading if's.
38366
38367 2008-12-29  Eric Blake  <ebb9@byu.net>
38368
38369         wchar.h: supply WEOF on Irix 5.3
38370         * lib/wchar.in.h (wint_t): Also supply WEOF.
38371         * lib/wctype.in.h (wint_t): Likewise.
38372         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38373         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38374         Reported by Tom G. Christensen.
38375
38376 2008-12-26  Bruno Haible  <bruno@clisp.org>
38377
38378         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38379         i486, i586, i686.
38380
38381 2008-12-26  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38384
38385 2008-12-26  Bruno Haible  <bruno@clisp.org>
38386
38387         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38388         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38389         not __STDC_CONSTANT_MACROS.
38390         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38391
38392 2008-12-25  Bruno Haible  <bruno@clisp.org>
38393
38394         Add support for universal builds to vasnprintf.
38395         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38396         universal builds, guess no.
38397         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38398         * modules/vasprintf-posix (Depends-on): Likewise.
38399         * modules/fprintf-posix (Depends-on): Likewise.
38400         * modules/vfprintf-posix (Depends-on): Likewise.
38401         * modules/snprintf-posix (Depends-on): Likewise.
38402         * modules/vsnprintf-posix (Depends-on): Likewise.
38403         * modules/sprintf-posix (Depends-on): Likewise.
38404         * modules/vsprintf-posix (Depends-on): Likewise.
38405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38406         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38407         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38409         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38410         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38411         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38412
38413         Add support for universal builds to <inttypes.h>.
38414         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38415         _SCNu64_PREFIX): In Apple
38416         universal builds, define directly, using _LP64.
38417         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38418         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38419         * modules/inttypes (Depends-on): Add multiarch.
38420         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38421
38422         Add support for universal builds to <stdint.h>.
38423         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38424         universal builds, define directly, using _LP64.
38425         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38426         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38427         and size_t.
38428         * modules/stdint (Depends-on): Add multiarch.
38429         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38430
38431         New module 'multiarch'.
38432         * modules/multiarch: New file.
38433         * m4/multiarch.m4: New file.
38434
38435 2008-12-25  Bruno Haible  <bruno@clisp.org>
38436
38437         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38438
38439 2008-12-25  Bruno Haible  <bruno@clisp.org>
38440
38441         * modules/btowc (License): Relicense under LGPLv2+.
38442         * modules/mbsinit (License): Likewise.
38443         * modules/mbrtowc (License): Likewise.
38444         * modules/wcrtomb (License): Likewise.
38445         * modules/streq (License): Likewise.
38446         Reported by David Lutterkort <lutter@redhat.com>.
38447
38448 2008-12-23  Bruno Haible  <bruno@clisp.org>
38449
38450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38451
38452 2008-12-23  Bruno Haible  <bruno@clisp.org>
38453
38454         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38456         GETADDRINFO_LIB, not in LIBS.
38457         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38458         * modules/canon-host (Link): Likewise.
38459         * NEWS: Mention the change.
38460         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38461         GETADDRINFO_LIB.
38462
38463 2008-12-22  Bruno Haible  <bruno@clisp.org>
38464
38465         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38466         * doc/posix-functions/iswalpha_l.texi: Likewise.
38467         * doc/posix-functions/iswblank_l.texi: Likewise.
38468         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38469         * doc/posix-functions/iswctype_l.texi: Likewise.
38470         * doc/posix-functions/iswdigit_l.texi: Likewise.
38471         * doc/posix-functions/iswgraph_l.texi: Likewise.
38472         * doc/posix-functions/iswlower_l.texi: Likewise.
38473         * doc/posix-functions/iswprint_l.texi: Likewise.
38474         * doc/posix-functions/iswpunct_l.texi: Likewise.
38475         * doc/posix-functions/iswspace_l.texi: Likewise.
38476         * doc/posix-functions/iswupper_l.texi: Likewise.
38477         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38478         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38479         * doc/posix-functions/open_wmemstream.texi: Likewise.
38480         * doc/posix-functions/swscanf.texi: Likewise.
38481         * doc/posix-functions/towctrans_l.texi: Likewise.
38482         * doc/posix-functions/towlower.texi: Likewise.
38483         * doc/posix-functions/towlower_l.texi: Likewise.
38484         * doc/posix-functions/towupper.texi: Likewise.
38485         * doc/posix-functions/towupper_l.texi: Likewise.
38486         * doc/posix-functions/vfwprintf.texi: Likewise.
38487         * doc/posix-functions/vfwscanf.texi: Likewise.
38488         * doc/posix-functions/vswscanf.texi: Likewise.
38489         * doc/posix-functions/vwprintf.texi: Likewise.
38490         * doc/posix-functions/vwscanf.texi: Likewise.
38491         * doc/posix-functions/wcpcpy.texi: Likewise.
38492         * doc/posix-functions/wcpncpy.texi: Likewise.
38493         * doc/posix-functions/wcscasecmp.texi: Likewise.
38494         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38495         * doc/posix-functions/wcscoll_l.texi: Likewise.
38496         * doc/posix-functions/wcsdup.texi: Likewise.
38497         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38498         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38499         * doc/posix-functions/wcsnlen.texi: Likewise.
38500         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38501         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38502         * doc/posix-functions/wctrans_l.texi: Likewise.
38503         * doc/posix-functions/wctype_l.texi: Likewise.
38504         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38505         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38506         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38507         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38508         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38509         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38510         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38511         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38512         * doc/glibc-functions/wcschrnul.texi: Likewise.
38513         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38514         * doc/glibc-functions/wcstod_l.texi: Likewise.
38515         * doc/glibc-functions/wcstof_l.texi: Likewise.
38516         * doc/glibc-functions/wcstol_l.texi: Likewise.
38517         * doc/glibc-functions/wcstold_l.texi: Likewise.
38518         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38519         * doc/glibc-functions/wcstoq.texi: Likewise.
38520         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38521         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38522         * doc/glibc-functions/wcstouq.texi: Likewise.
38523         * doc/glibc-functions/wmempcpy.texi: Likewise.
38524
38525 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38526             Eric Blake  <ebb9@byu.net>
38527             Paolo Bonzini  <bonzini@gnu.org>
38528             Bruno Haible  <bruno@clisp.org>
38529
38530         Make c-stack work on Haiku.
38531         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38532         (c_stack_action): Use SA_ONSTACK flag.
38533
38534 2008-12-22  Bruno Haible  <bruno@clisp.org>
38535
38536         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38537
38538 2008-12-22  Bruno Haible  <bruno@clisp.org>
38539
38540         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38541         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38542         being overridden.
38543         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38544         New macros.
38545         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38547         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38548         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38549
38550 2008-12-22  Bruno Haible  <bruno@clisp.org>
38551
38552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38553         from test code.
38554
38555 2008-12-22  Eric Blake  <ebb9@byu.net>
38556
38557         Avoid gcc warnings on cygwin.
38558         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38559         Avoid unused variable.
38560         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38561         Likewise.
38562
38563 2008-12-22  Bruno Haible  <bruno@clisp.org>
38564
38565         Remove HAVE_MBRTOWC conditionals.
38566         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38567         (mbscasecmp): Assume mbrtowc function.
38568         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38569         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38570         * lib/mbschr.c: Include mbuiter.h unconditionally.
38571         (mbschr): Assume mbrtowc function.
38572         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38573         (mbscspn): Assume mbrtowc function.
38574         * lib/mbslen.c: Include mbuiter.h unconditionally.
38575         (mbslen): Assume mbrtowc function.
38576         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38577         (mbsncasecmp): Assume mbrtowc function.
38578         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38579         (mbsnlen): Assume mbrtowc function.
38580         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38581         (mbspbrk): Assume mbrtowc function.
38582         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38583         (mbspcasecmp): Assume mbrtowc function.
38584         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38585         (mbsrchr): Assume mbrtowc function.
38586         * lib/mbssep.c: Include mbuiter.h unconditionally.
38587         (mbssep): Assume mbrtowc function.
38588         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38589         (mbsspn): Assume mbrtowc function.
38590         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38591         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38592         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38593         (mbstok_r): Assume mbrtowc function.
38594         * lib/propername.c: Include mbuiter.h unconditionally.
38595         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38596         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38597         (trim2): Assume mbrtowc function.
38598         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38599         (mbsnwidth): Assume mbrtowc function.
38600         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38601         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38602         fallback definitions.
38603         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38604
38605 2008-12-22  Bruno Haible  <bruno@clisp.org>
38606
38607         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38608
38609 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38610
38611         * modules/regex: Request emulations for the mb*/wc* functions we need.
38612         * m4/regex.m4: Don't look for those functions here.
38613         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38614
38615 2008-12-22  Bruno Haible  <bruno@clisp.org>
38616
38617         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38618
38619 2008-12-21  Bruno Haible  <bruno@clisp.org>
38620
38621         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38622         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38623         (Include): Remove conditionalization.
38624         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38625         (Include): Remove conditionalization.
38626         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38627         (Include): Remove conditionalization.
38628         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38629         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38630         * NEWS: Mention the change.
38631         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38632         via Sergey Poznyakoff <gray@gnu.org.ua>.
38633
38634 2008-12-21  Bruno Haible  <bruno@clisp.org>
38635
38636         * MODULES.html.sh (Extended multibyte and wide character utilities
38637         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38638         wcrtomb, wcsrtombs.
38639         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38640         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38641         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38642         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38643
38644 2008-12-21  Bruno Haible  <bruno@clisp.org>
38645
38646         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38647
38648 2008-12-21  Bruno Haible  <bruno@clisp.org>
38649
38650         * modules/wcsnrtombs-tests: New file.
38651         * tests/test-wcsnrtombs1.sh: New file.
38652         * tests/test-wcsnrtombs2.sh: New file.
38653         * tests/test-wcsnrtombs3.sh: New file.
38654         * tests/test-wcsnrtombs4.sh: New file.
38655         * tests/test-wcsnrtombs.c: New file.
38656
38657         New module 'wcsnrtombs'.
38658         * lib/wchar.in.h (wcsnrtombs): New declaration.
38659         * lib/wcsnrtombs.c: New file.
38660         * lib/wcsrtombs-state.c: New file.
38661         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38662         (internal_state): Remove variable.
38663         * m4/wcsnrtombs.m4: New file.
38664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38665         compilation units.
38666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38667         HAVE_WCSNRTOMBS.
38668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38669         HAVE_WCSNRTOMBS.
38670         * modules/wcsnrtombs: New file.
38671         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38672         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38673
38674 2008-12-21  Bruno Haible  <bruno@clisp.org>
38675
38676         * modules/wcsrtombs-tests: New file.
38677         * tests/test-wcsrtombs1.sh: New file.
38678         * tests/test-wcsrtombs2.sh: New file.
38679         * tests/test-wcsrtombs3.sh: New file.
38680         * tests/test-wcsrtombs4.sh: New file.
38681         * tests/test-wcsrtombs.c: New file.
38682
38683         New module 'wcsrtombs'.
38684         * lib/wchar.in.h (wcsrtombs): New declaration.
38685         * lib/wcsrtombs.c: New file.
38686         * m4/wcsrtombs.m4: New file.
38687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38688         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38690         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38691         * modules/wcsrtombs: New file.
38692         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38693         bugs.
38694
38695 2008-12-21  Bruno Haible  <bruno@clisp.org>
38696
38697         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38698         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38699         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38700         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38701         if not correct.
38702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38703         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38704         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38705         m4/locale-zh.m4, m4/codeset.m4.
38706         * doc/posix-functions/wcrtomb.texi: Document the bug.
38707
38708 2008-12-21  Bruno Haible  <bruno@clisp.org>
38709
38710         Work around a btowc() bug on IRIX 6.5.
38711         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38712         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38713         REPLACE_WTOBC if not.
38714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38715         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38716         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38717
38718 2008-12-21  Bruno Haible  <bruno@clisp.org>
38719
38720         * modules/wcrtomb-tests: New file.
38721         * tests/test-wcrtomb.sh: New file.
38722         * tests/test-wcrtomb.c: New file.
38723
38724         New module 'wcrtomb'.
38725         * lib/wchar.in.h (wcrtomb): New declaration.
38726         * lib/wcrtomb.c: New file.
38727         * m4/wcrtomb.m4: New file.
38728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38729         HAVE_WCRTOMB.
38730         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38731         HAVE_WCRTOMB.
38732         * modules/wcrtomb: New file.
38733         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38734
38735 2008-12-21  Bruno Haible  <bruno@clisp.org>
38736
38737         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38738         * modules/mbsrtowcs (Files): Likewise.
38739         * modules/wctob (Files): Likewise.
38740         * modules/c-strcase-tests (Files): Likewise.
38741         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38742         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38743         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38744         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38745         * modules/vasnprintf-posix-tests (Files): Likewise.
38746
38747 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38748
38749         gitlog-to-changelog: pass all command-line arguments to git-log
38750         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38751         it is sometimes convenient to filter the commits in various ways.
38752         gitlog-to-changelog only allows --since to specify a start date,
38753         but git-log itself supports many other filtering mechanisms.
38754         At the moment, I want to filter by branch name.  Rather than
38755         adding a --branch option to gitlog-to-changelog, it seems more
38756         flexible to simply pass all options directly to git-log and let
38757         git do the work.  Notice that this effectively makes --since a
38758         redundant option for gitlog-to-changelog, but removing it would
38759         require current usage to change since calls would then require
38760         an additional '--'.
38761
38762 2008-12-21  Bruno Haible  <bruno@clisp.org>
38763
38764         * modules/mbsnrtowcs-tests: New file.
38765         * tests/test-mbsnrtowcs1.sh: New file.
38766         * tests/test-mbsnrtowcs2.sh: New file.
38767         * tests/test-mbsnrtowcs3.sh: New file.
38768         * tests/test-mbsnrtowcs4.sh: New file.
38769         * tests/test-mbsnrtowcs.c: New file.
38770
38771         New module 'mbsnrtowcs'.
38772         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38773         * lib/mbsnrtowcs.c: New file.
38774         * lib/mbsrtowcs-state.c: New file.
38775         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38776         (internal_state): Remove variable.
38777         * m4/mbsnrtowcs.m4: New file.
38778         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38779         compilation units.
38780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38781         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38782         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38783         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38784         * modules/mbsnrtowcs: New file.
38785         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38786         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38787         portability problem.
38788
38789 2008-12-21  Bruno Haible  <bruno@clisp.org>
38790
38791         Work around mbsrtowcs bug.
38792         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38793         (gl_FUNC_MBSRTOWCS): Invoke it.
38794         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38795         m4/locale-zh.m4.
38796         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38797
38798 2008-12-21  Bruno Haible  <bruno@clisp.org>
38799
38800         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38801
38802 2008-12-21  Bruno Haible  <bruno@clisp.org>
38803
38804         Update doc for AIX.
38805         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38806         16-bit wchar_t type.
38807         * doc/posix-functions/btowc.texi: Likewise.
38808         * doc/posix-functions/fgetwc.texi: Likewise.
38809         * doc/posix-functions/fgetws.texi: Likewise.
38810         * doc/posix-functions/fputwc.texi: Likewise.
38811         * doc/posix-functions/fputws.texi: Likewise.
38812         * doc/posix-functions/fwide.texi: Likewise.
38813         * doc/posix-functions/fwprintf.texi: Likewise.
38814         * doc/posix-functions/fwscanf.texi: Likewise.
38815         * doc/posix-functions/getwchar.texi: Likewise.
38816         * doc/posix-functions/getwc.texi: Likewise.
38817         * doc/posix-functions/iswalnum.texi: Likewise.
38818         * doc/posix-functions/iswalpha.texi: Likewise.
38819         * doc/posix-functions/iswblank.texi: Likewise.
38820         * doc/posix-functions/iswcntrl.texi: Likewise.
38821         * doc/posix-functions/iswctype.texi: Likewise.
38822         * doc/posix-functions/iswdigit.texi: Likewise.
38823         * doc/posix-functions/iswgraph.texi: Likewise.
38824         * doc/posix-functions/iswlower.texi: Likewise.
38825         * doc/posix-functions/iswprint.texi: Likewise.
38826         * doc/posix-functions/iswpunct.texi: Likewise.
38827         * doc/posix-functions/iswspace.texi: Likewise.
38828         * doc/posix-functions/iswupper.texi: Likewise.
38829         * doc/posix-functions/iswxdigit.texi: Likewise.
38830         * doc/posix-functions/mbrtowc.texi: Likewise.
38831         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38832         * doc/posix-functions/mbstowcs.texi: Likewise.
38833         * doc/posix-functions/mbtowc.texi: Likewise.
38834         * doc/posix-functions/putwchar.texi: Likewise.
38835         * doc/posix-functions/putwc.texi: Likewise.
38836         * doc/posix-functions/swprintf.texi: Likewise.
38837         * doc/posix-functions/tolower.texi: Likewise.
38838         * doc/posix-functions/toupper.texi: Likewise.
38839         * doc/posix-functions/towctrans.texi: Likewise.
38840         * doc/posix-functions/ungetwc.texi: Likewise.
38841         * doc/posix-functions/vswprintf.texi: Likewise.
38842         * doc/posix-functions/wcrtomb.texi: Likewise.
38843         * doc/posix-functions/wcscat.texi: Likewise.
38844         * doc/posix-functions/wcschr.texi: Likewise.
38845         * doc/posix-functions/wcscmp.texi: Likewise.
38846         * doc/posix-functions/wcscoll.texi: Likewise.
38847         * doc/posix-functions/wcscpy.texi: Likewise.
38848         * doc/posix-functions/wcscspn.texi: Likewise.
38849         * doc/posix-functions/wcsftime.texi: Likewise.
38850         * doc/posix-functions/wcslen.texi: Likewise.
38851         * doc/posix-functions/wcsncat.texi: Likewise.
38852         * doc/posix-functions/wcsncmp.texi: Likewise.
38853         * doc/posix-functions/wcsncpy.texi: Likewise.
38854         * doc/posix-functions/wcspbrk.texi: Likewise.
38855         * doc/posix-functions/wcsrchr.texi: Likewise.
38856         * doc/posix-functions/wcsrtombs.texi: Likewise.
38857         * doc/posix-functions/wcsspn.texi: Likewise.
38858         * doc/posix-functions/wcsstr.texi: Likewise.
38859         * doc/posix-functions/wcstod.texi: Likewise.
38860         * doc/posix-functions/wcstof.texi: Likewise.
38861         * doc/posix-functions/wcstoimax.texi: Likewise.
38862         * doc/posix-functions/wcstok.texi: Likewise.
38863         * doc/posix-functions/wcstold.texi: Likewise.
38864         * doc/posix-functions/wcstoll.texi: Likewise.
38865         * doc/posix-functions/wcstol.texi: Likewise.
38866         * doc/posix-functions/wcstombs.texi: Likewise.
38867         * doc/posix-functions/wcstoull.texi: Likewise.
38868         * doc/posix-functions/wcstoul.texi: Likewise.
38869         * doc/posix-functions/wcstoumax.texi: Likewise.
38870         * doc/posix-functions/wcswidth.texi: Likewise.
38871         * doc/posix-functions/wcsxfrm.texi: Likewise.
38872         * doc/posix-functions/wctob.texi: Likewise.
38873         * doc/posix-functions/wctomb.texi: Likewise.
38874         * doc/posix-functions/wctrans.texi: Likewise.
38875         * doc/posix-functions/wctype.texi: Likewise.
38876         * doc/posix-functions/wcwidth.texi: Likewise.
38877         * doc/posix-functions/wmemchr.texi: Likewise.
38878         * doc/posix-functions/wmemcmp.texi: Likewise.
38879         * doc/posix-functions/wmemcpy.texi: Likewise.
38880         * doc/posix-functions/wmemmove.texi: Likewise.
38881         * doc/posix-functions/wmemset.texi: Likewise.
38882         * doc/posix-functions/wprintf.texi: Likewise.
38883         * doc/posix-functions/wscanf.texi: Likewise.
38884
38885 2008-12-21  Bruno Haible  <bruno@clisp.org>
38886
38887         Update doc for HP-UX 11.11.
38888         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38889         in HP-UX version 11.00, not in all versions of HP-UX 11.
38890         * doc/posix-functions/fwide.texi: Likewise.
38891         * doc/posix-functions/fwprintf.texi: Likewise.
38892         * doc/posix-functions/fwscanf.texi: Likewise.
38893         * doc/posix-functions/inet_ntop.texi: Likewise.
38894         * doc/posix-functions/inet_pton.texi: Likewise.
38895         * doc/posix-functions/mbrlen.texi: Likewise.
38896         * doc/posix-functions/mbrtowc.texi: Likewise.
38897         * doc/posix-functions/mbsinit.texi: Likewise.
38898         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38899         * doc/posix-functions/swprintf.texi: Likewise.
38900         * doc/posix-functions/swscanf.texi: Likewise.
38901         * doc/posix-functions/towctrans.texi: Likewise.
38902         * doc/posix-functions/vfwprintf.texi: Likewise.
38903         * doc/posix-functions/vswprintf.texi: Likewise.
38904         * doc/posix-functions/vwprintf.texi: Likewise.
38905         * doc/posix-functions/wcrtomb.texi: Likewise.
38906         * doc/posix-functions/wcsrtombs.texi: Likewise.
38907         * doc/posix-functions/wcsstr.texi: Likewise.
38908         * doc/posix-functions/wctob.texi: Likewise.
38909         * doc/posix-functions/wctrans.texi: Likewise.
38910         * doc/posix-functions/wmemchr.texi: Likewise.
38911         * doc/posix-functions/wmemcmp.texi: Likewise.
38912         * doc/posix-functions/wmemcpy.texi: Likewise.
38913         * doc/posix-functions/wmemmove.texi: Likewise.
38914         * doc/posix-functions/wmemset.texi: Likewise.
38915         * doc/posix-functions/wprintf.texi: Likewise.
38916         * doc/posix-functions/wscanf.texi: Likewise.
38917
38918 2008-12-21  Bruno Haible  <bruno@clisp.org>
38919
38920         Work around a portability problem.
38921         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38922         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38923
38924 2008-12-20  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38927         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38928         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38930         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38931
38932         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38933         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38934         set.
38935         (GNULIB_defined_mbstate_t): New macro.
38936         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38937         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38938         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38939         reuses the system's mbrtowc function but works around the bugs.
38940         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38941         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38942         macros.
38943         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38944         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38945         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38947         REPLACE_MBSINIT if mbsinit needs to be overridden.
38948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38949         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38950         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38951         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38952         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38953         m4/locale-zh.m4.
38954         (Depends): Add mbsinit.
38955         * modules/mbsinit (Depends): Add mbrtowc.
38956         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38957
38958 2008-12-20  Bruno Haible  <bruno@clisp.org>
38959
38960         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38961         so that there are no conversion errors on AIX.
38962         * tests/test-mbsrtowcs.c (main): LIkewise.
38963
38964 2008-12-20  Bruno Haible  <bruno@clisp.org>
38965
38966         Work around wctob bug on Solaris <= 9.
38967         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38968         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38970         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38971         * modules/wctob (Files): Add m4/locale-fr.m4.
38972         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38973
38974 2008-12-20  Bruno Haible  <bruno@clisp.org>
38975
38976         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38977         /dev/null.
38978         * tests/test-select-in.sh: Likewise.
38979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38980
38981 2008-12-20  Bruno Haible  <bruno@clisp.org>
38982
38983         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38984         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38985         Cygwin 1.5.x.
38986
38987 2008-12-20  Bruno Haible  <bruno@clisp.org>
38988
38989         Ensure mbstate_t is defined on HP-UX 11.11.
38990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38991         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38992         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38993         AC_USE_SYSTEM_EXTENSIONS.
38994         * modules/fnmatch (Depends-on): Add extensions.
38995         * modules/mbrlen (Depends-on): Likewise.
38996         * modules/mbrtowc (Depends-on): Likewise.
38997         * modules/mbsinit (Depends-on): Likewise.
38998         * modules/mbsrtowcs (Depends-on): Likewise.
38999         * modules/mbswidth (Depends-on): Likewise.
39000         * modules/quotearg (Depends-on): Likewise.
39001         * modules/strftime (Depends-on): Likewise.
39002
39003 2008-12-20  Bruno Haible  <bruno@clisp.org>
39004
39005         Ensure wctob is declared on IRIX 6.5.
39006         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39007         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39008         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39010         of HAVE_WCTOB.
39011         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39012         HAVE_WCTOB.
39013         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39014
39015 2008-12-19  Bruno Haible  <bruno@clisp.org>
39016
39017         * modules/mbsrtowcs-tests: New file.
39018         * tests/test-mbsrtowcs1.sh: New file.
39019         * tests/test-mbsrtowcs2.sh: New file.
39020         * tests/test-mbsrtowcs3.sh: New file.
39021         * tests/test-mbsrtowcs4.sh: New file.
39022         * tests/test-mbsrtowcs.c: New file.
39023
39024         New module 'mbsrtowcs'.
39025         * lib/wchar.in.h (mbsrtowcs): New declaration.
39026         * lib/mbsrtowcs.c: New file.
39027         * m4/mbsrtowcs.m4: New file.
39028         * modules/mbsrtowcs: New file.
39029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39030         HAVE_MBSRTOWCS.
39031         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39032         HAVE_MBSRTOWCS.
39033         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39034
39035 2008-12-19  Bruno Haible  <bruno@clisp.org>
39036
39037         New module 'mbrlen'.
39038         * lib/wchar.in.h (mbrlen): New declaration.
39039         * lib/mbrlen.c: New file.
39040         * m4/mbrlen.m4: New file.
39041         * modules/mbrlen: New file.
39042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39043         HAVE_MBRLEN.
39044         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39045         HAVE_MBRLEN.
39046         * doc/posix-functions/mbrlen.texi: Document the new module.
39047
39048 2008-12-19  Bruno Haible  <bruno@clisp.org>
39049
39050         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39051         * modules/mbrtowc (Depends-on): Add verify.
39052         Suggested by Paul Eggert.
39053
39054 2008-12-18  Bruno Haible  <bruno@clisp.org>
39055
39056         * modules/mbsinit-tests: New file.
39057         * tests/test-mbsinit.sh: New file.
39058         * tests/test-mbsinit.c: New file.
39059
39060 2008-12-18  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/mbrtowc-tests: New file.
39063         * tests/test-mbrtowc1.sh: New file.
39064         * tests/test-mbrtowc2.sh: New file.
39065         * tests/test-mbrtowc3.sh: New file.
39066         * tests/test-mbrtowc4.sh: New file.
39067         * tests/test-mbrtowc.c: New file.
39068
39069         New module 'mbrtowc'.
39070         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39071         mbsinit and mbrtowc.
39072         (mbrtowc): New declaration.
39073         * lib/mbrtowc.c: New file.
39074         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39075         * modules/mbrtowc: New file.
39076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39077         HAVE_MBRTOWC.
39078         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39079         HAVE_MBRTOWC.
39080         * doc/posix-functions/mbrtowc.texi: Document the new module.
39081
39082 2008-12-18  Bruno Haible  <bruno@clisp.org>
39083
39084         New module 'wctob'.
39085         * lib/wchar.in.h (wctob): New declaration.
39086         * lib/wctob.c: New file.
39087         * m4/wctob.m4: New file.
39088         * modules/wctob: New file.
39089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39090         HAVE_WCTOB.
39091         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39092         * doc/posix-functions/wctob.texi: Document the new module.
39093
39094 2008-12-18  Bruno Haible  <bruno@clisp.org>
39095
39096         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39097         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39098
39099 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39100
39101         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39102         G. Christensen" <tgc@jupiterrise.com>.
39103
39104         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39105         G. Christensen" <tgc@jupiterrise.com>.
39106
39107         * lib/flock.c: Need to include string.h.  Reported by "Tom
39108         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39109         <ebb9@byu.net>.
39110
39111 2008-12-18  Bruno Haible  <bruno@clisp.org>
39112
39113         * m4/locale-ja.m4: New file, from GNU gettext.
39114
39115 2008-12-17  Bruno Haible  <bruno@clisp.org>
39116
39117         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39118         Suggested by Eric Blake.
39119
39120 2008-12-17  Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39123
39124 2008-12-17  Bruno Haible  <bruno@clisp.org>
39125
39126         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39127         * modules/mbsinit (Depends-on): Add verify.
39128         Suggested by Paul Eggert.
39129
39130 2008-12-17  Bruno Haible  <bruno@clisp.org>
39131
39132         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39133         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39134         gl_FUNC_MBRTOWC.
39135         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39136         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39137         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39138         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39139         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39140         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39141         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39142         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39143         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39144         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39145         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39146         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39147         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39148         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39149         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39150         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39151         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39152         * modules/trim (configure.ac): Likewise.
39153
39154 2008-12-17  Bruno Haible  <bruno@clisp.org>
39155
39156         * modules/btowc-tests: New file.
39157         * tests/test-btowc1.sh: New file.
39158         * tests/test-btowc2.sh: New file.
39159         * tests/test-btowc.c: New file.
39160
39161         New module 'btowc'.
39162         * lib/wchar.in.h (btowc): New declaration.
39163         * lib/btowc.c: New file.
39164         * m4/btowc.m4: New file.
39165         * modules/btowc: New file.
39166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39167         HAVE_BTOWC.
39168         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39169         * doc/posix-functions/btowc.texi: Document the new module.
39170
39171 2008-12-17  Bruno Haible  <bruno@clisp.org>
39172
39173         New module 'mbsinit'.
39174         * lib/wchar.in.h (mbsinit): New declaration.
39175         * lib/mbsinit.c: New file.
39176         * m4/mbsinit.m4: New file.
39177         * modules/mbsinit: New file.
39178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39179         HAVE_MBSINIT.
39180         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39181         HAVE_MBSINIT.
39182         * doc/posix-functions/mbsinit.texi: Document the new module.
39183
39184 2008-12-16  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/unistd.in.h: Add comment.
39187         * tests/test-environ.c: Don't include <stdlib.h>.
39188
39189 2008-12-16  Bruno Haible  <bruno@clisp.org>
39190
39191         * lib/parse-duration.h (parse_duration): Document return value
39192         convention.
39193         * lib/parse-duration.c: Include specification header first. Add
39194         comments.
39195         (_): Remove macro.
39196         (parse_year_month_day, parse_hour_minute_second): Move side effects
39197         outside of strchr call.
39198         (parse_non_iso8601): Move side effects outside of isspace call.
39199         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39200         call.
39201
39202 2008-12-16  Bruno Haible  <bruno@clisp.org>
39203
39204         * tests/test-parse-duration.sh: Produce no output when the test
39205         succeeds.
39206
39207 2008-12-16  Bruno Haible  <bruno@clisp.org>
39208
39209         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39210         expressions.
39211
39212 2008-12-15  Bruno Haible  <bruno@clisp.org>
39213
39214         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39215         * doc/glibc-functions/flistxattr.texi: Likewise.
39216         * doc/glibc-functions/fopencookie.texi: Likewise.
39217         * doc/glibc-functions/fremovexattr.texi: Likewise.
39218         * doc/glibc-functions/fsetxattr.texi: Likewise.
39219         * doc/glibc-functions/getxattr.texi: Likewise.
39220         * doc/glibc-functions/lgetxattr.texi: Likewise.
39221         * doc/glibc-functions/listxattr.texi: Likewise.
39222         * doc/glibc-functions/llistxattr.texi: Likewise.
39223         * doc/glibc-functions/lremovexattr.texi: Likewise.
39224         * doc/glibc-functions/lsetxattr.texi: Likewise.
39225         * doc/glibc-functions/removexattr.texi: Likewise.
39226         * doc/glibc-functions/setxattr.texi: Likewise.
39227         * doc/posix-functions/open_memstream.texi: Likewise.
39228
39229 2008-12-15  Eric Blake  <ebb9@byu.net>
39230
39231         Update doc for cygwin 1.7.
39232         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39233         functions.
39234         * doc/posix-functions/fchmodat.texi: Likewise.
39235         * doc/posix-functions/fchownat.texi: Likewise.
39236         * doc/posix-functions/fdopendir.texi: Likewise.
39237         * doc/posix-functions/fmemopen.texi: Likewise.
39238         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39239         * doc/posix-functions/fstatat.texi: Likewise.
39240         * doc/posix-functions/futimens.texi: Likewise.
39241         * doc/posix-functions/gai_strerror.texi: Likewise.
39242         * doc/posix-functions/getaddrinfo.texi: Likewise.
39243         * doc/posix-functions/getnameinfo.texi: Likewise.
39244         * doc/posix-functions/if_freenameindex.texi: Likewise.
39245         * doc/posix-functions/if_indextoname.texi: Likewise.
39246         * doc/posix-functions/if_nameindex.texi: Likewise.
39247         * doc/posix-functions/if_nametoindex.texi: Likewise.
39248         * doc/posix-functions/insque.texi: Likewise.
39249         * doc/posix-functions/linkat.texi: Likewise.
39250         * doc/posix-functions/llrint.texi: Likewise.
39251         * doc/posix-functions/llrintf.texi: Likewise.
39252         * doc/posix-functions/llrintl.texi: Likewise.
39253         * doc/posix-functions/lockf.texi: Likewise.
39254         * doc/posix-functions/lrintl.texi: Likewise.
39255         * doc/posix-functions/mkdirat.texi: Likewise.
39256         * doc/posix-functions/mkfifoat.texi: Likewise.
39257         * doc/posix-functions/mknodat.texi: Likewise.
39258         * doc/posix-functions/mq_close.texi: Likewise.
39259         * doc/posix-functions/mq_getattr.texi: Likewise.
39260         * doc/posix-functions/mq_notify.texi: Likewise.
39261         * doc/posix-functions/mq_open.texi: Likewise.
39262         * doc/posix-functions/mq_receive.texi: Likewise.
39263         * doc/posix-functions/mq_send.texi: Likewise.
39264         * doc/posix-functions/mq_setattr.texi: Likewise.
39265         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39266         * doc/posix-functions/mq_timedsend.texi: Likewise.
39267         * doc/posix-functions/mq_unlink.texi: Likewise.
39268         * doc/posix-functions/open_memstream.texi: Likewise.
39269         * doc/posix-functions/openat.texi: Likewise.
39270         * doc/posix-functions/posix_fadvise.texi: Likewise.
39271         * doc/posix-functions/posix_fallocate.texi: Likewise.
39272         * doc/posix-functions/posix_madvise.texi: Likewise.
39273         * doc/posix-functions/posix_memalign.texi: Likewise.
39274         * doc/posix-functions/posix_openpt.texi: Likewise.
39275         * doc/posix-functions/readlinkat.texi: Likewise.
39276         * doc/posix-functions/remque.texi: Likewise.
39277         * doc/posix-functions/renameat.texi: Likewise.
39278         * doc/posix-functions/rintl.texi: Likewise.
39279         * doc/posix-functions/sem_unlink.texi: Likewise.
39280         * doc/posix-functions/shm_open.texi: Likewise.
39281         * doc/posix-functions/shm_unlink.texi: Likewise.
39282         * doc/posix-functions/signgam.texi: Likewise.
39283         * doc/posix-functions/sigset.texi: Likewise.
39284         * doc/posix-functions/stpcpy.texi: Likewise.
39285         * doc/posix-functions/stpncpy.texi: Likewise.
39286         * doc/posix-functions/strerror.texi: Likewise.
39287         * doc/posix-functions/strtod.texi: Likewise.
39288         * doc/posix-functions/symlinkat.texi: Likewise.
39289         * doc/posix-functions/unlinkat.texi: Likewise.
39290         * doc/posix-functions/utimensat.texi: Likewise.
39291         * doc/glibc-functions/bindresvport.texi: Likewise.
39292         * doc/glibc-functions/dn_expand.texi: Likewise.
39293         * doc/glibc-functions/exp10.texi: Likewise.
39294         * doc/glibc-functions/exp10f.texi: Likewise.
39295         * doc/glibc-functions/fgetxattr.texi: Likewise.
39296         * doc/glibc-functions/flistxattr.texi: Likewise.
39297         * doc/glibc-functions/fopencookie.texi: Likewise.
39298         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39299         * doc/glibc-functions/fremovexattr.texi: Likewise.
39300         * doc/glibc-functions/fsetxattr.texi: Likewise.
39301         * doc/glibc-functions/getifaddrs.texi: Likewise.
39302         * doc/glibc-functions/getxattr.texi: Likewise.
39303         * doc/glibc-functions/lgetxattr.texi: Likewise.
39304         * doc/glibc-functions/listxattr.texi: Likewise.
39305         * doc/glibc-functions/llistxattr.texi: Likewise.
39306         * doc/glibc-functions/lremovexattr.texi: Likewise.
39307         * doc/glibc-functions/lsetxattr.texi: Likewise.
39308         * doc/glibc-functions/pow10.texi: Likewise.
39309         * doc/glibc-functions/pow10f.texi: Likewise.
39310         * doc/glibc-functions/rcmd_af.texi: Likewise.
39311         * doc/glibc-functions/removexattr.texi: Likewise.
39312         * doc/glibc-functions/res_init.texi: Likewise.
39313         * doc/glibc-functions/res_mkquery.texi: Likewise.
39314         * doc/glibc-functions/res_query.texi: Likewise.
39315         * doc/glibc-functions/res_querydomain.texi: Likewise.
39316         * doc/glibc-functions/res_send.texi: Likewise.
39317         * doc/glibc-functions/rresvport_af.texi: Likewise.
39318         * doc/glibc-functions/setxattr.texi: Likewise.
39319         * doc/glibc-functions/strcasestr.texi: Likewise.
39320
39321 2008-12-15  Bruno Haible  <bruno@clisp.org>
39322
39323         Fix compilation error on OSF/1 4.0.
39324         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39325         <sys/time.h>, simply delegate to the system header.
39326         Reported by Daniel Richard G. <oss@teragram.com>.
39327
39328 2008-12-15  Bruno Haible  <bruno@clisp.org>
39329
39330         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39331         * doc/posix-functions/fchmodat.texi: Likewise.
39332         * doc/posix-functions/fchownat.texi: Likewise.
39333         * doc/posix-functions/fdopendir.texi: Likewise.
39334         * doc/posix-functions/fstatat.texi: Likewise.
39335         * doc/posix-functions/mkdirat.texi: Likewise.
39336         * doc/posix-functions/unlinkat.texi: Likewise.
39337
39338 2008-12-14  Bruno Haible  <bruno@clisp.org>
39339
39340         Update doc for POSIX:2008.
39341         * doc/posix-functions/faccessat.texi: New file.
39342         * doc/posix-functions/fchmodat.texi: New file.
39343         * doc/posix-functions/fchownat.texi: New file.
39344         * doc/posix-functions/fdopendir.texi: New file.
39345         * doc/posix-functions/fstatat.texi: New file.
39346         * doc/posix-functions/futimens.texi: New file.
39347         * doc/posix-functions/linkat.texi: New file.
39348         * doc/posix-functions/mkdirat.texi: New file.
39349         * doc/posix-functions/mkfifoat.texi: New file.
39350         * doc/posix-functions/mknodat.texi: New file.
39351         * doc/posix-functions/open_wmemstream.texi: New file.
39352         * doc/posix-functions/openat.texi: New file.
39353         * doc/posix-functions/psiginfo.texi: New file.
39354         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39355         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39356         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39357         * doc/posix-functions/readlinkat.texi: New file.
39358         * doc/posix-functions/renameat.texi: New file.
39359         * doc/posix-functions/strerror_l.texi: New file.
39360         * doc/posix-functions/symlinkat.texi: New file.
39361         * doc/posix-functions/unlinkat.texi: New file.
39362         * doc/posix-functions/utimensat.texi: New file.
39363         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39364
39365 2008-12-14  Bruno Haible  <bruno@clisp.org>
39366
39367         Update doc for POSIX:2008.
39368         * doc/posix-functions/alphasort.texi: Renamed from
39369         doc/glibc-functions/alphasort.texi.
39370         * doc/posix-functions/dirfd.texi: Renamed from
39371         doc/glibc-functions/dirfd.texi.
39372         * doc/posix-functions/dprintf.texi: Renamed from
39373         doc/glibc-functions/dprintf.texi.
39374         * doc/posix-functions/duplocale.texi: Renamed from
39375         doc/glibc-functions/duplocale.texi.
39376         * doc/posix-functions/fexecve.texi: Renamed from
39377         doc/glibc-functions/fexecve.texi.
39378         * doc/posix-functions/fmemopen.texi: Renamed from
39379         doc/glibc-functions/fmemopen.texi.
39380         * doc/posix-functions/freelocale.texi: Renamed from
39381         doc/glibc-functions/freelocale.texi.
39382         * doc/posix-functions/getdate_err.texi: Renamed from
39383         doc/glibc-functions/getdate_err.texi.
39384         * doc/posix-functions/isalnum_l.texi: Renamed from
39385         doc/glibc-functions/isalnum_l.texi.
39386         * doc/posix-functions/isalpha_l.texi: Renamed from
39387         doc/glibc-functions/isalpha_l.texi.
39388         * doc/posix-functions/isblank_l.texi: Renamed from
39389         doc/glibc-functions/isblank_l.texi.
39390         * doc/posix-functions/iscntrl_l.texi: Renamed from
39391         doc/glibc-functions/iscntrl_l.texi.
39392         * doc/posix-functions/isdigit_l.texi: Renamed from
39393         doc/glibc-functions/isdigit_l.texi.
39394         * doc/posix-functions/isgraph_l.texi: Renamed from
39395         doc/glibc-functions/isgraph_l.texi.
39396         * doc/posix-functions/islower_l.texi: Renamed from
39397         doc/glibc-functions/islower_l.texi.
39398         * doc/posix-functions/isprint_l.texi: Renamed from
39399         doc/glibc-functions/isprint_l.texi.
39400         * doc/posix-functions/ispunct_l.texi: Renamed from
39401         doc/glibc-functions/ispunct_l.texi.
39402         * doc/posix-functions/isspace_l.texi: Renamed from
39403         doc/glibc-functions/isspace_l.texi.
39404         * doc/posix-functions/isupper_l.texi: Renamed from
39405         doc/glibc-functions/isupper_l.texi.
39406         * doc/posix-functions/iswalnum_l.texi: Renamed from
39407         doc/glibc-functions/iswalnum_l.texi.
39408         * doc/posix-functions/iswalpha_l.texi: Renamed from
39409         doc/glibc-functions/iswalpha_l.texi.
39410         * doc/posix-functions/iswblank_l.texi: Renamed from
39411         doc/glibc-functions/iswblank_l.texi.
39412         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39413         doc/glibc-functions/iswcntrl_l.texi.
39414         * doc/posix-functions/iswctype_l.texi: Renamed from
39415         doc/glibc-functions/iswctype_l.texi.
39416         * doc/posix-functions/iswdigit_l.texi: Renamed from
39417         doc/glibc-functions/iswdigit_l.texi.
39418         * doc/posix-functions/iswgraph_l.texi: Renamed from
39419         doc/glibc-functions/iswgraph_l.texi.
39420         * doc/posix-functions/iswlower_l.texi: Renamed from
39421         doc/glibc-functions/iswlower_l.texi.
39422         * doc/posix-functions/iswprint_l.texi: Renamed from
39423         doc/glibc-functions/iswprint_l.texi.
39424         * doc/posix-functions/iswpunct_l.texi: Renamed from
39425         doc/glibc-functions/iswpunct_l.texi.
39426         * doc/posix-functions/iswspace_l.texi: Renamed from
39427         doc/glibc-functions/iswspace_l.texi.
39428         * doc/posix-functions/iswupper_l.texi: Renamed from
39429         doc/glibc-functions/iswupper_l.texi.
39430         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39431         doc/glibc-functions/iswxdigit_l.texi.
39432         * doc/posix-functions/isxdigit_l.texi: Renamed from
39433         doc/glibc-functions/isxdigit_l.texi.
39434         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39435         doc/glibc-functions/mbsnrtowcs.texi.
39436         * doc/posix-functions/mkdtemp.texi: Renamed from
39437         doc/glibc-functions/mkdtemp.texi.
39438         * doc/posix-functions/newlocale.texi: Renamed from
39439         doc/glibc-functions/newlocale.texi.
39440         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39441         doc/glibc-functions/nl_langinfo_l.texi.
39442         * doc/posix-functions/open_memstream.texi: Renamed from
39443         doc/glibc-functions/open_memstream.texi.
39444         * doc/posix-functions/opterr.texi: Renamed from
39445         doc/glibc-functions/opterr.texi.
39446         * doc/posix-functions/optind.texi: Renamed from
39447         doc/glibc-functions/optind.texi.
39448         * doc/posix-functions/optopt.texi: Renamed from
39449         doc/glibc-functions/optopt.texi.
39450         * doc/posix-functions/psignal.texi: Renamed from
39451         doc/glibc-functions/psignal.texi.
39452         * doc/posix-functions/scandir.texi: Renamed from
39453         doc/glibc-functions/scandir.texi.
39454         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39455         doc/glibc-functions/sched_get_priority_min.texi.
39456         * doc/posix-functions/signgam.texi: Renamed from
39457         doc/glibc-functions/signgam.texi.
39458         * doc/posix-functions/stpcpy.texi: Renamed from
39459         doc/glibc-functions/stpcpy.texi.
39460         * doc/posix-functions/stpncpy.texi: Renamed from
39461         doc/glibc-functions/stpncpy.texi.
39462         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39463         doc/glibc-functions/strcasecmp_l.texi.
39464         * doc/posix-functions/strcoll_l.texi: Renamed from
39465         doc/glibc-functions/strcoll_l.texi.
39466         * doc/posix-functions/strfmon_l.texi: Renamed from
39467         doc/glibc-functions/strfmon_l.texi.
39468         * doc/posix-functions/strftime_l.texi: Renamed from
39469         doc/glibc-functions/strftime_l.texi.
39470         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39471         doc/glibc-functions/strncasecmp_l.texi.
39472         * doc/posix-functions/strndup.texi: Renamed from
39473         doc/glibc-functions/strndup.texi.
39474         * doc/posix-functions/strnlen.texi: Renamed from
39475         doc/glibc-functions/strnlen.texi.
39476         * doc/posix-functions/strsignal.texi: Renamed from
39477         doc/glibc-functions/strsignal.texi.
39478         * doc/posix-functions/strxfrm_l.texi: Renamed from
39479         doc/glibc-functions/strxfrm_l.texi.
39480         * doc/posix-functions/timer_gettime.texi: Renamed from
39481         doc/glibc-functions/timer_gettime.texi.
39482         * doc/posix-functions/tolower_l.texi: Renamed from
39483         doc/glibc-functions/tolower_l.texi.
39484         * doc/posix-functions/toupper_l.texi: Renamed from
39485         doc/glibc-functions/toupper_l.texi.
39486         * doc/posix-functions/towctrans_l.texi: Renamed from
39487         doc/glibc-functions/towctrans_l.texi.
39488         * doc/posix-functions/towlower_l.texi: Renamed from
39489         doc/glibc-functions/towlower_l.texi.
39490         * doc/posix-functions/towupper_l.texi: Renamed from
39491         doc/glibc-functions/towupper_l.texi.
39492         * doc/posix-functions/uselocale.texi: Renamed from
39493         doc/glibc-functions/uselocale.texi.
39494         * doc/posix-functions/vdprintf.texi: Renamed from
39495         doc/glibc-functions/vdprintf.texi.
39496         * doc/posix-functions/wcpcpy.texi:
39497         Renamed from doc/glibc-functions/wcpcpy.texi.
39498         * doc/posix-functions/wcpncpy.texi: Renamed from
39499         doc/glibc-functions/wcpncpy.texi.
39500         * doc/posix-functions/wcscasecmp.texi: Renamed from
39501         doc/glibc-functions/wcscasecmp.texi.
39502         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39503         doc/glibc-functions/wcscasecmp_l.texi.
39504         * doc/posix-functions/wcscoll_l.texi: Renamed from
39505         doc/glibc-functions/wcscoll_l.texi.
39506         * doc/posix-functions/wcsdup.texi: Renamed from
39507         doc/glibc-functions/wcsdup.texi.
39508         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39509         doc/glibc-functions/wcsncasecmp.texi.
39510         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39511         doc/glibc-functions/wcsncasecmp_l.texi.
39512         * doc/posix-functions/wcsnlen.texi: Renamed from
39513         doc/glibc-functions/wcsnlen.texi.
39514         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39515         doc/glibc-functions/wcsnrtombs.texi.
39516         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39517         doc/glibc-functions/wcsxfrm_l.texi.
39518         * doc/posix-functions/wctrans_l.texi: Renamed from
39519         doc/glibc-functions/wctrans_l.texi.
39520         * doc/posix-functions/wctype_l.texi: Renamed from
39521         doc/glibc-functions/wctype_l.texi.
39522         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39523         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39524         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39525         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39526         these subsections.
39527         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39528         Remove sections.
39529
39530 2008-12-14  Bruno Haible  <bruno@clisp.org>
39531
39532         Update doc for POSIX:2008.
39533         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39534
39535 2008-12-14  Bruno Haible  <bruno@clisp.org>
39536
39537         Update doc for POSIX:2008.
39538         * doc/pastposix-functions/bcmp.texi: Renamed from
39539         doc/posix-functions/bcmp.texi.
39540         * doc/pastposix-functions/bcopy.texi: Renamed from
39541         doc/posix-functions/bcopy.texi.
39542         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39543         doc/posix-functions/bsd_signal.texi.
39544         * doc/pastposix-functions/bzero.texi: Renamed from
39545         doc/posix-functions/bzero.texi.
39546         * doc/pastposix-functions/ecvt.texi: Renamed from
39547         doc/posix-functions/ecvt.texi.
39548         * doc/pastposix-functions/fcvt.texi: Renamed from
39549         doc/posix-functions/fcvt.texi.
39550         * doc/pastposix-functions/ftime.texi: Renamed from
39551         doc/posix-functions/ftime.texi.
39552         * doc/pastposix-functions/gcvt.texi: Renamed from
39553         doc/posix-functions/gcvt.texi.
39554         * doc/pastposix-functions/getcontext.texi: Renamed from
39555         doc/posix-functions/getcontext.texi.
39556         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39557         doc/posix-functions/gethostbyaddr.texi.
39558         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39559         doc/posix-functions/gethostbyname.texi.
39560         * doc/pastposix-functions/getwd.texi: Renamed from
39561         doc/posix-functions/getwd.texi.
39562         * doc/pastposix-functions/h_errno.texi: Renamed from
39563         doc/posix-functions/h_errno.texi.
39564         * doc/pastposix-functions/index.texi: Renamed from
39565         doc/posix-functions/index.texi.
39566         * doc/pastposix-functions/makecontext.texi: Renamed from
39567         doc/posix-functions/makecontext.texi.
39568         * doc/pastposix-functions/mktemp.texi: Renamed from
39569         doc/posix-functions/mktemp.texi.
39570         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39571         doc/posix-functions/pthread_attr_getstackaddr.texi.
39572         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39573         doc/posix-functions/pthread_attr_setstackaddr.texi.
39574         * doc/pastposix-functions/rindex.texi: Renamed from
39575         doc/posix-functions/rindex.texi.
39576         * doc/pastposix-functions/scalb.texi: Renamed from
39577         doc/posix-functions/scalb.texi.
39578         * doc/pastposix-functions/setcontext.texi: Renamed from
39579         doc/posix-functions/setcontext.texi.
39580         * doc/pastposix-functions/swapcontext.texi: Renamed from
39581         doc/posix-functions/swapcontext.texi.
39582         * doc/pastposix-functions/ualarm.texi: Renamed from
39583         doc/posix-functions/ualarm.texi.
39584         * doc/pastposix-functions/usleep.texi: Renamed from
39585         doc/posix-functions/usleep.texi.
39586         * doc/pastposix-functions/vfork.texi: Renamed from
39587         doc/posix-functions/vfork.texi.
39588         * doc/pastposix-functions/wcswcs.texi: Renamed from
39589         doc/posix-functions/wcswcs.texi.
39590         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39591         (Function Substitutes): Update.
39592
39593 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39594
39595         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39596         m4/strerror.m4.
39597
39598 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39599             Bruno Haible  <bruno@clisp.org>
39600
39601         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39602
39603 2008-12-13  Bruno Haible  <bruno@clisp.org>
39604
39605         * modules/strtoull (Depends-on): Remove unistd.
39606
39607 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39608
39609         * modules/strtoull (Depends-on): Add stdlib.
39610
39611 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39612
39613         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39614
39615 2008-12-10  Jim Meyering  <meyering@redhat.com>
39616
39617         gl_ASSERT: don't say assertions are disabled when they're not
39618         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39619         "checking whether to enable assertions... no", when they are in
39620         fact enabled.  This is solely a bug in the output of configure.
39621         In spite of saying "no", NDEBUG was not defined in that case.
39622         Also, as noted by Eric Blake, leave assertions enabled upon
39623         --enable-assert=INVALID.
39624
39625 2008-12-10  Bruno Haible  <bruno@clisp.org>
39626
39627         Change MODULES.html to refer to POSIX:2008 where possible.
39628         * MODULES.html.sh (POSIX2008_URL): New variable.
39629         (posix_headers): Remove sys/timeb, ucontext.
39630         (posix2001_headers): New variable.
39631         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39632         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39633         index, makecontext, mktemp, pthread_attr_getstackaddr,
39634         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39635         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39636         (posix2001_functions): New variable.
39637         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39638         otherwise.
39639
39640 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39641
39642         add missing include to parse-duration.c
39643         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39644         * modules/parse-duration (Depends-on): Add xalloc.
39645
39646         fix sed script reading maint.mk
39647         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39648         (syntax-check-rules): Use it.
39649
39650 2008-12-09  Bruno Haible  <bruno@clisp.org>
39651
39652         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39653         MacOS X 10.4/PowerPC.
39654         Reported by Simon Josefsson.
39655
39656 2008-12-08  Jim Meyering  <meyering@redhat.com>
39657
39658         work around mingw's lack of some S_IF definitions
39659         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39660         Reported by Simon Josefsson.
39661
39662 2008-12-08  Bruno Haible  <bruno@clisp.org>
39663
39664         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39665         applied to variables. Needed on MacOS X 10.4/PowerPC.
39666         Reported by Simon Josefsson.
39667
39668 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39669         and Eric Blake  <ebb9@byu.net>
39670
39671         assert: honor --enable-assert
39672         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39673         order to honor --enable-assert, rather than treating it as a
39674         synonym for --disable-assert.
39675
39676 2008-12-08  Jim Meyering  <meyering@redhat.com>
39677
39678         * lib/posixtm.c: Remove now-useless declaration of mktime.
39679
39680         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39681
39682 2008-12-07  Bruno Haible  <bruno@clisp.org>
39683
39684         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39685         test_once): Mark functions as static.
39686         * tests/test-tls.c (test_tls): Likewise.
39687
39688 2008-12-07  Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39691         iconv_register_autodetect.
39692
39693 2008-12-07  Jim Meyering  <meyering@redhat.com>
39694
39695         posixtm.c: avoid a warning
39696         * lib/posixtm.c (posixtime): Don't initialize tm0.
39697         It's no longer needed to placate gcc4's -Wuninitialized,
39698         and the attempt to placate would elicit a new warning.
39699
39700         unicodeio.c: mark unused parameters
39701         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39702         (fallback_failure_callback): Likewise.
39703
39704 2008-12-07  Bruno Haible  <bruno@clisp.org>
39705
39706         * gnulib-tool (func_create_testdir): When building the tests
39707         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39708         Reported by Simon Josefsson.
39709
39710 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39711
39712         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39713
39714 2008-12-06  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39717         Suggested by Eric Blake.
39718
39719 2008-12-06  Bruno Haible  <bruno@clisp.org>
39720
39721         Fix a c-stack test failure on MacOS X.
39722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39723         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39724         handler for SIGBUS as well.
39725         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39726         install a signal handler for SIGBUS as well.
39727         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39728
39729 2008-12-06  Bruno Haible  <bruno@clisp.org>
39730
39731         Advocacy documentation.
39732         * doc/gnulib-intro.texi (Benefits): New section.
39733         * doc/gnulib.texi: Update.
39734
39735 2008-12-06  Bruno Haible  <bruno@clisp.org>
39736
39737         Document the 'manywarnings' module.
39738         * doc/manywarnings.texi: New file.
39739         * doc/gnulib.texi: Include it.
39740
39741 2008-12-05  Eric Blake  <ebb9@byu.net>
39742
39743         tests: silence some gcc warnings
39744         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39745         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39746         type mismatches.
39747
39748 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39749             Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39752
39753 2008-11-29  Jim Meyering  <meyering@redhat.com>
39754
39755         unicodeio.c: mark unused parameters
39756         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39757         (fallback_failure_callback): Likewise.
39758
39759         fts: fix a thinko
39760         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39761         (set_stat_type): Return S_IF*-valued "type" directly.
39762         Prompted by James Youngman's spotting a related bug.
39763         Confirmed by further testing through find.
39764
39765         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39766         * lib/fts.c (D_TYPE): Define.
39767         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39768         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39769         (s_ifmt_shift_bits): New function.
39770         (set_stat_type): New function.
39771         (fts_build): When not calling fts_stat, call set_stat_type
39772         to propagate dirent.d_type info to fts_read caller.
39773         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39774         fts_statp->st_mode type information may be valid.
39775
39776 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39777
39778         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39779         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39780         <sds@gnu.org>.
39781
39782 2008-11-20  Bruno Haible  <bruno@clisp.org>
39783
39784         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39785         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39786         INCLUDE_NEXT.
39787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39788         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39789         * modules/math (Makefile.am): Substitute
39790         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39792
39793 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39794             Bruno Haible  <bruno@clisp.org>
39795
39796         * lib/stdint.in.h: Define all type macros so that their expansion is
39797         a single typedef'ed token. Fixes a compilation failure in Boost which
39798         does "using ::int8_t;".
39799
39800 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39801
39802         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39803         gl_MANYWARN_ALL_GCC.
39804         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39805         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39806         * modules/manywarnings: New file.
39807         * MODULES.html.sh: Mention manywarnings module.
39808
39809 2008-11-18  Bruno Haible  <bruno@clisp.org>
39810
39811         * doc/gnulib-tool.texi (Unit tests): New section.
39812
39813 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39814
39815         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39816         paths like 'lib/po/foo.po'.
39817
39818 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39819
39820         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39821         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39822
39823 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39824
39825         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39826         parameter works.
39827
39828 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39829
39830         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39831
39832 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39833
39834         * modules/parse-duration-tests: New file.
39835         * tests/test-parse-duration.sh: New file.
39836         * tests/test-parse-duration.c: New file.
39837
39838         New module 'parse-duration'.
39839         * lib/parse-duration.h: New file.
39840         * lib/parse-duration.c: New file.
39841         * modules/parse-duration: New file.
39842
39843 2008-11-17  Bruno Haible  <bruno@clisp.org>
39844
39845         * tests/test-select-out.sh: Comment out the first pipe test.
39846         Reported by Simon Josefsson.
39847
39848 2008-11-17  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39851         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39852         gl_HOSTENT.
39853
39854 2008-11-17  Bruno Haible  <bruno@clisp.org>
39855
39856         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39857         -lnetwork and -lnet. Needed for Haiku and BeOS.
39858
39859 2008-11-16  Bruno Haible  <bruno@clisp.org>
39860
39861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39862
39863 2008-11-16  Bruno Haible  <bruno@clisp.org>
39864
39865         Avoid test failure on Haiku.
39866         * tests/test-fsync.c: Include <errno.h>.
39867         (main): Don't require that fsync (0) fails.
39868
39869 2008-11-15  Bruno Haible  <bruno@clisp.org>
39870
39871         New module 'hostent'.
39872         * modules/hostent: New file.
39873         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39874
39875 2008-11-15  Bruno Haible  <bruno@clisp.org>
39876
39877         New module 'servent'.
39878         * modules/servent: New file.
39879         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39880
39881 2008-11-15  Bruno Haible  <bruno@clisp.org>
39882
39883         Avoid generating same test program with two different rules.
39884         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39885         test-frexp to test-frexp-nolibm.
39886         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39887         test-frexpl to test-frexpl-nolibm.
39888
39889 2008-11-15  Bruno Haible  <bruno@clisp.org>
39890
39891         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39892         $(FREXPL_LIBM).
39893
39894 2008-11-15  Bruno Haible  <bruno@clisp.org>
39895
39896         * lib/netdb.in.h: Activate the definitions also when the system's
39897         <netdb.h> has 'struct addrinfo'.
39898         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39899         EAI_OVERFLOW or AI_NUMERICSERV.
39900         * doc/posix-headers/netdb.texi: Document the problem.
39901
39902 2008-11-15  Bruno Haible  <bruno@clisp.org>
39903
39904         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39905
39906         Make the 'sched' module work on platforms where <sched.h> exists but
39907         is incomplete (such as Haiku).
39908         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39909         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39910         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39911         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39912         HAVE_STRUCT_SCHED_PARAM.
39913         * modules/sched (Depends-on): Add include_next.
39914         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39915         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39916         * doc/posix-headers/sched.texi: Document the issue.
39917
39918 2008-11-13  Jim Meyering  <meyering@redhat.com>
39919
39920         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39921         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39922         test would fail due to the difference in the Report bugs to ...
39923         line.  The expected address is empty, "<>", while the actual
39924         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39925
39926 2008-11-12  Bruno Haible  <bruno@clisp.org>
39927
39928         lstat: don't compile lstat.c on systems lacking lstat
39929         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39930         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39931         Reported by Daniel P. Berrange via Jim Meyering.
39932
39933 2008-11-12  Jim Meyering  <meyering@redhat.com>
39934
39935         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39936
39937 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39938
39939         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39940         instead.
39941
39942 2008-11-12  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/unicodeio.c: Include unistr.h.
39945         (utf8_wctomb): Remove function.
39946         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39947
39948 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39949
39950         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39951         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39952         <bruno@clisp.org>.
39953         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39954
39955 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39956
39957         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39958         * doc/gnulib.texi: Add section for warnings.
39959
39960 2008-11-11  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/sockets.h: Add a comment.
39963
39964 2008-11-11  Karl Berry  <karl@gnu.org>
39965
39966         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39967
39968 2008-11-11  Eric Blake  <ebb9@byu.net>
39969
39970         fdl.texi: avoid git symlinks
39971         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39972
39973 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39974
39975         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39976
39977 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39978
39979         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39980         (gl_WARN_ADD): Substitute $2 if literal.
39981
39982 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39983
39984         * m4/warning.m4: Remove.
39985
39986 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39987
39988         * m4/warnings.m4: Almost complete rewrite. :-)
39989
39990 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39991
39992         * modules/warnings: New module.
39993         * m4/warnings.m4: New file.
39994         * MODULES.html.sh: Mention warnings module.
39995         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39996         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39997
39998 2008-11-10  Eric Blake  <ebb9@byu.net>
39999
40000         fdl.texi: make a symlink to the latest version
40001         * doc/standards.texi: Revert today's earlier change.
40002         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40003         * doc/fdl.texi: ...and replace this with a symlink to the newer
40004         fdl-1.3.texi.
40005
40006 2008-11-10  Bruno Haible  <bruno@clisp.org>
40007
40008         * tests/test-select-fd.c (main): Accept the result file name as fourth
40009         argument.
40010         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40011         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40012
40013 2008-11-10  Bruno Haible  <bruno@clisp.org>
40014
40015         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40016         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40017         as autoconf-substituted macros.
40018         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40020         gl_NETDB_H_DEFAULTS. Set these variables.
40021         * modules/netdb (Makefile.am): Substitute these variables.
40022
40023 2008-11-10  Eric Blake  <ebb9@byu.net>
40024
40025         standards.texi: include correct file for FDL 1.3
40026         * doc/standards.texi (GNU Free Documentation License): Change
40027         include file to pull in FDL 1.3, not 1.2.
40028
40029         fdl.texi: revert accidental change to license
40030         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40031
40032 2008-11-10  Bruno Haible  <bruno@clisp.org>
40033
40034         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40035         cross-compiling guesses also when the native compile gives no result.
40036
40037 2008-11-10  Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/spawni.c (__spawni): Force variable into the stack.
40040
40041 2008-11-10  Bruno Haible  <bruno@clisp.org>
40042
40043         Add support for Haiku.
40044         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40045         glibc and BeOS, but also on Haiku.
40046         * lib/fpurge.c (fpurge): Likewise.
40047         * lib/freadable.c (freadable): Likewise.
40048         * lib/freadahead.c (freadahead): Likewise.
40049         * lib/freading.c (freading): Likewise.
40050         * lib/freadptr.c (freadptr): Likewise.
40051         * lib/freadseek.c (freadptrinc): Likewise.
40052         * lib/fseeko.c (rpl_fseeko): Likewise.
40053         * lib/fseterr.c (fseterr): Likewise.
40054         * lib/fwritable.c (fwritable): Likewise.
40055         * lib/fwriting.c (fwriting): Likewise.
40056         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40057
40058 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40059
40060         * lib/config.charset: Treat Haiku like BeOS.
40061
40062 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40063
40064         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40065         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40066
40067 2008-11-08  Bruno Haible  <bruno@clisp.org>
40068
40069         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40070         AC_CACHE_CHECK.
40071
40072 2008-11-08  Bruno Haible  <bruno@clisp.org>
40073
40074         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40075
40076 2008-11-08  Bruno Haible  <bruno@clisp.org>
40077
40078         * tests/test-select-fd.c: New file.
40079         * tests/test-select-in.sh: New file.
40080         * tests/test-select-out.sh: New file.
40081         * tests/test-select-stdin.c: New file.
40082         * modules/select-tests (Files): Add the new files.
40083         (Depends-on): Add gettimeofday.
40084         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40085         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40086         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40087
40088 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40089             Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40092
40093 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40094
40095         * build-aux/pmccabe2html: Added support for C++ source files.
40096
40097 2008-11-05  Ben Pfaff  <blp@gnu.org>
40098
40099         Fix lib/close.c build on Windows.
40100         * modules/close (Files): Add lib/w32sock.h.
40101
40102 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40103
40104         Accept Bison's NEWS format.
40105         * build-aux/announce-gen (print_news_deltas): Tweak
40106         $re_prefix.
40107
40108 2008-11-04  Bruno Haible  <bruno@clisp.org>
40109
40110         * modules/random_r (Maintainer): Add glibc.
40111
40112 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40113
40114         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40115         by karl@freefriends.org (Karl Berry).
40116         * doc/alloca.texi: Likewise.
40117         * doc/c-ctype.texi: Likewise.
40118         * doc/c-strcase.texi: Likewise.
40119         * doc/c-strcaseeq.texi: Likewise.
40120         * doc/c-strcasestr.texi: Likewise.
40121         * doc/c-strstr.texi: Likewise.
40122         * doc/c-strtod.texi: Likewise.
40123         * doc/c-strtold.texi: Likewise.
40124         * doc/ctime.texi: Likewise.
40125         * doc/error.texi: Likewise.
40126         * doc/fdl.texi: Likewise.
40127         * doc/gcd.texi: Likewise.
40128         * doc/getdate.texi: Likewise.
40129         * doc/gnulib-intro.texi: Likewise.
40130         * doc/gnulib-tool.texi: Likewise.
40131         * doc/gnulib.texi: Likewise.
40132         * doc/inet_ntoa.texi: Likewise.
40133         * doc/maintain.texi: Likewise.
40134         * doc/make-stds.texi: Likewise.
40135         * doc/quote.texi: Likewise.
40136         * doc/regexprops-generic.texi: Likewise.
40137         * doc/standards.texi: Likewise.
40138         * doc/verify.texi: Likewise.
40139         * doc/visibility.texi: Likewise.
40140         * doc/gnulib.texi (GNU Free Documentation License): Include
40141         fdl-1.3.texi instead of fdl.texi.
40142
40143 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40144
40145         * doc/fdl-1.3.texi: New file, from
40146         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40147         * modules/fdl-1.3: Add.
40148         * MODULES.html.sh: Add fdl-1.3.
40149
40150 2008-11-03  Bruno Haible  <bruno@clisp.org>
40151
40152         Make determination of absolute name of header file work with AIX xlc.
40153         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40154         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40155         preprocessing.
40156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40157         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40158
40159 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40160
40161         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40162         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40163         <ludo@gnu.org>.
40164
40165 2008-11-02  Bruno Haible  <bruno@clisp.org>
40166
40167         Mark 'strpbrk' obsolete.
40168         * modules/strpbrk (Status, Notice): New sections.
40169         * modules/strtok_r (Depends-on): Add strpbrk.
40170
40171 2008-11-02  Bruno Haible  <bruno@clisp.org>
40172
40173         Mark 'strdup' obsolete.
40174         * modules/strdup (Status, Notice): New sections.
40175         * modules/findprog (Depends-on): Add strdup.
40176         * modules/getaddrinfo (Depends-on): Likewise.
40177         * modules/localename (Depends-on): Likewise.
40178         * modules/relocatable-lib (Depends-on): Likewise.
40179         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40180         * modules/relocatable-prog (Depends-on): Likewise.
40181         * modules/trim (Depends-on): Likewise.
40182         * modules/unictype/gen-ctype (Depends-on): Likewise.
40183         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40184
40185 2008-11-02  Bruno Haible  <bruno@clisp.org>
40186
40187         Mark 'strcspn' obsolete.
40188         * modules/strcspn (Status, Notice): New sections.
40189
40190 2008-11-02  Bruno Haible  <bruno@clisp.org>
40191
40192         Mark 'rmdir' obsolete.
40193         * modules/rmdir (Status, Notice): New sections.
40194         * modules/clean-temp (Depends-on): Add rmdir.
40195         * modules/openat (Depends-on): Likewise.
40196
40197 2008-11-02  Bruno Haible  <bruno@clisp.org>
40198
40199         Mark 'raise' obsolete.
40200         * modules/raise (Status, Notice): New sections.
40201         (Include): Specify <signal.h>.
40202         * modules/stdio (Depends-on): Add raise.
40203         * modules/write (Depends-on): Likewise.
40204
40205 2008-11-02  Bruno Haible  <bruno@clisp.org>
40206
40207         Mark 'memset' obsolete.
40208         * modules/memset (Status, Notice): New sections.
40209
40210 2008-11-02  Bruno Haible  <bruno@clisp.org>
40211
40212         Mark 'memmove' obsolete.
40213         * modules/memmove (Status, Notice): New sections.
40214         * modules/argp (Depends-on): Add memmove.
40215         * modules/argz (Depends-on): Likewise.
40216         * modules/canonicalize (Depends-on): Likewise.
40217         * modules/canonicalize-lgpl (Depends-on): Likewise.
40218         * modules/fts (Depends-on): Likewise.
40219         * modules/getcwd (Depends-on): Likewise.
40220         * modules/human (Depends-on): Likewise.
40221         * modules/regex (Depends-on): Likewise.
40222         * modules/striconveh (Depends-on): Likewise.
40223         * modules/trim (Depends-on): Likewise.
40224         * modules/unistr/u8-move (Depends-on): Likewise.
40225         * modules/unistr/u16-move (Depends-on): Likewise.
40226         * modules/unistr/u32-move (Depends-on): Likewise.
40227
40228 2008-11-02  Bruno Haible  <bruno@clisp.org>
40229
40230         Mark 'memcpy' obsolete.
40231         * modules/memcpy (Status, Notice): New sections.
40232
40233 2008-11-02  Bruno Haible  <bruno@clisp.org>
40234
40235         Mark 'memcmp' obsolete.
40236         * modules/memcmp (Status, Notice): New sections.
40237         * modules/argmatch (Depends-on): Add memchr.
40238         * modules/backupfile (Depends-on): Likewise.
40239         * modules/c-strcasestr (Depends-on): Likewise.
40240         * modules/crypto/des (Depends-on): Likewise.
40241         * modules/csharpcomp (Depends-on): Likewise.
40242         * modules/fnmatch (Depends-on): Likewise.
40243         * modules/git-merge-changelog (Depends-on): Likewise.
40244         * modules/isnand (Depends-on): Likewise.
40245         * modules/isnand-nolibm (Depends-on): Likewise.
40246         * modules/isnanf (Depends-on): Likewise.
40247         * modules/isnanf-nolibm (Depends-on): Likewise.
40248         * modules/isnanl (Depends-on): Likewise.
40249         * modules/isnanl-nolibm (Depends-on): Likewise.
40250         * modules/mbchar (Depends-on): Likewise.
40251         * modules/memcoll (Depends-on): Likewise.
40252         * modules/quotearg (Depends-on): Likewise.
40253         * modules/regex (Depends-on): Likewise.
40254         * modules/relocatable-prog (Depends-on): Likewise.
40255         * modules/same (Depends-on): Likewise.
40256         * modules/signbit (Depends-on): Likewise.
40257         * modules/strcasestr-simple (Depends-on): Likewise.
40258         * modules/unictype/gen-ctype (Depends-on): Likewise.
40259         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40260         * modules/uniname/uniname (Depends-on): Likewise.
40261         * modules/unistr/u8-cmp (Depends-on): Likewise.
40262
40263 2008-11-02  Bruno Haible  <bruno@clisp.org>
40264
40265         Mark 'memchr' obsolete.
40266         * modules/memchr (Status, Notice): New sections.
40267         * modules/argp (Depends-on): Add memchr.
40268         * modules/base64 (Depends-on): Likewise.
40269         * modules/c-strcasestr (Depends-on): Likewise.
40270         * modules/chdir-long (Depends-on): Likewise.
40271         * modules/fnmatch (Depends-on): Likewise.
40272         * modules/getsubopt (Depends-on): Likewise.
40273         * modules/git-merge-changelog (Depends-on): Likewise.
40274         * modules/glob (Depends-on): Likewise.
40275         * modules/strcasestr-simple (Depends-on): Likewise.
40276         * modules/strnlen (Depends-on): Likewise.
40277
40278 2008-11-02  Bruno Haible  <bruno@clisp.org>
40279
40280         Mark 'atexit' obsolete.
40281         * modules/atexit (Status, Notice): New sections.
40282         * modules/chdir-long (Depends-on): Add atexit.
40283         * modules/wait-process (Depends-on): Likewise.
40284
40285 2008-11-02  Bruno Haible  <bruno@clisp.org>
40286
40287         * gnulib-tool: New option --with-obsolete.
40288         (func_usage): Document it.
40289         (func_modules_transitive_closure): Drop obsolete dependencies if
40290         incobsolete is not true.
40291         (func_import): Read and save the incobsolete variable to the cache.
40292
40293 2008-11-02  Bruno Haible  <bruno@clisp.org>
40294
40295         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40296         * gnulib-tool: New option --extract-status.
40297         (func_usage): Document it.
40298         (sed_extract_prog): Recognize it.
40299         (func_get_status): New function.
40300
40301 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40302
40303         * modules/sockets (License): Change from LGPL to LGPLv2+.
40304
40305 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40306
40307         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40308
40309 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40310
40311         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40312         Mention times and sys_times.
40313         * modules/sys_times, modules/sys_times-tests: New modules.
40314         * modules/times, modules/times-tests: Likewise
40315         * m4/sys_times_h.m4: New file.
40316         * lib/sys_times.in.h: Likewise
40317         * lib/times.c: Likewise.
40318         * tests/test-sys_times.c: Likewise.
40319         * tests/test-times.c: Likewise.
40320         * doc/posix-headers/sys_times.texi: Update.
40321         * doc/posix-functions/times.texi: Update.
40322
40323 2008-10-28  Jim Meyering  <meyering@redhat.com>
40324
40325         * modules/tempname (Depends-on): Add lstat.
40326
40327         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40328
40329 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40330
40331         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40332         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40333         using idiom used elsewhere in gnulib.
40334
40335 2008-10-27  Jim Meyering  <meyering@redhat.com>
40336
40337         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40338
40339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40340
40341         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40342         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40343         programs.
40344         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40345
40346 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40347
40348         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40349
40350 2008-10-27  Bruno Haible  <bruno@clisp.org>
40351
40352         * tests/test-lstat.c: Include <stdio.h>.
40353
40354 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40355
40356         * modules/lstat-tests: New module.
40357         * tests/test-lstat.c: New file.
40358
40359 2008-10-26  Jim Meyering  <meyering@redhat.com>
40360
40361         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40362
40363 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40364             Bruno Haible  <bruno@clisp.org>
40365
40366         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40367         * modules/configmake (Include): Add a note that the include must come
40368         after all system headers.
40369         * lib/javaversion.c: Include configmake.h after all other includes.
40370
40371 2008-10-26  Bruno Haible  <bruno@clisp.org>
40372
40373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40374         HAVE_STRUCT_RANDOM_DATA to 1.
40375         (gl_STDLIB_H): Simplify.
40376
40377 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40378
40379         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40380         substitute HAVE_STRUCT_RANDOM_DATA.
40381         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40382         random_data.
40383         * modules/stdlib (Makefile.am): Substitute
40384         HAVE_STRUCT_RANDOM_DATA.
40385
40386 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40387
40388         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40389         * doc/gnulib-intro.texi (Copyright): Likewise.
40390
40391 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40392
40393         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40394         findings.
40395
40396 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40397             Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/unistd.in.h: Include <winsock2.h>.
40400         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40401         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40402         Provide dummy declarations.
40403         (gethostname): Override.
40404         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40405         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40406         gl_PREREQ_SYS_H_WINSOCK2.
40407         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40408         * doc/posix-functions/gethostname.texi: More details.
40409
40410 2008-10-25  Bruno Haible  <bruno@clisp.org>
40411
40412         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40413         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40414         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40415
40416         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40417         here ...
40418         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40419         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40420         gl_UNISTD_H_DEFAULTS.
40421
40422 2008-10-25  Eric Blake  <ebb9@byu.net>
40423
40424         signbit: avoid spurious compiler failure
40425         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40426         declarations inside function.
40427
40428 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40429             Bruno Haible  <bruno@clisp.org>
40430
40431         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40432         * modules/random_r (Depends-on): Add stdint.
40433
40434 2008-10-24  Bruno Haible  <bruno@clisp.org>
40435
40436         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40437         Eggert.
40438         * modules/strerror (License): Likewise.
40439
40440 2008-10-24  Jim Meyering  <meyering@redhat.com>
40441
40442         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40443         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40444
40445 2008-10-24  Eric Blake  <ebb9@byu.net>
40446
40447         getgroups: fix compilation when getgroups is available
40448         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40449         but with <config.h> override of getgroups disabled.
40450
40451 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40452
40453         * doc/gnulib.texi (Header files): Add note about C++ problems.
40454         Explained by Bruno Haible <bruno@clisp.org>.
40455
40456 2008-10-23  Bruno Haible  <bruno@clisp.org>
40457
40458         Define a dummy SA_NODEFER macro on Interix.
40459         * lib/signal.in.h (SA_NODEFER): Define fallback.
40460         Reported by Aleksey Cheusov <cheusov@tut.by> via
40461         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40462
40463 2008-10-23  Bruno Haible  <bruno@clisp.org>
40464
40465         * modules/freadahead (License): Change to LGPLv2+.
40466         Suggested by Simon Josefsson.
40467
40468 2008-10-23  Jim Meyering  <meyering@redhat.com>
40469
40470         random_r: new module
40471         * modules/random_r: New file.
40472         * m4/random_r.m4: New file.
40473         * lib/random_r.c: New file, from glibc.
40474         * modules/random_r-tests: New file.
40475         * tests/test-random_r.c: New file.
40476         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40477          Declare.
40478         (RAND_MAX): Define.
40479         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40480         * modules/stdlib: Substitute them, too.
40481         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40482         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40483         * doc/glibc-functions/random_r.texi: Likewise.
40484         * doc/glibc-functions/setstate_r.texi: Likewise.
40485         * doc/glibc-functions/srandom_r.texi: Likewise.
40486         * config/srclist.txt: Mention it.
40487
40488 2008-10-23  David Lutterkort  <lutter@redhat.com>
40489
40490         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40491         link requirement
40492
40493 2008-10-23  Jim Meyering  <meyering@redhat.com>
40494
40495         selinux-h: mark parameters of stub functions as intentionally unused
40496         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40497         * lib/se-context.in.h: Likewise.
40498
40499 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40500
40501         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40502
40503 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40504
40505         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40506
40507 2008-10-22  Eric Blake  <ebb9@byu.net>
40508
40509         glthread/thread: avoid compiler warning
40510         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40511         Add unreachable abort to silence compiler.
40512
40513 2008-10-22  Eric Blake  <ebb9@byu.net>
40514
40515         netdb: also supply struct addrinfo for cygwin 1.5.x
40516         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40517         older cygwin.
40518         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40519         cygwin.
40520         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40521
40522 2008-10-22  Bruno Haible  <bruno@clisp.org>
40523
40524         * users.txt: Update entry about pspp.
40525
40526 2008-10-21  Bruno Haible  <bruno@clisp.org>
40527
40528         Simplification.
40529         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40530         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40531
40532         Simplification.
40533         * lib/ioctl.c (ioctl): Don't undefine.
40534         * lib/socket.c (socket): Don't undefine.
40535
40536         Remove unused module indicator macros.
40537         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40538         GNULIB_$1 as a C macro.
40539
40540         * doc/posix-functions/close.texi: Undo last change.
40541         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40542         Windows platforms.
40543
40544 2008-10-21  Bruno Haible  <bruno@clisp.org>
40545
40546         Add gethostname() declaration to <unistd.h>.
40547         * lib/unistd.in.h (gethostname): New declaration.
40548         * lib/gethostname.c: Include <unistd.h>.
40549         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40550         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40552         and HAVE_GETHOSTNAME.
40553         * modules/gethostname (Depends-on): Add unistd.
40554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40555         (Include): Specify <unistd.h>.
40556         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40557         HAVE_GETHOSTNAME.
40558         * tests/test-gethostname.c: Include <unistd.h> first.
40559
40560 2008-10-21  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40563         * modules/select-tests (Depends-on): Likewise.
40564         Reported by Simon Josefsson.
40565
40566 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40567
40568         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40569         * lib/accept.c: New file, based on winsock.c.
40570         * lib/bind.c: New file, based on winsock.c.
40571         * lib/connect.c: New file, based on winsock.c.
40572         * lib/getpeername.c: New file, based on winsock.c.
40573         * lib/getsockname.c: New file, based on winsock.c.
40574         * lib/getsockopt.c: New file, based on winsock.c.
40575         * lib/ioctl.c: New file, based on winsock.c.
40576         * lib/listen.c: New file, based on winsock.c.
40577         * lib/recv.c: New file, based on winsock.c.
40578         * lib/recvfrom.c: New file, based on winsock.c.
40579         * lib/send.c: New file, based on winsock.c.
40580         * lib/sendto.c: New file, based on winsock.c.
40581         * lib/setsockopt.c: New file, based on winsock.c.
40582         * lib/shutdown.c: New file, based on winsock.c.
40583         * lib/socket.c: New file, based on winsock.c.
40584         * lib/w32sock.h: New file, based on winsock.c.
40585         * lib/winsock.c: Remove file.
40586         * modules/accept: Likewise.
40587         * modules/bind: Likewise.
40588         * modules/connect: Likewise.
40589         * modules/getpeername: Likewise.
40590         * modules/getsockname: Likewise.
40591         * modules/getsockopt: Likewise.
40592         * modules/ioctl: Likewise.
40593         * modules/listen: Likewise.
40594         * modules/recv: Likewise.
40595         * modules/recvfrom: Likewise.
40596         * modules/send: Likewise.
40597         * modules/sendto: Likewise.
40598         * modules/setsockopt: Likewise.
40599         * modules/shutdown: Likewise.
40600         * modules/socket: Use socket.c instead of winsock.c.
40601         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40602         * doc/posix-functions/accept.texi: Doc fix.
40603         * doc/posix-functions/bind.texi: Doc fix.
40604         * doc/posix-functions/close.texi: Doc fix.
40605         * doc/posix-functions/connect.texi: Doc fix.
40606         * doc/posix-functions/getpeername.texi: Doc fix.
40607         * doc/posix-functions/getsockname.texi: Doc fix.
40608         * doc/posix-functions/getsockopt.texi: Doc fix.
40609         * doc/posix-functions/ioctl.texi: Doc fix.
40610         * doc/posix-functions/listen.texi: Doc fix.
40611         * doc/posix-functions/recv.texi: Doc fix.
40612         * doc/posix-functions/recvfrom.texi: Doc fix.
40613         * doc/posix-functions/send.texi: Doc fix.
40614         * doc/posix-functions/sendto.texi: Doc fix.
40615         * doc/posix-functions/setsockopt.texi: Doc fix.
40616         * doc/posix-functions/shutdown.texi: Doc fix.
40617         * doc/posix-functions/socket.texi: Doc fix.
40618
40619 2008-10-20  Bruno Haible  <bruno@clisp.org>
40620
40621         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40622         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40623         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40624         as an alias for SIGABRT.
40625         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40626         (sigaction): Map it to SIGABRT.
40627         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40628
40629 2008-10-20  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/fts.c: Don't include lstat.h.
40632         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40633
40634         Move the lstat() declaration to <sys/stat.h>.
40635         * lib/lstat.h: Remove file.
40636         * lib/sys_stat.in.h: Add special invocation convention.
40637         (lstat): New declaration.
40638         * lib/lstat.c (orig_lstat): New function.
40639         (rpl_lstat): Use orig_lstat instead of lstat.
40640         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40641         AC_C_INLINE. Set REPLACE_LSTAT.
40642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40643         and REPLACE_LSTAT.
40644         * modules/lstat (Files): Remove lib/lstat.h.
40645         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40646         (Include): Specify <sys/stat.h> instead of lstat.h.
40647         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40648         REPLACE_LSTAT.
40649         * NEWS: Mention the change.
40650
40651 2008-10-20  Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/posix_spawn-tests: New file.
40654         * tests/test-posix_spawn3.c: New file.
40655
40656 2008-10-20  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40659         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40660         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40661         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40662         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40663
40664 2008-10-20  Bruno Haible  <bruno@clisp.org>
40665
40666         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40667         of posix_spawn on AIX 5.3.
40668
40669 2008-10-20  Bruno Haible  <bruno@clisp.org>
40670
40671         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40672
40673 2008-10-20  Bruno Haible  <bruno@clisp.org>
40674
40675         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40676         of AC_LANG_PROGRAM.
40677
40678 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40679
40680         * lib/netdb.in.h: Don't define GNU specific constants until they
40681         are supported or needed.  Reported by Bruno Haible
40682         <bruno@clisp.org>.
40683
40684 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40685
40686         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40687
40688 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40689
40690         * lib/getaddrinfo.h: Remove file.
40691         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40692         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40693         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40694         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40695         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40696         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40697         * tests/test-getaddrinfo.c: Likewise.
40698         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40699         * NEWS: Mention change.
40700
40701 2008-10-19  Bruno Haible  <bruno@clisp.org>
40702
40703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40704
40705 2008-10-19  Bruno Haible  <bruno@clisp.org>
40706
40707         * lib/wait-process.c: Include simply <sys/wait.h>.
40708         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40709         WIFSTOPPED): Remove fallback definitions.
40710         * modules/wait-process (Depends-on): Add sys_wait.
40711
40712         New module 'sys_wait'.
40713         * modules/sys_wait: New file.
40714         * lib/sys_wait.in.h: New file, partially copied from
40715         lib/wait-process.c.
40716         * m4/sys_wait_h.m4: New file.
40717         * doc/posix-headers/sys_wait.texi: Mention the new module.
40718
40719 2008-10-19  Bruno Haible  <bruno@clisp.org>
40720
40721         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40722
40723 2008-10-19  Bruno Haible  <bruno@clisp.org>
40724
40725         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40726         * lib/wait-process.c (WAIT_T): Remove type.
40727         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40728         (wait_subprocess): Update.
40729
40730 2008-10-19  Bruno Haible  <bruno@clisp.org>
40731
40732         New module 'atoll'.
40733         * modules/atoll: New file.
40734         * lib/stdlib.in.h (atoll): New declaration.
40735         * lib/atoll.c: New file, from glibc with modifications.
40736         * m4/atoll.m4: New file.
40737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40738         HAVE_ATOLL.
40739         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40740         * doc/posix-functions/atoll.texi: Mention the new module.
40741
40742 2008-10-19  Bruno Haible  <bruno@clisp.org>
40743
40744         Add strtoull() declaration to <stdlib.h>.
40745         * lib/stdlib.in.h (strtoull): New declaration.
40746         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40747         Set HAVE_STRTOULL.
40748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40749         HAVE_STRTOULL.
40750         * modules/strtoull (Depends-on): Add stdlib.
40751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40752         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40753         HAVE_STRTOULL.
40754
40755 2008-10-19  Bruno Haible  <bruno@clisp.org>
40756
40757         Add strtoll() declaration to <stdlib.h>.
40758         * lib/stdlib.in.h (strtoll): New declaration.
40759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40760         Set HAVE_STRTOLL.
40761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40762         HAVE_STRTOLL.
40763         * modules/strtoll (Depends-on): Add stdlib.
40764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40765         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40766
40767 2008-10-19  Bruno Haible  <bruno@clisp.org>
40768
40769         * modules/bcopy (Depends-on): Add strings.
40770         (Include): Specify <strings.h>.
40771
40772 2008-10-19  Bruno Haible  <bruno@clisp.org>
40773
40774         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40775
40776 2008-10-19  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40779         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40780         mingw.
40781
40782 2008-10-19  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/atanl.c: Don't include isnanl.h.
40785         * lib/cosl.c: Likewise.
40786         * lib/ldexpl.c: Likewise.
40787         * lib/logl.c: Likewise.
40788         * lib/sinl.c: Likewise.
40789         * lib/sqrtl.c: Likewise.
40790         * lib/tanl.c: Likewise.
40791
40792         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40793         * lib/isnanf.h: Remove file.
40794         * lib/isnand.h: Remove file.
40795         * lib/isnanl.h: Remove file.
40796         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40797         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40798         macros.
40799         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40800         HAVE_ISNANF, don't define it as a C macro.
40801         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40802         HAVE_ISNAND, don't define it as a C macro.
40803         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40804         HAVE_ISNANL, don't define it as a C macro.
40805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40806         HAVE_ISNAN[FDL].
40807         * modules/isnanf (Files): Remove lib/isnanf.h.
40808         (Depends-on): Add math.
40809         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40810         (Include): Specify <math.h> instead of isnanf.h.
40811         * modules/isnand (Files): Remove lib/isnand.h.
40812         (Depends-on): Add math.
40813         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40814         (Include): Specify <math.h> instead of isnand.h.
40815         * modules/isnanl (Files): Remove lib/isnanl.h.
40816         (Depends-on): Add math.
40817         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40818         (Include): Specify <math.h> instead of isnanl.h.
40819         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40820         HAVE_ISNAN[FDL].
40821         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40822         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40823         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40824         * NEWS: Mention the change.
40825
40826 2008-10-18  Bruno Haible  <bruno@clisp.org>
40827
40828         Add getusershell(), setusershell(), endusershell() declarations to
40829         <unistd.h>.
40830         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40831         declarations.
40832         * lib/getusershell.c: Include unistd.h.
40833         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40834         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40835         HAVE_GETUSERSHELL.
40836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40837         and HAVE_GETUSERSHELL.
40838         * modules/getusershell (Depends-on): Add unistd, extensions.
40839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40840         (Include): Specify <unistd.h>.
40841         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40842         HAVE_GETUSERSHELL.
40843
40844 2008-10-18  Bruno Haible  <bruno@clisp.org>
40845
40846         Add a getloadavg() declaration to <stdlib.h>.
40847         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40848         getloadavg declaration.
40849         (getloadavg): New declaration.
40850         * lib/getloadavg.c: Include <stdlib.h> first.
40851         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40852         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40853         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40855         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40856         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40858         (Include): Specify <stdlib.h>.
40859         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40860         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40861
40862 2008-10-18  Bruno Haible  <bruno@clisp.org>
40863
40864         * lib/dirchownmod.c: Don't include lchmod.h.
40865
40866         Move the lchmod() declaration to <sys/stat.h>.
40867         * lib/lchmod.h: Remove file.
40868         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40869         (lchmod): New declaration, moved here from lib/lchown.h.
40870         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40871         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40873         and HAVE_LCHMOD.
40874         * modules/lchmod (Files): Remove lib/lchmod.h.
40875         (Depends-on): Add sys_stat, extensions.
40876         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40877         (Include): Specify <sys/stat.h> instead of lchmod.h.
40878         * modules/sys_stat (Depends-on): Add link-warning.
40879         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40880         definition of GL_LINK_WARNING.
40881         * NEWS: Mention the change.
40882
40883 2008-10-18  Bruno Haible  <bruno@clisp.org>
40884
40885         * lib/fchdir.c: Don't include dirfd.h.
40886         * lib/fts.c: Likewise.
40887         * lib/getcwd.c: Likewise.
40888         * lib/glob.c: Likewise.
40889
40890         Move the dirfd() declaration to <dirent.h>.
40891         * lib/dirfd.h: Remove file.
40892         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40893         (dirfd): New declaration.
40894         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40896         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40897         HAVE_DECL_DIRFD.
40898         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40899         HAVE_DECL_DIRFD.
40900         * modules/dirfd (Files): Remove lib/dirfd.h.
40901         (Depends-on): Add dirent, extensions.
40902         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40903         (Include): Specify <dirent.h> instead of dirfd.h.
40904         * modules/dirent (Depends-on): Add link-warning.
40905         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40906         definition of GL_LINK_WARNING.
40907         * NEWS: Mention the change.
40908
40909 2008-10-18  Bruno Haible  <bruno@clisp.org>
40910
40911         Move the euidaccess() declaration to <unistd.h>.
40912         * lib/euidaccess.h: Remove file.
40913         * lib/unistd.in.h (euidaccess): New declaration.
40914         * lib/euidaccess.c: Don't include euidaccess.h.
40915         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40916         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40918         and HAVE_EUIDACCESS.
40919         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40920         (Depends-on): Add unistd.
40921         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40922         (Include): Specify <unistd.h> instead of euidaccess.h.
40923         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40924         HAVE_EUIDACCESS.
40925         * NEWS: Mention the change.
40926
40927 2008-10-18  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40930
40931         Move the getdomainname() declaration to <unistd.h>.
40932         * lib/getdomainname.h: Remove file.
40933         * lib/unistd.in.h (getdomainname): New declaration.
40934         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40935         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40936         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40937         HAVE_GETDOMAINNAME.
40938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40939         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40940         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40941         (Depends-on): Add unistd, extensions.
40942         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40943         (Includes): Specify <unistd.h> instead of getdomainname.h.
40944         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40945         HAVE_GETDOMAINNAME.
40946         * NEWS: Mention the change.
40947
40948 2008-10-18  Bruno Haible  <bruno@clisp.org>
40949
40950         * modules/dirent: New file.
40951         * m4/dirent_h.m4: New file.
40952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40953         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40954         * modules/fchdir (Files): Remove lib/dirent.in.h.
40955         (Depends-on): Add dirent.
40956         (Makefile.am): Move rules to modules/dirent.
40957         * doc/posix-headers/dirent.texi: Mention the new module.
40958
40959 2008-10-18  Bruno Haible  <bruno@clisp.org>
40960
40961         Avoid -Wunused-parameter warnings in public gnulib header files.
40962         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40963         macro.
40964         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40965
40966 2008-10-18  Bruno Haible  <bruno@clisp.org>
40967
40968         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40969         * doc/glibc-functions/error.texi: Mention the module 'error'.
40970         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40971         * doc/glibc-functions/getdomainname.texi: Mention the module
40972         'getdomainname'.
40973         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40974         * doc/glibc-functions/getpagesize.texi: Mention the module
40975         'getpagesize'.
40976         * doc/glibc-functions/getusershell.texi: Mention the module
40977         'getusershell'.
40978         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40979         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40980         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40981         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40982         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40983         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40984         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40985         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40986         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40987         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40988         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40989         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40990         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40991         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40992
40993 2008-10-17  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40996         HP-UX and IRIX, use -0.0L.
40997         * tests/test-ceill.c (minus_zero): Likewise.
40998         * tests/test-floorl.c (minus_zero): Likewise.
40999         * tests/test-frexpl.c (minus_zero): Likewise.
41000         * tests/test-isnan.c (minus_zerol): Likewise.
41001         * tests/test-isnanl.h (minus_zero): Likewise.
41002         * tests/test-ldexpl.c (minus_zero): Likewise.
41003         * tests/test-roundl.c (minus_zero): Likewise.
41004         * tests/test-signbit.c (minus_zerol): Likewise.
41005         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41006         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41007         * tests/test-truncl.c (minus_zero): Likewise.
41008         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41009         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41010         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41011         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41012
41013 2008-10-17  Bruno Haible  <bruno@clisp.org>
41014
41015         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41016         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41017         that it gets activated only for gcc >= 3.0.
41018         * lib/dirent.in.h: Likewise.
41019         * lib/errno.in.h: Likewise.
41020         * lib/fcntl.in.h: Likewise.
41021         * lib/float.in.h: Likewise.
41022         * lib/iconv.in.h: Likewise.
41023         * lib/inttypes.in.h: Likewise.
41024         * lib/locale.in.h: Likewise.
41025         * lib/math.in.h: Likewise.
41026         * lib/netdb.in.h: Likewise.
41027         * lib/netinet_in.in.h: Likewise.
41028         * lib/search.in.h: Likewise.
41029         * lib/signal.in.h: Likewise.
41030         * lib/spawn.in.h: Likewise.
41031         * lib/stdarg.in.h: Likewise.
41032         * lib/stdint.in.h: Likewise.
41033         * lib/stdio.in.h: Likewise.
41034         * lib/stdlib.in.h: Likewise.
41035         * lib/string.in.h: Likewise.
41036         * lib/strings.in.h: Likewise.
41037         * lib/sys_file.in.h: Likewise.
41038         * lib/sys_ioctl.in.h: Likewise.
41039         * lib/sys_select.in.h: Likewise.
41040         * lib/sys_socket.in.h: Likewise.
41041         * lib/sys_stat.in.h: Likewise.
41042         * lib/sys_time.in.h: Likewise.
41043         * lib/sysexits.in.h: Likewise.
41044         * lib/time.in.h: Likewise.
41045         * lib/unistd.in.h: Likewise.
41046         * lib/wchar.in.h: Likewise.
41047         * lib/wctype.in.h: Likewise.
41048         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41049
41050 2008-10-17  Jim Meyering  <meyering@redhat.com>
41051
41052         ignore-value: don't depend on inline module
41053         * modules/ignore-value (Depends-on): Remove 'inline'.
41054         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41055         Suggestion from Bruno Haible.
41056
41057 2008-10-17  Bruno Haible  <bruno@clisp.org>
41058
41059         New implementation of condition variables for Win32.
41060         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41061         (gl_linked_waitqueue_t): New type.
41062         (gl_cond_t): Use it.
41063         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41064         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41065         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41066         (glthread_cond_init_func, glthread_cond_wait_func,
41067         glthread_cond_timedwait_func, glthread_cond_signal_func,
41068         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41069         Reimplemented on the basis of gl_linked_waitqueue_t.
41070         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41071         gl_waitqueue_t.
41072         (gl_rwlock_t): Update.
41073         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41074
41075 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41076
41077         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41078         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41079
41080 2008-10-17  Jim Meyering  <meyering@redhat.com>
41081
41082         ignore-value: new module
41083         * modules/ignore-value: New file.
41084         * lib/ignore-value.h: New file.
41085         * MODULES.html.sh (Compiler warning management): New section,
41086         just for this module.  More to come.
41087
41088 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41089
41090         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41091         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41092         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41093
41094 2008-10-16  Jim Meyering  <meyering@redhat.com>
41095
41096         openat-die.c: avoid 'no previous prototype' warning
41097         * lib/openat-die.c: Include "openat.h".
41098         Reported by Reuben Thomas <rrt@sc3d.org>.
41099
41100 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41101
41102         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41103         * lib/netdb.in.h: Fix typo.
41104         Reported by Bruno Haible  <bruno@clisp.org>
41105
41106         * lib/netdb.in.h: Include sys/socket.h for platforms without
41107         netdb.h, to get structures like hostent on MinGW.
41108         * modules/netdb (Depends-on): Add sys_socket.
41109
41110 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41111
41112         * modules/netdb, modules/netdb-tests: New file.
41113         * m4/netdb_h.m4: New file.
41114         * lib/netdb.in.h: Add, currently just an empty file pending
41115         definitions.
41116         * tests/test-netdb.c: New file.
41117         * doc/posix-headers/netdb.texi: Mention that we replace it if
41118         needed.
41119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41120         netdb.
41121
41122 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41123
41124         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41125         with code.
41126
41127 2008-10-13  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/glthread/cond.c (glthread_cond_wait_func,
41130         glthread_cond_timedwait_func): Add a comment.
41131
41132 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41133
41134         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41135         * tests/test-select.c: Likewise,
41136
41137 2008-10-13  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/glthread/cond.c (glthread_cond_wait_func,
41140         glthread_cond_timedwait_func): Fix variable name.
41141         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41142
41143 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41144
41145         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41147         struct sockaddr.sa_len.
41148         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41149
41150 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41151
41152         * build-aux/pmccabe2html: Add css and css_url parameters.
41153
41154 2008-10-12  Bruno Haible  <bruno@clisp.org>
41155
41156         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41157         calling aclx_get.
41158         Reported by Rainer Tammer <tammer@tammer.net>.
41159
41160 2008-10-12  Bruno Haible  <bruno@clisp.org>
41161
41162         Use msvcrt aware primitives for creation/termination of Win32 threads.
41163         * lib/glthread/thread.c: Include <process.h>.
41164         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41165         (wrapper_func): Update signature.
41166         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41167
41168 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41169             Bruno Haible  <bruno@clisp.org>
41170
41171         Provide a Win32 implementation of the 'cond' module.
41172         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41173         * lib/glthread/cond.c (glthread_cond_init_func,
41174         glthread_cond_wait_func, glthread_cond_timedwait_func,
41175         glthread_cond_signal_func, glthread_cond_broadcast_func,
41176         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41177         * modules/cond (Dependencies): Add gettimeofday.
41178
41179 2008-10-11  Bruno Haible  <bruno@clisp.org>
41180
41181         Make sleep work on older versions of mingw.
41182         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41183         only whether it exists.
41184         * doc/posix-functions/sleep.texi: Mention the problem with older
41185         versions of mingw.
41186
41187 2008-10-11  Bruno Haible  <bruno@clisp.org>
41188
41189         New module 'shutdown'.
41190         * modules/shutdown: New file.
41191         * lib/sys_socket.in.h (shutdown): New declaration.
41192         * lib/winsock.c (shutdown): New function.
41193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41194         GNULIB_SHUTDOWN.
41195         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41196         * doc/posix-functions/shutdown.texi: Document the new module.
41197
41198 2008-10-11  Jim Meyering  <meyering@redhat.com>
41199
41200         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41201
41202 2008-10-11  Bruno Haible  <bruno@clisp.org>
41203
41204         New module 'fclose'.
41205         * modules/fclose: New file.
41206         * lib/stdio.in.h (fclose): New declaration.
41207         * lib/fclose.c: New file.
41208         * m4/fclose.m4: New file.
41209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41210         REPLACE_FCLOSE.
41211         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41212         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41213         REPLACE_FCLOSE.
41214         * modules/close (Depends-on): fclose.
41215         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41216
41217 2008-10-11  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41220         set errno and don't call _close.
41221
41222 2008-10-10  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41225         ACL, not afterwards. Fixes test failure on Cygwin.
41226
41227 2008-10-09  Ben Pfaff  <blp@gnu.org>
41228
41229         * build-aux/announce-gen: Fix gnulib version related part of usage
41230         message.  Die with a useful error message if no tarballs are
41231         found.
41232
41233 2008-10-10  Jim Meyering  <meyering@redhat.com>
41234
41235         bootstrap: use git's --depth=N option only if it's supported
41236         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41237         recognize the --depth option.  Reported by Pádraig Brady.
41238
41239 2008-10-09  Bruno Haible  <bruno@clisp.org>
41240
41241         New module 'ioctl'.
41242         * modules/ioctl: New file.
41243         * lib/sys_socket.in.h (ioctl): Remove declaration.
41244         * lib/winsock.c: Include <sys/ioctl.h>.
41245         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41246         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41247         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41248         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41249         * doc/posix-functions/ioctl.texi: Mention the new module.
41250
41251 2008-10-09  Bruno Haible  <bruno@clisp.org>
41252
41253         New module 'sys_ioctl'.
41254         * lib/sys_ioctl.in.h: New file.
41255         * m4/sys_ioctl_h.m4: New file.
41256         * modules/sys_ioctl: New file.
41257         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41258
41259 2008-10-09  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41262         * lib/winsock.c: Include <stdarg.h>.
41263         (rpl_ioctl): Change to second argument 'int' and then varargs.
41264
41265 2008-10-09  Bruno Haible  <bruno@clisp.org>
41266
41267         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41268         when the sys_socket module is present and the system has <winsock2.h>.
41269
41270 2008-10-09  Bruno Haible  <bruno@clisp.org>
41271
41272         * doc/posix-functions/close.texi: Mention module 'close' instead of
41273         module 'sys_socket'.
41274
41275 2008-10-09  Bruno Haible  <bruno@clisp.org>
41276
41277         * doc/glibc-headers/sys_ioctl.texi: New file.
41278         * doc/gnulib.texi: Include it.
41279
41280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41281             Bruno Haible  <bruno@clisp.org>
41282
41283         Combine the two replacements of 'close'.
41284         * lib/sys_socket.in.h (close): Define to a reminder to include
41285         <unistd.h>.
41286         (_gl_close_fd_maybe_socket): New declaration.
41287         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41288         * lib/winsock.c (close): Remove undefinition.
41289         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41290         needed for the gnulib module 'close'.
41291         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41292         define to an error symbol or to a warning, if suitable.
41293         * lib/close.c: Include <sys/socket.h>.
41294         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41295         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41296         UNISTD_H_HAVE_WINSOCK2_H.
41297         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41299         UNISTD_H_HAVE_WINSOCK2_H.
41300         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41301         (configure.ac): Set a module indicator.
41302         (Makefile.am): Substitute GNULIB_CLOSE.
41303         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41304         * modules/poll-tests (Depends-on): Add close.
41305         * modules/select-tests (Depends-on): Likewise.
41306
41307 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41308             Bruno Haible  <bruno@clisp.org>
41309
41310         New module 'close'.
41311         * modules/close: New file.
41312         * lib/unistd.in.h (close): Move declaration out of the
41313         FCHDIR_REPLACEMENT scope.
41314         (_gl_unregister_fd): New declaration.
41315         * lib/close.c: New file.
41316         * lib/fchdir.c (rpl_close): Remove function.
41317         * m4/close.m4: New file.
41318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41319         close.
41320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41321         REPLACE_CLOSE.
41322         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41323         REPLACE_CLOSE.
41324         * modules/fchdir (Depends-on): Add close.
41325
41326 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41327             Bruno Haible  <bruno@clisp.org>
41328
41329         * lib/fcntl.in.h (open): Simplify conditionals.
41330         (_gl_register_fd): New declaration.
41331         * lib/fchdir.c (rpl_open): Remove function.
41332         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41333         also.
41334         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41336         open.
41337
41338 2008-10-09  Jim Meyering  <meyering@redhat.com>
41339
41340         GNUmakefile: use the more name-space-friendly "_version"
41341         * top/GNUmakefile (_dummy): Update.
41342         (_version): Rename from "version".
41343
41344 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41345             Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41348         rpl_close.
41349         (_gl_register_fd): New function, extracted from rpl_open.
41350         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41351         (rpl_open, rpl_opendir): Use _gl_register_fd.
41352
41353 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41354
41355         Fix organization of 'open' replacement.
41356         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41357         (gl_FUNC_OPEN): Use it.
41358         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41359
41360 2008-10-08  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41363
41364 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41365
41366         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41367         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41368         listen).
41369
41370 2008-10-08  Eric Blake  <ebb9@byu.net>
41371
41372         GNUmakefile: add 'make version' target
41373         * top/GNUmakefile (_curr-ver): Split version update rules...
41374         (version): ...into a target.
41375
41376 2008-10-07  Bruno Haible  <bruno@clisp.org>
41377
41378         Use a more portable replacement expression for -0.0L.
41379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41380         instead of -0.0L. Fix m4 quotation.
41381
41382         * tests/test-signbit.c: Include <float.h>.
41383         (minus_zero): New variable.
41384         (test_signbitl): Use minus_zero instead of -zero.
41385         * modules/signbit-tests (Depends-on): Add float.
41386
41387         * tests/test-ceill.c: Include <float.h>.
41388         (zero): Remove variable.
41389         (minus_zero): New variable.
41390         (main): Use minus_zero instead of -zero.
41391         * modules/ceill-tests (Depends-on): Add float.
41392
41393         * tests/test-floorl.c: Include <float.h>.
41394         (zero): Remove variable.
41395         (minus_zero): New variable.
41396         (main): Use minus_zero instead of -zero.
41397         * modules/floorl-tests (Depends-on): Add float.
41398
41399         * tests/test-roundl.c: Include <float.h>.
41400         (zero): Remove variable.
41401         (minus_zero): New variable.
41402         (main): Use minus_zero instead of -zero.
41403         * modules/roundl-tests (Depends-on): Add float.
41404
41405         * tests/test-truncl.c: Include <float.h>.
41406         (zero): Remove variable.
41407         (minus_zero): New variable.
41408         (main): Use minus_zero instead of -zero.
41409         * modules/truncl-tests (Depends-on): Add float.
41410
41411         * tests/test-frexpl.c (zero): Remove variable.
41412         (minus_zero): New variable.
41413         (main): Use minus_zero instead of -zero.
41414         * modules/frexpl-tests (Depends-on): Add float.
41415
41416         * tests/test-isnan.c (zerol): Remove variable.
41417         (minus_zerol): New variable.
41418         (test_long_double): Use minus_zerol instead of -zerol.
41419         * modules/isnan-tests (Depends-on): Add float.
41420
41421         * tests/test-isnanl.h (zero): Remove variable.
41422         (minus_zero): New variable.
41423         (main): Use minus_zero instead of -zero.
41424         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41425         * modules/isnanl-tests (Depends-on): Add float.
41426
41427         * tests/test-ldexpl.c (zero): Remove variable.
41428         (minus_zero): New variable.
41429         (main): Use minus_zero instead of -zero.
41430         * modules/ldexpl-tests (Depends-on): Add float.
41431
41432         * tests/test-snprintf-posix.h (zerol): Remove variable.
41433         (minus_zerol): New variable.
41434         (test_function): Use minus_zerol instead of -zerol.
41435         * modules/snprintf-posix-tests (Depends-on): Add float.
41436         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41437
41438         * tests/test-sprintf-posix.h (zerol): Remove variable.
41439         (minus_zerol): New variable.
41440         (test_function): Use minus_zerol instead of -zerol.
41441         * modules/sprintf-posix-tests (Depends-on): Add float.
41442         * modules/vsprintf-posix-tests (Depends-on): Add float.
41443
41444         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41445         (minus_zerol): New variable.
41446         (test_function): Use minus_zerol instead of -zerol.
41447         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41448
41449         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41450         (minus_zerol): New variable.
41451         (test_function): Use minus_zerol instead of -zerol.
41452         * modules/vasprintf-posix-tests (Depends-on): Add float.
41453
41454 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41455
41456         * MODULES.html.sh (Support for building documentation): Mention
41457         pmccabe2html.  Sort entries.
41458
41459         Add pmccabe2html module, from gnupdf.
41460         * build-aux/pmccabe.css: New file.
41461         * build-aux/pmccabe2html: New file.
41462         * m4/pmccabe2html.m4: New file.
41463         * modules/pmccabe2html: New file.
41464
41465 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41466
41467         flock: new module
41468         * MODULES.html.sh: Add to list of modules.
41469         * lib/flock.c: flock implementation for Windows and Unix systems
41470         which have fcntl.
41471         * doc/glibc-functions/flock.texi: Update documentation.
41472         * lib/sys_file.in.h: <sys/file.h> header file.
41473         * m4/flock.m4: M4 macros.
41474         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41475         * modules/flock: flock module.
41476         * modules/flock-tests: flock tests module.
41477         * modules/sys_file: sys/file.h module.
41478         * tests/test-flock.c: test suite for flock.
41479
41480 2008-10-06  Jim Meyering  <meyering@redhat.com>
41481
41482         bootstrap: check for LT_INIT more portably still ;-)
41483         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41484         Spotted by Bruno Haible.
41485
41486 2008-10-06  Eric Blake  <ebb9@byu.net>
41487
41488         test-signbit: avoid tripping Irix cc bug on -0.0L
41489         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41490         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41491         entire testsuite consistent and avoids an Irix 6.2 bug.
41492
41493 2008-10-05  Bruno Haible  <bruno@clisp.org>
41494             Jim Meyering  <jim@meyering.net>
41495
41496         Add an option for ignoring EPIPE during close_stdout.
41497         * lib/closeout.h: Include <stdbool.h>.
41498         (close_stdout_set_ignore_EPIPE): New declaration.
41499         * lib/closeout.c: Include <stdbool.h>.
41500         (ignore_EPIPE): New variable.
41501         (close_stdout_set_ignore_EPIPE): New function.
41502         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41503         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41504         failure.
41505         * modules/closeout (Depends-on): Add stdbool.
41506
41507 2008-10-05  Bruno Haible  <bruno@clisp.org>
41508
41509         * modules/accept: New file.
41510         * modules/bind: New file.
41511         * modules/connect: New file.
41512         * modules/getpeername: New file.
41513         * modules/getsockname: New file.
41514         * modules/getsockopt: New file.
41515         * modules/listen: New file.
41516         * modules/recv: New file.
41517         * modules/recvfrom: New file.
41518         * modules/send: New file.
41519         * modules/sendto: New file.
41520         * modules/setsockopt: New file.
41521         * modules/socket: New file.
41522         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41523         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41524         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41525         the particular module is requested. Add a link warning when the
41526         particular module is not requested.
41527         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41528         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41529         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41530         the particular module is requested.
41531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41532         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41533         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41534         * modules/sys_socket (Depends-on): Add link-warning.
41535         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41536         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41537         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41538         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41539         GL_LINK_WARNING.
41540         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41541         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41542         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41543         * doc/posix-functions/getpeername.texi: Mention the new module
41544         'getpeername'.
41545         * doc/posix-functions/getsockname.texi: Mention the new module
41546         'getsockname'.
41547         * doc/posix-functions/getsockopt.texi: Mention the new module
41548         'getsockopt'.
41549         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41550         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41551         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41552         * doc/posix-functions/send.texi: Mention the new module 'send'.
41553         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41554         * doc/posix-functions/setsockopt.texi: Mention the new module
41555         'setsockopt'.
41556         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41557         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41558         listen, connect, accept.
41559         * modules/select-tests (Depends-on): Likewise.
41560
41561 2008-10-05  Bruno Haible  <bruno@clisp.org>
41562
41563         * lib/winsock.c (strerror): Remove unused #undef.
41564         (rpl_close): Remove unused local variable.
41565
41566         * modules/sys_socket (Depends-on); Add errno.
41567
41568 2008-10-05  Bruno Haible  <bruno@clisp.org>
41569
41570         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41571         (select): Add a link warning when the 'select' module is not used.
41572         * modules/sys_select (Depends-on): Add link-warning.
41573         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41574         Suggested by Paolo Bonzini.
41575
41576 2008-10-05  Jim Meyering  <meyering@redhat.com>
41577
41578         bootstrap: check for LT_INIT more portably
41579         * build-aux/bootstrap: Avoid using grep -E, since it's not
41580         portable enough.  Suggestion from Bruno Haible.
41581
41582 2008-10-05  Bruno Haible  <bruno@clisp.org>
41583
41584         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41585         as being fixed by gnulib.
41586
41587 2008-10-05  Bruno Haible  <bruno@clisp.org>
41588
41589         * modules/select-tests: New file, mostly copied from
41590         modules/sys_select-tests.
41591         * tests/test-select.c: New file, mostly copied from
41592         tests/test-sys_select.c.
41593         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41594         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41595         (Makefile.am): Remove test_sys_select_LDADD.
41596
41597         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41598         to an undefined symbol, for an error message.
41599         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41600         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41601         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41602         winsock-select.c here.
41603         * modules/sys_select (Files): Remove lib/winsock-select.c.
41604         (Depends-on): Remove alloca.
41605         (Makefile.am): Substitute GNULIB_SELECT.
41606         * modules/select: New file.
41607         * doc/posix-functions/select.texi: Update.
41608
41609 2008-10-05  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41612         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41613         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41614         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41615         getdtablesize.
41616         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41617         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41618
41619 2008-10-05  Bruno Haible  <bruno@clisp.org>
41620
41621         * modules/getdtablesize-tests: New file.
41622         * tests/test-getdtablesize.c: New file.
41623
41624         New module 'getdtablesize'.
41625         * lib/unistd.in.h (getdtablesize): New declaration.
41626         * lib/getdtablesize.c: New file.
41627         * m4/getdtablesize.m4: New file.
41628         * modules/getdtablesize: New file.
41629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41630         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41631         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41632         HAVE_GETDTABLESIZE.
41633         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41634
41635 2008-10-05  Bruno Haible  <bruno@clisp.org>
41636
41637         * modules/sched (Makefile.am): Fix typo.
41638         Reported by Simon Josefsson.
41639
41640 2008-10-05  Jim Meyering  <meyering@redhat.com>
41641
41642         bootstrap: check for LT_INIT, too
41643         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41644         are deprecated.  Suggestion from Ralf Wildenhues.
41645
41646 2008-10-05  Bruno Haible  <bruno@clisp.org>
41647
41648         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41649         overriding them by ours.
41650         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41651
41652 2008-10-05  Jim Meyering  <meyering@redhat.com>
41653
41654         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41655         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41656         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41657
41658 2008-10-04  Bruno Haible  <bruno@clisp.org>
41659
41660         * modules/dup2 (License): Change to LGPLv2+.
41661         * modules/sleep (License): Likewise.
41662         * modules/perror (License): Likewise.
41663         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41664         Blake.
41665         * modules/signal (License): Likewise.
41666         * modules/sigprocmask (License): Likewise.
41667         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41668         Meyering.
41669
41670 2008-10-04  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41673         Reported by Rainer Tammer <tammer@tammer.net>.
41674
41675 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41679         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41680         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41681
41682 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41683
41684         filevercmp: new module
41685         * lib/filevercmp.h: New function filevercmp comparing version strings.
41686         * lib/filevercmp.c: Implementation of filevercmp function.
41687         * modules/filevercmp: Module metadata.
41688         * tests/test-filevercmp.c: Unit test for new module.
41689         * modules/filevercmp-tests: Unit test metadata.
41690         * MODULES.html.sh: Add filevercmp module.
41691
41692 2008-10-03  Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/c-ctype.h: Add comment.
41695         Reported by Jim Meyering.
41696
41697 2008-10-02  Bruno Haible  <bruno@clisp.org>
41698
41699         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41700
41701 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41702
41703         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41704         name of bootstrap.conf accordingly.
41705
41706 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41707
41708         * build-aux/bootstrap: Install git-merge-changelog configuration
41709         items into .gitconfig if needed.
41710
41711 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41712
41713         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41714         git repository, and initialize/update it accordingly.
41715
41716 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41717
41718         * modules/fsync-tests: New file.
41719         * tests/test-fsync.c: New file.
41720
41721         New module 'fsync'.
41722         * lib/fsync.c: New file.
41723         * m4/fsync.m4: New file.
41724         * modules/fsync: New file.
41725         * lib/unistd.in.h (fsync): New declaration.
41726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41727         GNULIB_FSYNC and HAVE_FSYNC.
41728         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41729         * MODULES.html.sh (posix_functions): Add fsync.
41730         * doc/posix-functions/fsync.texi: Mention the new module.
41731
41732 2008-10-02  Jim Meyering  <meyering@redhat.com>
41733
41734         fts.c: sync with similar code from coreutils' remove.c
41735         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41736         Guard also with "#if defined __linux__", since for now at least,
41737         this code is Linux-kernel-specific.
41738
41739 2008-10-02  Jim Meyering  <meyering@redhat.com>
41740
41741         fts: bug fixes
41742         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41743         Include <sys/vfs.h>, not <sys/statfs.h>.
41744
41745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41746         Include <sys/vfs.h>, not <sys/statfs.h>.
41747
41748 2008-10-01  Bruno Haible  <bruno@clisp.org>
41749
41750         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41752         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41753         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41754         * doc/posix-functions/posix_spawnp.texi: Likewise.
41755         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41756         whether posix_spawn actually works.
41757         * m4/pipe.m4 (gl_PIPE): Likewise.
41758         * modules/execute (Files): Add m4/posix_spawn.m4.
41759         * modules/pipe (Files): Add m4/posix_spawn.m4.
41760         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41761
41762 2008-10-01  Jim Meyering  <meyering@redhat.com>
41763
41764         remove trailing spaces
41765         * NEWS: Likewise.
41766         * lib/poll.c (poll): Likewise.
41767         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41768         * lib/winsock.c (rpl_close): Likewise.
41769         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41770         * modules/yield: Likewise.
41771         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41772         * tests/test-sys_select.c (connect_to_socket): Likewise.
41773
41774         fts.c: adjust a new interface to be more generally useful
41775         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41776         (fts_build): Adjust caller.
41777
41778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41779
41780         * modules/cond-tests: New file.
41781         * tests/test-cond.c: New file.
41782
41783 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41784             Bruno Haible  <bruno@clisp.org>
41785
41786         * modules/cond (Dependencies): Add errno, time.
41787         * lib/glthread/cond.h: Include <time.h>.
41788         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41789         across platforms.
41790
41791 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41792             Bruno Haible  <bruno@clisp.org>
41793
41794         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41795
41796 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41797             Bruno Haible  <bruno@clisp.org>
41798
41799         * modules/tls-tests (Depends-on): Add thread, yield.
41800         (configure.ac): Remove all checks.
41801         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41802         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41803         gl_thread_self): Remove definitions. Include glthread/thread.h and
41804         glthread/yield.h instead.
41805         (test_tls): Pass an additional NULL argument to gl_thread_join.
41806
41807 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41808             Bruno Haible  <bruno@clisp.org>
41809
41810         * modules/lock-tests (Depends-on): Add thread, yield.
41811         (configure.ac): Remove all checks.
41812         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41813         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41814         gl_thread_self): Remove definitions. Include glthread/thread.h and
41815         glthread/yield.h instead.
41816         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41817         additional NULL argument to gl_thread_join.
41818
41819 2008-09-30  Bruno Haible  <bruno@clisp.org>
41820
41821         Fix the Win32 implementation of the 'thread' module.
41822         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41823         pointer type.
41824         (gl_thread_self): Invoke gl_thread_self_func.
41825         (gl_thread_self_func): New declaration.
41826         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41827         (do_init_self_key, init_self_key): New functions.
41828         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41829         Remove some fields.
41830         (running_threads, running_lock): Remove variables.
41831         (get_current_thread_handle): New function.
41832         (gl_thread_self_func, wrapper_func, glthread_create_func,
41833         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41834         simplified.
41835
41836 2008-09-30  Bruno Haible  <bruno@clisp.org>
41837
41838         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41839         files.
41840
41841 2008-09-30  Jim Meyering  <meyering@redhat.com>
41842
41843         fts.m4: correct the test for statfs.f_type
41844         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41845         when checking for statfs.f_type.
41846
41847 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41848
41849         tests: avoid some compiler warnings
41850         * tests/test-memchr.c (main): Pass NULL indirectly.
41851         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41852
41853 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41854
41855         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41856         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41857         exactly specified dayshifts.
41858         (dayshift): New rule.
41859         (rel): Add dayshift.
41860         (relative_time_table) [tomorrow, yesterday, today, now]:
41861         Use tDAY_SHIFT in place of tDAY_UNIT.
41862         * tests/test-getdate.c: Add tests for now-disallowed countable
41863         dayshifts, e.g., "4 yesterday ago".
41864
41865 2008-09-29  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41868         * tests/test-posix_spawn1.in.sh: Renamed from
41869         tests/test-posix_spawn.in.sh.
41870         * tests/test-posix_spawn2.c: New file.
41871         * tests/test-posix_spawn2.in.sh: New file.
41872         * modules/posix_spawnp-tests (Files): Update.
41873         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41874
41875 2008-09-29  Bruno Haible  <bruno@clisp.org>
41876
41877         Propagate effects of putenv/setenv/unsetenv to child processes.
41878         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41879         * lib/pipe.c (create_pipe): Likewise.
41880
41881 2008-09-29  Bruno Haible  <bruno@clisp.org>
41882
41883         Enable use of shell scripts as executables in mingw.
41884         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41885         run the program as a shell script.
41886         * lib/pipe.c (create_pipe): Likewise.
41887         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41888         resulting array.
41889
41890 2008-09-29  Eric Blake  <ebb9@byu.net>
41891
41892         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41893
41894 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41895
41896         * doc/posix-functions/accept.texi: Update mingw problems.
41897         * doc/posix-functions/bind.texi: Update mingw problems.
41898         * doc/posix-functions/close.texi: Update mingw problems.
41899         * doc/posix-functions/connect.texi: Update mingw problems.
41900         * doc/posix-functions/getpeername.texi: Update mingw problems.
41901         * doc/posix-functions/getsockname.texi: Update mingw problems.
41902         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41903         * doc/posix-functions/ioctl.texi: Update mingw problems.
41904         * doc/posix-functions/listen.texi: Update mingw problems.
41905         * doc/posix-functions/recv.texi: Update mingw problems.
41906         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41907         * doc/posix-functions/select.texi: Update mingw problems.
41908         * doc/posix-functions/send.texi: Update mingw problems.
41909         * doc/posix-functions/sendto.texi: Update mingw problems.
41910         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41911         * doc/posix-functions/socket.texi: Update mingw problems.
41912
41913 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41914             Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/sys_select.in.h: Include sys/time.h.
41917         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41918         * modules/sys_select: Depend on sys_time.
41919         * tests/test-sys_select.c: Test that sys/select.h defines struct
41920         timeval fully.
41921
41922 2008-09-29  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41925         * lib/sys_select.in.h: Likewise.
41926
41927 2008-09-29  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41930
41931 2008-09-29  Bruno Haible  <bruno@clisp.org>
41932
41933         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41934         Set LIBSOCKET instead of augmenting LIBS.
41935         * modules/sockets (Link): New section.
41936         * modules/sockets-tests (test_sockets_LDADD): New variable.
41937         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41938         * modules/poll-tests (test_poll_LDADD): New variable.
41939         * NEWS: Document the change.
41940
41941 2008-09-29  Bruno Haible  <bruno@clisp.org>
41942
41943         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41944         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41945         ARPA_INET_H directly.
41946         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41947
41948 2008-09-28  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41951         from gl_HEADER_SYS_SOCKET.
41952         (gl_HEADER_SYS_SOCKET): Invoke it.
41953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41954
41955 2008-09-28  Bruno Haible  <bruno@clisp.org>
41956
41957         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41958         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41959         Needed on OSF/1 4.0.
41960
41961 2008-09-28  Bruno Haible  <bruno@clisp.org>
41962
41963         Override open more carefully.
41964         * lib/open.c (orig_open): New function.
41965         (rpl_open): Use orig_open instead of open.
41966         * lib/fcntl.in.h: Add special invocation convention.
41967         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41968         (gl_FUNC_OPEN): Invoke it.
41969
41970         Override freopen more carefully.
41971         * lib/freopen.c (orig_freopen): New function.
41972         (rpl_freopen): Use orig_freopen instead of freopen.
41973         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41974         (gl_FUNC_FREOPEN): Invoke it.
41975
41976         Override fopen more carefully.
41977         * lib/fopen.c (orig_fopen): New function.
41978         (rpl_fopen): Use orig_fopen instead of fopen.
41979         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41980         (gl_FUNC_FOPEN): Invoke it.
41981         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41982
41983 2008-09-28  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41986         SIGPIPE.
41987
41988 2008-09-28  Bruno Haible  <bruno@clisp.org>
41989
41990         * tests/test-sigaction.c (handler, main): Disable the check whether
41991         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41992         glibc systems with LinuxThreads.
41993
41994 2008-09-28  Bruno Haible  <bruno@clisp.org>
41995
41996         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41997
41998         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41999         with AIX xlc.
42000         * lib/fcntl.in.h (open): Likewise.
42001         Reported by Rainer Tammer <tammer@tammer.net>.
42002
42003 2008-09-28  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/posix_spawnp-tests: New file.
42006         * tests/test-posix_spawn.c: New file.
42007         * tests/test-posix_spawn.in.sh: New file.
42008
42009         New module 'posix_spawnp'.
42010         * modules/posix_spawnp: New file.
42011         * lib/spawnp.c: New file, from GNU libc with modifications.
42012         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42013
42014         New module 'posix_spawn'.
42015         * modules/posix_spawn: New file.
42016         * lib/spawn.c: New file, from GNU libc with modifications.
42017         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42018
42019         New module 'posix_spawnattr_destroy'.
42020         * modules/posix_spawnattr_destroy: New file.
42021         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42022         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42023         module.
42024
42025         New module 'posix_spawnattr_setsigmask'.
42026         * modules/posix_spawnattr_setsigmask: New file.
42027         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42028         modifications.
42029         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42030         new module.
42031
42032         New module 'posix_spawnattr_getsigmask'.
42033         * modules/posix_spawnattr_getsigmask: New file.
42034         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42035         modifications.
42036         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42037         new module.
42038
42039         New module 'posix_spawnattr_setsigdefault'.
42040         * modules/posix_spawnattr_setsigdefault: New file.
42041         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42042         modifications.
42043         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42044         new module.
42045
42046         New module 'posix_spawnattr_getsigdefault'.
42047         * modules/posix_spawnattr_getsigdefault: New file.
42048         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42049         modifications.
42050         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42051         new module.
42052
42053         New module 'posix_spawnattr_setschedpolicy'.
42054         * modules/posix_spawnattr_setschedpolicy: New file.
42055         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42056         modifications.
42057         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42058         new module.
42059
42060         New module 'posix_spawnattr_getschedpolicy'.
42061         * modules/posix_spawnattr_getschedpolicy: New file.
42062         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42063         modifications.
42064         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42065         new module.
42066
42067         New module 'posix_spawnattr_setschedparam'.
42068         * modules/posix_spawnattr_setschedparam: New file.
42069         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42070         modifications.
42071         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42072         new module.
42073
42074         New module 'posix_spawnattr_getschedparam'.
42075         * modules/posix_spawnattr_getschedparam: New file.
42076         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42077         modifications.
42078         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42079         new module.
42080
42081         New module 'posix_spawnattr_setpgroup'.
42082         * modules/posix_spawnattr_setpgroup: New file.
42083         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42084         modifications.
42085         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42086         module.
42087
42088         New module 'posix_spawnattr_getpgroup'.
42089         * modules/posix_spawnattr_getpgroup: New file.
42090         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42091         modifications.
42092         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42093         module.
42094
42095         New module 'posix_spawnattr_setflags'.
42096         * modules/posix_spawnattr_setflags: New file.
42097         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42098         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42099         module.
42100
42101         New module 'posix_spawnattr_getflags'.
42102         * modules/posix_spawnattr_getflags: New file.
42103         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42104         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42105         module.
42106
42107         New module 'posix_spawnattr_init'.
42108         * modules/posix_spawnattr_init: New file.
42109         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42110         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42111         module.
42112
42113         New module 'posix_spawn_file_actions_destroy'.
42114         * modules/posix_spawn_file_actions_destroy: New file.
42115         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42116         modifications.
42117         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42118         the new module.
42119
42120         New module 'posix_spawn_file_actions_addopen'.
42121         * modules/posix_spawn_file_actions_addopen: New file.
42122         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42123         modifications.
42124         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42125         the new module.
42126
42127         New module 'posix_spawn_file_actions_adddup2'.
42128         * modules/posix_spawn_file_actions_adddup2: New file.
42129         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42130         modifications.
42131         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42132         the new module.
42133
42134         New module 'posix_spawn_file_actions_addclose'.
42135         * modules/posix_spawn_file_actions_addclose: New file.
42136         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42137         modifications.
42138         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42139         the new module.
42140
42141         New module 'posix_spawn_file_actions_init'.
42142         * modules/posix_spawn_file_actions_init: New file.
42143         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42144         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42145         new module.
42146
42147         New module 'posix_spawn-internal'.
42148         * modules/posix_spawn-internal: New file.
42149         * lib/spawn_int.h: New file, from GNU libc with modifications.
42150         * lib/spawni.c: New file, from GNU libc with modifications.
42151         * m4/posix_spawn.m4: New file.
42152
42153         New module 'spawn'.
42154         * modules/spawn: New file.
42155         * lib/spawn.in.h: New file, from GNU libc with modifications.
42156         * m4/spawn_h.m4: New file.
42157         * doc/posix-headers/spawn.texi: Mention the new module.
42158
42159 2008-09-28  Bruno Haible  <bruno@clisp.org>
42160
42161         * modules/sched-tests: New file.
42162         * tests/test-sched.c: New file.
42163
42164         New module 'sched'.
42165         * modules/sched: New file.
42166         * lib/sched.in.h: New file.
42167         * m4/sched_h.m4: New file.
42168         * doc/posix-headers/sched.texi: Mention the new module.
42169
42170 2008-09-27  Eric Blake  <ebb9@byu.net>
42171
42172         Fix previous patch, and tweak references to $0.
42173         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42174         (func_version, func_gnulib_dir): Don't call this program
42175         gnulib-tool.
42176         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42177         with using $0 in function.
42178         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42179         (func_fatal_error): Reuse the name the user invoked us with.
42180
42181 2008-09-27  Bruno Haible  <bruno@clisp.org>
42182
42183         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42184         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42185         (gl_ICONV_H): Not here.
42186         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42187         instead of assigning ICONV_H directly.
42188
42189         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42191         WCHAR_H directly.
42192
42193 2008-09-27  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42196         * modules/arpa_inet (Depends-on): Add link-warning.
42197         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42198         * modules/unistd (Makefile.am): Likewise.
42199
42200 2008-09-26  Bruno Haible  <bruno@clisp.org>
42201
42202         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42203         variables.
42204         (func_version): Essentially copied from gnulib-tool.
42205         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42206         func_readlink): Copied from gnulib-tool.
42207
42208 2008-09-26  Bruno Haible  <bruno@clisp.org>
42209
42210         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42211         invoking git-version-gen.
42212
42213 2008-09-26  Bruno Haible  <bruno@clisp.org>
42214
42215         * posix-modules: Update to directory names changed on 2008-01-19.
42216         Remove commas in output before splitting into words. No more need to
42217         avoid 'ftruncate' since 2007-02-19.
42218
42219 2008-09-26  Bruno Haible  <bruno@clisp.org>
42220
42221         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42222
42223 2008-09-26  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42226         * modules/fwriteerror (Depends-on): Add errno.
42227
42228 2008-09-26  Bruno Haible  <bruno@clisp.org>
42229
42230         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42231         * tests/test-vc-list-files-cvs.sh: Likewise.
42232
42233 2008-09-26  Bruno Haible  <bruno@clisp.org>
42234
42235         * doc/posix-headers/sys_resource.texi: Reorder items.
42236
42237 2008-09-26  Jim Meyering  <meyering@redhat.com>
42238
42239         fts: tweak inode comparison function
42240         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42241         inode numbers, as documented.
42242
42243         fts: sort dirent entries on inode number before traversing
42244         This avoids a quadratic, seek-related performance penalty when
42245         operating on a directory containing many entries (measurable at 10k;
42246         3.5 hours at 2 million entries with a cold cache) on certain types
42247         of file systems, including ext3 and ext4, but not tmpfs.
42248         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42249         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42250         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42251         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42252         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42253         (fts_build): Set the stat.st_ino member from D_INO.
42254         If it is likely to be useful, sort dirent entries on inode number.
42255
42256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42257         and the struct statfs.f_type member.
42258         * modules/fts (Depends-on): Add d-ino.
42259
42260 2008-09-26  Bruno Haible  <bruno@clisp.org>
42261
42262         * modules/sigpipe-die (Depends-on): Add sigpipe.
42263
42264         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42265         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42266         and GNULIB_STDIO_H_SIGPIPE are set.
42267         * lib/stdio-write.c: New file.
42268         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42269         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42270         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42271         REPLACE_STDIO_WRITE_FUNCS.
42272         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42273         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42274         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42275         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42276         * modules/stdio (Files): Add lib/stdio-write.c.
42277         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42278         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42279         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42280         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42281         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42282         REPLACE_FPRINTF_POSIX.
42283         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42284         REPLACE_PRINTF_POSIX.
42285         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42286         REPLACE_VFPRINTF_POSIX.
42287         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42288         REPLACE_VPRINTF_POSIX.
42289         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42290         SIGPIPE issue.
42291         * doc/posix-functions/fputc.texi: Likewise.
42292         * doc/posix-functions/fputs.texi: Likewise.
42293         * doc/posix-functions/fwrite.texi: Likewise.
42294         * doc/posix-functions/printf.texi: Likewise.
42295         * doc/posix-functions/putc.texi: Likewise.
42296         * doc/posix-functions/putchar.texi: Likewise.
42297         * doc/posix-functions/puts.texi: Likewise.
42298         * doc/posix-functions/vfprintf.texi: Likewise.
42299         * doc/posix-functions/vprintf.texi: Likewise.
42300
42301         * modules/safe-write (Depends-on): Add write.
42302
42303         * modules/sigpipe-tests: New file.
42304         * tests/test-sigpipe.c: New file.
42305         * tests/test-sigpipe.sh: New file.
42306
42307         * modules/write: New file.
42308         * lib/unistd.in.h: Include <sys/types.h>.
42309         (write): New declaration.
42310         * lib/write.c: New file.
42311         * m4/write.m4: New file.
42312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42313         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42314         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42315         GNULIB_WRITE, REPLACE_WRITE.
42316         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42317         and the SIGPIPE issue.
42318
42319         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42320         (raise): New declaration.
42321         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42322         (ext_signal): New function.
42323         (rpl_raise): New function.
42324         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42325         GNULIB_SIGNAL_H_SIGPIPE.
42326         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42327         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42328
42329         * modules/sigpipe: New file.
42330         * m4/sigpipe.m4: New file.
42331
42332 2008-09-25  Derek Price  <derek@ximbiot.com>
42333             Bruno Haible  <bruno@clisp.org>
42334
42335         * gnulib-tool (func_import): Report all license incompatibilities, not
42336         just the first one.
42337
42338 2008-09-25  Bruno Haible  <bruno@clisp.org>
42339
42340         * gnulib-tool (func_import): When computing the edits, consider not
42341         only the Makefile.ams that exist but also those that will be generated.
42342
42343 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42344
42345         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42346         fixes gnulib-tool --test warning about duplicate dependency.
42347
42348 2008-09-25  Bruno Haible  <bruno@clisp.org>
42349
42350         * gnulib-tool: Don't ask the user to perform edits in the generated
42351         Makefile.ams.
42352         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42353         apply to the Makefile.am being generated.
42354         (func_emit_tests_Makefile_am): Execute edits that apply to the
42355         Makefile.am being generated.
42356         (func_import): Setup list of Makefile.am edits before emitting the
42357         Makefile.ams, not at the end.
42358         (func_create_testdir): Update.
42359         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42360
42361 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42362
42363         * gnulib-tool (func_import): Store the --tests-base option in the
42364         comment in gnulib-cache.m4.
42365
42366 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42367
42368         * NEWS: Document increased portability that sys_select now provides.
42369
42370         * lib/sys_select.in.h: Install select wrapper.
42371         * lib/sys_socket.in.h: Use more descriptive name when there is no
42372         select wrapper.
42373         * lib/winsock-select.c: New.
42374         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42375         Require gl_HEADER_SYS_SOCKET.
42376         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42377         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42378         * tests/test-sys_select.c: Add functional tests.
42379
42380 2008-09-24  Eric Blake  <ebb9@byu.net>
42381
42382         open, fopen: close fd leak in last patch
42383         * lib/open.c (rpl_open): Close fd before returning error.
42384         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42385         * doc/posix-functions/open.texi (open): Document that Irix also
42386         has the bug.
42387         * doc/posix-functions/fopen.texi (fopen): Likewise.
42388         Reported by Paolo Bonzini.
42389
42390 2008-09-24  Bruno Haible  <bruno@clisp.org>
42391
42392         Ensure that a filename ending in a slash cannot be used to access a
42393         non-directory.
42394         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42395         to check whether it's really a directory.
42396         * lib/fopen.c: Include fcntl.h, unistd.h.
42397         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42398         and fdopen().
42399         * modules/fopen (Depends-on): Add unistd.
42400         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42401         * tests/test-fopen.c (main): Likewise.
42402         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42403         * doc/posix-functions/fopen.texi: Likewise.
42404         Reported by Eric Blake.
42405
42406 2008-09-23  Eric Blake  <ebb9@byu.net>
42407
42408         c-stack: avoid compiler optimizations when provoking overflow
42409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42410         recursion harder to optimize, to ensure a stack overflow occurs.
42411         * tests/test-c-stack.c (recurse): Likewise.
42412         Borrowed from libsigsegv.
42413
42414         c-stack: work around Irix sigaltstack bug
42415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42416         whether sigaltstack uses wrong end of stack_t (copied in part from
42417         libsigsegv).
42418         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42419         Irix bug, without requiring an over-allocation.
42420         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42421         bug.
42422
42423         fopen: document mingw bug on directories
42424         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42425         not allowing a stream visiting a directory, even though reading
42426         from such a stream is not portable.
42427
42428 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42429
42430         * lib/poll.c: Rewrite.
42431         * modules/poll: Depend on alloca.
42432
42433 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42434
42435         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42436         instead define prototypes for a full set of wrappers.  Ensure
42437         that Cygwin does not use the compatibility code, which is only
42438         for MinGW.
42439         * lib/winsock.c: New.
42440         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42441         * modules/sys_socket: Add lib/winsock.c.
42442
42443         * modules/poll-tests: Add errno and perror.
42444         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42445
42446 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42447
42448         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42449
42450 2008-09-23  Bruno Haible  <bruno@clisp.org>
42451
42452         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42453         * doc/glibc-functions/*: Likewise.
42454
42455 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42456
42457         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42458         success.
42459
42460 2008-09-22  Eric Blake  <ebb9@byu.net>
42461             Bruno Haible  <bruno@clisp.org>
42462
42463         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42464         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42465         supply %A but mishandle pseudo-NaN.
42466         Reported by Simon Josefsson.
42467
42468 2008-09-21  Bruno Haible  <bruno@clisp.org>
42469
42470         * tests/test-lock.c (main): Tweak skip message.
42471         * tests/test-tls.c (main): Likewise.
42472
42473 2008-09-21  Bruno Haible  <bruno@clisp.org>
42474
42475         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42476         whether 'struct sigaction' has sa_sigaction here...
42477         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42478         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42479
42480 2008-09-21  Bruno Haible  <bruno@clisp.org>
42481
42482         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42483         section.
42484         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42485         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42486         the new section.
42487         (Support for obsolete systems lacking POSIX:2001): New section.
42488         (String handling <string.h>): Move strdup to the new section.
42489         Suggested by Simon Josefsson and Paolo Bonzini.
42490
42491 2008-09-21  Bruno Haible  <bruno@clisp.org>
42492
42493         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42494         exponents in %e and %g results on 'long double'. Needed for mingw's
42495         improved *printf functions.
42496         * tests/test-vasprintf-posix.c (test_function): Likewise.
42497         * tests/test-snprintf-posix.h (test_function): Likewise.
42498         * tests/test-sprintf-posix.h (test_function): Likewise.
42499         Reported by Eric Blake.
42500
42501 2008-09-21  Bruno Haible  <bruno@clisp.org>
42502
42503         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42504         * tests/test-sprintf-posix.h (test_function): Likewise.
42505
42506 2008-09-21  Bruno Haible  <bruno@clisp.org>
42507
42508         * modules/getpass (Depends-on): Add strdup-posix.
42509
42510         New module 'strdup-posix'.
42511         * modules/strdup-posix: New file.
42512         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42513         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42515         REPLACE_STRDUP.
42516         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42517         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42519         strdup-posix.
42520
42521         * modules/strdup (Depends-on): Remove malloc-posix.
42522
42523 2008-09-20  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42526         Wildenhues.
42527
42528 2008-09-20  Bruno Haible  <bruno@clisp.org>
42529
42530         Ensure that wint_t gets defined on IRIX 5.3.
42531         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42532         * lib/wctype.in.h (wint_t): Likewise.
42533         (__wctype_wint_t): Remove type.
42534         (isw*): Use wint_t instead of __wctype_wint_t.
42535         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42536         * modules/wchar (Files): Add m4/wint_t.m4.
42537         (Makefile.am): Substitute HAVE_WINT_T.
42538         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42539         * tests/test-wctype.c: Check that wint_t is defined.
42540         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42541         * doc/posix-headers/wctype.texi: Likewise.
42542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42543
42544 2008-09-18  Bruno Haible  <bruno@clisp.org>
42545
42546         * gnulib-tool (func_exit): Update comment.
42547
42548 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42549
42550         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42551         assumes strdup exists and does not depend on strdup to return
42552         ENOMEM on out of memory conditions.
42553
42554 2008-09-18  Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42557         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42558         digits for the exponent.
42559
42560 2008-09-18  Jim Meyering  <meyering@redhat.com>
42561             Bruno Haible  <bruno@clisp.org>
42562
42563         * lib/vasnprintf.c (decimal_point_char): Define also if
42564         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42565
42566 2008-09-16  Bruno Haible  <bruno@clisp.org>
42567         and Eric Blake  <ebb9@byu.net>
42568
42569         vasnprintf: support Irix 5.3
42570         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42571         that mishandle long double infinity.
42572         Reported by Tom G. Christensen.
42573
42574 2008-09-16  Bruno Haible  <bruno@clisp.org>
42575
42576         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42577         Solaris 9.
42578         * doc/glibc-functions/alphasort.texi: Likewise.
42579         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42580
42581 2008-09-16  Jim Meyering  <meyering@redhat.com>
42582
42583         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42584         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42585         a umask modification leak out of a subshell.  Otherwise, the
42586         opensolaris /bin/sh would be accepted and thus cause unwarranted
42587         failures in the coreutils test suite.
42588
42589 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42590
42591         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42592         to succeed.
42593
42594 2008-09-16  Jim Meyering  <meyering@redhat.com>
42595
42596         avoid spurious test failure when library is built without ACL support
42597         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42598         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42599         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42600         * tests/test-copy-acl.sh: Likewise.
42601
42602 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42603
42604         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42605         based on character occurrence counts.
42606
42607 2008-09-15  Eric Blake  <ebb9@byu.net>
42608
42609         tests: avoid some compiler warnings
42610         * tests/test-memchr.c (main): Pass NULL indirectly.
42611         * tests/test-closein.c (main): Avoid unused variable.
42612
42613 2008-09-15  Bruno Haible  <bruno@clisp.org>
42614
42615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42616         are missing on OpenBSD 4.0 individually.
42617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42618
42619 2008-09-15  Bruno Haible  <bruno@clisp.org>
42620
42621         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42622         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42623         * doc/posix-functions/perror.texi: Likewise.
42624         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42625         is missing.
42626         Reported by Eric Blake.
42627
42628         * lib/errno.in.h: Use replacement values >= 2000.
42629         Reported by Eric Blake.
42630
42631 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42632
42633         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42634         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42635         limit.
42636         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42637         compareseq was aborted.
42638
42639 2008-09-14  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42642         yvec_edit_count.
42643         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42644         (fstrcmp_bounded): Simplify result computation accordingly.
42645
42646 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42647
42648         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42649         (fstrcmp): Define in terms of fstrcmp_bounded.
42650         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42651         lower_bound argument.
42652         Return quickly if the result is certainly < lower_bound.
42653         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42654
42655 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42656
42657         * lib/diffseq.h (EARLY_ABORT): New macro.
42658         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42659         evaluates to true.
42660
42661 2008-09-14  Bruno Haible  <bruno@clisp.org>
42662
42663         * modules/perror-tests: New file.
42664         * tests/test-perror.sh: New file.
42665         * tests/test-perror.c: New file.
42666
42667         New module 'perror'.
42668         * lib/stdio.in.h (perror): New declaration.
42669         * lib/perror.c: New file.
42670         * m4/perror.m4: New file.
42671         * modules/perror: New file.
42672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42673         * doc/posix-functions/perror.texi: Mention the perror module.
42674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42675         REPLACE_PERROR.
42676         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42677         REPLACE_PERROR.
42678
42679 2008-09-14  Bruno Haible  <bruno@clisp.org>
42680
42681         * modules/stdio (Makefile.am): Reorder to match the order in
42682         lib/stdio.in.h.
42683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42684
42685 2008-09-13  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42688
42689 2008-09-13  Bruno Haible  <bruno@clisp.org>
42690
42691         Extend strerror to cover the added errno values.
42692         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42693         (rpl_strerror): Provide error messages for the added errno values and
42694         for the WSA* values.
42695         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42696         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42697         strerror.
42698         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42699         * modules/strerror (Depends-on): Add errno.
42700         * doc/posix-functions/strerror.texi: Document the change.
42701         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42702         and EOVERFLOW.
42703
42704 2008-09-13  Bruno Haible  <bruno@clisp.org>
42705
42706         * modules/EOVERFLOW: Remove file.
42707         * m4/eoverflow.m4: Remove file.
42708         * modules/EOVERFLOW-tests: Remove file.
42709         * tests/test-EOVERFLOW.c: Remove file.
42710         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42711         * modules/ftell (Depends-on): Likewise.
42712         * modules/getdelim (Depends-on): Likewise.
42713         * modules/getugroups (Depends-on): Likewise.
42714         * modules/poll (Depends-on): Likewise.
42715         * modules/snprintf (Depends-on): Likewise.
42716         * modules/sprintf-posix (Depends-on): Likewise.
42717         * modules/vasnprintf (Depends-on): Likewise.
42718         * modules/vasprintf (Depends-on): Likewise.
42719         * modules/vfprintf-posix (Depends-on): Likewise.
42720         * modules/vsnprintf (Depends-on): Likewise.
42721         * modules/vsprintf-posix (Depends-on): Likewise.
42722         * modules/xvasprintf (Depends-on): Likewise.
42723         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42724         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42725         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42726         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42727         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42728         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42729         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42730         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42732         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42733         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42734         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42735         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42736         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42737         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42738         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42740         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42741         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42742         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42743         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42744         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42745         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42746         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42747         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42748         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42749         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42750         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42751         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42752         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42753         * MODULES.html.sh: Remove EOVERFLOW.
42754         * NEWS: Mention the change.
42755
42756 2008-09-13  Bruno Haible  <bruno@clisp.org>
42757
42758         * modules/errno-tests: New file.
42759         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42760
42761         * lib/errno.in.h: New file.
42762         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42763         * modules/errno: New file.
42764         * doc/posix-headers/errno.texi: Update documentation.
42765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42766
42767 2008-09-13  Bruno Haible  <bruno@clisp.org>
42768
42769         * tests/test-poll.c: Use #if for native Windows, rather than testing
42770         __MSVCRT__.
42771
42772 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42773             Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/glob.c: Don't include <pwd.h> on native Windows.
42776         (WINDOWS32): New macro.
42777         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42778
42779 2008-09-13  Bruno Haible  <bruno@clisp.org>
42780
42781         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42782         (ETIMEDOUT): Remove macro.
42783         (glthread_cond_timedwait_multithreaded): New declaration.
42784         (glthread_cond_timedwait): Use it.
42785         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42786         (glthread_cond_timedwait_multithreaded): New function.
42787
42788 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42789
42790         * modules/poll-tests: Do not check for io.h.
42791         * tests/test-poll.c: Check for __MSVCRT__ instead.
42792
42793 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42794
42795         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42796         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42797         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42798
42799 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42800
42801         * modules/poll-tests: New.
42802         * tests/test-poll.c: New.
42803
42804 2008-09-12  Eric Blake  <ebb9@byu.net>
42805
42806         frexp: test for NetBSD failure on -0.0
42807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42808         not all, bugs from NetBSD 3.0 have been fixed.
42809         * doc/posix-functions/frexp.texi (frexp): Document bug.
42810         Reported by Thomas Klausner.
42811
42812         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42814         literal -0.0.
42815         Reported by Jonathan C. Patschke <jp@centtech.com>.
42816
42817 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42818
42819         * lib/glthread/cond.h: Use dummy implementation also if
42820         USE_WIN32_THREADS.
42821
42822 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42823
42824         * modules/fnmatch-posix (License): Change to LGPLv2+.
42825         * modules/fnmatch-gnu (License): Likewise.
42826
42827 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42828
42829         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42830
42831 2008-09-11  Jim Meyering  <meyering@redhat.com>
42832
42833         * users.txt: Add gtk-vnc.
42834
42835 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42836
42837         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42838         rotate amounts.
42839
42840         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42841         required for 16-bit and 8-bit rotates.
42842         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42843         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42844         UINT8_MAX instead of hard-coded constants.
42845         Suggested by Paul Eggert.
42846
42847 2008-09-07  Bruno Haible  <bruno@clisp.org>
42848
42849         * tests/test-striconveh.c (main): Check behaviour when converting from
42850         UTF-7.
42851
42852         Make striconveh work better with stateful encodings.
42853         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42854         that iconv does not increment the inptr when returning -1/EINVAL.
42855
42856 2008-09-07  Bruno Haible  <bruno@clisp.org>
42857
42858         * build-aux/config.rpath: Update according to libtool-2.2.6.
42859         * build-aux/config.libpath: Likewise.
42860
42861 2008-09-06  Bruno Haible  <bruno@clisp.org>
42862
42863         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42864         * lib/freadptr.c (freadptr): Likewise.
42865         * lib/freadseek.c (freadptrinc): Likewise.
42866         Reported by Simon Josefsson.
42867
42868 2008-09-06  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/freadptr (License): Change to LGPLv2+.
42871         * modules/freadseek (License): Likewise.
42872         Suggested by Eric Blake.
42873
42874         * modules/memchr2 (License): Change to LGPLv2+.
42875         Approved by Eric Blake.
42876
42877 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42878             Bruno Haible  <bruno@clisp.org>
42879
42880         Make gnulib-tool work with native 'sed' on AIX.
42881         * gnulib-tool (sed_noop): New variable.
42882         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42883         func_add_or_update, func_create_testdir): Use it to initialize sed
42884         script variables.
42885         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42886
42887 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42888             Bruno Haible  <bruno@clisp.org>
42889
42890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42891         also works after #include directives.
42892
42893 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42894
42895         getdate.y: reject an out-of-range timezone value
42896         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42897         the range [-24...+24].  When specified with only one or two digits,
42898         * tests/test-getdate.c: Tests for the fix.
42899         * doc/getdate.texi: Document this change.
42900
42901 2008-09-03  Bruno Haible  <bruno@clisp.org>
42902
42903         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42904
42905 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42906
42907         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42908         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42909         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42910         Blake <ebb9@byu.net>.
42911
42912         * tests/test-bitrotate.c: Add more test vectors.
42913
42914 2008-09-02  Eric Blake  <ebb9@byu.net>
42915
42916         vasnprintf-posix: handle large precision via %.*d
42917         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42918         when handling it ourselves.
42919         * tests/test-vasnprintf-posix.c (test_function): Add test.
42920         * tests/test-snprintf-posix.h (test_function): Likewise.
42921         * tests/test-sprintf-posix.h (test_function): Likewise.
42922         * tests/test-vasprintf-posix.c (test_function): Likewise.
42923         Reported by Alain Guibert.
42924
42925 2008-09-01  Eric Blake  <ebb9@byu.net>
42926
42927         c-stack: make configure-time check more robust
42928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42929         successful sigaction call.
42930         Reported by Tom G. Christensen.
42931
42932 2008-09-01  Bruno Haible  <bruno@clisp.org>
42933
42934         New module 'findprog-lgpl'.
42935         * modules/findprog-lgpl: New file.
42936         * lib/findprog-lgpl.c: New file.
42937         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42938         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42939         to decide whether to use strdup or xstrdup, concatenated_filename or
42940         xconcatenated_filename.
42941
42942 2008-09-01  Bruno Haible  <bruno@clisp.org>
42943
42944         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42945         'xconcat-filename' (GPL).
42946         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42947         (License): Change to LGPLv2+.
42948         * modules/xconcat-filename: New file.
42949         * lib/concat-filename.h (concatenated_filename): Change specification.
42950         (xconcatenated_filename): New declaration.
42951         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42952         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42953         memory situations.
42954         * lib/xconcat-filename.c: New file.
42955         * NEWS: Mention the change.
42956         * lib/findprog.c: Include concat-filename.h, not filename.h.
42957         (find_in_path): Use xconcatenated_filename instead of
42958         concatenated_filename.
42959         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42960         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42961         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42962         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42963         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42964         instead of concatenated_filename.
42965         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42966         (execute_java_class): Use xconcatenated_filename instead of
42967         concatenated_filename.
42968         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42969         * modules/javacomp (Depends-on): Likewise.
42970         * modules/javaexec (Depends-on): Likewise.
42971
42972 2008-09-01  Bruno Haible  <bruno@clisp.org>
42973
42974         Split module 'filename' into 'filename' and 'concat-filename'.
42975         * modules/filename: Keep only lib/filename.h.
42976         (License): Change to LGPLv2+.
42977         * modules/concat-filename: New file, extracted from modules/filename.
42978         * lib/filename.h (concatenated_filename): Remove declaration.
42979         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42980         * lib/concat-filename.c: Include concat-filename.h.
42981         * NEWS: Mention the change.
42982
42983 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42984
42985         * lib/bitrotate.h (rotl8, rotr8): Add.
42986
42987         * modules/bitrotate (configure.ac): Need
42988         AC_REQUIRE([AC_C_INLINE]).
42989         (Description): Mention stdint.h.  Reported by Bruno Haible
42990         <bruno@clisp.org>.
42991
42992         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42993         Paolo Bonzini <bonzini@gnu.org>.
42994
42995 2008-08-31  Bruno Haible  <bruno@clisp.org>
42996
42997         Assume Solaris specific bi-arch conventions on Solaris systems.
42998         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42999         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43000         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43001         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43002         like acl_libdirstem.
43003         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43004         acl_libdirstem.
43005         * NEWS: Mention the change.
43006         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43007
43008 2008-08-31  Jim Meyering  <meyering@redhat.com>
43009
43010         * lib/strftime.h: Add comments describing the two added arguments.
43011
43012         remove duplicate #include directives
43013         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43014         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43015
43016 2008-08-31  Bruno Haible  <bruno@clisp.org>
43017
43018         New module 'sigpipe-die'.
43019         * modules/sigpipe-die: New file.
43020         * lib/sigpipe-die.h: New file.
43021         * lib/sigpipe-die.c: New file.
43022         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43023
43024 2008-08-31  Bruno Haible  <bruno@clisp.org>
43025
43026         Don't override previously installed signal handlers.
43027         * lib/fatal-signal.c (saved_sigactions): New variable.
43028         (uninstall_handlers): Reset the signal to the saved handler, not
43029         to SIG_DFL (except when ignored).
43030         (install_handlers): Save the previous handlers.
43031
43032 2008-08-30  Bruno Haible  <bruno@clisp.org>
43033
43034         * gnulib-tool (func_reset_sigpipe): New function.
43035         (func_get_automake_snippet, func_modules_transitive_closure,
43036         func_import): Invoke it before a join command that reads from stdin,
43037         to avoid "echo: write error: Broken pipe" error messages on stderr.
43038         Reported by Sam Steingold <sds@gnu.org>.
43039
43040 2008-08-30  Bruno Haible  <bruno@clisp.org>
43041
43042         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43043         Code copied from m4/open.m4.
43044         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43045         access and the filename ends in a slash. Code copied from lib/open.c.
43046         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43047         * tests/test-fopen.c (main): Check against bug with trailing slash.
43048
43049 2008-08-29  Bruno Haible  <bruno@clisp.org>
43050
43051         Avoid some "gcc -pedantic" warnings.
43052         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43053         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43054         * lib/dirent.in.h: Likewise.
43055         * lib/fcntl.in.h: Likewise.
43056         * lib/float.in.h: Likewise.
43057         * lib/iconv.in.h: Likewise.
43058         * lib/inttypes.in.h: Likewise.
43059         * lib/locale.in.h: Likewise.
43060         * lib/math.in.h: Likewise.
43061         * lib/netinet_in.in.h: Likewise.
43062         * lib/search.in.h: Likewise.
43063         * lib/signal.in.h: Likewise.
43064         * lib/stdarg.in.h: Likewise.
43065         * lib/stdint.in.h: Likewise.
43066         * lib/stdio.in.h: Likewise.
43067         * lib/stdlib.in.h: Likewise.
43068         * lib/string.in.h: Likewise.
43069         * lib/strings.in.h: Likewise.
43070         * lib/sys_select.in.h: Likewise.
43071         * lib/sys_socket.in.h: Likewise.
43072         * lib/sys_stat.in.h: Likewise.
43073         * lib/sys_time.in.h: Likewise.
43074         * lib/sysexits.in.h: Likewise.
43075         * lib/time.in.h: Likewise.
43076         * lib/unistd.in.h: Likewise.
43077         * lib/wchar.in.h: Likewise.
43078         * lib/wctype.in.h: Likewise.
43079         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43080         * modules/fchdir (Makefile.am): Likewise.
43081         * modules/fcntl (Makefile.am): Likewise.
43082         * modules/float (Makefile.am): Likewise.
43083         * modules/iconv_open (Makefile.am): Likewise.
43084         * modules/inttypes (Makefile.am): Likewise.
43085         * modules/locale (Makefile.am): Likewise.
43086         * modules/math (Makefile.am): Likewise.
43087         * modules/netinet_in (Makefile.am): Likewise.
43088         * modules/search (Makefile.am): Likewise.
43089         * modules/signal (Makefile.am): Likewise.
43090         * modules/stdarg (Makefile.am): Likewise.
43091         * modules/stdint (Makefile.am): Likewise.
43092         * modules/stdio (Makefile.am): Likewise.
43093         * modules/stdlib (Makefile.am): Likewise.
43094         * modules/string (Makefile.am): Likewise.
43095         * modules/strings (Makefile.am): Likewise.
43096         * modules/sys_select (Makefile.am): Likewise.
43097         * modules/sys_socket (Makefile.am): Likewise.
43098         * modules/sys_stat (Makefile.am): Likewise.
43099         * modules/sys_time (Makefile.am): Likewise.
43100         * modules/sysexits (Makefile.am): Likewise.
43101         * modules/time (Makefile.am): Likewise.
43102         * modules/unistd (Makefile.am): Likewise.
43103         * modules/wchar (Makefile.am): Likewise.
43104         * modules/wctype (Makefile.am): Likewise.
43105         Reported by Reuben Thomas <rrt@sc3d.org>.
43106
43107 2008-08-29  Bruno Haible  <bruno@clisp.org>
43108
43109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43110         any more.
43111
43112 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43113
43114         * MODULES.html.sh (Misc): Add bitrotate.
43115
43116         * modules/bitrotate: New file.
43117
43118         * lib/bitrotate.h: New file.
43119
43120         * modules/bitrotate-tests: New file.
43121
43122         * tests/test-bitrotate.c: New file.
43123
43124         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43125         on the bitrotate module.
43126
43127         * lib/arctwo.c: Use new bitrotate module.
43128
43129 2008-08-29  Jim Meyering  <meyering@redhat.com>
43130
43131         bootstrap: merge changes from coreutils
43132         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43133         of copied files.  Remove a kludge, now that this is fixed.
43134         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43135         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43136         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43137
43138 2008-08-29  Bruno Haible  <bruno@clisp.org>
43139
43140         * MODULES.html.sh: Remove --cvs-urls option.
43141
43142 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43143
43144         maint.mk: adjust to file name change
43145         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43146
43147 2008-08-28  Jim Meyering  <meyering@redhat.com>
43148
43149         * modules/getndelim2 (License): Relicense to LGPLv2+.
43150         Approved by Richard Stallman for the version of 1995, and by
43151         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43152
43153 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43154
43155         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43156         dummy if one is not available.  Do not touch them if
43157         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43158         (getc_maybe_unlocked): New.
43159         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43160
43161 2008-08-26  Eric Blake  <ebb9@byu.net>
43162
43163         doc/INSTALL: resync from autoconf
43164         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43165         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43166         moving...
43167         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43168         * INSTALL: Regenerate.
43169         * INSTALL.ISO: New file.
43170         * INSTALL.UTF-8: Likewise.
43171
43172 2008-08-26  Jim Meyering  <meyering@redhat.com>
43173
43174         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43175         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43176         these definitions conditional, so that they may be overridden, too.
43177
43178 2008-08-26  Bruno Haible  <bruno@clisp.org>
43179
43180         Generate INSTALL file variants with prettier quotes.
43181         * doc/Makefile (INSTALL_PRELUDE): New macro.
43182         (INSTALL): Use it.
43183         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43184
43185 2008-08-26  Bruno Haible  <bruno@clisp.org>
43186
43187         Run makeinfo in an English locale.
43188         * doc/Makefile (MAKEINFO): New variable.
43189
43190 2008-08-26  Bruno Haible  <bruno@clisp.org>
43191
43192         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43193         Suggested by Eric Blake.
43194
43195 2008-08-25  Bruno Haible  <bruno@clisp.org>
43196
43197         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43198
43199 2008-08-25  Eric Blake  <ebb9@byu.net>
43200
43201         c-stack: test that stack overflow can be caught
43202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43203         that platform allows handling stack overflow; at least OS/2 EMX
43204         has sigaltstack, but crashes before transferring control to
43205         handler on stack overflow.
43206         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43207         check for HAVE_STACK_OVERFLOW_HANDLING.
43208         Reported by Elbert Pol.
43209
43210 2008-08-25  Bruno Haible  <bruno@clisp.org>
43211
43212         * doc/posix-functions/strftime.texi: Fix description of strftime
43213         module.
43214
43215 2008-08-24  Bruno Haible  <bruno@clisp.org>
43216
43217         * tests/uniwidth/test-uc_width2.c: New file.
43218         * tests/uniwidth/test-uc_width2.sh: New file.
43219         * modules/uniwidth/width-tests (Files): Add the new files.
43220         (TESTS): Add uniwidth/test-uc_width2.sh.
43221         (TESTS_ENVIRONMENT): New variable.
43222         (check_PROGRAMS): Add test-uc_width2.
43223         (test_uc_width2_SOURCES): New variable.
43224
43225         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43226         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43227         not 0x00AB.
43228         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43229
43230 2008-08-22  Eric Blake  <ebb9@byu.net>
43231
43232         test-lock, test-tls: mention why a test is skipped
43233         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43234         skipped.
43235         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43236
43237         count-one-bits: relax license
43238         * modules/count-one-bits (License): Relicense to LGPLv2+.
43239         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43240
43241 2008-08-22  Andreas Schwab  <schwab@suse.de>
43242
43243         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43244         Remove spurious space in assignment.
43245
43246 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43247
43248         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43249         Paul Eggert <eggert@CS.UCLA.EDU>.
43250
43251 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43252
43253         * modules/gettext: Add m4/threadlib.m4.
43254
43255 2008-08-19  Eric Blake  <ebb9@byu.net>
43256
43257         test-c-stack: fix compilation failure on FreeBSD 5.0
43258         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43259         headers before <sys/resource.h>.
43260         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43261         the bug.
43262         Reported by Nelson H. F. Beebe.
43263
43264         strverscmp: migrate from "strverscmp.h" to <string.h>
43265         * modules/string (Makefile.am): Add new hooks.
43266         * modules/strverscmp (Files): Remove strverscmp.h.
43267         (Depends-on): Add string.
43268         (configure.ac): Add indicator.
43269         (Include): Mention new header.
43270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43271         defaults.
43272         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43273         results.
43274         * lib/strverscmp.h: Delete.
43275         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43276         * tests/test-strverscmp.c (includes): Adjust client.
43277         * lib/check-version.c (includes): Likewise.
43278         * NEWS: Document the change.
43279
43280         strverscmp: add unit test
43281         * modules/strverscmp-tests: New file.
43282         * tests/test-strverscmp.c: Likewise.
43283
43284 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43285
43286         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43287         regarding Windows crypto stuff, from Mono.
43288
43289 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43290
43291         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43292         if present, for intel RND.  Return error on failures.
43293
43294 2008-08-18  Ben Pfaff  <blp@gnu.org>
43295
43296         gitlog-to-changelog: give better diagnostic for failed pipe-open
43297         * build-aux/gitlog-to-changelog: Improve error message: suggest
43298         that the version of Git may be too old.
43299
43300 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43301
43302         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43303         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43304
43305 2008-08-18  Bruno Haible  <bruno@clisp.org>
43306
43307         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43308         pthread_in_use().
43309
43310 2008-08-18  Bruno Haible  <bruno@clisp.org>
43311
43312         * lib/glthread/threadlib.c: Include <pthread.h>.
43313
43314 2008-08-18  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43317         glthread_recursive_lock_* macros.
43318         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43319         Fix syntax error.
43320
43321 2008-08-18  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/glthread/thread.c: Avoid forcing a context switch right after
43324         thread creation.
43325
43326 2008-08-17  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43329         * lib/glthread/thread.h: Provide Win32 specific implementation.
43330         * modules/thread (Files): Add lib/glthread/thread.c.
43331         (Depends-on): Add lock.
43332         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43333
43334 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43335
43336         New module 'yield'.
43337         * modules/yield: New file.
43338         * lib/glthread/yield.h: New file.
43339         * m4/yield.m4: New file.
43340         * MODULES.html.sh (Multithreading): Add yield.
43341
43342 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43343
43344         New module 'thread'.
43345         * modules/thread: New file.
43346         * lib/glthread/thread.h: New file.
43347         * m4/thread.m4: New file.
43348         * MODULES.html.sh (Multithreading): Add thread.
43349
43350 2008-08-17  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/glthread/lock.h: Include <stdlib.h> always.
43353         * lib/glthread/tls.h: Likewise.
43354         * lib/glthread/cond.h: Likewise.
43355
43356 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43357
43358         New module 'cond'.
43359         * modules/cond: New file.
43360         * lib/glthread/cond.h: New file.
43361         * lib/glthread/cond.c: New file.
43362         * m4/cond.m4: New file.
43363         * MODULES.html.sh (Multithreading): Add cond.
43364
43365 2008-08-16  Eric Blake  <ebb9@byu.net>
43366
43367         c-stack: fix regression on Irix 5.3 from 2008-06-21
43368         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43369         sa_sigaction...
43370         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43371         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43372         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43373         * modules/signal (Makefile.am): Use the value.
43374         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43375         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43376         * doc/posix-headers/signal.texi (signal.h): Document this
43377         portability issue.
43378         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43379         Reported by Tom G. Christensen.
43380
43381 2008-08-17  Bruno Haible  <bruno@clisp.org>
43382
43383         New module 'threadlib'.
43384         * modules/threadlib: New file.
43385         * lib/glthread/threadlib.c: New file, extracted from
43386         lib/glthread/lock.c.
43387         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43388         functions.
43389         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43390         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43391         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43392         macros.
43393         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43394         (gl_DISABLE_THREADS): Remove macro.
43395         * modules/lock (Files): Remove build-aux/config.rpath.
43396         (Depends-on): Remove havelib. Add threadlib.
43397         (configure.ac-early): Remove section.
43398         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43399         * modules/tls (Depends-on): Remove lock. Add threadlib.
43400         (Link): New section, copied from threadlib.
43401         * MODULES.html.sh (Multithreading): Add threadlib.
43402
43403 2008-08-14  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43406         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43407         glthread_rwlock_unlock, glthread_rwlock_destroy,
43408         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43409         glthread_recursive_lock_destroy): Define as macros always.
43410         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43411         glthread_lock_lock.
43412         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43413         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43414         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43415         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43416         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43417         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43418         (glthread_recursive_lock_lock_func): Renamed from
43419         glthread_recursive_lock_lock.
43420         (glthread_recursive_lock_unlock_func): Renamed from
43421         glthread_recursive_lock_unlock.
43422         (glthread_recursive_lock_destroy_func): Renamed from
43423         glthread_recursive_lock_destroy.
43424
43425 2008-08-14  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/glthread/lock.h: Renamed from lib/lock.h.
43428         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43429         * lib/glthread/tls.h: Renamed from lib/tls.h.
43430         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43431         * lib/fstrcmp.c: Update includes.
43432         * lib/strsignal.c: Update includes.
43433         * modules/lock (Files, Makefile.am): Update.
43434         (Include): Change to "glthread/lock.h".
43435         * modules/tls (Files, Makefile.am): Update.
43436         (Include): Change to "glthread/tls.h".
43437         * tests/test-lock.c: Update includes.
43438         * tests/test-tls.c: Update includes.
43439         * NEWS: Mention the renamed header files.
43440
43441 2008-08-11  Jim Meyering  <meyering@redhat.com>
43442
43443         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43444
43445 2008-08-11  Eric Blake  <ebb9@byu.net>
43446
43447         test-c-stack: avoid C99-ism
43448         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43449         before statement.
43450         Reported by Alain Guibert.
43451
43452 2008-08-10  Jim Meyering  <meyering@redhat.com>
43453
43454         ensure that return value of uinttostr et al are not ignored
43455         * lib/inttostr.h (__GNUC_PREREQ): Define.
43456         (__attribute_warn_unused_result__): Define.
43457         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43458
43459 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43460
43461         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43462         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43463
43464 2008-08-07  Jim Meyering  <meyering@redhat.com>
43465
43466         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43467
43468         * modules/mkstemp (License): Relicense under LGPLv2+.
43469         * modules/tempname (License): Likewise.
43470
43471 2008-08-06  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/poll.c (poll): Further micro-optimization.
43474
43475 2008-08-06  Jim Meyering  <meyering@redhat.com>
43476
43477         inet_pton.c: use locale-independent tolower
43478         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43479         (inet_pton6): Use c_tolower rather than tolower.
43480         * modules/inet_pton (Depends-on): Add c-ctype.
43481
43482 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43483
43484         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43485         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43486
43487 2008-08-06  Jim Meyering  <meyering@redhat.com>
43488
43489         * modules/inet_pton (License): Relicense under LGPLv2+.
43490
43491 2008-08-03  Bruno Haible  <bruno@clisp.org>
43492
43493         Additional non-aborting API for lock and tls.
43494         * lib/lock.h: Include <errno.h>.
43495         (glthread_lock_init): New macro/function.
43496         (gl_lock_init): Define as wrapper around glthread_lock_init.
43497         (glthread_lock_lock): New macro/function.
43498         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43499         (glthread_lock_unlock): New macro/function.
43500         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43501         (glthread_lock_destroy): New macro/function.
43502         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43503         (glthread_rwlock_init): New macro/function.
43504         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43505         (glthread_rwlock_rdlock): New macro/function.
43506         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43507         (glthread_rwlock_wrlock): New macro/function.
43508         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43509         (glthread_rwlock_unlock): New macro/function.
43510         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43511         (glthread_rwlock_destroy): New macro/function.
43512         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43513         (glthread_recursive_lock_init): New macro/function.
43514         (gl_recursive_lock_init): Define as wrapper around
43515         glthread_recursive_lock_init.
43516         (glthread_recursive_lock_lock): New macro/function.
43517         (gl_recursive_lock_lock): Define as wrapper around
43518         glthread_recursive_lock_lock.
43519         (glthread_recursive_lock_unlock): New macro/function.
43520         (gl_recursive_lock_unlock): Define as wrapper around
43521         glthread_recursive_lock_unlock.
43522         (glthread_recursive_lock_destroy): New macro/function.
43523         (gl_recursive_lock_destroy): Define as wrapper around
43524         glthread_recursive_lock_destroy.
43525         (glthread_once): New macro/function.
43526         (gl_once): Define as wrapper around glthread_once.
43527         Update function declarations.
43528         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43529         glthread_rwlock_init. Return error code.
43530         (glthread_rwlock_rdlock_multithreaded): Renamed from
43531         glthread_rwlock_rdlock. Return error code.
43532         (glthread_rwlock_wrlock_multithreaded): Renamed from
43533         glthread_rwlock_wrlock. Return error code.
43534         (glthread_rwlock_unlock_multithreaded): Renamed from
43535         glthread_rwlock_unlock. Return error code.
43536         (glthread_rwlock_destroy_multithreaded): Renamed from
43537         glthread_rwlock_destroy. Return error code.
43538         (glthread_recursive_lock_init_multithreaded): Renamed from
43539         glthread_recursive_lock_init. Return error code.
43540         (glthread_recursive_lock_lock_multithreaded): Renamed from
43541         glthread_recursive_lock_lock. Return error code.
43542         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43543         glthread_recursive_lock_unlock. Return error code.
43544         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43545         glthread_recursive_lock_destroy. Return error code.
43546         (glthread_once_call): Make static.
43547         (glthread_once_multithreaded): Renamed from glthread_once.
43548         * lib/tls.h: Include <errno.h>.
43549         (glthread_tls_key_init): New macro/function.
43550         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43551         (glthread_tls_set): New macro/function.
43552         (gl_tls_set): Define as wrapper around glthread_tls_set.
43553         (glthread_tls_key_destroy): New macro/function.
43554         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43555         Update function declarations.
43556         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43557         glthread_tls_get.
43558         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43559
43560 2008-08-04  Eric Blake  <ebb9@byu.net>
43561
43562         gnumakefile: use space, not TAB, outside of targets
43563         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43564
43565 2008-08-02  Jim Meyering  <meyering@redhat.com>
43566
43567         getdate.y: avoid locale-dependent date parsing failure
43568         In Turkish locales, getdate would fail to recognize keywords
43569         containing a lowercase "i".  The solution is not to rely on
43570         locale-sensitive case-conversion.
43571         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43572         (lookup_word): Use c_toupper in place of toupper.
43573         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43574         Reported by Vefa Bicakci <bicave@superonline.com> in
43575         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43576         * modules/getdate (Depends-on): Add c-ctype.
43577
43578 2008-08-02  Bruno Haible  <bruno@clisp.org>
43579
43580         * gnulib-tool (func_import): When updating or creating a .gitignore
43581         file, prepend each added line with a slash, and ignore leading slashes
43582         from the existing lines.
43583         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43584
43585 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43586
43587         Portability fix for GNU make 3.79.1.
43588         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43589         versions do not understand.
43590
43591 2008-08-01  Bruno Haible  <bruno@clisp.org>
43592
43593         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43594         * tests/test-isnanf.h (zero): New variable.
43595         (main): Avoid literal -0.0f.
43596         * tests/test-isnand.h (zero): New variable.
43597         (main): Avoid literal -0.0.
43598         * tests/test-isnanl.h (zero): New variable.
43599         (main): Avoid literal -0.0L.
43600         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43601         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43602         -0.0, -0.0L.
43603         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43604         (test_signbitd): Avoid literal -0.0.
43605         (test_signbitl): Avoid literal -0.0L.
43606         * tests/test-ceilf1.c (zero): New variable.
43607         (main): Avoid literal -0.0f.
43608         * tests/test-ceill.c (zero): New variable.
43609         (main): Avoid literal -0.0L.
43610         * tests/test-floorf1.c (zero): New variable.
43611         (main): Avoid literal -0.0f.
43612         * tests/test-floorl.c (zero): New variable.
43613         (main): Avoid literal -0.0L.
43614         * tests/test-roundf1.c (zero): New variable.
43615         (main): Avoid literal -0.0f.
43616         * tests/test-round1.c (zero): New variable.
43617         (main): Avoid literal -0.0.
43618         * tests/test-roundl.c (zero): New variable.
43619         (main): Avoid literal -0.0L.
43620         * tests/test-truncf1.c (zero): New variable.
43621         (main): Avoid literal -0.0f.
43622         * tests/test-trunc1.c (zero): New variable.
43623         (main): Avoid literal -0.0.
43624         * tests/test-truncl.c (zero): New variable.
43625         (main): Avoid literal -0.0L.
43626         * tests/test-frexp.c (zero): New variable.
43627         (main): Avoid literal -0.0.
43628         * tests/test-frexpl.c (zero): New variable.
43629         (main): Avoid literal -0.0L.
43630         * tests/test-ldexpl.c (zero): New variable.
43631         (main): Avoid literal -0.0L.
43632         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43633         (zerod, zerol): New variables.
43634         (test_function): Avoid literals -0.0, -0.0L.
43635         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43636         (zerod, zerol): New variables.
43637         (test_function): Avoid literals -0.0, -0.0L.
43638         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43639         (zerod, zerol): New variables.
43640         (test_function): Avoid literals -0.0, -0.0L.
43641         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43642         (zerod, zerol): New variables.
43643         (test_function): Avoid literals -0.0, -0.0L.
43644         * tests/test-strtod.c (zero): New variable.
43645         (main): Avoid literal -0.0.
43646         Reported by Jonathan C. Patschke <jp@centtech.com>.
43647
43648 2008-07-31  Jim Meyering  <meyering@redhat.com>
43649
43650         sha256.h: correct definition of SHA224_DIGEST_SIZE
43651         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43652         Reported by Paulie Pena IV <paulie4@gmail.com>.
43653         Define as 224 / 8, rather than as a literal.
43654         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43655         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43656         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43657
43658 2008-07-31  Bruno Haible  <bruno@clisp.org>
43659
43660         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43661         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43662         Reported by Jonathan Patschke <jp@centtech.com>.
43663
43664 2008-07-31  Bruno Haible  <bruno@clisp.org>
43665
43666         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43667         Reported by Paolo Bonzini <bonzini@gnu.org>.
43668
43669 2008-07-30  Eric Blake  <ebb9@byu.net>
43670
43671         test-strtod: allow compilation without -lm
43672         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43673         Reported by Dennis Clarke <blastwave@gmail.com>.
43674
43675 2008-07-28  Jim Meyering  <meyering@redhat.com>
43676
43677         bootstrap: work also when there are no .po files in po/
43678         * build-aux/bootstrap (update_po_files): Complete the change
43679         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43680
43681 2008-07-27  Jim Meyering  <meyering@redhat.com>
43682
43683         * users.txt: Add zile.
43684
43685 2008-07-26  Ben Pfaff  <blp@gnu.org>
43686
43687         Add missing dependencies on new m4/exponent[fdl].m4 files.
43688         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43689         * modules/isnand-nolibm: Add m4/exponentd.m4.
43690         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43691         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43692         m4/isnan[fdl].m4, because the macros actually used moved.
43693         Reported by Jim Meyering.
43694
43695 2008-07-14  Ben Pfaff  <blp@gnu.org>
43696
43697         Add isinf module.
43698         * lib/isinf.c: New file.
43699         * lib/math.in.h: Define isinf macro if we have decided to replace
43700         it.
43701         * m4/isinf.m4: New file.
43702         * m4/math_h.m4: Initialize and substitute variables for isinf
43703         module.
43704         * modules/isinf: New file.
43705         * modules/isinf-tests: New file.
43706         * modules/math: Add substitutions for new module.
43707         * tests/test-isinf.c: New file.
43708         * doc/posix-functions/isinf.texi: Mention new module.
43709         * MODULES.html.sh: Mention new module.
43710
43711 2008-07-14  Ben Pfaff  <blp@gnu.org>
43712
43713         Factor out some macros for use by additional modules.
43714         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43715         exponentf.m4.
43716         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43717         exponentd.m4.
43718         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43719         file exponentl.m4.
43720         * m4/exponentf.m4: New file.
43721         * m4/exponentd.m4: New file.
43722         * m4/exponentl.m4: New file.
43723         * modules/isnanf: Use new file m4/exponentf.m4.
43724         * modules/isnand: Use new file m4/exponentd.m4.
43725         * modules/isnanl: Use new file m4/exponentl.m4.
43726
43727 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43728
43729         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43730         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43731         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43732         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43733
43734         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43735         readlink on platforms without PATH_MAX.
43736
43737 2008-07-21  Eric Blake  <ebb9@byu.net>
43738
43739         Warn, not fail, on stale version.
43740         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43741
43742         Don't allow installation with stale devel version number.
43743         * top/GNUmakefile (_is-install-target): New macro.
43744         (_curr-ver): Forbid installation with stale version number.
43745
43746 2008-07-20  Bruno Haible  <bruno@clisp.org>
43747
43748         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43749         TESTS_ENVIRONMENT.
43750         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43751
43752 2008-07-20  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/c-stack.h (c_stack_action): Add documentation.
43755         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43756
43757 2008-07-20  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43760         * modules/readlink (License): Likewise.
43761
43762 2008-07-17  Eric Blake  <ebb9@byu.net>
43763
43764         * modules/c-stack (Link): Fix typo.
43765
43766         Make c-stack use libsigsegv, when available.
43767         * modules/c-stack (Depends-on): Add libsigsegv.
43768         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43769         needed.
43770         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43771         (segv_handler, overflow_handler, c_stack_action)
43772         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43773         implementation when libsigsegv is available, but only when using
43774         the library is necessary.
43775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43776         comment, explaining why XSI check fails on Linux.
43777         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43778         * tests/test-c-stack2.sh: Tweak skip message.
43779         * NEWS: Document new link-time requirements.
43780
43781 2008-07-16  Eric Blake  <ebb9@byu.net>
43782
43783         c-stack: Expose false positives when not using libsigsegv.
43784         * modules/c-stack-tests (Files): Expand test.
43785         * tests/test-c-stack.c (main): Add means to conditionally trigger
43786         non-overflow SIGSEGV.
43787         * tests/test-c-stack2.sh: New file.
43788
43789 2008-07-14  Bruno Haible  <bruno@clisp.org>
43790
43791         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43792         Reported by Eric Blake.
43793
43794 2008-07-14  Sam Steingold  <sds@gnu.org>
43795             Bruno Haible  <bruno@clisp.org>
43796
43797         New module libsigsegv.
43798         * modules/libsigsegv: New file.
43799         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43800         modifications.
43801         * MODULES.html.sh (Signal handling): New section.
43802
43803 2008-07-14  Bruno Haible  <bruno@clisp.org>
43804
43805         * modules/unictype/ctype-* (Description): Add the word "function".
43806         Improves the resulting doc in MODULES.html.
43807
43808 2008-07-12  Ben Pfaff  <blp@gnu.org>
43809
43810         Add longlong module.
43811         * modules/longlong: New file.
43812
43813 2008-07-12  Bruno Haible  <bruno@clisp.org>
43814
43815         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43816         to empty.
43817
43818 2008-07-10  Ben Pfaff  <blp@gnu.org>
43819
43820         Add isnan module.
43821         * doc/posix-functions/isnan.texi: Mention new module.
43822         * lib/math.in.h: Define isnan macro if we have decided to replace
43823         it.
43824         * m4/isnan.m4: New file.
43825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43826         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43827         also.
43828         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43829         redundancy.
43830         * m4/math_h.m4: Initialize and substitute variables for isnan
43831         module.
43832         * modules/isnan: New file.
43833         * modules/isnan-tests: New file.
43834         * modules/math: Add substitutions for new module.
43835         * tests/test-isnan.c: New file.
43836         * MODULES.html.sh: Mention new module.
43837
43838 2008-07-10  Ben Pfaff  <blp@gnu.org>
43839
43840         Add isnanf module.
43841         * lib/isnanf.m4: New file.
43842         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43843         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43844         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43845         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43846         * modules/isnanf: New file.
43847         * modules/isnanf-tests: New file.
43848         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43849         files.
43850         * tests/test-isnanf-nolibm.c: factored most of its contents into
43851         new file tests/test-isnanf.h.
43852         * tests/test-isnanf.h: New file.
43853         * tests/test-isnanf.c: New file.
43854         * MODULES.html.sh: Mention new module.
43855         * doc/glibc-functions/isnanf.texi: Mention new module.
43856
43857 2008-07-10  Ben Pfaff  <blp@gnu.org>
43858
43859         Add isnand module.
43860         * lib/isnand.h: New file.
43861         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43862         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43863         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43864         functionality also.
43865         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43866         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43867         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43868         * modules/isnand: New file.
43869         * modules/isnand-tests: New file.
43870         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43871         files.
43872         * tests/test-isnand-nolibm.c: factored most of its contents into
43873         new file tests/test-isnand.h.
43874         * tests/test-isnand.h: New file.
43875         * tests/test-isnand.c: New file.
43876         * MODULES.html.sh: Mention new module.
43877
43878 2008-07-10  Ben Pfaff  <blp@gnu.org>
43879
43880         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43881         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43882         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43883         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43884         * modules/isnanf-nolibm: Update references to renamed files.
43885         * modules/isnand-nolibm: Likewise.
43886         * modules/isnanf-nolibm-tests: Likewise.
43887         * modules/isnand-nolibm-tests: Likewise.
43888         * lib/frexp.c: Likewise.
43889         * lib/isfinite.c: Likewise.
43890         * lib/signbitd.c: Likewise.
43891         * lib/signbitf.c: Likewise.
43892         * lib/vasnprintf.c: Likewise.
43893         * tests/test-ceilf1.c: Likewise.
43894         * tests/test-ceilf2.c: Likewise.
43895         * tests/test-floorf1.c: Likewise.
43896         * tests/test-floorf2.c: Likewise.
43897         * tests/test-frexp.c: Likewise.
43898         * tests/test-round1.c: Likewise.
43899         * tests/test-round2.c: Likewise.
43900         * tests/test-roundf1.c: Likewise.
43901         * tests/test-strtod.c: Likewise.
43902         * tests/test-trunc1.c: Likewise.
43903         * tests/test-trunc2.c: Likewise.
43904         * tests/test-truncf1.c: Likewise.
43905         * tests/test-truncf2.c: Likewise.
43906         * NEWS: Mention the renamed header files.
43907
43908 2008-07-11  Jim Meyering  <meyering@redhat.com>
43909
43910         vc-list-files: make the last-resort awk code more portable
43911         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43912         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43913         does not support it.
43914
43915 2008-07-10  Eric Blake  <ebb9@byu.net>
43916
43917         Work with tar's bootstrap.
43918         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43919         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43920         an m4 comment.
43921
43922 2008-07-09  Jim Meyering  <meyering@redhat.com>
43923
43924         posix-shell.m4: fix typo that made this test malfunction
43925         * m4/posix-shell.m4: Remove capitalization in variable name.
43926
43927 2008-07-08  Bruno Haible  <bruno@clisp.org>
43928
43929         * m4/onceonly.m4: Update comments.
43930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43931
43932 2008-07-04  Jim Meyering  <meyering@redhat.com>
43933
43934         * users.txt: Add vc-dwim.
43935         (bison, coreutils): Use the gitweb URL.
43936
43937 2008-07-03  Jim Meyering  <meyering@redhat.com>
43938
43939         * users.txt: Add libffcall.  From Sam Steingold.
43940
43941 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43942
43943         getdate.y: do not ignore TZ with relative day, month or year offset
43944         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43945         relative-date-handling, since otherwise, the latter would clobber the
43946         sole output (an updated Start value) of the tz-handling block.
43947         * tests/test-getdate.c: Tests for the fix
43948
43949 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43950
43951         Recognize 'foo_LIBRARIES += libgnu.a'.
43952         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43953         makefile snippet has already specified an installation location,
43954         also using '+='.
43955
43956 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43957
43958         getdate.y: factor out common actions
43959         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43960         Use them in place of open-coded actions.
43961
43962 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43963
43964         Add self-test for getdate module.
43965         * modules/getdate-tests: New file.
43966         * tests/test-getdate.c: New file.
43967
43968 2008-06-29  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43971         .gitignore.
43972         Reported by Sylvain Beucler <beuc@beuc.net>.
43973
43974 2008-06-29  Bruno Haible  <bruno@clisp.org>
43975
43976         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43977         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43978
43979 2008-06-29  Bruno Haible  <bruno@clisp.org>
43980
43981         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43982         EXTRA_DIST.
43983         Reported by Sylvain Beucler <beuc@beuc.net>.
43984
43985 2008-06-26  Jim Meyering  <meyering@redhat.com>
43986
43987         make several modules depend on the "open" module
43988         This provides slightly increased consistency when opening-for-write
43989         the name of a non-directory spelled with a trailing slash.
43990         * modules/chdir-safer: Likewise.
43991         * modules/chown: Likewise.
43992         * modules/clean-temp: Likewise.
43993         * modules/copy-file: Likewise.
43994         * modules/fchdir: Likewise.
43995         * modules/fcntl-safer: Likewise.
43996         * modules/pipe: Likewise.
43997         * modules/utime: Likewise.
43998         Prompted by Eric Blake and Bruno Haible.
43999
44000 2008-06-24  Andreas Schwab  <schwab@suse.de>
44001
44002         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44003         literals can be used as initializers for global variables.
44004
44005 2008-06-23  Eric Blake  <ebb9@byu.net>
44006
44007         Make gnulib-cache.m4 easier to diff.
44008         * gnulib-tool (func_import): Allow newlines when reading cached
44009         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44010
44011 2008-06-23  Bruno Haible  <bruno@clisp.org>
44012
44013         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44014         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44015         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44016         m4/signalblocking.m4.
44017         (gl_PREREQ_SIGACTION): Don't invoke it.
44018         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44019         gl_PREREQ_SIG_HANDLER_H.
44020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44021         Don't check for sigaction here.
44022
44023 2008-06-23  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44026         (install_handlers): Don't set the SA_RESETHAND flag.
44027
44028 2008-06-23  Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/sigaction.m4: Comment fixes.
44031         * lib/signal.in.h: Likewise.
44032
44033 2008-06-23  Eric Blake  <ebb9@byu.net>
44034
44035         Fix typo.
44036         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44037
44038         Avoid SA_ namespace.
44039         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44040         Reported by Ralf Wildenhues.
44041
44042         Avoid test failure due to SA_RESTORER.
44043         * tests/test-sigaction.c (SA_MASK): New macro.
44044         (main): Avoid failing due to extension flags being set.
44045         Reported by Jim Meyering.
44046
44047         Revert use of sig-handler.h in sigprocmask.c.
44048         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44049         it requires the existence of struct sigaction.
44050         * lib/sigprocmask.c (handler_t): Restore typedef.
44051         (rpl_signal, old_handlers): Use local type.
44052
44053 2008-06-22  Bruno Haible  <bruno@clisp.org>
44054
44055         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44056         conditionally.
44057         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44058
44059 2008-06-22  Bruno Haible  <bruno@clisp.org>
44060
44061         * doc/posix-functions/siginterrupt.texi: Move note.
44062
44063         * lib/signal.in.h (SA_RESTART): New macro.
44064         * lib/sigaction.c: Update comment.
44065
44066         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44067
44068         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44069         (gl_PREREQ_SIGPROCMASK): Invoke it.
44070         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44071
44072         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44073
44074         * lib/sigprocmask.c: Update a comment.
44075
44076 2008-06-21  Eric Blake  <ebb9@byu.net>
44077
44078         Use sigaction module rather than signal().
44079         * modules/c-stack (Depends-on): Add sigaction.
44080         * modules/fatal-signal (Depends-on): Likewise.
44081         * modules/nanosleep (Depends-on): Likewise.
44082         * modules/sigprocmask (Files): Add sig-handler.h.
44083         * modules/sigaction (Files): Likewise.
44084         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44085         Eggert.
44086         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44087         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44088         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44089         (init_fatal_signals): Likewise.
44090         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44091         (siginterrupt): Delete fallback.
44092         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44093         instead.
44094         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44095         siginterrupt.
44096
44097         New module sigaction, for mingw.
44098         * modules/sigaction: New module...
44099         * modules/sigaction-tests: ...and its test.
44100         * m4/sigaction.m4: New file.
44101         * lib/sigaction.c: Likewise.
44102         * tests/test-sigaction.c: Likewise.
44103         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44104         * modules/signal (Makefile.am): Likewise.
44105         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44106         needed.
44107         * doc/posix-headers/signal.texi (signal.h): Mention provided
44108         types.
44109         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44110         that sigaction is preferable.
44111         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44112         module.
44113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44114         sigaction.
44115
44116         Improve robustness of sigprocmask by overriding signal.
44117         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44118         is in use.
44119         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44120         (SIGKILL, SIGSTOP): Provide fallbacks.
44121         (rpl_signal): Implement.
44122         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44123         signal can be called inside handlers.
44124
44125         Fix nanosleep module on mingw.
44126         * modules/nanosleep (Depends-on): Add sys_select.
44127         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44128
44129         Fix licensing of sigprocmask.
44130         * modules/raise (License): Relicense as LGPL.
44131
44132 2008-06-21  Bruno Haible  <bruno@clisp.org>
44133
44134         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44135         result if it contains question marks.
44136         Reported by Michael Geng <linux@michaelgeng.de>.
44137
44138 2008-06-19  Bruno Haible  <bruno@clisp.org>
44139
44140         Fix CVS-ism.
44141         * doc/gnulib.texi: Include updated-stamp.texi.
44142         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44143         (updated-stamp.texi): New rule.
44144         (gnulib.info): Depend on it.
44145         * doc/.gitignore: Add updated-stamp.texi.
44146         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44147
44148 2008-06-19  Bruno Haible  <bruno@clisp.org>
44149
44150         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44151         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44152
44153 2008-06-19  Eric Blake  <ebb9@byu.net>
44154
44155         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44156         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44157         Reported by Stepan Kasal.
44158
44159 2008-06-18  Bruno Haible  <bruno@clisp.org>
44160
44161         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44162         Reported by Eric Blake.
44163
44164 2008-06-18  Eric Blake  <ebb9@byu.net>
44165
44166         Work around cygwin 1.5.25 strsignal bug.
44167         * tests/test-strsignal.c: Allow for const char *.
44168         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44169
44170 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44171
44172         * users.txt: Update URL to article and add author/date
44173         information.
44174
44175 2008-06-17  Bruno Haible  <bruno@clisp.org>
44176
44177         New macro gl_DISABLE_THREADS.
44178         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44179         if the user did not pass --enable-threads or --disable-threads option.
44180         (gl_DISABLE_THREADS): New macro.
44181         Reported by Eric Blake <ebb9@byu.net>.
44182
44183 2008-06-17  Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44186         when the macro ignores it.
44187         Based on a patch by Eric Blake <ebb9@byu.net>.
44188
44189 2008-06-17  Bruno Haible  <bruno@clisp.org>
44190
44191         * modules/tls (License): Change to LGPLv2+.
44192         Reported by Eric Blake.
44193
44194 2008-06-17  Eric Blake  <ebb9@byu.net>
44195
44196         Simplify c-stack prerequisites.
44197         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44199         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44200         check.
44201         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44202         <sys/resource.h>.
44203
44204         Move c-stack test into testsuite.
44205         * modules/c-stack-tests: New file.
44206         * lib/c-stack.c [DEBUG]: Move test program...
44207         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44208         fail test if sigaltstack is lacking.
44209         * tests/test-c-stack.sh: New driver file.
44210
44211 2008-06-16  Eric Blake  <ebb9@byu.net>
44212
44213         Use raise module consistently.
44214         * modules/fatal-signal (Depends-on): Add raise.
44215         * modules/sigprocmask (Depends-on): Likewise.
44216         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44217         * lib/sigprocmask.c (sigprocmask): Likewise.
44218         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44219         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44220
44221         Fix compliance bug in sigpending.
44222         * lib/sigprocmask.c (sigpending): Return pending array via
44223         parameter, not return value.
44224
44225 2008-06-14  Eric Blake  <ebb9@byu.net>
44226
44227         Improve obstack-printf test code.
44228         * tests/test-obstack-printf.c (test_function): Fix comment, and
44229         simplify usage of obstack_* in macros.  Add a test for coverage.
44230         Reported by Bruno Haible.
44231
44232 2008-06-14  Bruno Haible  <bruno@clisp.org>
44233
44234         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44235         array size as a constant, not as a const variable.
44236         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44237         AC_USE_SYSTEM_EXTENSIONS.
44238         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44239         Test whether the obstack_printf function actually exists.
44240         * modules/obstack-printf (Depends-on): Add extensions.
44241         (Include): Remove obstack.h.
44242         * modules/obstack-printf-posix (Depends-on): Add extensions.
44243         (Include): Remove obstack.h.
44244
44245 2008-06-13  Eric Blake  <ebb9@byu.net>
44246
44247         Add obstack-printf and obstack-printf-posix modules.
44248         * modules/obstack-printf: New file.
44249         * modules/obstack-printf-posix: Likewise.
44250         * MODULES.html.sh (Misc): Mention them.
44251         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44252         Likewise.
44253         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44254         Likewise.
44255         * modules/stdio (Makefile.am): Accomodate new modules.
44256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44257         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44258         Declare.
44259         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44260         functions.
44261         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44262         (gl_REPLACE_OBSTACK_PRINTF): New macros
44263         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44264         * tests/test-obstack-printf.c: New file.
44265         * modules/obstack-printf-tests: Likewise.
44266         * modules/obstack-printf-posix-tests: Likewise.
44267
44268 2008-06-11  Bruno Haible  <bruno@clisp.org>
44269
44270         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44271         * lib/open.c: Include errno.h.
44272         (open): Fail when attempting to write to a file that has a trailing
44273         slash.
44274         * tests/test-open.c (main): Test against trailing slash bug.
44275         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44276
44277 2008-06-10  Bruno Haible  <bruno@clisp.org>
44278
44279         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44280         for $? to work inside the trap command, with various /bin/sh-s.
44281         * tests/test-vc-list-files-cvs.sh: Likewise.
44282
44283 2008-06-10  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/acl-internal.h: Don't include gettext.h here.
44286         * lib/set-mode-acl.c: Include gettext.h here.
44287         * lib/copy-acl.c: Likewise.
44288
44289 2008-06-10  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44292         * lib/wait-process.c (wait_subprocess): Likewise.
44293         * lib/execute.h (execute): Add termsigp argument.
44294         * lib/execute.c (execute): Likewise.
44295         * lib/csharpcomp.c (compile_csharp_using_pnet,
44296         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44297         * lib/csharpexec.c (execute_csharp_using_pnet,
44298         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44299         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44300         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44301         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44302         is_jikes_present): Update.
44303         * lib/javaexec.c (execute_java_class): Update.
44304         * lib/javaversion.c (execute_and_read_line): Update.
44305         * NEWS: Document the changes.
44306         Reported by Eric Blake.
44307
44308 2008-06-10  Eric Blake  <ebb9@byu.net>
44309
44310         Add missing include.
44311         * tests/test-strstr.c (includes): Add <signal.h>.
44312         * tests/test-strcasestr.c (includes): Likewise.
44313         * tests/test-memmem.c (includes): Likewise.
44314
44315 2008-06-10  Bruno Haible  <bruno@clisp.org>
44316
44317         * lib/wait-process.c (wait_subprocess): Add an assertion.
44318
44319 2008-06-10  Bruno Haible  <bruno@clisp.org>
44320
44321         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44322
44323 2008-06-10  Bruno Haible  <bruno@clisp.org>
44324
44325         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44326         using alarm().
44327         * tests/test-strcasestr.c (main): Likewise.
44328         * tests/test-strstr.c (main): Likewise.
44329
44330 2008-06-09  Bruno Haible  <bruno@clisp.org>
44331
44332         Work around the Solaris 10 ACE ACLs ABI change.
44333         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44334         declare if ACL_NO_TRIVIAL is present.
44335         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44336         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44337         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44338         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44339         define if ACL_NO_TRIVIAL is present.
44340         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44341         and use the current ABI.
44342         (file_has_acl): Use same #if condition as elsewhere.
44343         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44344         in use, and use the current ABI.
44345         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44346         Reported by Jim Meyering.
44347
44348 2008-06-09  Eric Blake  <ebb9@byu.net>
44349
44350         Work around environments that (stupidly) ignore SIGALRM.
44351         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44352         before using alarm().
44353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44355         Reported by Ian Beckwith <ianb@erislabs.net>.
44356
44357         Produce autobuild blurb earlier in log.
44358         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44359
44360 2008-06-09  Jim Meyering  <meyering@redhat.com>
44361         and OndÅ™ej Vašík  <ovasik@redhat.com>
44362
44363         utimens.c: correct kernel bug work-around
44364         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44365         failure, not success, and the kernel bug we're trying to work
44366         around affects not just the utimensat call, but also the fallback
44367         futimens call.
44368         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44369         not success.
44370         [HAVE_FUTIMENS]: Use the same work-around, here.
44371
44372 2008-06-09  Jim Meyering  <meyering@redhat.com>
44373
44374         add more guards around definition of ACE_-related code
44375         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44376         ALLOW and ACE_OWNER are also defined.
44377
44378 2008-06-08  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/acl-internal.h: Add me as co-author.
44381         * lib/file-has-acl.c: Likewise.
44382         * lib/set-mode-acl.c: Likewise.
44383         * lib/copy-acl.c: Likewise.
44384
44385 2008-06-08  Bruno Haible  <bruno@clisp.org>
44386
44387         Add support for AIX ACLs.
44388         * lib/acl-internal.h (acl_nontrivial): New declaration.
44389         * lib/file-has-acl.c (acl_nontrivial): New function.
44390         (file_has_acl): Add implementation using AIX 4 ACL API.
44391         * lib/set-mode-acl.c (qset_acl): Likewise.
44392         * lib/copy-acl.c (qcopy_acl): Likewise.
44393
44394 2008-06-08  Bruno Haible  <bruno@clisp.org>
44395
44396         Add support for HP-UX ACLs.
44397         * lib/acl-internal.h (acl_nontrivial): New declaration.
44398         * lib/file-has-acl.c (acl_nontrivial): New function.
44399         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44400         * lib/set-mode-acl.c (qset_acl): Likewise.
44401         * lib/copy-acl.c (qcopy_acl): Likewise.
44402
44403 2008-06-08  Bruno Haible  <bruno@clisp.org>
44404
44405         Add support for Cygwin ACLs.
44406         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44407         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44408         the chmod_or_fchmod call.
44409         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44410
44411 2008-06-08  Bruno Haible  <bruno@clisp.org>
44412
44413         Fix bug with setuid modes in Solaris 10+ code.
44414         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44415         succeeded, when the mode contains some special bits.
44416
44417 2008-06-08  Bruno Haible  <bruno@clisp.org>
44418
44419         Add support for Solaris 7..10 ACLs.
44420         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44421         declarations.
44422         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44423         functions.
44424         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44425         * lib/set-mode-acl.c (qset_acl): Likewise.
44426         * lib/copy-acl.c (qcopy_acl): Likewise.
44427
44428 2008-06-08  Bruno Haible  <bruno@clisp.org>
44429
44430         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44431         declaration.
44432         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44433         (acl_access_nontrivial): Remove MacOS X case.
44434         (file_has_acl): Use acl_extended_nontrivial.
44435         * lib/copy-acl.c (qcopy_acl): Likewise.
44436
44437 2008-06-08  Bruno Haible  <bruno@clisp.org>
44438
44439         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44440
44441 2008-06-08  Jim Meyering  <meyering@redhat.com>
44442
44443         * modules/acl (Maintainer): Add Bruno Haible.
44444
44445 2008-06-07  Bruno Haible  <bruno@clisp.org>
44446
44447         Improve support for Tru64 ACLs.
44448         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44449         ACL on OSF/1.
44450
44451 2008-06-07  Bruno Haible  <bruno@clisp.org>
44452
44453         Add support for MacOS X ACLs.
44454         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44455         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44456         * lib/set-mode-acl.c (qset_acl): Likewise.
44457         * lib/copy-acl.c (qcopy_acl): Likewise.
44458
44459 2008-06-07  Bruno Haible  <bruno@clisp.org>
44460
44461         Fix memory leak introduced on 2008-05-22.
44462         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44463         use.
44464
44465 2008-06-07  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44468         to construct an empty ACL.
44469
44470 2008-06-07  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44473         precisely.
44474         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44475
44476 2008-06-07  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44479         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44480
44481 2008-06-07  Bruno Haible  <bruno@clisp.org>
44482
44483         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44484         regardless of POSIX.
44485         * doc/posix-functions/_longjmp.texi: Likewise.
44486         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44487         SystemV platform in this case.
44488
44489 2008-06-06  Eric Blake  <ebb9@byu.net>
44490
44491         Document abort() bugs.
44492         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44493
44494         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44495         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44496         sigsetjmp.
44497         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44498         siglongjmp, but only as a macro.
44499         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44500         is obsolete.
44501         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44502
44503         Tweak documentation to cover cygwin argz bugs.
44504         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44505         argz bug fix; no code change needed since no cygwin releases
44506         occurred between the last fix and the bug being tested.
44507         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44508         module and recently fixed cygwin bugs.
44509         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44510         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44511         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44512         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44513         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44514         Likewise.
44515         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44516         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44517         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44518         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44519         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44520         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44521         Likewise.
44522
44523         Avoid gcc warning on cygwin.
44524         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44525         !ACL_NO_TRIVIAL]: Avoid unused variable.
44526
44527 2008-06-05  Eric Blake  <ebb9@byu.net>
44528
44529         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44530         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44531         git-version-gen fails to come up with a version.
44532         Reported by Simon Josefsson.
44533
44534 2008-06-05  Jim Meyering  <meyering@redhat.com>
44535             Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         utimens.c: work around a probable Linux kernel bug
44538         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44539         appears to be a kernel bug that causes utimensat to return 280
44540         instead of 0, indicating success.
44541
44542 2008-06-04  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44545         2008-06-01 commit.
44546
44547 2008-06-04  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44550         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44551         (file_has_acl): Use it. Save errno afterwards.
44552         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44553
44554 2008-06-03  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44557         draft code. Simplify #ifs.
44558         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44559         Put Solaris code after POSIX-draft code. Fix comments regarding
44560         Solaris 10, HP-UX. Mention Cygwin.
44561         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44562
44563 2008-06-03  Eric Blake  <ebb9@byu.net>
44564
44565         Provide fallback for older kernels.
44566         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44567         Provide runtime fallback if kernel lacks support.
44568         Reported by Mike Frysinger.
44569
44570 2008-06-02  Bruno Haible  <bruno@clisp.org>
44571
44572         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44573         it exists.
44574
44575 2008-06-02  Bruno Haible  <bruno@clisp.org>
44576
44577         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44578         * lib/copy-acl.c (qcopy_acl): Update comment.
44579
44580 2008-06-02  Bruno Haible  <bruno@clisp.org>
44581
44582         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44583         like ACL APIs.
44584
44585 2008-06-02  Bruno Haible  <bruno@clisp.org>
44586
44587         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44588         * tests/test-set-mode-acl.sh: Likewise.
44589         * tests/test-copy-acl.sh: Likewise.
44590         * tests/test-copy-file.sh: Likewise.
44591
44592 2008-06-02  Bruno Haible  <bruno@clisp.org>
44593
44594         * tests/test-file-has-acl.sh: Remove unused code.
44595
44596 2008-06-01  Bruno Haible  <bruno@clisp.org>
44597
44598         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44599         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44600         messages.
44601         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44602
44603 2008-06-01  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44606         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44607         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44608         APIs.
44609         * modules/acl-tests (configure.ac): Remove tests now contained in
44610         m4/acl.m4.
44611
44612 2008-06-02  Jim Meyering  <meyering@redhat.com>
44613
44614         announce-gen: use a better key-server host name
44615         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44616         it may be more consistently reliable.  Suggested by Werner Koch
44617         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44618
44619 2008-06-01  Bruno Haible  <bruno@clisp.org>
44620
44621         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44622         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44623
44624 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44625
44626         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44627
44628 2008-06-01  Bruno Haible  <bruno@clisp.org>
44629
44630         New ACL tests.
44631         * tests/test-file-has-acl.sh: New file.
44632         * tests/test-file-has-acl.c: New file.
44633         * tests/test-set-mode-acl.sh: New file.
44634         * tests/test-set-mode-acl.c: New file.
44635         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44636         * tests/test-copy-acl.c: New file.
44637         * modules/acl-tests: New file, based on modules/copy-file-tests.
44638         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44639         (Depends-on): Add acl-tests.
44640         (configure.ac): Remove checks.
44641         (Makefile.am): Don't create test-sameacls program here any more.
44642
44643 2008-06-01  Bruno Haible  <bruno@clisp.org>
44644
44645         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44646         * tests/test-sameacls.c: Include progname.h.
44647         (main): Invoke set_program_name. Portability fixes for MacOS X,
44648         Solaris, HP-UX.
44649
44650 2008-06-01  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44653         function.
44654         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44655
44656 2008-06-01  Bruno Haible  <bruno@clisp.org>
44657
44658         * modules/rpmatch (Depends-on): Add strdup.
44659
44660 2008-06-01  Bruno Haible  <bruno@clisp.org>
44661
44662         * lib/pipe.c: Include unistd-safer.h.
44663         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44664         * modules/pipe (Depends-on): Add unistd-safer.
44665
44666 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44667
44668         * modules/autobuild (configure.ac): Call AB_INIT.
44669
44670 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44671
44672         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44673         Suggested by Bruno Haible <bruno@clisp.org>.
44674
44675 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44676
44677         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44678         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44679         <bruno@clisp.org>.
44680
44681 2008-05-29  Eric Blake  <ebb9@byu.net>
44682
44683         Prefer new POSIX 200x interfaces over futimesat.
44684         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44685         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44686         when available.
44687         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44688
44689 2008-05-28  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/stpcpy (License): Change to LGPLv2+.
44692         Requested by David Lutterkort <dlutter@redhat.com>.
44693
44694 2008-05-27  Bruno Haible  <bruno@clisp.org>
44695
44696         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44697         current mingw.
44698         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44699
44700 2008-05-27  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/iconv_open (Link): New section, from module 'iconv'.
44703         * modules/striconv (Link): Likewise.
44704         * modules/striconveh (Link): Likewise.
44705         * modules/xstriconv (Link): Likewise.
44706         * modules/unicodeio (Link): Likewise.
44707         * modules/propername (Link): Likewise.
44708         Reported by Jim Meyering.
44709
44710 2008-05-26  Jim Meyering  <meyering@redhat.com>
44711
44712         sha256: do not artificially restrict buffer length to be < 2^32
44713         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44714         uint32_t to size_t.
44715         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44716         to match.
44717
44718         avoid unaligned access errors, e.g., on sparc
44719         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44720         direct access through a possibly-unaligned uint64* pointer.
44721         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44722         direct access through a possibly-unaligned uint32* pointer.
44723         Prompted by this patch from Tom "spot" Callaway:
44724         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44725
44726         sha512.c: fix typo in comment
44727         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44728
44729 2008-05-25  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44732         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44733         (Makefile.am): Update lib_SOURCES.
44734
44735 2008-05-25  Bruno Haible  <bruno@clisp.org>
44736
44737         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44738
44739 2008-05-25  Jim Meyering  <meyering@redhat.com>
44740
44741         useless-if-before-free: freed expr may have white-space differences
44742         * build-aux/useless-if-before-free: Recognize cases in which the
44743         freed expression differs from the tested one in embedded white
44744         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44745         $1 was used, so we can't make any regexp shy.  Improved tests now
44746         detect this.
44747
44748         useless-if-before-free: accept white space in the expression.
44749         * build-aux/useless-if-before-free: For now, any white space
44750         in the expression must be identical in the free argument.
44751
44752         useless-if-before-free: efficiency tweak
44753         * build-aux/useless-if-before-free: Make the expression-matching
44754         regexp "shy".
44755         Make the *outer* regexp shy, not the expr-matching one.
44756
44757         update code-in-comment to accept cast of free arg
44758         * build-aux/useless-if-before-free: Update regexp.
44759
44760 2008-05-25  Bruno Haible  <bruno@clisp.org>
44761
44762         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44763         * modules/copy-file-tests (Files, Makefile.am): Update.
44764         * tests/test-copy-file.c (func_test_copy): Update.
44765
44766 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44767
44768         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44769
44770 2008-05-23  Bruno Haible  <bruno@clisp.org>
44771
44772         Improve support for ACLs on OSF/1.
44773         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44774         Remove fallback for unknown flavors of ACLs.
44775
44776 2008-05-22  Bruno Haible  <bruno@clisp.org>
44777
44778         Add support for ACLs on OSF/1.
44779         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44780         replacements.
44781         (acl_free_text): New macro fallback.
44782         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44783         acl_free.
44784         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44785         acl_free_text function. Require AC_C_INLINE.
44786
44787 2008-05-22  Bruno Haible  <bruno@clisp.org>
44788
44789         Make copy_acl work on MacOS X 10.5.
44790         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44791         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44792         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44793         If MODE_INSIDE_ACL, don't assume that every system has the same text
44794         representation for ACLs as FreeBSD.
44795         * lib/copy-acl.c (copy_acl): Add support for platforms with
44796         !MODE_INSIDE_ACL.
44797         * lib/file-has-acl.c (file_has_acl): Likewise.
44798         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44799         FreeBSD, MacOS X, or IRIX, respectively.
44800
44801 2008-05-22  Bruno Haible  <bruno@clisp.org>
44802
44803         * lib/acl.h: Don't include <sys/acl.h>.
44804         (GETACLCNT): Move fallback to lib/acl-internal.h.
44805         * lib/acl-internal.h: Include <sys/acl.h> here.
44806         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44807
44808 2008-05-22  Bruno Haible  <bruno@clisp.org>
44809
44810         Split off copy_acl function to separate file.
44811         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44812         * lib/acl.c (copy_acl): Moved function to separate file.
44813         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44814         * modules/acl (Files): Add lib/copy-acl.c.
44815         (Makefiles.am): Augment lib_SOURCES.
44816
44817 2008-05-22  Bruno Haible  <bruno@clisp.org>
44818
44819         * modules/copy-file-tests: New file.
44820         * tests/test-copy-file.sh: New file.
44821         * tests/test-copy-file.c: New file.
44822         * tests/test-copy-file-sameacls.c: New file.
44823
44824 2008-05-22  Eric Blake  <ebb9@byu.net>
44825
44826         Avoid gcc warning.
44827         * tests/test-memcmp.c (main): Pass NULL indirectly.
44828
44829 2008-05-21  Bruno Haible  <bruno@clisp.org>
44830
44831         Add reference doc about ACLs.
44832         * doc/acl-resources.txt: New file.
44833         * doc/acl-cygwin.txt: New file.
44834
44835 2008-05-21  Bruno Haible  <bruno@clisp.org>
44836
44837         Avoid one more warning from gcc.
44838         * lib/vasnprintf.c (IF_LINT): Update comments.
44839         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44840
44841 2008-05-21  Jim Meyering  <meyering@redhat.com>
44842
44843         avoid a warning from gcc
44844         * lib/vasnprintf.c (IF_LINT): Define.
44845         (scale10_round_decimal_long_double):
44846         Use it to avoid a "may be used uninitialized" warning.
44847         (scale10_round_decimal_double): Likewise.
44848
44849 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44850
44851         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44852         declared.
44853
44854 2008-05-20  Bruno Haible  <bruno@clisp.org>
44855
44856         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44857         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44858
44859 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44860
44861         * modules/memcmp-tests: New file.
44862         * tests/test-memcmp.c: New file.
44863
44864 2008-05-19  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/propername (Notice, configure.ac): Put quoted "..." into
44867         --keyword option.
44868         * lib/propername.h: Update comments accordingly.
44869         Reported by Eric Blake.
44870
44871 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44872
44873         * modules/getpass-gnu (Depends-on): Add fseeko.
44874
44875 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44876
44877         * modules/base64-tests: New file.
44878
44879 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44880
44881         * lib/base64.c (base64_decode_ctx): If a decode context structure
44882         was passed in use it to ignore newlines.  If a context structure
44883         was _not_ passed in, continue to treat newlines as garbage (this
44884         is the historical behavior).  Formerly base64_decode.
44885         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44886         takes a decode context structure.
44887         * lib/base64.h (base64_decode): Macro for four-argument calls.
44888         (base64_decode_alloc): Likewise.
44889         * lib/base64.c (base64_decode_ctx): If a decode context structure
44890         was passed in use it to ignore newlines.  If a context structure
44891         was _not_ passed in, continue to treat newlines as garbage (this
44892         is the historical behavior).  Formerly base64_decode.
44893         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44894         takes a decode context structure.
44895         * lib/base64.h (base64_decode): Macro for four-argument calls.
44896         (base64_decode_alloc): Likewise.
44897
44898 2008-05-19  Jim Meyering  <meyering@redhat.com>
44899
44900         avoid a warning from gcc
44901         * lib/trim.c (IF_LINT): Define.
44902         (trim2): Use it to avoid a "may be used uninitialized" warning.
44903
44904         Fix doc typo.
44905         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44906
44907 2008-05-19  Bruno Haible  <bruno@clisp.org>
44908
44909         * doc/glibc-functions/getpass.texi: Document limits of other
44910         implementations.
44911
44912 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44913             Bruno Haible <bruno@clisp.org>
44914
44915         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44916
44917 2008-05-18  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/propername: New file, from GNU gettext.
44920         * lib/propername.h: New file, from GNU gettext.
44921         * lib/propername.c: New file, from GNU gettext.
44922         * MODULES.html.sh (Internationalization functions): Add propername.
44923
44924 2008-05-16  Jim Meyering  <meyering@redhat.com>
44925             Bruno Haible  <bruno@clisp.org>
44926
44927         Avoid some warnings from "gcc -Wshadow".
44928         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44929
44930 2008-05-15  Eric Blake  <ebb9@byu.net>
44931
44932         Extend previous patch to cygwin 1.7.0.
44933         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44934         fast implementation in cygwin >= 1.7.0.
44935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44937
44938 2008-05-15  Bruno Haible  <bruno@clisp.org>
44939
44940         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44941         implementation in glibc >= 2.9.
44942         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44944
44945 2008-05-15  Bruno Haible  <bruno@clisp.org>
44946
44947         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44948         (Unicode string functions): Add unilbrk/*.
44949         Reported by Karl Berry.
44950
44951 2008-05-15  Eric Blake  <ebb9@byu.net>
44952
44953         Fix violation of <stdbool.h> replacement in regex.
44954         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44955         * lib/regexec.c (re_search_internal): Likewise.
44956         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44957
44958 2008-05-15  Jim Meyering  <meyering@redhat.com>
44959
44960         avoid distracting test output when git or cvs is not found
44961         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44962         * tests/test-vc-list-files-git.sh: Likewise.
44963
44964 2008-05-15  Eric Blake  <ebb9@byu.net>
44965
44966         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44967         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44968         glibc version.
44969         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44970         * doc/posix-functions/strstr.texi (strstr): Likewise.
44971         * lib/str-two-way.h (MAX): Sychronize with glibc.
44972
44973 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44974
44975         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44976         opr.ctx_type.
44977         (calc_first): Initialize constraint field.
44978         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44979         Fix grammar.
44980         (duplicate_node): Merge constraint field for all node types.
44981         (calc_eclosure_iter): Look at constraint field for all node types.
44982         * lib/regex_internal.c (create_cd_newstate): Don't look at
44983         opr.ctx_type.
44984
44985 2008-05-14  Bruno Haible  <bruno@clisp.org>
44986
44987         Help GCC to do better code generation.
44988         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44989         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44990         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44991         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44992         Declare with attribute 'malloc' if supported.
44993
44994 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44995
44996         use "echo STR|wc -c" rather than unportable "expr length STR"
44997         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44998         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44999
45000 2008-05-14  Jim Meyering  <meyering@redhat.com>
45001
45002         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45003         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45004         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45005         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45006         via Collin Lasse.
45007
45008 2008-05-14  Eric Blake  <ebb9@byu.net>
45009
45010         Avoid quadratic growth in gl_LIBSOURCES.
45011         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45012         Suggested by Bruno Haible.
45013
45014         Test xmemdup0.
45015         * modules/xmemdup0-tests: New file.
45016         * tests/test-xmemdup0.c: Likewise.
45017
45018 2008-05-13  Eric Blake  <ebb9@byu.net>
45019
45020         Split xmemdup0 into its own module.
45021         * modules/xmemdup0: New file.
45022         * lib/xmemdup0.h: Likewise.
45023         * lib/xmemdup0.c: Likewise.
45024         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45025         * lib/xalloc.h (xmemdup0): Remove.
45026         * lib/xmalloc.c (xmemdup0): Likewise.
45027
45028 2008-05-13  Eric Blake  <ebb9@byu.net>
45029             Bruno Haible  <bruno@clisp.org>
45030
45031         Reduce number of forks required during autoconf.
45032         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45033         and gl_LIBSOURCES_DIR.
45034         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45035         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45036         m4_syscmd per file.
45037         <m4_foreach_w>: Move...
45038         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45039
45040 2008-05-13  Eric Blake  <ebb9@byu.net>
45041
45042         * gnulib-tool: Fix various comment typos.
45043
45044 2008-05-12  Bruno Haible  <bruno@clisp.org>
45045
45046         Tailor the linebreaking algorithm.
45047         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45048
45049 2008-05-12  Bruno Haible  <bruno@clisp.org>
45050
45051         Update to Unicode 5.0.0.
45052         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45053         LBP_JV, LBP_JT. Redistribute values.
45054         (unilbrk_table): Change size.
45055         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45056         Unicode TR#14 rev. 22.
45057         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45058         LBP_JV, LBP_JT. Redistribute values.
45059         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45060         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45061         Update.
45062         * lib/unilbrk/lbrkprop1.h: Regenerated.
45063         * lib/unilbrk/lbrkprop2.h: Regenerated.
45064         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45065         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45066         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45067         Likewise.
45068         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45069         Likewise.
45070         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45071         result.
45072         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45073         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45074         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45075         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45076         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45077         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45078
45079 2008-05-11  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45082
45083 2008-05-11  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45086         * modules/unilbrk/gen-lbrk: New file.
45087
45088 2008-05-11  Bruno Haible  <bruno@clisp.org>
45089
45090         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45091         * m4/sha512.m4 (gl_SHA512): Likewise.
45092
45093 2008-05-11  Jim Meyering  <meyering@redhat.com>
45094
45095         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45096         * modules/crypto/sha256: New file.
45097         * modules/crypto/sha512: Likewise.
45098         * lib/sha256.c: Likewise.
45099         * lib/sha256.h: Likewise.
45100         * lib/sha512.c: Likewise.
45101         * lib/sha512.h: Likewise.
45102         * lib/u64.h: Likewise.
45103         * m4/sha256.m4: Likewise.
45104         * m4/sha512.m4: Likewise.
45105         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45106
45107 2008-05-10  Bruno Haible  <bruno@clisp.org>
45108
45109         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45110         (Input/Output <stdio.h>): Add xprintf.
45111         (Signal handling <signal.h>): Add strsignal.
45112         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45113         (Core language properties): Add func.
45114         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45115         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45116         strings.
45117         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45118         (Input/output): New section.
45119         (File system functions): Add openat-die, stat-macros.
45120         (Networking functions): Add sockets.
45121         (Unicode string functions): Add unictype/*.
45122         (Support for building libraries and executables): Add gperf.
45123         (Support for building documentation): Add agpl-3.0.
45124         (Misc): Add nocrash.
45125
45126 2008-05-10  Bruno Haible  <bruno@clisp.org>
45127
45128         * modules/unictype/gen-ctype: New file.
45129
45130 2008-05-10  Jim Meyering  <meyering@redhat.com>
45131
45132         Make chdir-safer.c more efficient on a system with no symlinks.
45133         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45134         also if ELOOP is zero.  Suggested by Bruno Haible.
45135
45136         Make chdir-safer.c slightly safer.
45137         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45138         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45139
45140         Avoid compile failure on systems without ELOOP (like mingw).
45141         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45142         Reported by Bruno Haible.
45143
45144 2008-05-10  Bruno Haible  <bruno@clisp.org>
45145
45146         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45147         (is_utf8_encoding): Use a case-insensitive comparison.
45148         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45149         streq.
45150
45151 2008-05-10  Bruno Haible  <bruno@clisp.org>
45152
45153         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45154         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45155         * lib/unilbrk/ulc-common.h (iconv_string_length,
45156         iconv_string_keeping_offsets): Remove declarations.
45157         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45158         Don't include <iconv.h>, streq.h, xsize.h.
45159         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45160         conversion.
45161         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45162         <iconv.h>, streq.h, xsize.h.
45163         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45164         conversion.
45165         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45166         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45167         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45168         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45169
45170 2008-05-10  Bruno Haible  <bruno@clisp.org>
45171
45172         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45173         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45174
45175         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45176         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45177
45178         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45179         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45180
45181         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45182         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45183
45184         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45185         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45186
45187         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45188         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45189
45190         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45191         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45192
45193         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45194         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45195
45196 2008-05-10  Bruno Haible  <bruno@clisp.org>
45197
45198         Split up 'linebreak' module.
45199         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45200         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45201         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45202         modifications.
45203         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45204         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45205         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45206         lib/linebreak.c.
45207         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45208         lib/linebreak.c.
45209         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45210         lib/linebreak.c.
45211         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45212         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45213         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45214         lib/linebreak.c.
45215         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45216         lib/linebreak.c.
45217         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45218         lib/linebreak.c.
45219         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45220         lib/linebreak.c.
45221         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45222         lib/linebreak.c.
45223         * modules/unilbrk/base: New file.
45224         * modules/unilbrk/tables: New file.
45225         * modules/unilbrk/u8-possible-linebreaks: New file.
45226         * modules/unilbrk/u16-possible-linebreaks: New file.
45227         * modules/unilbrk/u32-possible-linebreaks: New file.
45228         * modules/unilbrk/ulc-common: New file.
45229         * modules/unilbrk/ulc-possible-linebreaks: New file.
45230         * modules/unilbrk/u8-width-linebreaks: New file.
45231         * modules/unilbrk/u16-width-linebreaks: New file.
45232         * modules/unilbrk/u32-width-linebreaks: New file.
45233         * modules/unilbrk/ulc-width-linebreaks: New file.
45234         * lib/linebreak.h: Remove file.
45235         * lib/linebreak.c: Remove file.
45236         * m4/linebreak.m4: Remove file.
45237         * modules/linebreak: Remove file.
45238         * NEWS: Mention the changes.
45239
45240 2008-05-09  Eric Blake  <ebb9@byu.net>
45241
45242         Add xmemdup0.
45243         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45244         implementation.
45245         * lib/xmalloc.c (xmemdup0): New C implementation.
45246
45247 2008-05-08  Bruno Haible  <bruno@clisp.org>
45248
45249         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45250
45251 2008-05-07  Eric Blake  <ebb9@byu.net>
45252
45253         Support cross-compilation of <wctype.h>.
45254         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45255         AC_CACHE_CHECK.
45256
45257 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45258
45259         * build-aux/vc-list-files: Add support for bzr.
45260
45261 2008-05-03  Jim Meyering  <meyering@redhat.com>
45262
45263         avoid failed assertion with tight malloc
45264         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45265
45266 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45267
45268         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45269         are needed from arpa/inet.h.
45270         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45271         Reported by Bruno Haible.
45272
45273 2008-05-02  Jim Meyering  <meyering@redhat.com>
45274
45275         avoid compilation error on FreeBSD 6
45276         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45277
45278 2008-05-01  Jim Meyering  <meyering@redhat.com>
45279
45280         useless-if-before-free: correct --help's exit status description
45281         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45282         for one or more matches, etc.  Reported by Bruno Haible.
45283
45284         vc-list-files: make the stand-alone gnulib test work
45285         * modules/vc-list-files-tests (configure.ac):
45286         Define and AC_SUBST abs_aux_dir.
45287         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45288         $(abs_top_srcdir) to each script and having each of them
45289         duplicate the work of setting PATH, set PATH here, using
45290         the new variable, abs_aux_dir instead.
45291         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45292         * tests/test-vc-list-files-git.sh: Likewise.
45293         Reported by Bruno Haible.
45294
45295 2008-05-01  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45298         reallocation. Rename 'done' to 'found_delimiter'.
45299
45300 2008-05-01  Jim Meyering  <meyering@redhat.com>
45301
45302         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45303         * build-aux/vc-list-files: Use `...`, not $(...).
45304
45305 2008-04-30  Jim Meyering  <meyering@redhat.com>
45306
45307         add tests for vc-list-files
45308         * modules/vc-list-files-tests: New module.
45309         * tests/test-vc-list-files-cvs.sh: New file.
45310         * tests/test-vc-list-files-git.sh: New file.
45311
45312         avoid a warning from gcc
45313         * lib/getndelim2.c (IF_LINT): Define.
45314         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45315
45316         vc-list-files: work properly with build-aux/cvsu, too
45317         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45318         to all cvs-based clauses.
45319
45320         vc-list-files: work properly in the CVS+awk case, too
45321         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45322
45323         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45324         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45325         take more than one file argument, so .  Add quotes, just in case $dir
45326         ever contains a shell meta-character.  Prompted by Soren Hansen in
45327         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45328
45329 2008-04-29  Eric Blake  <ebb9@byu.net>
45330
45331         Optimize getndelim2 to use block operations when possible.
45332         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45333         freadseek, and memchr2.
45334         * lib/getndelim2.c (getndelim2): Use them for block reads.
45335
45336 2008-04-29  Bruno Haible  <bruno@clisp.org>
45337
45338         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45340         * modules/inet_ntop (Depends-on): Add extensions.
45341         * modules/inet_pton (Depends-on): Likewise.
45342         Reported by Simon Josefsson.
45343
45344 2008-04-29  Jim Meyering  <meyering@redhat.com>
45345
45346         When the is more than one match in a block, match all of them.
45347         * build-aux/useless-if-before-free: Iterate through each block
45348         until there are no more matches.
45349
45350         Fix broken useless-if-before-free script.
45351         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45352         the expression to match cast of argument to free-like function.
45353
45354 2008-04-29  Eric Blake  <ebb9@byu.net>
45355
45356         Use new header.
45357         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45358
45359 2008-04-29  Jim Meyering  <meyering@redhat.com>
45360
45361         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45362         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45363         by gnulib to exist and to declare e.g., inet_ntop.
45364         Don't include "inet_ntop.h", now removed.
45365
45366         * m4/arpa_inet_h.m4: Remove trailing blanks.
45367
45368 2008-04-29  Eric Blake  <ebb9@byu.net>
45369
45370         Silence valgrind on safe reads beyond potential array bounds.
45371         * lib/rawmemchr.valgrind: New file.
45372         * lib/strchrnul.valgrind: Likewise.
45373         * modules/rawmemchr (Files): Distribute new file.
45374         * modules/strchrnul (Files): Likewise.
45375         Suggested by Bruno Haible.
45376
45377 2008-04-29  Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45380         (inet_ntop, inet_pton): Change portability warning's wording.
45381         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45382         Invoke gl_CHECK_NEXT_HEADERS.
45383         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45384         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45385         set ARPA_INET_H.
45386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45387         * modules/arpa_inet (Description): No longer only for systems that
45388         lack it.
45389         (Depends-on): Add include_next.
45390         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45391         HAVE_ARPA_INET_H.
45392
45393 2008-04-29  Jim Meyering  <meyering@redhat.com>
45394
45395         * modules/mkdir (License): Re-license as LGPLv2+.
45396
45397 2008-04-29  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/rawmemchr (Maintainer): Set to Eric.
45400         * modules/strchrnul (Maintainer): Likewise.
45401
45402 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45403
45404         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45405         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45406
45407         * modules/arpa_inet (arpa/inet.h): Use them.
45408
45409 2008-04-28  Eric Blake  <ebb9@byu.net>
45410
45411         Test getndelim2.
45412         * modules/getndelim2-tests: New file.
45413         * tests/test-getndelim2.c: Likewise.
45414         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45415         stream.
45416         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45417
45418         * MODULES.html.sh: Document new module.
45419
45420 2008-04-20  Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/c-stack.c (die): Use raise.
45423         * modules/c-stack (Depends-on): Add raise.
45424
45425 2008-04-28  Bruno Haible  <bruno@clisp.org>
45426
45427         Expect rpmatch to be declared.
45428         * lib/yesno.c (rpmatch): Remove declaration.
45429
45430         Declare rpmatch.
45431         * lib/stdlib.in.h (rpmatch): New declaration.
45432         * lib/rpmatch.c: Include <stdlib.h> first.
45433         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45434         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45436         HAVE_RPMATCH.
45437         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45439         (Include): Set to <stdlib.h>.
45440         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45441         HAVE_RPMATCH.
45442         * NEWS: Document the change.
45443
45444 2008-04-28  Bruno Haible  <bruno@clisp.org>
45445
45446         Change rpmatch to use nl_langinfo when appropriate.
45447         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45448         (N_): New macro.
45449         (localized_pattern): New function/macro.
45450         (try): Remove match, nomatch arguments. Copy the pattern into safe
45451         memory before caching it.
45452         (rpmatch): Use localized_pattern. Add translator comments.
45453         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45454         Suggested by Eric Blake.
45455         * modules/rpmatch (Depends-on): Add stdbool.
45456
45457 2008-04-28  Eric Blake  <ebb9@byu.net>
45458
45459         Add rawmemchr module, matching glibc.
45460         * modules/string (Makefile.am): New indicator.
45461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45462         * lib/string.in.h (rawmemchr): Declare when appropriate.
45463         * modules/rawmemchr: New file.
45464         * m4/rawmemchr.m4: Likewise.
45465         * lib/rawmemchr.c: Likewise.
45466         * modules/rawmemchr-tests: Likewise.
45467         * tests/test-rawmemchr.c: Likewise.
45468         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45469         module.
45470         * modules/strchrnul (Depends-on): Add rawmemchr.
45471         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45472
45473         Whitespace cleanup.
45474         * tests/test-strchrnul.c: Reindent.
45475         * lib/strchrnul.c: Likewise.
45476
45477         Optimize and test strchrnul.
45478         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45479         * modules/strchrnul-tests: New file.
45480         * tests/test-strchrnul.c: Likewise.
45481
45482         Remove intprops dependency.
45483         * modules/memchr (Depends-on): Remove intprops.
45484         * modules/memrchr (Depends-on): Likewise.
45485         * modules/memchr2 (Depends-on): Likewise.
45486         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45487         * lib/memrchr.c (__memrchr): Likewise.
45488         * lib/memrchr2.c (memchr2): Likewise.
45489         Reported by Simon Josefsson.
45490
45491 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45492
45493         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45494         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45495
45496 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45497
45498         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45499
45500         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45501
45502         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45503
45504         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45505         declarations.
45506         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45507
45508         * m4/inet_pton.m4: Don't check for header files.
45509
45510         * m4/inet_ntop.m4: Don't check for header files.
45511
45512 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45513
45514         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45515         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45516         trigger for cygwin).
45517         Reported by Bruno Haible  <bruno@clisp.org>.
45518
45519 2008-04-28  Bruno Haible  <bruno@clisp.org>
45520
45521         * doc/posix-functions/strdup.texi: Mention mingw problem.
45522
45523 2008-04-27  Bruno Haible  <bruno@clisp.org>
45524
45525         * modules/stat-time-tests (Depends-on): Add sleep.
45526         * tests/test-stat-time.c (force_unlink): New function.
45527         (cleanup): Use it.
45528         (test_mtime): Remove the ctime related tests.
45529         (test_ctime): New function, containing the ctime related tests.
45530         (main): Call test_ctime, except on native Windows platforms.
45531
45532 2008-04-27  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/rpmatch.c (rpmatch): Add some comments.
45535         Reported by James Youngman <jay@gnu.org>.
45536
45537 2008-04-27  Bruno Haible  <bruno@clisp.org>
45538
45539         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45540         quiet NaNs.
45541
45542 2008-04-27  Bruno Haible  <bruno@clisp.org>
45543
45544         Make test-yesno.sh work on mingw.
45545         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45546         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45547         (main): Set stdin to binary mode.
45548         * modules/yesno-tests (Depends-on): Add binary-io.
45549
45550 2008-04-27  Bruno Haible  <bruno@clisp.org>
45551
45552         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45553         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45554         argument that lie outside the IEEE 854 domain.
45555         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45556         (gl_ISFINITE): Use it.
45557         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45558
45559 2008-04-27  Bruno Haible  <bruno@clisp.org>
45560
45561         Allow local renaming in config.h.
45562         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45563
45564 2008-04-27  Bruno Haible  <bruno@clisp.org>
45565
45566         * lib/memchr.c (__memchr): Change type of 'i'.
45567         * lib/memchr2.c (memchr2): Likewise.
45568
45569 2008-04-26  Eric Blake  <ebb9@byu.net>
45570         and Bruno Haible  <bruno@clisp.org>
45571
45572         Optimize and test memrchr.
45573         * modules/memrchr (Depends-on): Add intprops.
45574         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45575         * modules/memrchr-tests: New file.
45576         * tests/test-memrchr.c: New file.
45577
45578 2008-04-26  Bruno Haible  <bruno@clisp.org>
45579
45580         Add tentative support for DragonFly BSD.
45581         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45582         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45583         fp.
45584         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45585         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45586         * lib/fpurge.c (fpurge): Likewise.
45587         * lib/freadable.c (freaadable): Likewise.
45588         * lib/freadahead.c (freadahead): Likewise.
45589         * lib/freading.c (freading): Likewise.
45590         * lib/freadptr.c (freadptr): Likewise.
45591         * lib/freadseek.c (freadptrinc): Likewise.
45592         * lib/fseeko.c (fseeko): Likewise.
45593         * lib/fseterr.c (fseterr): Likewise.
45594         * lib/fwritable.c (fwritable): Likewise.
45595         * lib/fwriting.c (fwriting): Likewise.
45596
45597 2008-04-26  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/stdio-impl.h: New file.
45600         * lib/fbufmode.c: Include stdio-impl.h.
45601         (fbufmode): Use fp_, remove redundant #defines.
45602         * lib/fflush.c: Include stdio-impl.h.
45603         (clear_ungetc_buffer): Remove redundant #defines.
45604         * lib/fpurge.c: Include stdio-impl.h.
45605         (fpurge): Remove redundant #defines.
45606         * lib/freadable.c: Include stdio-impl.h.
45607         (freadable): Remove redundant #defines.
45608         * lib/freadahead.c: Include stdio-impl.h.
45609         (freadahead): Remove redundant #defines.
45610         * lib/freading.c: Include stdio-impl.h.
45611         (freading): Remove redundant #defines.
45612         * lib/freadptr.c: Include stdio-impl.h.
45613         (freadptr): Remove redundant #defines.
45614         * lib/freadseek.c: Include stdio-impl.h.
45615         (freadptrinc): Remove redundant #defines.
45616         * lib/fseeko.c: Include stdio-impl.h.
45617         (rpl_fseeko): Remove redundant #defines.
45618         * lib/fseterr.c: Include stdio-impl.h.
45619         (fseterr): Remove redundant #defines.
45620         * lib/fwritable.c: Include stdio-impl.h.
45621         (fwritable: Remove redundant #defines.
45622         * lib/fwriting.c: Include stdio-impl.h.
45623         (fwriting): Remove redundant #defines.
45624         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45625         * modules/fflush (Files): Likewise.
45626         * modules/fpurge (Files): Likewise.
45627         * modules/freadable (Files): Likewise.
45628         * modules/freadahead (Files): Likewise.
45629         * modules/freading (Files): Likewise.
45630         * modules/freadptr (Files): Likewise.
45631         * modules/freadseek (Files): Likewise.
45632         * modules/fseeko (Files): Likewise.
45633         * modules/fseterr (Files): Likewise.
45634         * modules/fwritable (Files): Likewise.
45635         * modules/fwriting (Files): Likewise.
45636
45637 2008-04-26  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45640         restore_seek_optimization, update_fpos_cache): New functions, extracted
45641         from rpl_fflush.
45642         (rpl_fflush): Use them.
45643         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45644         (gl_REPLACE_FFLUSH): Use it.
45645
45646 2008-04-26  Bruno Haible  <bruno@clisp.org>
45647
45648         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45649         on Solaris.
45650         * tests/test-xstrtoimax.sh: Likewise.
45651         * tests/test-xstrtoumax.sh: Likewise.
45652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45653
45654 2008-04-26  Bruno Haible  <bruno@clisp.org>
45655
45656         * modules/memchr-tests: New file.
45657         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45658
45659 2008-04-26  Eric Blake  <ebb9@byu.net>
45660             Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/memchr.c: Include intprops.h.
45663         (__memchr): Optimize parallel detection of matching bytes. Rename local
45664         variables. Add explanatory comments.
45665
45666 2008-04-26  Bruno Haible  <bruno@clisp.org>
45667
45668         Fix module 'memchr', broken since 2000-10-28.
45669         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45670
45671 2008-04-26  Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45674         comments.
45675
45676 2008-04-25  Eric Blake  <ebb9@byu.net>
45677
45678         Use native fstatat on cygwin 1.7.0.
45679         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45680         first.
45681
45682 2008-04-23  Eric Blake  <ebb9@byu.net>
45683
45684         Improve memchr2 performance.
45685         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45686         NUL bytes.
45687         * modules/memchr2 (Depends-on): Use intprops.h.
45688
45689 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45690
45691         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45692         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45693         <blp@cs.stanford.edu>.
45694
45695 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45696
45697         * lib/arpa_inet.in.h: New file.
45698
45699         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45700         (Makefile.am): Sed in substitute header file.
45701
45702         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45703         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45704
45705         * modules/inet_ntop (configure.ac): Use
45706         gl_ARPA_INET_MODULE_INDICATOR.
45707
45708         * modules/inet_pton (configure.ac): Use
45709         gl_ARPA_INET_MODULE_INDICATOR.
45710
45711 2008-04-22  Jim Meyering  <meyering@redhat.com>
45712
45713         * modules/verify (License): Re-license as LGPLv2+.
45714
45715 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45716
45717         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45718         parameter to void* as per POSIX standard (MinGW uses char*).
45719
45720 2008-04-21  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45723         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45724         Define to replacements if REPLACE_ISWCNTRL is 1.
45725         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45726         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45727         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45728         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45729         what it fixes.
45730         * doc/posix-functions/iswalpha.texi: Likewise.
45731         * doc/posix-functions/iswblank.texi: Likewise.
45732         * doc/posix-functions/iswcntrl.texi: Likewise.
45733         * doc/posix-functions/iswdigit.texi: Likewise.
45734         * doc/posix-functions/iswgraph.texi: Likewise.
45735         * doc/posix-functions/iswlower.texi: Likewise.
45736         * doc/posix-functions/iswprint.texi: Likewise.
45737         * doc/posix-functions/iswpunct.texi: Likewise.
45738         * doc/posix-functions/iswspace.texi: Likewise.
45739         * doc/posix-functions/iswupper.texi: Likewise.
45740         * doc/posix-functions/iswxdigit.texi: Likewise.
45741         Reported by Alain Guibert.
45742
45743 2008-04-21  Bruno Haible  <bruno@clisp.org>
45744
45745         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45746         Patch by Alain Guibert.
45747
45748 2008-04-21  Bruno Haible  <bruno@clisp.org>
45749
45750         Fix test failures on mingw.
45751         * tests/test-xstrtol.c (print_no_progname): New function.
45752         (main): Install it in error_print_progname hook.
45753         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45754         * tests/test-xstrtoimax.sh: Likewise.
45755         * tests/test-xstrtoumax.sh: Likewise.
45756
45757 2008-04-21  Bruno Haible  <bruno@clisp.org>
45758
45759         Fix test failure on mingw.
45760         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45761
45762 2008-04-21  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45765         Actually assign a value.
45766
45767 2008-04-20  Bruno Haible  <bruno@clisp.org>
45768
45769         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45770         take 2.
45771         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45772         'canonicalize-lgpl' module is also used.
45773         * lib/canonicalize-lgpl.c: Undo last change.
45774         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45775
45776 2008-04-20  Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45779         config.h. Provide _mkdir based fallback for mingw.
45780         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45781         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45783         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45784         rather than defining mkdir in config.h.
45785         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45786         (gl_SYS_STAT_H_DEFAULTS): New macro.
45787         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45788         HAVE_IO_H any more.
45789         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45790         HAVE_DECL_MKDIR and HAVE_IO_H.
45791
45792 2008-04-20  Bruno Haible  <bruno@clisp.org>
45793
45794         * lib/isapipe.c: Port to native Windows platforms.
45795
45796 2008-04-20  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45799
45800 2008-04-21  Eric Blake  <ebb9@byu.net>
45801
45802         Work around preprocessors that don't handle UINTMAX_MAX.
45803         * lib/memchr2.c (memchr2): Avoid embedded #if.
45804         Reported by Alain Guibert, fix suggested by Bruno Haible.
45805
45806 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45807
45808         * doc/posix-functions/strftime.texi (strftime): Explain better
45809         Windows incompatibility.  Suggested by Micah Cowan
45810         <micah@cowan.name>.
45811
45812 2008-04-20  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45815         unistr/u8-mblen.
45816
45817 2008-04-20  Bruno Haible  <bruno@clisp.org>
45818
45819         Fix test failure on platforms with non-GNU iconv.
45820         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45821         (U_TO_U8): Use it, rather than u16_to_u8.
45822         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45823         units at the end of the input string.
45824         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45825
45826 2008-04-20  Bruno Haible  <bruno@clisp.org>
45827
45828         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45829         when the resulting length is 0.
45830         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45831
45832 2008-04-20  Bruno Haible  <bruno@clisp.org>
45833
45834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45835         works.
45836         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45837
45838 2008-04-20  Bruno Haible  <bruno@clisp.org>
45839
45840         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45841         * modules/tsearch-tests (configure.ac): Test for initstate function.
45842
45843 2008-04-20  Bruno Haible  <bruno@clisp.org>
45844
45845         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45846         for nlink_t if missing.
45847         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45848
45849 2008-04-19  Bruno Haible  <bruno@clisp.org>
45850
45851         Work around snprintf bug on Linux libc5.
45852         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45854         gl_SNPRINTF_SIZE1.
45855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45856         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45857         that test failed.
45858         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45859         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45860         * modules/snprintf (Files): Add m4/printf.m4.
45861         * modules/vsnprintf (Files): Likewise.
45862         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45863         * doc/posix-functions/vsnprintf.texi: Likewise.
45864
45865 2008-04-19  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45868         from 0.0058 to less than 10^-7.
45869
45870 2008-04-19  Bruno Haible  <bruno@clisp.org>
45871
45872         Fix rounding when a precision is given.
45873         * lib/vasnprintf.c (is_borderline): New function.
45874         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45875         9...9x.
45876         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45877         %e, %g.
45878         * tests/test-vasprintf-posix.c (test_function): Likewise.
45879         * tests/test-snprintf-posix.h (test_function): Likewise.
45880         * tests/test-sprintf-posix.h (test_function): Likewise.
45881         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45882         * tests/test-printf-posix.h (test_function): Likewise.
45883         * tests/test-printf-posix.output: Update.
45884         Reported by John Darrington <john@darrington.wattle.id.au> via
45885         Ben Pfaff <blp@cs.stanford.edu>.
45886
45887 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45888
45889         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45890         Suggested by Bruno Haible <bruno@clisp.org>.
45891
45892 2008-04-17  Bruno Haible  <bruno@clisp.org>
45893
45894         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45895         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45896         implementation.
45897         Patch by Bruce Merry <bmerry@gmail.com>.
45898
45899 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45900
45901         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45902         doesn't work under Windows.
45903
45904 2008-04-16  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45907         New macros.
45908         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45909         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45910         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45911         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45912         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45913         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45914         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45915         macros.
45916         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45917         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45918         Northern Sotho, Uighur.
45919
45920 2008-04-16  Bruno Haible  <bruno@clisp.org>
45921
45922         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45923         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45924         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45925         Reported by Daniel Bergström <daniel@octocode.com>.
45926
45927 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45928             Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45931         function.
45932         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45933         New functions, mostly extracted from gl_locale_name_default.
45934         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45935
45936 2008-04-16  Eric Blake  <ebb9@byu.net>
45937
45938         Adjust strtod detection to catch glibc 2.7 bug.
45939         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45940         Reported by John Gatewood Ham.
45941
45942 2008-04-16  Bruno Haible  <bruno@clisp.org>
45943
45944         Add tentative support for Linux libc5.
45945         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45946         * lib/fpurge.c (fpurge): Likewise.
45947         * lib/freadable.c (freadable): Likewise.
45948         * lib/freadahead.c (freadahead): Likewise.
45949         * lib/freading.c (freading): Likewise.
45950         * lib/freadptr.c (freadptr): Likewise.
45951         * lib/freadseek.c (freadptrinc): Likewise.
45952         * lib/fseeko.c (rpl_fseeko): Likewise.
45953         * lib/fseterr.c (fseterr): Likewise.
45954         * lib/fwritable.c (fwritable): Likewise.
45955         * lib/fwriting.c (fwriting): Likewise.
45956         Reported by Alain Guibert <alguibert+bts@free.fr>.
45957
45958 2008-04-15  Bruno Haible  <bruno@clisp.org>
45959
45960         * modules/mathl (configure.ac): Define module indicator.
45961
45962 2008-04-15  Bruno Haible  <bruno@clisp.org>
45963
45964         * lib/logl.c (logl): Remove unused variables.
45965
45966 2008-04-15  Bruno Haible  <bruno@clisp.org>
45967
45968         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45969         fails.
45970
45971 2008-04-15  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/trim.c (trim2): Fix argument of isspace() macro.
45974
45975 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45976
45977         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45978         to 0.
45979         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45980
45981 2008-04-14  Bruno Haible  <bruno@clisp.org>
45982
45983         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45984         AC_LANG_PROGRAM argument.
45985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45986         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45988         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45989         * m4/math_h.m4 (gl_MATH_H): Likewise.
45990         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45992         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45993         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45994         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45995         * m4/regex.m4 (gl_REGEX): Likewise.
45996         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45997         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45999         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46000         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46001         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46004
46005 2008-04-14  Jim Meyering  <meyering@redhat.com>
46006
46007         test-strtod: fix typos: s/abs/fabs/
46008         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46009
46010 2008-04-13  Bruno Haible  <bruno@clisp.org>
46011
46012         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46013         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46014         module is also used and while not building the reloc-wrapper.
46015
46016 2008-04-13  Bruno Haible  <bruno@clisp.org>
46017
46018         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46019
46020 2008-04-13  Bruno Haible  <bruno@clisp.org>
46021
46022         Fix AIX compilation failure introduced on 2008-04-02.
46023         * tests/test-frexp.c (exp): Undefine before redefining.
46024         * tests/test-frexpl.c (exp): Likewise.
46025
46026 2008-04-13  Bruno Haible  <bruno@clisp.org>
46027
46028         Work around a HP-UX stdio bug.
46029         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46030         * tests/test-ftello.c (main): Likewise.
46031         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46032         * doc/posix-functions/ftello.texi: Likewise.
46033
46034 2008-04-13  Bruno Haible  <bruno@clisp.org>
46035
46036         Make test-signbit pass on HP-UX/hppa.
46037         * tests/test-signbit.c (minus_zerol): New variable.
46038         (test_signbitl): Use it.
46039
46040 2008-04-13  Bruno Haible  <bruno@clisp.org>
46041
46042         Make truncl work on OSF/1 4.0.
46043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46044         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46045         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46047         HAVE_DECL_TRUNCL.
46048         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46049         HAVE_DECL_TRUNCL.
46050         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46051
46052 2008-04-13  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46055
46056 2008-04-13  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46059         expression, so as to avoid HP-UX 11 cc compiler bug.
46060
46061 2008-04-13  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46064
46065 2008-04-13  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/git-merge-changelog.c: Remove empty declaration outside of
46068         functions.
46069
46070 2008-04-13  Bruno Haible  <bruno@clisp.org>
46071
46072         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46073
46074 2008-04-13  Bruno Haible  <bruno@clisp.org>
46075
46076         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46077         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46079         also if it exists but lacks definitions of the SHUT_* macros.
46080         * modules/sys_socket (Description): Update.
46081         Reported by Elbert Pol <e.pol@chello.nl>.
46082
46083 2008-04-13  Bruno Haible  <bruno@clisp.org>
46084
46085         * lib/localcharset.c (OS2): Don't redefine if already defined.
46086         Reported by Elbert Pol <e.pol@chello.nl>.
46087
46088 2008-04-13  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/binary-io.h [__EMX__]: Include <io.h>.
46091         Reported by Elbert Pol <e.pol@chello.nl>.
46092
46093 2008-04-12  Bruno Haible  <bruno@clisp.org>
46094
46095         * lib/fpucw.h: Enable the definitions also for x86_64.
46096         Needed for NetBSD/x86_64.
46097         Reported by Thomas Klausner <tk@giga.or.at>.
46098
46099 2008-04-12  Bruno Haible  <bruno@clisp.org>
46100
46101         * tests/test-strtod.c: Include isnand.h.
46102         (main): Use isnand instead of isnan.
46103         Reported by Jim Meyering.
46104
46105 2008-04-12  Bruno Haible  <bruno@clisp.org>
46106
46107         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46108         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46109
46110 2008-04-12  Jim Meyering  <meyering@redhat.com>
46111
46112         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46113
46114 2008-04-12  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46117         Reported by Elbert Pol <e.pol@chello.nl>.
46118
46119 2008-04-12  Eric Blake  <ebb9@byu.net>
46120
46121         Work around Solaris 10 math.h bug.
46122         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46123         (gl_MATH_H_DEFAULTS): Set up default.
46124         * modules/math (Makefile.am): Replace new indicators.
46125         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46126         * tests/test-math.c (main): Test this.
46127         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46128         * doc/posix-headers/math.texi (math.h): Mention bug.
46129         Reported by Nelson H. F. Beebe and Jim Meyering.
46130
46131 2008-04-11  Bruno Haible  <bruno@clisp.org>
46132
46133         Adapt to future versions of Apple GCC.
46134         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46135         Reported by Peter O'Gorman <peter@pogma.com>.
46136
46137 2008-04-11  Bruno Haible  <bruno@clisp.org>
46138
46139         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46140
46141 2008-04-11  Bruno Haible  <bruno@clisp.org>
46142
46143         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46144
46145         * modules/getaddrinfo-tests (Makefile.am): Define
46146         test_getaddrinfo_LDADD.
46147
46148 2008-04-11  Bruno Haible  <bruno@clisp.org>
46149
46150         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46151         (init): Fix syntax error.
46152         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46153         is declared.
46154
46155 2008-04-11  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46158         * modules/glob (Depends-on): Add stdbool.
46159
46160 2008-04-11  Bruno Haible  <bruno@clisp.org>
46161
46162         * lib/trim.c: Include <string.h>.
46163
46164 2008-04-11  Eric Blake  <ebb9@byu.net>
46165
46166         Avoid compile failure on OS/2.
46167         * lib/regex_internal.h (internal_function): Disable optimization
46168         on OS/2 (__EMX__), where it caused compiler error.
46169         Reported by Elbert Pol.
46170
46171 2008-04-11  Bruno Haible  <bruno@clisp.org>
46172
46173         Flush the standard error stream before aborting. Needed on mingw.
46174         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46175         * tests/test-array_list.c (ASSERT): Likewise.
46176         * tests/test-array_oset.c (ASSERT): Likewise.
46177         * tests/test-avltree_list.c (ASSERT): Likewise.
46178         * tests/test-avltree_oset.c (ASSERT): Likewise.
46179         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46180         * tests/test-binary-io.c (ASSERT): Likewise.
46181         * tests/test-byteswap.c (ASSERT): Likewise.
46182         * tests/test-c-ctype.c (ASSERT): Likewise.
46183         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46184         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46185         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46186         * tests/test-c-strstr.c (ASSERT): Likewise.
46187         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46188         * tests/test-canonicalize.c (ASSERT): Likewise.
46189         * tests/test-carray_list.c (ASSERT): Likewise.
46190         * tests/test-ceilf1.c (ASSERT): Likewise.
46191         * tests/test-ceilf2.c (ASSERT): Likewise.
46192         * tests/test-ceill.c (ASSERT): Likewise.
46193         * tests/test-count-one-bits.c (ASSERT): Likewise.
46194         * tests/test-fbufmode.c (ASSERT): Likewise.
46195         * tests/test-fflush2.c (ASSERT): Likewise.
46196         * tests/test-floorf1.c (ASSERT): Likewise.
46197         * tests/test-floorf2.c (ASSERT): Likewise.
46198         * tests/test-floorl.c (ASSERT): Likewise.
46199         * tests/test-fopen.c (ASSERT): Likewise.
46200         * tests/test-fpending.c (ASSERT): Likewise.
46201         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46202         * tests/test-fpurge.c (ASSERT): Likewise.
46203         * tests/test-freadable.c (ASSERT): Likewise.
46204         * tests/test-freadahead.c (ASSERT): Likewise.
46205         * tests/test-freading.c (ASSERT): Likewise.
46206         * tests/test-freadptr.c (ASSERT): Likewise.
46207         * tests/test-freadptr2.c (ASSERT): Likewise.
46208         * tests/test-freadseek.c (ASSERT): Likewise.
46209         * tests/test-freopen.c (ASSERT): Likewise.
46210         * tests/test-frexp.c (ASSERT): Likewise.
46211         * tests/test-frexpl.c (ASSERT): Likewise.
46212         * tests/test-fseek.c (ASSERT): Likewise.
46213         * tests/test-fseeko.c (ASSERT): Likewise.
46214         * tests/test-fstrcmp.c (ASSERT): Likewise.
46215         * tests/test-ftell.c (ASSERT): Likewise.
46216         * tests/test-ftello.c (ASSERT): Likewise.
46217         * tests/test-func.c (ASSERT): Likewise.
46218         * tests/test-fwritable.c (ASSERT): Likewise.
46219         * tests/test-fwriting.c (ASSERT): Likewise.
46220         * tests/test-getdelim.c (ASSERT): Likewise.
46221         * tests/test-getline.c (ASSERT): Likewise.
46222         * tests/test-i-ring.c (ASSERT): Likewise.
46223         * tests/test-iconv-utf.c (ASSERT): Likewise.
46224         * tests/test-iconv.c (ASSERT): Likewise.
46225         * tests/test-isfinite.c (ASSERT): Likewise.
46226         * tests/test-isnand.c (ASSERT): Likewise.
46227         * tests/test-isnanf.c (ASSERT): Likewise.
46228         * tests/test-isnanl.h (ASSERT): Likewise.
46229         * tests/test-ldexpl.c (ASSERT): Likewise.
46230         * tests/test-linked_list.c (ASSERT): Likewise.
46231         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46232         * tests/test-localename.c (ASSERT): Likewise.
46233         * tests/test-lseek.c (ASSERT): Likewise.
46234         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46235         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46236         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46237         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46238         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46239         * tests/test-mbschr.c (ASSERT): Likewise.
46240         * tests/test-mbscspn.c (ASSERT): Likewise.
46241         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46242         * tests/test-mbspbrk.c (ASSERT): Likewise.
46243         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46244         * tests/test-mbsrchr.c (ASSERT): Likewise.
46245         * tests/test-mbsspn.c (ASSERT): Likewise.
46246         * tests/test-mbsstr1.c (ASSERT): Likewise.
46247         * tests/test-mbsstr2.c (ASSERT): Likewise.
46248         * tests/test-mbsstr3.c (ASSERT): Likewise.
46249         * tests/test-memchr2.c (ASSERT): Likewise.
46250         * tests/test-memmem.c (ASSERT): Likewise.
46251         * tests/test-open.c (ASSERT): Likewise.
46252         * tests/test-printf-frexp.c (ASSERT): Likewise.
46253         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46254         * tests/test-printf-posix.c (ASSERT): Likewise.
46255         * tests/test-quotearg.c (ASSERT): Likewise.
46256         * tests/test-rbtree_list.c (ASSERT): Likewise.
46257         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46258         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46259         * tests/test-round1.c (ASSERT): Likewise.
46260         * tests/test-roundf1.c (ASSERT): Likewise.
46261         * tests/test-roundl.c (ASSERT): Likewise.
46262         * tests/test-signbit.c (ASSERT): Likewise.
46263         * tests/test-sleep.c (ASSERT): Likewise.
46264         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46265         * tests/test-snprintf.c (ASSERT): Likewise.
46266         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46267         * tests/test-stat-time.c (ASSERT): Likewise.
46268         * tests/test-strcasestr.c (ASSERT): Likewise.
46269         * tests/test-strerror.c (ASSERT): Likewise.
46270         * tests/test-striconv.c (ASSERT): Likewise.
46271         * tests/test-striconveh.c (ASSERT): Likewise.
46272         * tests/test-striconveha.c (ASSERT): Likewise.
46273         * tests/test-strsignal.c (ASSERT): Likewise.
46274         * tests/test-strstr.c (ASSERT): Likewise.
46275         * tests/test-strtod.c (ASSERT): Likewise.
46276         * tests/test-trunc1.c (ASSERT): Likewise.
46277         * tests/test-trunc2.c (ASSERT): Likewise.
46278         * tests/test-truncf1.c (ASSERT): Likewise.
46279         * tests/test-truncf2.c (ASSERT): Likewise.
46280         * tests/test-truncl.c (ASSERT): Likewise.
46281         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46282         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46283         * tests/test-vasnprintf.c (ASSERT): Likewise.
46284         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46285         * tests/test-vasprintf.c (ASSERT): Likewise.
46286         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46287         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46288         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46289         * tests/test-vsnprintf.c (ASSERT): Likewise.
46290         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46291         * tests/test-wcwidth.c (ASSERT): Likewise.
46292         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46293         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46294         * tests/test-xvasprintf.c (ASSERT): Likewise.
46295         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46296         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46297         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46298         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46299         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46300         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46301         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46302         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46303         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46304         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46305         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46306         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46307         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46308         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46309         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46310         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46311         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46312         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46313         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46314         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46315         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46316         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46317         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46318         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46319         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46320         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46321         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46322         * tests/unictype/test-combining.c (ASSERT): Likewise.
46323         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46324         * tests/unictype/test-digit.c (ASSERT): Likewise.
46325         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46326         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46327         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46328         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46329         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46330         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46331         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46332         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46333         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46334         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46335         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46336         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46337         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46338         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46339         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46340         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46341         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46342         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46343         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46344         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46345         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46346         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46347         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46348         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46349         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46350         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46351         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46352         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46353         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46354         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46355         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46356         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46357         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46358         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46359         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46360         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46361         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46362         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46363         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46364         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46365         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46366         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46367         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46368         Reported by Eric Blake.
46369
46370 2008-04-11  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/wchar.in.h: Tweak comment.
46373
46374 2008-04-11  Bruno Haible  <bruno@clisp.org>
46375
46376         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46377         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46378         gl_COMMON.
46379         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46380
46381 2008-04-11  Bruno Haible  <bruno@clisp.org>
46382
46383         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46384
46385 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46386
46387         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46388         of attempting to use non-existing /dev/*random.  Based on patch
46389         from Adam Strzelecki <ono@java.pl> in
46390         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46391
46392 2008-04-08  Bruno Haible  <bruno@clisp.org>
46393
46394         Add tentative support for emx+gcc.
46395         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46396         * lib/fpurge.c (fpurge): Likewise.
46397         * lib/freadable.c (freadable): Likewise.
46398         * lib/freadahead.c (freadahead): Likewise.
46399         * lib/freading.c (freading): Likewise.
46400         * lib/freadptr.c (freadptr): Likewise.
46401         * lib/freadseek.c (freadptrinc): Likewise.
46402         * lib/fseeko.c (rpl_fseeko): Likewise.
46403         * lib/fseterr.c (fseterr): Likewise.
46404         * lib/fwritable.c (fwritable): Likewise.
46405         * lib/fwriting.c (fwriting): Likewise.
46406         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46407
46408 2008-04-09  Eric Blake  <ebb9@byu.net>
46409
46410         Avoid some autoconf warnings.
46411         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46412         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46413         * m4/afs.m4 (gl_AFS): Likewise.
46414         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46415         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46417         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46418         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46419         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46420         (AC_CHECK_DECLS_ONCE): Likewise.
46421         Rename file...
46422         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46423         gnulib-tool requires autoconf 2.59 or better.
46424         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46425
46426 2008-04-08  Eric Blake  <ebb9@byu.net>
46427
46428         Use 'git describe --match' if present (added in git 1.5.5).
46429         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46430         if possible.
46431
46432 2008-04-08  Bruno Haible  <bruno@clisp.org>
46433
46434         Add tentative support for OpenServer.
46435         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46436         _ptr, _cnt.
46437         * lib/fpurge.c (fpurge): Likewise.
46438         * lib/freadable.c (freadable): Likewise.
46439         * lib/freadahead.c (freadahead): Likewise.
46440         * lib/freading.c (freading): Likewise.
46441         * lib/freadptr.c (freadptr): Likewise.
46442         * lib/freadseek.c (freadptrinc): Likewise.
46443         * lib/fseeko.c (rpl_fseeko): Likewise.
46444         * lib/fseterr.c (fseterr): Likewise.
46445         * lib/fwritable.c (fwritable): Likewise.
46446         * lib/fwriting.c (fwriting): Likewise.
46447         Reported by Roger Cornelius <rac@tenzing.org> and
46448         Brian K. White <brian@aljex.com>.
46449
46450 2008-04-06  Jim Meyering  <meyering@redhat.com>
46451
46452         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46453
46454 2008-04-06  Bruno Haible  <bruno@clisp.org>
46455
46456         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46457         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46458         * tests/test-printf-posix.sh: Likewise.
46459         * tests/test-vfprintf-posix.sh: Likewise.
46460         * tests/test-vprintf-posix.sh: Likewise.
46461         * tests/test-xprintf-posix.sh: Likewise.
46462
46463 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46464
46465         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46466         hide error from 'ls', needed on OS/2.
46467         Report by Elbert Pol <elbert.pol@gmail.com>.
46468
46469 2008-04-04  Eric Blake  <ebb9@byu.net>
46470
46471         Make test-fseeko.c failures meaningful.
46472         * tests/test-fseeko.c: Print line number on failure.
46473         * tests/test-fseek.c: Likewise.
46474         Reported by Nelson H. F. Beebe.
46475
46476         Improve strtod bug detection check.
46477         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46478         required for Solaris 10.
46479         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46480
46481 2008-04-04  Bruno Haible  <bruno@clisp.org>
46482
46483         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46484         by m4/setenv.m4.
46485
46486 2008-04-03  Eric Blake  <ebb9@byu.net>
46487
46488         Ensure sane .version contents.
46489         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46490         version string.
46491         * build-aux/git-version-gen: Improve documentation.
46492
46493         Make GNU make output nicer.
46494         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46495         MAKECMDGOALS to enforce message for all command line targets.  Set
46496         srcdir for use in maint.mk.
46497
46498         Another maintainer tweak.
46499         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46500         a target that regenerates version.
46501
46502 2008-04-03  Jim Meyering  <meyering@redhat.com>
46503
46504         vc-list-files: don't cause coreutils "make po-check" failure
46505         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46506
46507 2008-04-03  Eric Blake  <ebb9@byu.net>
46508
46509         Allow VPATH usage of vc-list-files.
46510         * build-aux/vc-list-files (scriptversion): Add timestamp.
46511         (options): Add --help, --version, -C.
46512         (CVS): Support installed cvsu.
46513
46514 2008-04-02  Bruno Haible  <bruno@clisp.org>
46515
46516         Avoid some "statement with no effect" warnings from gcc.
46517         * tests/test-wctype.c (main): Explicitly ignore unused values.
46518         Reported by Jim Meyering.
46519
46520 2008-04-02  Jim Meyering  <meyering@redhat.com>
46521
46522         Avoid some warnings from "gcc -Wshadow".
46523         * tests/test-frexp.c (exp): Define to a different identifier.
46524         * tests/test-frexpl.c (exp): Likewise.
46525
46526 2008-04-03  Jim Meyering  <meyering@redhat.com>
46527
46528         bootstrap: remove dangling *.[ch] symlinks from lib
46529         * build-aux/bootstrap [dangling symlink removal]: Move find's
46530         -depth option to precede all others, to avoid a warning.
46531         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46532
46533 2008-04-02  Bruno Haible  <bruno@clisp.org>
46534
46535         Avoid some warnings from "gcc -Wshadow".
46536         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46537         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46538         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46539         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46540         Reported by Jim Meyering.
46541
46542 2008-04-01  Bruno Haible  <bruno@clisp.org>
46543
46544         Fix test to work on IRIX 6.5 with cc.
46545         * tests/test-math.c (numeric_equal): New function.
46546         (main): Use it.
46547
46548 2008-04-01  Bruno Haible  <bruno@clisp.org>
46549
46550         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46551
46552 2008-04-01  Bruno Haible  <bruno@clisp.org>
46553
46554         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46555         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46556         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46557         (Depends-on): Remove math.
46558
46559         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46560         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46561         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46562         (Depends-on): Remove math.
46563
46564         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46565         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46566         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46567         (Depends-on): Remove math.
46568         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46569         (Depends-on): Remove math.
46570
46571         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46572         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46573         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46574         (Depends-on): Remove math.
46575         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46576         (Depends-on): Remove math.
46577
46578         * tests/test-round1.c: Include nan.h.
46579         (main): Use NaNd instead of NAN.
46580         * modules/round-tests (Files): Add tests/nan.h.
46581
46582         * tests/test-trunc1.c: Include nan.h.
46583         (main): Use NaNd instead of NAN.
46584         * modules/trunc-tests (Files): Add tests/nan.h.
46585
46586         * tests/test-roundf1.c: Include nan.h.
46587         (main): Use NaNf instead of NAN.
46588         * modules/roundf-tests (Files): Add tests/nan.h.
46589
46590         * tests/test-truncf1.c: Include nan.h.
46591         (main): Use NaNf instead of NAN.
46592         * modules/truncf-tests (Files): Add tests/nan.h.
46593
46594         * tests/test-ceilf1.c: Include nan.h.
46595         (main): Use NaNf instead of NAN.
46596         * modules/ceilf-tests (Files): Add tests/nan.h.
46597
46598         * tests/test-floorf1.c: Include nan.h.
46599         (main): Use NaNf instead of NAN.
46600         * modules/floorf-tests (Files): Add tests/nan.h.
46601
46602         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46603         (main): Use NaNf instead of NAN.
46604         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46605
46606         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46607         (main): Use NaNd instead of NAN.
46608         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46609
46610         * tests/test-frexp.c: Include nan.h.
46611         (main): Use NaNd instead of NAN.
46612         * modules/frexp-tests (Files): Add tests/nan.h.
46613
46614         * lib/isnan.c: Don't include <math.h>.
46615         (FUNC): Don't use NAN macro.
46616         * modules/isnand-nolibm (Depends-on): Remove math.
46617         * modules/isnanf-nolibm (Depends-on): Remove math.
46618         * modules/isnanl (Depends-on): Remove math.
46619         * modules/isnanl-nolibm (Depends-on): Remove math.
46620
46621         * tests/nan.h: New file.
46622
46623 2008-04-01  Eric Blake  <ebb9@byu.net>
46624
46625         Fix typos.
46626         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46627         values to be the right type.
46628
46629         For now, cater to gnulib strtod inaccuracies.
46630         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46631         fractional results.  While not as nice from a QoI perspective, it
46632         is a quicker patch than correctly implementing decimal to binary
46633         rounding.
46634
46635 2008-03-31  Eric Blake  <ebb9@byu.net>
46636
46637         Guarantee a definition of NAN.
46638         * lib/math.in.h (NAN): Define if missing.
46639         * tests/test-math.c (main): Test it.
46640         * doc/posix-headers/math.texi (math.h): Document this.
46641         * lib/isnan.c (rpl_isnand): Use it.
46642         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46643         * tests/test-floorf1.c (NaN): Likewise.
46644         * tests/test-frexp.c (NaN): Likewise.
46645         * tests/test-isnand.c (NaN): Likewise.
46646         * tests/test-isnanf.c (NaN): Likewise.
46647         * tests/test-round1.c (NaN): Likewise.
46648         * tests/test-roundf1.c (NaN): Likewise.
46649         * tests/test-snprintf-posix.h (NaN): Likewise.
46650         * tests/test-sprintf-posix.h (NaN): Likewise.
46651         * tests/test-trunc1.c (NaN): Likewise.
46652         * tests/test-truncf1.c (NaN): Likewise.
46653         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46654         * tests/test-vasprintf-posix.c (NaN): Likewise.
46655         * modules/isnand-nolibm (Depends-on): Add math.
46656         * modules/isnanf-nolibm (Depends-on): Likewise.
46657         * modules/isnanl (Depends-on): Likewise.
46658         * modules/isnanl-nolibm (Depends-on): Likewise.
46659         * modules/snprintf-posix-tests (Depends-on): Likewise.
46660         * modules/sprintf-posix-tests (Depends-on): Likewise.
46661         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46662         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46663         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46664         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46665
46666 2008-03-31  Bruno Haible  <bruno@clisp.org>
46667
46668         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46669         * doc/posix-functions/strtod.texi: Likewise.
46670
46671 2008-03-31  Bruno Haible  <bruno@clisp.org>
46672
46673         * tests/test-strtod.c (main): Don't use C99 syntax.
46674
46675 2008-03-31  Bruno Haible  <bruno@clisp.org>
46676
46677         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46678         Reported by Eric Blake.
46679
46680 2008-03-31  Jim Meyering  <meyering@redhat.com>
46681
46682         Don't compare actual signbit return values.
46683         * tests/test-strtod.c (main): Rather, compare only their
46684         zero/non-zero nature.
46685
46686 2008-03-31  Eric Blake  <ebb9@byu.net>
46687
46688         More strtod documentation.
46689         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46690         failures as distinct bugs.
46691
46692 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46695         Problem reported by Erik Benada in
46696         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46697
46698 2008-03-30  Bruno Haible  <bruno@clisp.org>
46699
46700         * tests/test-strtod.c: Add comments about which assertion fails on which
46701         platform.
46702         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46703
46704 2008-03-30  Eric Blake  <ebb9@byu.net>
46705
46706         Test signbit behavior on zeros.
46707         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46708         (test_signbitd, test_signbitl): Likewise.
46709
46710         More strtod touchups.
46711         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46712         sign of negative underflow, for now.  Use .5, not .1.
46713         * doc/posix-functions/strtod.texi (strtod): Mention these
46714         limitations.
46715         Reported by Jim Meyering.
46716
46717 2008-03-30  Bruno Haible  <bruno@clisp.org>
46718
46719         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46720         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46721
46722 2008-03-30  Bruno Haible  <bruno@clisp.org>
46723
46724         Avoid failure when attempting to return empty iconv results on some
46725         platforms.
46726         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46727         allocation, don't report ENOMEM when the resulting string is empty.
46728
46729 2008-03-30  Bruno Haible  <bruno@clisp.org>
46730
46731         Fix buffer overrun.
46732         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46733         Don't consider the width for tmp_length. Check count against tmp_length
46734         before doing the padding. Ensure enough allocation during padding.
46735
46736 2008-03-30  Eric Blake  <ebb9@byu.net>
46737
46738         strtod touchups.
46739         * lib/strtod.c (strtod): Avoid compiler warnings.
46740         Reported by Jim Meyering.
46741
46742 2008-03-30  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46745         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46746         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46747         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46748         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46749         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46750         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46751         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46752
46753         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46754         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46755         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46756         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46757         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46758         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46759         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46760         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46761
46762         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46763         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46764         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46765         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46766         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46767         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46768         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46769         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46770
46771         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46772         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46773
46774         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46775         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46776
46777         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46778         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46779
46780         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46781         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46782         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46783
46784         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46786         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46787
46788         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46790         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46791
46792         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46794         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46795
46796         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46797         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46799         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46800         (Depends-on): Add EOVERFLOW.
46801         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46802         (Depends-on): Add EOVERFLOW.
46803         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46804         (Depends-on): Add EOVERFLOW.
46805         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46806         (Depends-on): Add EOVERFLOW.
46807         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46808         (Depends-on): Add EOVERFLOW.
46809         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46810         (Depends-on): Add EOVERFLOW.
46811         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46812         (Depends-on): Add EOVERFLOW.
46813         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46814         (Depends-on): Add EOVERFLOW.
46815
46816         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46817         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46818         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46819
46820         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46822         * modules/snprintf (Depends-on): Add EOVERFLOW.
46823
46824         * lib/poll.c (EOVERFLOW): Remove fallback.
46825         * modules/poll (Depends-on): Add EOVERFLOW.
46826
46827         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46828         * modules/getugroups (Depends-on): Add EOVERFLOW.
46829
46830         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46831         * modules/getdelim (Depends-on): Add EOVERFLOW.
46832
46833         * lib/ftell.c (EOVERFLOW): Remove fallback.
46834         * modules/ftell (Depends-on): Add EOVERFLOW.
46835
46836         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46838         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46839
46840         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46841
46842         * modules/EOVERFLOW-tests: New file.
46843         * tests/test-EOVERFLOW.c: New file.
46844
46845         * modules/EOVERFLOW: New file.
46846         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46847
46848 2008-03-30  Bruno Haible  <bruno@clisp.org>
46849
46850         Fix bug introduced on 2007-06-10.
46851         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46852         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46853
46854 2008-03-30  Bruno Haible  <bruno@clisp.org>
46855
46856         Improve freadseek's efficiency after ungetc.
46857         * lib/freadseek.c: Include freadahead.h.
46858         (freadptrinc): New function, extracted from freadseek.
46859         (freadseek): Use it in a loop. Use freadahead to determine the number
46860         of loop iterations.
46861         * modules/freadseek (Depends-on): Add freadahead.
46862         (configure.ac): Require AC_C_INLINE.
46863
46864 2008-03-30  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/freadseek.c (freadseek): Don't ignore the return value of
46867         freadptr.
46868
46869 2008-03-29  Eric Blake  <ebb9@byu.net>
46870
46871         Add hex float support.
46872         * modules/strtod (Depends-on): Add c-ctype.
46873         (Link): Mention POW_LIB.
46874         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46875         whitespace between 'e' and exponent.
46876         * tests/test-strtod.c (main): Enable hex float tests.
46877         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46878         now provides.
46879
46880         Document various strtod bugs, with some fixes.
46881         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46882         "-0x", "inf", "nan", and hex constants.
46883         * doc/posix-functions/atof.texi (atof): Likewise.
46884         * modules/stdlib (Makefile.am): Support strtod.
46885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46886         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46887         detect additional strtod bugs.
46888         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46889         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46890         bool where appropriate.  Parse 'inf' and 'nan'.
46891         * tests/test-strtod.c: New file.
46892         * modules/strtod (Depends-on): Add stdbool, stdlib.
46893         (configure.ac): Turn on module indicator.
46894         * modules/strtod-tests: New module.
46895
46896 2008-03-29  Eric Blake  <ebb9@byu.net>
46897
46898         Fix ftell on mingw.
46899         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46900         * modules/ftell-tests (Depends-on): Add binary-io.
46901         * modules/ftello-tests (Depends-on): Likewise.
46902         * tests/test-ftell.c (main): Enhance test to cover behavior after
46903         ungetc.  Enforce binary mode.
46904         * tests/test-ftello.c (main): Likewise.
46905
46906         Pass test-freadseek on cygwin.
46907         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46908         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46909         ungetc buffer.
46910
46911         * tests/test-fflush2.c (main): Fix typo.
46912
46913 2008-03-29  Bruno Haible  <bruno@clisp.org>
46914
46915         * tests/test-fflush2.c (main): Temporarily disable the contents of
46916         this test.
46917         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46918         Reported by Eric Blake.
46919
46920 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46921
46922         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46923         (GC_SHA224_DIGEST_SIZE): Add.
46924
46925         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46926         (gc_hash_digest_length): Likewise.
46927         (gc_hash_buffer): Likewise.
46928
46929 2008-03-25  Bruno Haible  <bruno@clisp.org>
46930
46931         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46932         detail which gettext release to use.
46933         Reported by Simon Josefsson.
46934
46935 2008-03-26  Jim Meyering  <meyering@redhat.com>
46936
46937         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46938         * modules/gnumakefile (clean-GNUmakefile): Also, use
46939         test ... && ... || : syntax rather than if-then ... fi.
46940
46941         gnumakefile: Don't double-quote-expand $(VPATH) value.
46942         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46943
46944 2008-03-24  Eric Blake  <ebb9@byu.net>
46945
46946         Alter GNUmakefile to install into top directory.
46947         * modules/maintainer-makefile: Split, and add dependency...
46948         * modules/gnumakefile: to this new module.
46949         * build-aux/GNUmakefile: Move...
46950         * top/GNUmakefile: ...here.
46951         * build-aux/maint.mk: Move...
46952         * top/maint.mk: ...here.
46953         * MODULES.html.sh (Support for maintaining...): Document new
46954         module.
46955
46956 2008-03-23  Bruno Haible  <bruno@clisp.org>
46957
46958         * gnulib-tool: New options --vc-files, --no-vc-files.
46959         (func_usage): Document them.
46960         (vc_files): New variable.
46961         (func_import): Consider vc_files.
46962         (func_create_testdir): Set vc_files to empty.
46963         Suggested by Jim Meyering and Karl Berry.
46964
46965 2008-03-23  Bruno Haible  <bruno@clisp.org>
46966
46967         Fix regex compilation error on HP-UX 11.
46968         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46969         * modules/regex (Files): Add m4/mbstate_t.m4.
46970         Reported by Ton Voon <ton.voon@altinity.com>.
46971
46972 2008-03-23  Bruno Haible  <bruno@clisp.org>
46973
46974         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46975
46976 2008-03-23  Eric Blake  <ebb9@byu.net>
46977             Bruno Haible  <bruno@clisp.org>
46978
46979         Install files from top/ in the destination directory.
46980         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46981         augmentation also for the files from top/.
46982         (func_import, func_create_testdir): Rewrite file names:
46983         top/filename -> filename.
46984
46985 2008-03-23  Bruno Haible  <bruno@clisp.org>
46986
46987         Tweak "gnulib --version" output.
46988         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46989
46990 2008-03-23  Bruno Haible  <bruno@clisp.org>
46991
46992         Tweak "gnulib --version" output.
46993         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46994         rather than contents of ChangeLog, when possible.
46995
46996 2008-03-21  Eric Blake  <ebb9@byu.net>
46997
46998         More --version tweaks.
46999         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47000         date of last ChangeLog entry.
47001
47002 2008-03-21  Jim Meyering  <meyering@redhat.com>
47003
47004         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47005
47006 2008-03-20  Eric Blake  <ebb9@byu.net>
47007
47008         VPATH fix.
47009         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47010
47011 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47012
47013         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47014         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47015
47016 2008-03-20  Eric Blake  <ebb9@byu.net>
47017
47018         Sync GNUmakefile with coreutils.
47019         * build-aux/GNUmakefile (have-Makefile): Rename...
47020         (_have-Makefile): ...to this, for namespace consideration.
47021         (GNUmakefile.cfg): Include, if present.
47022         (_autoreconf): Define a default.
47023         (_is-dist-target): New rule for rebuilds to pick up intra-release
47024         version.
47025         (maint-cfg.mk): Rename...
47026         (cfg.mk): ...to this.
47027
47028 2008-03-18  Jim Meyering  <meyering@redhat.com>
47029
47030         New script and module: mktempd
47031         * MODULES.html.sh (maint+release support): Add mktempd.
47032         * build-aux/mktempd: New file.
47033         * modules/mktempd: New file.
47034
47035 2008-03-15  Jim Meyering  <meyering@redhat.com>
47036
47037         Undo last change.
47038         * lib/sha1.c, lib/md5.c: 63 != ~63.
47039         Reported by Andreas Schwab.
47040
47041         sha1.c, md5.c: Hoist a redundant expression.
47042         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47043         "ctx->buflen" only once, before calling *_process_block.
47044         * lib/md5.c (md5_process_bytes): Likewise.
47045
47046 2008-03-14  Eric Blake  <ebb9@byu.net>
47047
47048         Bump copyright year in files generated by gnulib-tool.
47049         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47050         gnulib-tool, rather than hard-coding it.
47051
47052         Fix 'gnulib-tool --version' output to work with git.
47053         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47054         (startup): ...here.
47055         (func_version): Use it to invoke git-version-gen, rather than
47056         relying on CVS keyword expansion.  Modernize wording.
47057         (cvsdatestamp, last_checkin_date, version): Kill unused
47058         variables.
47059
47060 2008-03-12  Jim Meyering  <meyering@redhat.com>
47061
47062         Recognize optional cast of the argument to free.
47063         * build-aux/useless-if-before-free: Update regexps.
47064
47065         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47066
47067 2008-03-11  Bruno Haible  <bruno@clisp.org>
47068
47069         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47070         by a single package.
47071         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47072         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47073         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47074         Reported by Sam Steingold <sds@gnu.org>.
47075
47076 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47077
47078         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47079         repositories.
47080
47081 2008-03-11  Bruno Haible  <bruno@clisp.org>
47082
47083         Avoid conflicts between local macro definitions.
47084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47085         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47086
47087 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47088             Bruno Haible  <bruno@clisp.org>
47089
47090         Make va_copy work with some version of xlc on AIX 5.1.
47091         * lib/stdarg.in.h: New file.
47092         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47093         On AIX, use a <stdarg.h> file substitute.
47094         * modules/stdarg (Files): Add lib/stdarg.in.h.
47095         (Depends-on): Add include_next.
47096         (Makefile.am): Build a stdarg.h substitute if requested.
47097         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47098
47099 2008-03-10  Bruno Haible  <bruno@clisp.org>
47100
47101         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47103         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47104
47105 2008-03-10  Bruno Haible  <bruno@clisp.org>
47106
47107         * modules/stdlib (Depends-on): Add include_next, remove
47108         absolute-header.
47109
47110 2008-03-09  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/freadahead.h (freadahead): Document more precisely.
47113         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47114         the sum of both buffer sizes.
47115         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47116         * NEWS: Document the change.
47117
47118 2008-03-09  Bruno Haible  <bruno@clisp.org>
47119
47120         Extend freadptr to return also the buffer size.
47121         * lib/freadptr.h (freadptr): Add sizep argument.
47122         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47123         (freadptr): Add sizep argument. Determine buffer size like freadahead
47124         does.
47125         * tests/test-freadptr.c: Don't include freadahead.h.
47126         (main): Adapt for new calling convention of freadptr.
47127         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47128         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47129         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47130         tests/test-freadptr2.sh.
47131         (Depends): Remove freadahead.
47132         (TESTS): Add test-freadptr2.sh.
47133         (check_PROGRAMS): Add test-freadptr2.
47134
47135 2008-03-09  Bruno Haible  <bruno@clisp.org>
47136
47137         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47138         Report and solution by Simon Josefsson.
47139
47140 2008-03-06  Bruno Haible  <bruno@clisp.org>
47141
47142         Make fflush after ungetc work on BSD platforms.
47143         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47144         * tests/test-fflush2.c: New file.
47145         * tests/test-fflush2.sh: New file.
47146         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47147         tests/test-fflush2.c.
47148         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47149         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47150
47151 2008-03-06  Eric Blake  <ebb9@byu.net>
47152
47153         Likewise for ftello.
47154         * modules/ftello (Dependencies): Add extensions.
47155         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47156
47157 2008-03-06  Bruno Haible  <bruno@clisp.org>
47158
47159         * modules/fseeko (Dependencies): Add extensions.
47160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47161         Needed on glibc systems.
47162
47163 2008-03-06  Bruno Haible  <bruno@clisp.org>
47164
47165         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47166         email address.
47167         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47168
47169 2008-03-06  Bruno Haible  <bruno@clisp.org>
47170
47171         * users.txt: Add libgnupdf.
47172
47173 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47174
47175         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47176         (Header File Substitutes, Function Substitutes,
47177         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47178         (Build robot for gnulib): Fix typo.
47179
47180 2008-03-06  Bruno Haible  <bruno@clisp.org>
47181
47182         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47183         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47184
47185 2008-03-06  Bruno Haible  <bruno@clisp.org>
47186
47187         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47188         * doc/gnulib.texi: Include it.
47189
47190 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47191
47192         * modules/func (License): Change license to unlimited; there was
47193         no LGPL parts in the module anyway.
47194
47195 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47196
47197         * modules/__func__: Renamed to modules/func.
47198         * modules/__func__-tests: Renamed to modules/func-tests.
47199         * tests/test-__func__.c: Renamed to tests/test-func.c.
47200         * m4/__func__.m4: Renamed to m4/func.m4.
47201         * doc/gnulib.texi (__func__): Section renamed to func.
47202         Suggested by Eric Blake <ebb9@byu.net>.
47203
47204 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47205
47206         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47207         about __func__.  Make example self-contained.  Suggested by Eric
47208         Blake <ebb9@byu.net>.
47209
47210         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47211         Suggested by Eric Blake <ebb9@byu.net>.
47212
47213 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47214
47215         * modules/__func__: New file.
47216         * modules/__func__-tests: New file.
47217         * tests/test-__func__.c: New file.
47218         * m4/__func__.m4: New file.
47219         * doc/gnulib.texi (__func__): Document __func__ module.
47220
47221 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47222
47223         * modules/byteswap (License): Re-license as LGPLv2+.
47224
47225 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47226
47227         * doc/Makefile: Add pdf target.
47228
47229 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47230
47231         * modules/inline (License): Use 'unlimited', since there are only
47232         *.m4 files in this module.
47233
47234 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47235             Bruno Haible  <bruno@clisp.org>
47236
47237         Add support for HP C 7.1 on OpenVMS 8.3.
47238         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47239
47240 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47241
47242         Update VMS specifics.
47243         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47244
47245 2008-03-02  Jim Meyering  <meyering@redhat.com>
47246
47247         Remove the last dependency on the "free" module.
47248         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47249         Reported by Bob Proulx.
47250
47251         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47252
47253         Remove useless "if" tests before free.  Deprecate "free" module.
47254         * doc/posix-functions/free.texi: Mention that this
47255         module is no longer useful.
47256         * modules/free (Notice): Say this module is obsolete.
47257         * modules/readutmp (Depends-on): Remove free.
47258         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47259         * lib/putenv.c (putenv): Likewise.
47260         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47261         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47262         * tests/test-c-strcasestr.c (main): Likewise.
47263         * tests/test-c-strstr.c (main): Likewise.
47264         * tests/test-mbscasestr1.c (main): Likewise.
47265         * tests/test-mbscasestr2.c (main): Likewise.
47266         * tests/test-mbsstr1.c (main): Likewise.
47267         * tests/test-mbsstr2.c (main): Likewise.
47268         * tests/test-memmem.c (main): Likewise.
47269         * tests/test-strcasestr.c (main): Likewise.
47270         * tests/test-striconv.c (main): Likewise.
47271         * tests/test-striconveh.c (main): Likewise.
47272         * tests/test-striconveha.c (main): Likewise.
47273         * tests/test-strstr.c (main): Likewise.
47274
47275         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47276
47277         bootstrap: sync from coreutils again
47278         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47279
47280 2008-03-01  Jim Meyering  <meyering@redhat.com>
47281
47282         bootstrap: sync from coreutils
47283         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47284         also when the target doesn't exist.
47285
47286 2008-03-01  Eric Blake  <ebb9@byu.net>
47287
47288         Fix bugs in last patch.
47289         * lib/memchr2.c (memchr2): Fix typo.
47290         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47291         extension.
47292         Reported by Bruce Korb.
47293
47294         New module 'memchr2'.
47295         * modules/memchr2: New file.
47296         * modules/memchr2-tests: Likewise.
47297         * lib/memchr2.h: Likewise.
47298         * lib/memchr2.c: Likewise, based on memchr.c.
47299         * tests/test-memchr2.c: New test.
47300         * MODULES.html.sh (String handling): Add memchr2.
47301
47302 2008-02-29  Bruno Haible  <bruno@clisp.org>
47303
47304         * modules/freadseek-tests: New file.
47305         * tests/test-freadseek.sh: New file.
47306         * tests/test-freadseek.c: New file.
47307
47308         New module 'freadseek'.
47309         * modules/freadseek: New file.
47310         * lib/freadseek.h: New file.
47311         * lib/freadseek.c: New file.
47312         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47313
47314 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47315
47316         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47317         wydawca.
47318
47319         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47320         program_invocation_name and program_invocation_short_name are
47321         present.
47322
47323 2008-02-28  Bruno Haible  <bruno@clisp.org>
47324
47325         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47326         * tests/test-freadptr.sh: Also test non-seekable stdin.
47327
47328 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47329
47330         * build-aux/bootstrap (source_base, m4_base)
47331         (doc_base, tests_base): New variables.
47332         (gnulib_tool_options): Do not hardcode base directories, use
47333         the above variables instead.
47334
47335 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47336
47337         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47338
47339 2008-02-28  Bruno Haible  <bruno@clisp.org>
47340
47341         * modules/freadptr-tests: New file.
47342         * tests/test-freadptr.sh: New file.
47343         * tests/test-freadptr.c: New file.
47344
47345         New module 'freadptr'.
47346         * modules/freadptr: New file.
47347         * lib/freadptr.h: New file.
47348         * lib/freadptr.c: New file.
47349         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47350
47351 2008-02-26  Karl Berry  <karl@freefriends.org>
47352
47353         Sync from Libtool:
47354         * libltdl/argz.c (argz_add, argz_count): New functions.
47355         * libltdl/argz.in.h: Declare them.
47356         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47357
47358 2008-02-22  Bruno Haible  <bruno@clisp.org>
47359
47360         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47361         is a pointer type.  Needed for HP-UX 10.
47362         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47363         * doc/posix-functions/gmtime_r.texi: Likewise.
47364         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47365
47366 2008-02-24  Bruno Haible  <bruno@clisp.org>
47367
47368         * modules/environ-tests: New file.
47369         * tests/test-environ.c: New file.
47370
47371         New module 'environ'.
47372         * modules/environ: New file.
47373         * lib/unistd.in.h (environ): New declaration.
47374         * m4/environ.m4: New file.
47375         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47376         after use.
47377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47378         HAVE_DECL_ENVIRON.
47379         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47380         HAVE_DECL_ENVIRON.
47381         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47382         wrong claim that 'environ' is missing on some systems.
47383         * modules/execute (Depends-on): Add environ.
47384         * lib/execute.c (environ): Remove fallback declaration.
47385         * modules/pipe (Depends-on): Add environ.
47386         * lib/pipe.c (environ): Remove fallback declaration.
47387         * modules/setenv (Depends-on): Add environ.
47388         * lib/setenv.c (environ): Remove fallback declaration.
47389         * modules/unsetenv (Depends-on): Add environ.
47390         * lib/unsetenv.c (environ): Remove fallback declaration.
47391         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47392         m4/environ.m4.
47393         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47394         (gl_PREREQ_UNSETENV): Likewise.
47395
47396 2008-02-24  Bruno Haible  <bruno@clisp.org>
47397
47398         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47399
47400 2008-02-20  Bob Proulx  <bob@proulx.com>
47401
47402         Enable use of older two part flavor 'git describe'.
47403         * build-aux/git-version-gen: If using the older two part flavor of
47404         git version then recreate the third part now present in the
47405         newer three part flavor of git describe.
47406
47407 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47408
47409         * lib/fts.c (fts_build): Typo correction to comment.
47410
47411 2008-02-17  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47414         generating no-op conflicts.
47415
47416 2008-02-17  Bruno Haible  <bruno@clisp.org>
47417
47418         Speed up by 10%.
47419         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47420         result_entries, rather than an index-based loop.
47421
47422 2008-02-17  Bruno Haible  <bruno@clisp.org>
47423
47424         Speed up by 25%.
47425         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47426         'hashcode_cached'.
47427         (entry_create): New function.
47428         (entry_hashcode): Use the cached hashcode if possible.
47429         (read_changelog_file, try_split_merged_entry): Use entry_create.
47430
47431 2008-02-17  Bruno Haible  <bruno@clisp.org>
47432
47433         Speed up from O(n^2) to O(n) for long ChangeLog files.
47434         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47435         (read_changelog_file): Change implementation of entries_reversed list
47436         to rbtreehash.
47437         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47438
47439 2008-02-17  Bruno Haible  <bruno@clisp.org>
47440
47441         New option --split-merged-entry.
47442         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47443         (find_paragraph_end, try_split_merged_entry): New functions.
47444         (long_options): Add option --split-merged-entry.
47445         (usage): Document option --split-merged-entry.
47446         (main): Implement option --split-merged-entry.
47447         Reported by Eric Blake.
47448
47449 2008-02-17  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/git-merge-changelog.c: Include c-strstr.h.
47452         (main): Support the "git pull --rebase" situation.
47453         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47454         Reported by Eric Blake.
47455
47456 2008-02-16  Eric Blake  <ebb9@byu.net>
47457
47458         Avoid doubling \ in common case of "c-maybe" quoting style.
47459         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47460         eliding outer quotes.
47461         * lib/quotearg.h: Document this.
47462         * tests/test-quotearg.c (result_strings, inputs, results_g)
47463         (flag_results, locale_results): Test it by adding a new string to
47464         each test group.
47465         (compare_strings): Test new string.
47466
47467 2008-02-13  Eric Blake  <ebb9@byu.net>
47468
47469         Avoid trigraph quoting in default output.
47470         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47471         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47472         unless explicitly requested.
47473         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47474
47475 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47476
47477         Don't rely on signed integer overflowing to negative value.
47478         * lib/getugroups.c (getugroups): Include <limits.h>.
47479         Instead, compare against INT_MAX, and increment only if the test passes.
47480
47481 2008-02-13  Jim Meyering  <meyering@redhat.com>
47482         and Eric Blake  <ebb9@byu.net>
47483
47484         Avoid shadowing warning and compile errors on Linux.
47485         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47486         forwarding macros on Linux.
47487         (dcgettext): Define a stub, for Linux.
47488         (results_g, main): Avoid warnings.
47489
47490 2008-02-12  Eric Blake  <ebb9@byu.net>
47491
47492         Silence warning in last patch.
47493         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47494
47495         Quotearg part 4: add tests, fix c-maybe colon quoting.
47496         * lib/quotearg.h: Improve documentation.
47497         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47498         escapes when adding outer quotes.  When quoting trigraphs, use
47499         valid C notation.  When quoting NUL, omit extra characters if next
47500         character is not digit.  Alter prototype.
47501         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47502         callers.
47503         * modules/quotearg-tests: New module.
47504         * tests/test-quotearg.c: New test.
47505
47506 2008-02-07  Eric Blake  <ebb9@byu.net>
47507
47508         Quotearg part 3: add flag to control outer quote elision.
47509         * lib/quotearg.h (c_maybe_quoting_style): New style.
47510         (enum quoting_flags): Better documentation of flags.
47511         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47512         c-maybe style.
47513         (quotearg_buffer_restyled): Handle new flag to elide outer
47514         quotes.
47515
47516         Quotearg part 2: add flag that can control NUL elision.
47517         * lib/quotearg.h (set_quoting_flags): New prototype.
47518         * lib/quotearg.c (struct quoting_options): Add flag field.
47519         (set_quoting_flags): New function.
47520         (quotearg_buffer_restyled): Add flags parameter.
47521         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47522         (quotearg_n_options): Set the flag, since length cannot be
47523         returned.
47524         (quoting_options_from_style): Default flags correctly.
47525
47526         Quotearg part 1: more wrappers, restore quotearg_char state.
47527         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47528         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47529         (quotearg_colon_mem): New wrappers.
47530         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47531         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47532         functions.
47533         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47534         (quotearg_colon_mem): New functions.
47535
47536 2008-02-11  Bruno Haible  <bruno@clisp.org>
47537
47538         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47539         library in the current directory: it does not work with parallel make.
47540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47541
47542 2008-02-11  Bruno Haible  <bruno@clisp.org>
47543
47544         * .gitattributes: New file.
47545
47546 2008-02-11  Jim Meyering  <meyering@redhat.com>
47547
47548         useless-if-before-free: Fix reversed exit values.
47549         * build-aux/useless-if-before-free: Use correct values
47550         for EXIT_MATCH and EXIT_NO_MATCH.
47551
47552         * build-aux/useless-if-before-free: Close stdout carefully.
47553
47554 2008-02-10  Bruno Haible  <bruno@clisp.org>
47555
47556         New module 'git-merge-changelog'.
47557         * modules/git-merge-changelog: New file.
47558         * lib/git-merge-changelog.c: New file.
47559
47560 2008-02-10  Jim Meyering  <meyering@redhat.com>
47561
47562         useless-if-before-free: New option: --list (-l).
47563
47564         useless-if-before-free: Don't exit immediately upon open failure.
47565         * build-aux/useless-if-before-free: Exit 2 for errors.
47566         Upon failure to open a file, don't exit immediately.
47567         Rather, just warn and continue with any remaining files.
47568
47569 2008-02-10  Bruno Haible  <bruno@clisp.org>
47570
47571         New abstract list operation 'node_set_value'.
47572         * lib/gl_list.h (gl_list_node_set_value): New function.
47573         (struct gl_list_implementation): New field node_set_value.
47574         * lib/gl_list.c (gl_list_node_set_value): New function.
47575         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47576         (gl_array_list_implementation): Update.
47577         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47578         (gl_carray_list_implementation): Update.
47579         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47580         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47581         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47582         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47583         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47585         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47586         Update.
47587         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47588         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47589         (gl_sublist_list_implementation): Update.
47590
47591 2008-02-10  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47594         Needed when ELEMENT is #defined to 'some_type *'.
47595
47596 2008-02-10  Jim Meyering  <meyering@redhat.com>
47597
47598         New script and module: useless-if-before-free
47599         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47600         * build-aux/useless-if-before-free: New file.
47601         * modules/useless-if-before-free: New file.
47602
47603         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47604
47605         xstrtol_error: Fix typo.
47606         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47607         s/exit_failure/exit_status/.
47608
47609 2008-02-09  Jim Meyering  <meyering@redhat.com>
47610
47611         New script and module: gitlog-to-changelog
47612         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47613         * modules/gitlog-to-changelog: New file.
47614         * build-aux/gitlog-to-changelog: New file.
47615
47616 2008-02-08  Jim Meyering  <meyering@redhat.com>
47617
47618         Avoid two "parameter unused" warnings.
47619         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47620         Mark "st" as used.
47621
47622         Use "git COMMAND", not "git-COMMAND".
47623         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47624         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47625         * build-aux/git-version-gen: Use "git status", not "git-status".
47626
47627 2008-02-07  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47630         Avoids a crash on Windows Vista.
47631         Reported by Adam Strzelecki <ono@java.pl> via
47632         Simon Josefsson <simon@josefsson.org>.
47633
47634 2008-02-06  Bruno Haible  <bruno@clisp.org>
47635
47636         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47637         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47638         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47640         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47642         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47643         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47651         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47652         left-adjust flag.
47653         * tests/test-snprintf-posix.h (test_function): Likewise.
47654         * tests/test-sprintf-posix.h (test_function): Likewise.
47655         * tests/test-vasprintf-posix.c (test_function): Likewise.
47656         * doc/posix-functions/fprintf.texi: Update.
47657         * doc/posix-functions/printf.texi: Update.
47658         * doc/posix-functions/snprintf.texi: Update.
47659         * doc/posix-functions/sprintf.texi: Update.
47660         * doc/posix-functions/vfprintf.texi: Update.
47661         * doc/posix-functions/vprintf.texi: Update.
47662         * doc/posix-functions/vsnprintf.texi: Update.
47663         * doc/posix-functions/vsprintf.texi: Update.
47664         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47665
47666 2008-02-06  Bruno Haible  <bruno@clisp.org>
47667
47668         Fix bug introduced on 2008-01-26.
47669         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47670
47671 2008-02-06  Bruno Haible  <bruno@clisp.org>
47672
47673         Fix bug introduced on 2007-06-10.
47674         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47675         !NEED_PRINTF_FLAG_ZERO.
47676
47677 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47678
47679         getloadavg: use libperfstat on AIX5
47680         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47681
47682 2008-02-03  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/diffseq.h: Add comments about required #includes.
47685         Reported by Michael Biggs <gnulib@doubleplum.net>.
47686
47687 2008-02-01  Bruno Haible  <bruno@clisp.org>
47688
47689         * users.txt: Add gnuit.
47690
47691 2008-01-31  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/md4.c (set_uint32): Mark as inline.
47694         * lib/md5.c (set_uint32): Likewise.
47695         * lib/sha1.c (set_uint32): Likewise.
47696         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47697         * m4/md5.m4 (gl_MD5): Likewise.
47698         * m4/sha1.m4 (gl_SHA1): Likewise.
47699
47700 2008-01-31  Jim Meyering  <meyering@redhat.com>
47701
47702         Use "sizeof VAR", rather than a literal "4".
47703         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47704         * lib/md4.c (md4_read_ctx): Likewise.
47705         * lib/sha1.c (sha1_read_ctx): Likewise.
47706
47707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47708
47709         * tests/test-sha1.c: New file, based on test-md5.c.
47710
47711         * modules/crypto/sha1-tests: New file.
47712
47713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47714
47715         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47716
47717 2008-01-31  Jim Meyering  <meyering@redhat.com>
47718
47719         Prefer "sizeof v" over the equivalent "4".
47720         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47721         * lib/md5.c (set_uint32): Likewise.
47722         * lib/sha1.c (set_uint32): Likewise.
47723
47724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47725
47726         * lib/sha1.c (set_uint32): Mark function as static.
47727
47728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47729
47730         md2: clarify comments to say that alignment is not required.
47731         * lib/md2.h: Remove warning about alignment in comment.
47732         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47733         never been required.
47734
47735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47736
47737         md4: adapt alignment constraint fix from sha1.
47738         * lib/md4.c (set_uint32): New function, from sha1.c
47739         (md4_read_ctx): Use it.
47740         (md4_finish_ctx): Doc fix.
47741         * lib/md4.h: Doc fix.
47742
47743 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47744
47745         md5: adapt alignment constraint fix from sha1.
47746         * lib/md5.c (set_uint32): New function, from sha1.c
47747         (md5_read_ctx): Use it.
47748         (md5_finish_ctx): Doc fix.
47749         * lib/md5.h: Doc fix.
47750
47751 2008-01-30  Peter Palfrader  <weasel@debian.org>
47752
47753         sha1: remove the result buffer alignment constraint
47754         * lib/sha1.c (set_uint32): New function.
47755         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47756         constraint.
47757         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47758         * lib/sha1.h: Likewise.
47759
47760 2008-01-30  Andreas Schwab  <schwab@suse.de>
47761             Bruno Haible  <bruno@clisp.org>
47762
47763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47764         correct definition of LDBL_MIN_EXP.
47765
47766 2008-01-30  Karl Berry  <karl@gnu.org>
47767
47768         * config/srclist-update: try to preserve x bit on updates.
47769         * config/srclistvars.sh: update for karl.
47770
47771 2008-01-29  Jim Meyering  <meyering@redhat.com>
47772
47773         vasnprintf.c: Avoid warning about unused label
47774         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47775         "overflow" label definition and associated code with the
47776         same cpp condition that guards the sole use of that label.
47777
47778 2008-01-26  Bruno Haible  <bruno@clisp.org>
47779
47780         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47781         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47782         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47783         * lib/isnanl-nolibm.h (isnanl): Likewise.
47784         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47785
47786 2008-01-26  Bruno Haible  <bruno@clisp.org>
47787
47788         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47789         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47790
47791 2008-01-26  Bruno Haible  <bruno@clisp.org>
47792
47793         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47794         GCC >= 4.0 built-in.
47795         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47796
47797 2008-01-26  Bruno Haible  <bruno@clisp.org>
47798
47799         Rename isnan, applicable to 'double' only, to isnand.
47800         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47801         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47802         (configure.ac): Update.
47803         (Include): Replace "isnan.h" with "isnand.h".
47804         * m4/isnand.m4: Renamed from m4/isnan.m4.
47805         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47806         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47807         instead of isnan.c.
47808         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47809         instead of HAVE_ISNAN_IN_LIBC.
47810         (isnand): Renamed from isnan.
47811         * lib/isnand.c: New file.
47812         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47813         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47814         (Makefile.am): Update.
47815         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47816         Include isnand.h instead of isnan.h.
47817         (main): Test isnand instead of isnan.
47818         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47819         isnan-nolibm.
47820         * modules/frexp (Depends-on): Likewise.
47821         * modules/frexp-tests (Depends-on): Likewise.
47822         * modules/frexp-nolibm (Depends-on): Likewise.
47823         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47824         * modules/isfinite (Depends-on): Likewise.
47825         * modules/round-tests (Depends-on): Likewise.
47826         * modules/signbit (Depends-on): Likewise.
47827         * modules/signbit-tests (Depends-on): Likewise.
47828         * modules/snprintf-posix (Depends-on): Likewise.
47829         * modules/sprintf-posix (Depends-on): Likewise.
47830         * modules/trunc-tests (Depends-on): Likewise.
47831         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47833         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47835         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47836         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47837         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47838         * modules/vasnprintf-posix (Depends-on): Likewise.
47839         * modules/vasprintf-posix (Depends-on): Likewise.
47840         * modules/vfprintf-posix (Depends-on): Likewise.
47841         * modules/vsnprintf-posix (Depends-on): Likewise.
47842         * modules/vsprintf-posix (Depends-on): Likewise.
47843         * lib/frexp.c: Include isnand.h instead of isnan.h.
47844         (ISNAN): Set to isnand instead of isnan.
47845         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47846         (gl_isfinited): Use isnand instead of isnan.
47847         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47848         (gl_signbitd): Use isnand instead of isnan.
47849         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47850         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47851         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47852         (main): Use isnand instead of isnan.
47853         * tests/test-round1.c: Include isnand.h.
47854         (main): Use isnand instead of isnan.
47855         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47856         (ISNAN): Set to isnand instead of isnan.
47857         * tests/test-trunc1.c: Include isnand.h.
47858         (main): Use isnand instead of isnan.
47859         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47860         (equal): Use isnand instead of isnan.
47861         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47862         isnand-nolibm.
47863         * NEWS: Mention the change.
47864
47865 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47866             Bruno Haible  <bruno@clisp.org>
47867
47868         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47869         the GCC builtins for signbits are present and set
47870         REPLACE_SIGNBIT_USING_GCC if so.
47871         * lib/math.in.h (signbit): Define using GCC builtins if
47872         REPLACE_SIGNBIT_USING_GCC is set.
47873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47874         REPLACE_SIGNBIT_USING_GCC.
47875         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47876
47877 2008-01-25  Jim Meyering  <meyering@redhat.com>
47878
47879         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47880         * lib/poll.c: Include <config.h>, not "config.h".
47881         * tests/test-getaddrinfo.c: Likewise.
47882
47883 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47884
47885         * modules/sockets-tests: New file.
47886
47887 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47888
47889         * modules/sockets: New module, can be used to call WSA_Startup and
47890         WSA_Cleanup when needed.
47891
47892         * lib/sockets.h, lib/sockets.c: New files.
47893
47894         * m4/sockets.m4: New file.
47895
47896         * tests/test-sockets.c: New file.
47897
47898 2008-01-19  Bruno Haible  <bruno@clisp.org>
47899
47900         * doc/posix-headers: Renamed from doc/headers.
47901         * doc/posix-functions: Renamed from doc/functions.
47902         * doc/gnulib.texi: Update.
47903
47904 2008-01-19  Bruno Haible  <bruno@clisp.org>
47905
47906         * doc/glibc-functions/strcasestr.texi: Include contents of
47907         doc/functions/strcasestr.texi, fixing the list of platforms.
47908         * doc/functions/strcasestr.texi: Remove file.
47909
47910 2008-01-19  Bruno Haible  <bruno@clisp.org>
47911
47912         * doc/glibc-functions/memmem.texi: Include contents of
47913         doc/functions/memmem.texi.
47914         * doc/functions/memmem.texi: Remove file.
47915
47916 2008-01-18  Bruno Haible  <bruno@clisp.org>
47917
47918         * doc/glibc-functions/*.texi: New files.
47919         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47920         to use the new files.
47921
47922 2008-01-17  Bruno Haible  <bruno@clisp.org>
47923
47924         * tests/test-gethostname.c (main): Fix printf statement.
47925
47926 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47927
47928         * modules/gethostname-tests: New file.
47929
47930         * tests/test-gethostname.c: New file.
47931
47932 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47933
47934         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47935         used by the UNAME case.  Reported by Bruno Haible
47936         <bruno@clisp.org>.
47937
47938 2008-01-17  Eric Blake  <ebb9@byu.net>
47939
47940         Convert c-strcasestr to be more efficient.
47941         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47942         (Depends-on): Add c-strcase, remove malloca, strnlen.
47943         * tests/test-c-strcasestr.c (main): Enhance test.
47944         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47945
47946 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47947
47948         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47949         Use it in creating po/Makevars.
47950
47951 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47952
47953         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47954         Applications that requires it should initialize libgcrypt
47955         manually.
47956
47957 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47958
47959         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47960
47961 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47962
47963         Fix problem with getdate on mingw32 reported by Simon Josefsson
47964         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47965         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47966         tzname", when deciding whether to declare tzname.
47967         * lib/strftime.c (tzname): Likewise.
47968
47969 2008-01-15  Bruno Haible  <bruno@clisp.org>
47970
47971         Work around a MacOS X 10.5 bug in frexpl().
47972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47973         * doc/functions/frexpl.texi: Document the bug.
47974         Reported by Elias Pipping <pipping@gentoo.org>.
47975
47976 2008-01-14  Eric Blake  <ebb9@byu.net>
47977
47978         Touch up previous patch.
47979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47980         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47981
47982         Convert strcasestr module to use Two-Way algorithm.
47983         * modules/strcasestr-simple: New module, based on the old
47984         strcasestr, but with Two-Way rather than KMP.
47985         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47986         * lib/string.in.h (rpl_strcasestr): Declare.
47987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47988         performance.
47989         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47990         * modules/string (Makefile.am): Support strcasestr.
47991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47992         * modules/strcasestr-tests (Depends-on): Check for alarm.
47993         * tests/test-strcasestr.c: Augment test.
47994         * lib/str-two-way.h: Clean up stray macro.
47995         * NEWS: Document new module.
47996         * MODULES.html.sh (string handling): Likewise.
47997         * doc/functions/strcasestr.texi: New file.
47998         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47999         here, since it is not a POSIX function.
48000
48001 2008-01-14  Colin Watson  <cjwatson@debian.org>
48002             Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48005         works fine; if not, set REPLACE_STRSIGNAL.
48006         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48008         REPLACE_STRSIGNAL.
48009         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48010         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48011         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48012
48013 2008-01-14  Bruno Haible  <bruno@clisp.org>
48014
48015         * modules/strsignal (Include): Change to <string.h>.
48016
48017 2008-01-14  Colin Watson  <cjwatson@debian.org>
48018
48019         * modules/argp (Notice): Add a notice recommending to change
48020         XGETTEXT_OPTIONS.
48021         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48022
48023 2008-01-13  Colin Watson  <cjwatson@debian.org>
48024
48025         * modules/strsignal-tests: New file.
48026         * tests/test-strsignal.c: New file.
48027
48028         * lib/strsignal.c: New file, from glibc with modifications.
48029         * lib/siglist.h: New file, from glibc with modifications.
48030         * lib/string.in.h (strsignal): New declaration.
48031         * m4/strsignal.m4: New file.
48032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48033         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48034         * modules/strsignal: New file.
48035         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48036         HAVE_DECL_STRSIGNAL.
48037
48038 2008-01-13  Bruno Haible  <bruno@clisp.org>
48039
48040         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48041         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48042         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48044
48045 2008-01-13  Bruno Haible  <bruno@clisp.org>
48046
48047         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48048         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48049         * lib/argp.h (__attribute__): Likewise.
48050         * lib/c-stack.c (__attribute__): Likewise.
48051         * lib/error.h (__attribute__): Likewise.
48052         * lib/fts.c (__attribute__): Likewise.
48053         * lib/openat.h (__attribute__): Likewise.
48054         * lib/stdio.in.h (__attribute__): Likewise.
48055         * lib/string.in.h (__attribute__): Likewise.
48056         * lib/utimens.c (__attribute__): Likewise.
48057         * lib/vasnprintf.h (__attribute__): Likewise.
48058         * lib/xalloc.h (__attribute__): Likewise.
48059         * lib/xprintf.h (__attribute__): Likewise.
48060         * lib/xstrtol.h (__attribute__): Likewise.
48061         * lib/xvasprintf.h (__attribute__): Likewise.
48062
48063 2008-01-12  Bruno Haible  <bruno@clisp.org>
48064
48065         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48066         * doc/glibc-headers/a.out.texi: New file.
48067         * doc/glibc-headers/aliases.texi: New file.
48068         * doc/glibc-headers/alloca.texi: New file.
48069         * doc/glibc-headers/ar.texi: New file.
48070         * doc/glibc-headers/argp.texi: New file.
48071         * doc/glibc-headers/argz.texi: New file.
48072         * doc/glibc-headers/byteswap.texi: New file.
48073         * doc/glibc-headers/crypt.texi: New file.
48074         * doc/glibc-headers/endian.texi: New file.
48075         * doc/glibc-headers/envz.texi: New file.
48076         * doc/glibc-headers/err.texi: New file.
48077         * doc/glibc-headers/error.texi: New file.
48078         * doc/glibc-headers/execinfo.texi: New file.
48079         * doc/glibc-headers/fpu_control.texi: New file.
48080         * doc/glibc-headers/fstab.texi: New file.
48081         * doc/glibc-headers/fts.texi: New file.
48082         * doc/glibc-headers/getopt.texi: New file.
48083         * doc/glibc-headers/ieee754.texi: New file.
48084         * doc/glibc-headers/ifaddrs.texi: New file.
48085         * doc/glibc-headers/libintl.texi: New file.
48086         * doc/glibc-headers/mcheck.texi: New file.
48087         * doc/glibc-headers/mntent.texi: New file.
48088         * doc/glibc-headers/obstack.texi: New file.
48089         * doc/glibc-headers/paths.texi: New file.
48090         * doc/glibc-headers/printf.texi: New file.
48091         * doc/glibc-headers/pty.texi: New file.
48092         * doc/glibc-headers/resolv.texi: New file.
48093         * doc/glibc-headers/shadow.texi: New file.
48094         * doc/glibc-headers/sysexits.texi: New file.
48095         * doc/glibc-headers/ttyent.texi: New file.
48096
48097 2008-01-12  Jim Meyering  <meyering@redhat.com>
48098
48099         announce-gen: emit Gnulib's git-based version string.
48100         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48101         New option --gnulib-version=V, where V is expected to be
48102         the output of running git describe in the gnulib directory.
48103         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48104         not useful, and plan to stop publishing an xdelta file with each
48105         coreutils release.
48106
48107         * build-aux/announce-gen: Also check for lzma-compressed files.
48108
48109 2008-01-11  Bruno Haible  <bruno@clisp.org>
48110
48111         * tests/test-memmem.c (main): Increase maximum allowed time.
48112         * tests/test-strstr.c (main): Likewise.
48113
48114 2008-01-11  Bruno Haible  <bruno@clisp.org>
48115
48116         * doc/functions/memmem.texi: Add more precisions about platforms.
48117         * doc/functions/strstr.texi: Likewise.
48118
48119 2008-01-10  Eric Blake  <ebb9@byu.net>
48120
48121         * m4/strstr.m4: Delete cruft from copy-n-paste.
48122         Reported by Bruno Haible.
48123
48124 2008-01-10  Bruno Haible  <bruno@clisp.org>
48125
48126         Make c-strstr rely on strstr.
48127         * lib/c-strstr.c: Don't include str-kmp.h.
48128         (c_strstr): Define in terms of strstr.
48129         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48130         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48131
48132 2008-01-10  Bruno Haible  <bruno@clisp.org>
48133
48134         * doc/gnulib.texi (String Functions in C Locale): New section.
48135         * doc/c-ctype.texi: New file.
48136         * doc/c-strcase.texi: New file.
48137         * doc/c-strcaseeq.texi: New file.
48138         * doc/c-strcasestr.texi: New file.
48139         * doc/c-strstr.texi: New file.
48140         * doc/c-strtod.texi: New file.
48141         * doc/c-strtold.texi: New file.
48142
48143 2008-01-10  Eric Blake  <ebb9@byu.net>
48144
48145         * lib/relocatable.h: Fix a comment.
48146
48147 2008-01-10  Eric Blake  <ebb9@byu.net>
48148
48149         Share two-way algorithm.
48150         * lib/str-two-way.h: New file, merged from...
48151         * lib/memmem.c: ...here...
48152         * lib/strstr.c: ...and here.
48153         * modules/memmem (Files): Use it.
48154         * modules/strstr (Files): Likewise.
48155
48156         Avoid quadratic strstr implementations.
48157         * lib/strstr.c: New file.
48158         * m4/strstr.m4: Likewise.
48159         * modules/strstr: Likewise.
48160         * modules/strstr-tests: Likewise.
48161         * tests/test-strstr.c: Likewise.
48162         * lib/string.in.h (rpl_strstr): Declare.
48163         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48165         * modules/string (Makefile.am): Likewise.
48166         * MODULES.html.sh (string handling): Mention new module.
48167         * doc/functions/strstr.texi (strstr): Document the bug.
48168
48169 2008-01-10  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/relocatable.h (relocate): State whether result is freshly
48172         allocated or not.
48173         * lib/relocatable.c (relocate): Return a freshly allocated string
48174         instead of a pointer to a privately held string.
48175         Reported by Sylvain Beucler <beuc@gnu.org>.
48176
48177 2008-01-10  Colin Watson  <cjwatson@debian.org>
48178
48179         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48180         s/S_ISNLK/S_ISLNK/.
48181
48182 2008-01-09  Bruno Haible  <bruno@clisp.org>
48183
48184         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48185         and other files.
48186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48187         if it's only a guess.
48188         * modules/memmem: Simplify by depending on memmem-simple.
48189
48190 2008-01-09  Bruno Haible  <bruno@clisp.org>
48191
48192         Work around OpenBSD 4.0 tdelete() bug.
48193         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48194         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48195         macros and don't redefine the enum values.
48196         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48197         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48198         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48199
48200 2008-01-09  Bruno Haible  <bruno@clisp.org>
48201
48202         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48203         (main): Don't perform the tests if setlocale did not install a UTF-8
48204         locale. Needed on OpenBSD 4.0.
48205         * modules/wcwidth-tests (Depends-on): Add localcharset.
48206
48207 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48208
48209         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48210         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48211         * NEWS: announce this.
48212         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48213
48214 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48215         and Eric Blake  <ebb9@byu.net>
48216
48217         Add memmem-simple module.
48218         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48219         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48220         * modules/memmem-simple: New file.
48221         * modules/memmem (Description): Tweak.
48222         * MODULES.html.sh (string handling): Mention new module.
48223         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48224         addressed by memmem-simple.
48225         * NEWS: Document the difference.
48226
48227 2008-01-09  Eric Blake  <ebb9@byu.net>
48228
48229         Give gcc some memmem optimization hints.
48230         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48231         (strcasestr): Declare as pure.
48232         * modules/memmem (Maintainer): Claim my implementation.
48233
48234 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48235
48236         Support AIX 6.1 and higher.
48237         * build-aux/config.libpath: Likewise.
48238         * build-aux/config.rpath: Likewise.
48239
48240 2008-01-08  Jim Meyering  <meyering@redhat.com>
48241             Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48244         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48245         Reported by Peter Fales in
48246         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48247
48248 2008-01-08  Bruno Haible  <bruno@clisp.org>
48249
48250         * modules/unictype/category-of (Depends-on): Add
48251         unictype/category-none.
48252         * modules/unictype/category-and-tests (Depends-on): Add
48253         unictype/category-{L,N,Lu,Nd}.
48254         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48255         * modules/unictype/category-or-tests (Depends-on): Add
48256         unictype/category-{L,N}.
48257         * modules/unictype/category-name-tests (Depends-on): Add
48258         unictype/category-{Z,Nl}.
48259         Reported by Simon Josefsson.
48260
48261 2008-01-08  Bruno Haible  <bruno@clisp.org>
48262
48263         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48264         convention better.
48265         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48266         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48267         Reported by Peter Miller <millerp@canb.auug.org.au>.
48268
48269 2008-01-08  Eric Blake  <ebb9@byu.net>
48270
48271         Rewrite memmem to guarantee linear complexity without malloc.
48272         * lib/memmem.c (memmem): Use Two-Way rather than
48273         Knuth-Morris-Pratt, to allow O(1) space usage.
48274         (critical_factorization, two_way_short_needle)
48275         (two_way_long_needle): New functions.
48276         (knuth_morris_pratt): Delete.
48277         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48278         Add stdint.
48279         * tests/test-memmem.c (main): Add tests for periodic needle and
48280         sublinear performance.
48281         * doc/functions/memmem.texi (memmem): Document other deficiencies
48282         in cygwin and older glibc.
48283
48284 2008-01-08  Bruno Haible  <bruno@clisp.org>
48285
48286         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48287         augmentation.
48288
48289 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48290
48291         Add a configure time option: --disable-acl.
48292         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48293         AC_ARG_ENABLE(acl).
48294
48295 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48296
48297         * tests/test-localename.c: Don't include obsolete "setenv.h".
48298
48299         * modules/localename-tests (Depends-on): Need unsetenv.
48300
48301 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48302
48303         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48304
48305 2008-01-06  Colin Watson  <cjwatson@debian.org>
48306
48307         * users.txt: Add man-db.
48308
48309 2008-01-07  Bruno Haible  <bruno@clisp.org>
48310
48311         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48312         previous section name.
48313
48314 2008-01-07  Bruno Haible  <bruno@clisp.org>
48315
48316         * lib/progname.c (set_program_name): Don't strip off a leading
48317         "lt-" prefix outside a .libs directory.
48318         Suggested by Paul Eggert.
48319
48320 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48321             Bruno Haible  <bruno@clisp.org>
48322
48323         Improve memory cleanup in 'relocatable' module.
48324         * lib/relocatable.h (compute_curr_prefix): Change return type to
48325         'char *'.
48326         * lib/relocatable.c (compute_curr_prefix): Change return type to
48327         'char *'. Free curr_installdir after use.
48328         (relocate): Free curr_prefix_better after use.
48329         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48330
48331 2008-01-01  Bruno Haible  <bruno@clisp.org>
48332
48333         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48334         failure on older glibc systems.
48335         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48336
48337 2008-01-05  Eric Blake  <ebb9@byu.net>
48338
48339         Avoid quadratic system memmem.
48340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48341         Reported by Ralf Wildenhues.
48342
48343         Fix memmem test for mingw.
48344         * modules/memmem-tests (configure.ac): Check for alarm.
48345         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48346         it.
48347         * doc/functions/memmem.texi: New file.
48348         * doc/gnulib.texi (Function Substitutes): Add memmem.
48349         Reported by Bruno Haible.
48350
48351 2008-01-04  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48354         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48355         gl_HEADER_STRING_H_DEFAULTS.
48356
48357 2008-01-04  Eric Blake  <ebb9@byu.net>
48358
48359         Shorten duration of memmem test.
48360         * tests/test-memmem.c (main): Use alarm to declare failure if test
48361         is taking too long.
48362         Reported by Ralf Wildenhues.
48363
48364 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48365
48366         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48367         string, needed by strerror.
48368
48369 2008-01-03  Colin Watson  <cjwatson@debian.org>
48370             Bruno Haible  <bruno@clisp.org>
48371
48372         * doc/gnulib-tool.texi (Localization): New section.
48373
48374 2008-01-02  Bruno Haible  <bruno@clisp.org>
48375
48376         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48377         variables to 'unsigned char *' type.
48378         Reported by Paul Eggert.
48379
48380 2008-01-02  Jim Meyering  <jim@meyering.net>
48381
48382         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48383
48384 2007-12-31  Jim Meyering  <jim@meyering.net>
48385
48386         Avoid use of private FTS type name.
48387         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48388
48389 2007-12-30  Karl Berry  <karl@gnu.org>
48390
48391         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48392         work around defect in Texinfo and/or the standalone Info browser.
48393
48394 2007-12-30  Bruno Haible  <bruno@clisp.org>
48395
48396         Unify 5 copies of the KMP code.
48397         * lib/str-kmp.h: New file.
48398         * lib/c-strcasestr.c: Include str-kmp.h.
48399         (knuth_morris_pratt): Remove function.
48400         (c_strcasestr): Update.
48401         * lib/c-strstr.c: Include str-kmp.h.
48402         (knuth_morris_pratt): Remove function.
48403         (c_strcasestr): Update.
48404         * lib/mbscasestr.c: Include str-kmp.h.
48405         (knuth_morris_pratt_unibyte): Remove function.
48406         * lib/mbsstr.c: Include str-kmp.h.
48407         (knuth_morris_pratt_unibyte): Remove function.
48408         * lib/strcasestr.c: Include str-kmp.h.
48409         (knuth_morris_pratt): Remove function.
48410         (strcasestr): Update.
48411         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48412         * modules/c-strstr (Files): Likewise.
48413         * modules/mbscasestr (Files): Likewise.
48414         * modules/mbsstr (Files): Likewise.
48415         * modules/strcasestr (Files): Likewise.
48416         Suggested by Paul Eggert.
48417
48418 2007-12-30  Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48421         defined.
48422
48423 2007-12-30  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/xmalloca.h: Include xalloc.h.
48426         (xnmalloca): New macro.
48427
48428 2007-12-30  Bruno Haible  <bruno@clisp.org>
48429
48430         * lib/malloca.h (nmalloca): New macro.
48431         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48432         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48433         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48434         knuth_morris_pratt_multibyte): Likewise.
48435         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48436         knuth_morris_pratt_multibyte): Likewise.
48437         * lib/memmem.c (knuth_morris_pratt): Likewise.
48438         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48439
48440 2007-12-25  Bruno Haible  <bruno@clisp.org>
48441
48442         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48443         * lib/glob.c: Don't include openat.h.
48444         (link_exists2_p): Add back the code that deals with the
48445         !GLOB_ALTDIRFUNC case.
48446         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48447         let it do the filename concatenation.
48448         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48449         * modules/glob (Depends-on): Remove openat.
48450
48451 2007-12-31  Bruno Haible  <bruno@clisp.org>
48452
48453         * modules/dirfd (License): Change to LGPLv2+.
48454         Approved by Jim Meyering.
48455
48456 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48457
48458         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48459         when multiplying M by sizeof (size_t).
48460
48461 2007-12-10  Martin Lambers  <marlam@marlam.de>
48462
48463         Override getpagesize on mingw.
48464         * lib/getpagesize.c: New file.
48465         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48466         * modules/getpagesize (Files): Add lib/getpagesize.c.
48467         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48469         REPLACE_GETPAGESIZE.
48470         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48471
48472 2007-12-25  Bruno Haible  <bruno@clisp.org>
48473
48474         * modules/localcharset (Notice): New field.
48475         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48476         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48477
48478 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48479             Bruno Haible  <bruno@clisp.org>
48480
48481         Avoid using the syntax symbol() in formatted documentation.
48482         * MODULES.html.sh (func_module): When replacing symbol() with a
48483         hyperlink, remove the parentheses. Show an error if some remain.
48484         Recognize and render the '...' syntax.
48485         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48486         Rework. Add paragraph about GCC's inlining.
48487         * doc/alloca.texi: Likewise.
48488         * doc/error.texi: Remove parentheses from symbol reference.
48489         * doc/gnulib-intro.texi: Likewise.
48490         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48491         * modules/fnmatch (Description): Reword to say "the ... function".
48492         * modules/full-read (Description): Likewise.
48493         * modules/full-write (Description): Likewise.
48494         * modules/safe-read (Description): Likewise.
48495         * modules/safe-write (Description): Likewise.
48496         * modules/strchrnul (Description): Likewise.
48497         * modules/trim (Description): Likewise.
48498         * modules/error (Description): Remove parentheses from symbol
48499         references.
48500         * modules/verror (Description): Likewise.
48501         Reported by Karl Berry.
48502
48503 2007-12-25  Bruno Haible  <bruno@clisp.org>
48504
48505         Fixup after 2007-10-16 commit.
48506         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48507
48508 2007-12-24  Bruno Haible  <bruno@clisp.org>
48509
48510         Make --enable-relocatable work with DESTDIR.
48511         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48512         to compute installdir from destprog.
48513         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48514         also set the RELOC_DESTDIR variable.
48515         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48516
48517 2007-12-24  Bruno Haible  <bruno@clisp.org>
48518
48519         Fix link error due to xalloc_die().
48520         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48521         of xreadlink.
48522         * lib/relocwrapper.c: Update comments.
48523         * build-aux/install-reloc: Remove xreadlink.c from file list.
48524         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48525         xreadlink.c.
48526         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48527
48528 2007-12-24  Bruno Haible  <bruno@clisp.org>
48529
48530         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48531         * lib/setenv.h: Remove file.
48532         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48533         lib/setenv.h.
48534         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48535         (Depends-on): Add stdlib.
48536         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48537         gl_FUNC_UNSETENV.
48538         (Include): Replace setenv.h with <stdlib.h>.
48539         * modules/unsetenv: New file.
48540         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48541         * lib/unsetenv.c: Include <stdlib.h> first.
48542         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48543         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48544         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48545         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48546         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48547         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48549         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48550         * doc/functions/unsetenv.texi: Update.
48551         * modules/xsetenv (Depends-on): Add unsetenv.
48552         * modules/getdate (Depends-on): Likewise.
48553         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48554         * lib/xsetenv.c: Don't include setenv.h.
48555         * lib/getdate.y: Likewise.
48556         * lib/relocwrapper.c: Likewise.
48557         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48558         (Depends-on): Add stdlib.
48559         * NEWS: Mention the changes.
48560         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48561
48562 2007-12-23  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48565         indentation.
48566
48567 2007-12-23  Bruno Haible  <bruno@clisp.org>
48568
48569         * lib/c-strcasestr.c: Add more comments.
48570         * lib/c-strstr.c: Likewise.
48571         * lib/mbscasestr.c: Likewise.
48572         * lib/mbsstr.c: Likewise.
48573         * lib/strcasestr.c: Likewise.
48574         * lib/memmem.c: Likewise.
48575
48576 2007-12-23  Bruno Haible  <bruno@clisp.org>
48577
48578         * tests/test-memmem.c: Include <string.h> first.
48579
48580 2007-12-22  Bruno Haible  <bruno@clisp.org>
48581
48582         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48583         the contents of $testsbase.
48584         Reported by Ralf Wildenhues.
48585
48586 2007-12-22  Bruno Haible  <bruno@clisp.org>
48587
48588         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48589         two variables local_ldadd_before, local_ldadd_last.
48590
48591 2007-12-20  Eric Blake  <ebb9@byu.net>
48592
48593         Work around circular library issue when cross-compiling.
48594         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48595         that progname.o does not need to pull in rpl_memcmp.
48596
48597 2007-12-19  Eric Blake  <ebb9@byu.net>
48598
48599         Fix memmem to avoid O(n^2) worst-case complexity.
48600         * lib/memmem.c (knuth_morris_pratt): New function.
48601         (memmem): Use it if first few naive iterations fail.
48602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48603         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48604         * modules/memchr (License): Likewise.
48605         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48606         malloca.
48607         * tests/test-memmem.c: Rewrite, borrowing ideas from
48608         test-mbsstr1.c; the old version wouldn't even compile!
48609         * modules/memmem-tests: New file.
48610         * lib/string.in.h (rpl_memmem): Add declaration.
48611         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48613         REPLACE_MEMMEM.
48614
48615 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48618         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48619         before any system include files, and undef after them all.  This
48620         should fix a problem on VMS reported by John E. Malmberg in
48621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48622
48623 2007-12-17  Eric Blake  <ebb9@byu.net>
48624
48625         Revert addition of verify, for BSD/OS.
48626         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48627         can't handle large files, for the sake of obsolete platforms.
48628         * modules/fseeko (Depends-on): Remove verify.
48629         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48630         * doc/functions/ftello.texi (ftello): Likewise.
48631         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48632         Reported by Larry Jones.
48633
48634 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48635
48636         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48637         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48638
48639 2007-12-17  Jim Meyering  <meyering@redhat.com>
48640
48641         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48642         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48643         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48644         * modules/getcwd (Depends-on): Add openat.
48645         Reported by Petr Salinger.
48646
48647 2007-12-17  Bruno Haible  <bruno@clisp.org>
48648
48649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48650         avoid a segmentation fault of the configure test on x86_64 systems.
48651
48652 2007-12-15  Jim Meyering  <meyering@redhat.com>
48653
48654         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48655
48656 2007-12-13  Eric Blake  <ebb9@byu.net>
48657
48658         Another fseek test.
48659         * tests/test-fseek.c (main): Also test ungetc handling.
48660         * tests/test-fseeko.c (main): Likewise.
48661         * modules/fseeko (Depends-on): Add verify.
48662         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48663         large.
48664         Reported by Larry Jones.
48665
48666         Fix fseeko on mingw.
48667         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48668         seek.
48669
48670         Beef up fseek tests.
48671         * tests/test-fseek.c (main): Also test eof handling.
48672         * tests/test-fseeko.c (main): Likewise.
48673         Reported by Larry Jones.
48674
48675 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48676
48677         Fix fseeko on BSD-based platforms.
48678         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48679         successful seek.
48680
48681 2007-12-12  Eric Blake  <ebb9@byu.net>
48682
48683         Allow circular dependency of separate libtests.a
48684         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48685         when use_libtests.
48686
48687 2007-12-11  Eric Blake  <ebb9@byu.net>
48688
48689         Fix bug with -0.0L in previous patch.
48690         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48691         * tests/test-isnan.c (main): Also test on zeroes.
48692         * tests/test-isnanf.c (main): Likewise.
48693         * tests/test-isnanl.h (main): Likewise.
48694
48695         Detect pseudo-denormals on x86 even when cross-compiling.
48696         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48697         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48698         invalid bit patterns that happen to satisfy ==.
48699
48700         Avoid link failures with separate libtests.a.
48701         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48702         last, to satisfy circular dependencies.
48703
48704 2007-12-11  Eric Blake  <ebb9@byu.net>
48705         and Bruno Haible  <bruno@clisp.org>
48706
48707         Fix OpenBSD 4.0 <float.h> handling of long double.
48708         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48709         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48710         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48711
48712 2007-12-11  Jim Meyering  <meyering@redhat.com>
48713
48714         * users.txt: Add libvirt.
48715
48716         Support versions of autoconf prior to 2.59c.
48717         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48718         if it is not already defined.
48719
48720 2007-12-09  Bruno Haible  <bruno@clisp.org>
48721
48722         Let 'gnulib-tool --import' collect sources needed for the tests in
48723         tests/ rather than in lib/.
48724         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48725         argument. If true, add rules to generate libtests.a, and put libtests.a
48726         into $(LDADD). Consider source files in subdirectories and set
48727         uses_subdirs.
48728         (func_emit_initmacro_start, func_emit_initmacro_end,
48729         func_emit_initmacro_done): Pass all arguments explicitly.
48730         (func_import): Determine two module lists main_modules,
48731         testsrelated_modules. Determine use_libtests. Determine two variables
48732         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48733         instead of just sed_transform_lib_file. Determine two variables
48734         main_files and testsrelated_files. Compute 'files' as the union of
48735         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48736         func_add_or_update. In the generated gnulib-comp.m4, collect the
48737         object files for tests/ in different variables than those for lib/.
48738         Substitute LIBTESTS_LIBDEPS.
48739         (func_create_testdir): Combine the uses_subdirs results from
48740         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48741
48742 2007-12-09  Bruno Haible  <bruno@clisp.org>
48743
48744         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48745         the build-aux directory.
48746
48747 2007-12-09  Bruno Haible  <bruno@clisp.org>
48748
48749         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48750         introduced on 2006-09-09.
48751
48752 2007-12-07  Jim Meyering  <meyering@redhat.com>
48753
48754         Let these macros work also with autoconf-2.59.
48755         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48756         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48757         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48758
48759 2007-12-06  Jim Meyering  <meyering@redhat.com>
48760
48761         Avoid a configure-time syntax error in gl_FUNC_ACL.
48762         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48763         function in each branch, before testing the cache variable.
48764
48765 2007-12-04  Eric Blake  <ebb9@byu.net>
48766
48767         Make scripts executable.
48768         * build-aux/config.guess: Add execute permissions.
48769         * build-aux/config.sub: Likewise.
48770         * build-aux/gendocs.sh: Likewise.
48771
48772         Fix frexp on mingw.
48773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48774         cross-compiling.
48775         * doc/functions/frexp.texi (frexp): Document the bug.
48776
48777         Make cygwin fseeko check more reliable.
48778         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48779         version numbers, rather than unrelated feature check.
48780         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48781         * doc/functions/ftello.texi (ftello): Likewise.
48782         Reported by Bruno Haible.
48783
48784         * m4/strerror.m4: Bump version number.
48785
48786 2007-12-03  Bruno Haible  <bruno@clisp.org>
48787
48788         * doc/functions/mprotect.texi: Mention the mingw problem.
48789
48790 2007-12-03  Eric Blake  <ebb9@byu.net>
48791
48792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48793         REPLACE_STRERROR is initialized before this macro.
48794
48795 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48798         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48799         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48800         put -lsec in even for programs other than 'ls'.  This fixes a problem
48801         for gettext reported by Bruno Haible in
48802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48803         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48804         Add support for Solaris 10.  This isn't efficient, but should get the
48805         job done for now.
48806
48807 2007-12-03  James Youngman  <jay@gnu.org>
48808
48809         * doc/regexprops-generic.texi: change "an close-group" to "a
48810         close-group" and "illegal" to "not allowed".
48811
48812 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48813
48814         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48815         pr_byname.h. Needed for the rare case when the maintainer has done
48816         "make maintainer-clean" in the source directory and then attempts a
48817         build outside the source directory.
48818         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48819         scripts_byname.h.
48820
48821 2007-12-02  Martin Lambers <marlam@marlam.de>
48822             Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/getpagesize.h: Remove file.
48825         * lib/unistd.in.h: Include declaration of getpagesize here.
48826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48827         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48828         HAVE_SYS_PARAM_H.
48829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48830         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48831         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48832         (Depends-on): Add unistd.
48833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48834         (Include): Use <unistd.h> instead of getpagesize.h.
48835         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48836         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48837         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48838         gl_GETPAGESIZE invocation, already handled by module dependency.
48839         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48840
48841 2007-12-02  Bruno Haible  <bruno@clisp.org>
48842
48843         * modules/strings-tests: New file.
48844         * tests/test-strings.c: New file.
48845
48846         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48847         * lib/strings.in.h: New file.
48848         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48849         * m4/strings_h.m4: New file.
48850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48851         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48852         * modules/strings: New file.
48853         * modules/string (Makefile.am): Update.
48854         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48855         Reported by Karl Berry.
48856
48857 2007-12-01  Eric Blake  <ebb9@byu.net>
48858
48859         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48860         accomodate fix in cygwin 1.5.25.
48861
48862 2007-12-01  Jim Meyering  <meyering@redhat.com>
48863
48864         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48865         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48866         that would inhibit utf8-optimization of a regexp containing line-
48867         or buffer-anchors, e.g., `^', `$'.
48868
48869 2007-11-30  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48872         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48873         glthread_recursive_lock_init.
48874         * lib/lock.c (glthread_recursive_lock_init)
48875         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48876         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48877
48878 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48879
48880         New function qset_acl, like set_acl but with syscall semantics.
48881         * lib/acl.h (qset_acl): New decl.
48882         * lib/acl.c (qset_acl): New function.
48883         (set_acl): Use new function.  Use more-consistent diagnostics.
48884
48885 2007-11-28  Jim Meyering  <meyering@redhat.com>
48886
48887         * modules/physmem (License): Change from GPL to LGPLv2+.
48888
48889 2007-11-26  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48892         'long double' type has excess precision.
48893         Reported by Jim Meyering in
48894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48895
48896 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48897
48898         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48899         Sync from <http://gnu.org/licenses>.
48900         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48901         with license text from same location.
48902         * doc/maintain.texi, doc/standards.texi:  Sync from
48903         <http://savannah.gnu.org/projects/gnustandards>.
48904
48905 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48906         and Jim Meyering  <meyering@redhat.com>
48907
48908         Adjust getdate' grammar to accept a slightly more regular language.
48909         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48910         Before, the former was rejected.
48911         * lib/getdate.y (digits_to_date_time): New function, factored
48912         out of ...
48913         (number): ...here.  Just call digits_to_date_time.
48914         (hybrid): New non-terminal to handle an <unsigned number,
48915         signed relative offset> sequence consistently.
48916
48917 2007-11-18  Jim Meyering  <meyering@redhat.com>
48918
48919         Pull my changes from coreutils:
48920         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48921         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48922         use of $gnulib_tool_option_extras, so that it's separated from the
48923         preceding argument.
48924
48925         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48926         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48927         parent destination directories before copying a file into place.
48928
48929 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48930
48931         bootstrap: work also with 4-argument variant of AC_INIT
48932         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48933
48934 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48935
48936         Port test-getaddrinfo to Solaris.
48937         Problem reported by Bruno Haible in
48938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48939         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48940         explanation of setting 'hints'.
48941         Don't reject an implementation merely because it returns EAI_SERVICE.
48942         (EAI_SERVICE): Define to 0 if not defined.
48943
48944 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48945
48946         The license of gnu-make and posix-shell is now "GPLed build tool".
48947         * modules/gnu-make (License): Likewise.
48948         * modules/posix-shell (License): Likewise.
48949
48950         New module posix-shell, for determining a POSIX shell
48951         or perhaps something that is close enough to a POSIX shell.
48952         * m4/posix-shell.m4: New file.
48953         * modules/posix-shell: New file.
48954
48955         * MODULES.html.sh: Mention new module.
48956
48957         New module gnu-make, for determining whether we're using GNU Make.
48958         * m4/gnu-make.m4: New file.
48959         * modules/gnu-make: New file.
48960         * MODULES.html.sh: Mention new module.
48961
48962 2007-11-14  Jim Meyering  <meyering@redhat.com>
48963
48964         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48965         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48966         use this macro to create a function _definition_.
48967         Remove useless "#undef ARGMATCH_DIE".
48968
48969 2007-11-14  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/config.charset: Update for OpenBSD 4.1.
48972         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48973
48974 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48975
48976         Document 64-bit #if problems in stdint.texi.
48977         * doc/headers/stdint.texi (stdint.h): Mention problems with
48978         64-bit-#if, and how to work around them.
48979
48980         Don't insist on 'long long int' support in the preprocessor.  It
48981         breaks too many things.  For example, PRIdMAX still uses a 'long
48982         long int' format with the latest Sun compiler, even though
48983         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48984         preprocessor problem.  This causes the latest coreutils to dump
48985         core on Solaris 10 sparc with the Sun C compiler.
48986         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48987         the troublesome expressions at configure-time, not at #if-time.
48988         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48989         preprocessor.
48990         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48991         compile-time C checks, done at 'configure'-time.
48992         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48993         * modules/inttypes (Makefile): Substitute the new symbols that
48994         gl_INTTYPES_H now generates.
48995         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48996
48997 2007-11-12  Bruno Haible  <bruno@clisp.org>
48998
48999         Tests for Unicode character classification functions.
49000
49001         * modules/unictype/bidicategory-byname-tests: New file.
49002         * modules/unictype/bidicategory-name-tests: New file.
49003         * modules/unictype/bidicategory-of-tests: New file.
49004         * modules/unictype/bidicategory-test-tests: New file.
49005         * modules/unictype/block-list-tests: New file.
49006         * modules/unictype/block-of-tests: New file.
49007         * modules/unictype/block-test-tests: New file.
49008         * modules/unictype/category-C-tests: New file.
49009         * modules/unictype/category-Cc-tests: New file.
49010         * modules/unictype/category-Cf-tests: New file.
49011         * modules/unictype/category-Cn-tests: New file.
49012         * modules/unictype/category-Co-tests: New file.
49013         * modules/unictype/category-Cs-tests: New file.
49014         * modules/unictype/category-L-tests: New file.
49015         * modules/unictype/category-Ll-tests: New file.
49016         * modules/unictype/category-Lm-tests: New file.
49017         * modules/unictype/category-Lo-tests: New file.
49018         * modules/unictype/category-Lt-tests: New file.
49019         * modules/unictype/category-Lu-tests: New file.
49020         * modules/unictype/category-M-tests: New file.
49021         * modules/unictype/category-Mc-tests: New file.
49022         * modules/unictype/category-Me-tests: New file.
49023         * modules/unictype/category-Mn-tests: New file.
49024         * modules/unictype/category-N-tests: New file.
49025         * modules/unictype/category-Nd-tests: New file.
49026         * modules/unictype/category-Nl-tests: New file.
49027         * modules/unictype/category-No-tests: New file.
49028         * modules/unictype/category-P-tests: New file.
49029         * modules/unictype/category-Pc-tests: New file.
49030         * modules/unictype/category-Pd-tests: New file.
49031         * modules/unictype/category-Pe-tests: New file.
49032         * modules/unictype/category-Pf-tests: New file.
49033         * modules/unictype/category-Pi-tests: New file.
49034         * modules/unictype/category-Po-tests: New file.
49035         * modules/unictype/category-Ps-tests: New file.
49036         * modules/unictype/category-S-tests: New file.
49037         * modules/unictype/category-Sc-tests: New file.
49038         * modules/unictype/category-Sk-tests: New file.
49039         * modules/unictype/category-Sm-tests: New file.
49040         * modules/unictype/category-So-tests: New file.
49041         * modules/unictype/category-Z-tests: New file.
49042         * modules/unictype/category-Zl-tests: New file.
49043         * modules/unictype/category-Zp-tests: New file.
49044         * modules/unictype/category-Zs-tests: New file.
49045         * modules/unictype/category-and-not-tests: New file.
49046         * modules/unictype/category-and-tests: New file.
49047         * modules/unictype/category-byname-tests: New file.
49048         * modules/unictype/category-name-tests: New file.
49049         * modules/unictype/category-none-tests: New file.
49050         * modules/unictype/category-of-tests: New file.
49051         * modules/unictype/category-or-tests: New file.
49052         * modules/unictype/category-test-withtable-tests: New file.
49053         * modules/unictype/combining-class-tests: New file.
49054         * modules/unictype/ctype-alnum-tests: New file.
49055         * modules/unictype/ctype-alpha-tests: New file.
49056         * modules/unictype/ctype-blank-tests: New file.
49057         * modules/unictype/ctype-cntrl-tests: New file.
49058         * modules/unictype/ctype-digit-tests: New file.
49059         * modules/unictype/ctype-graph-tests: New file.
49060         * modules/unictype/ctype-lower-tests: New file.
49061         * modules/unictype/ctype-print-tests: New file.
49062         * modules/unictype/ctype-punct-tests: New file.
49063         * modules/unictype/ctype-space-tests: New file.
49064         * modules/unictype/ctype-upper-tests: New file.
49065         * modules/unictype/ctype-xdigit-tests: New file.
49066         * modules/unictype/decimal-digit-tests: New file.
49067         * modules/unictype/digit-tests: New file.
49068         * modules/unictype/mirror-tests: New file.
49069         * modules/unictype/numeric-tests: New file.
49070         * modules/unictype/property-alphabetic-tests: New file.
49071         * modules/unictype/property-ascii-hex-digit-tests: New file.
49072         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49073         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49074         * modules/unictype/property-bidi-block-separator-tests: New file.
49075         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49076         * modules/unictype/property-bidi-common-separator-tests: New file.
49077         * modules/unictype/property-bidi-control-tests: New file.
49078         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49079         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49080         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49081         * modules/unictype/property-bidi-european-digit-tests: New file.
49082         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49083         * modules/unictype/property-bidi-left-to-right-tests: New file.
49084         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49085         * modules/unictype/property-bidi-other-neutral-tests: New file.
49086         * modules/unictype/property-bidi-pdf-tests: New file.
49087         * modules/unictype/property-bidi-segment-separator-tests: New file.
49088         * modules/unictype/property-bidi-whitespace-tests: New file.
49089         * modules/unictype/property-byname-tests: New file.
49090         * modules/unictype/property-combining-tests: New file.
49091         * modules/unictype/property-composite-tests: New file.
49092         * modules/unictype/property-currency-symbol-tests: New file.
49093         * modules/unictype/property-dash-tests: New file.
49094         * modules/unictype/property-decimal-digit-tests: New file.
49095         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49096         * modules/unictype/property-deprecated-tests: New file.
49097         * modules/unictype/property-diacritic-tests: New file.
49098         * modules/unictype/property-extender-tests: New file.
49099         * modules/unictype/property-format-control-tests: New file.
49100         * modules/unictype/property-grapheme-base-tests: New file.
49101         * modules/unictype/property-grapheme-extend-tests: New file.
49102         * modules/unictype/property-grapheme-link-tests: New file.
49103         * modules/unictype/property-hex-digit-tests: New file.
49104         * modules/unictype/property-hyphen-tests: New file.
49105         * modules/unictype/property-id-continue-tests: New file.
49106         * modules/unictype/property-id-start-tests: New file.
49107         * modules/unictype/property-ideographic-tests: New file.
49108         * modules/unictype/property-ids-binary-operator-tests: New file.
49109         * modules/unictype/property-ids-trinary-operator-tests: New file.
49110         * modules/unictype/property-ignorable-control-tests: New file.
49111         * modules/unictype/property-iso-control-tests: New file.
49112         * modules/unictype/property-join-control-tests: New file.
49113         * modules/unictype/property-left-of-pair-tests: New file.
49114         * modules/unictype/property-line-separator-tests: New file.
49115         * modules/unictype/property-logical-order-exception-tests: New file.
49116         * modules/unictype/property-lowercase-tests: New file.
49117         * modules/unictype/property-math-tests: New file.
49118         * modules/unictype/property-non-break-tests: New file.
49119         * modules/unictype/property-not-a-character-tests: New file.
49120         * modules/unictype/property-numeric-tests: New file.
49121         * modules/unictype/property-other-alphabetic-tests: New file.
49122         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49123         * modules/unictype/property-other-grapheme-extend-tests: New file.
49124         * modules/unictype/property-other-id-continue-tests: New file.
49125         * modules/unictype/property-other-id-start-tests: New file.
49126         * modules/unictype/property-other-lowercase-tests: New file.
49127         * modules/unictype/property-other-math-tests: New file.
49128         * modules/unictype/property-other-uppercase-tests: New file.
49129         * modules/unictype/property-paired-punctuation-tests: New file.
49130         * modules/unictype/property-paragraph-separator-tests: New file.
49131         * modules/unictype/property-pattern-syntax-tests: New file.
49132         * modules/unictype/property-pattern-white-space-tests: New file.
49133         * modules/unictype/property-private-use-tests: New file.
49134         * modules/unictype/property-punctuation-tests: New file.
49135         * modules/unictype/property-quotation-mark-tests: New file.
49136         * modules/unictype/property-radical-tests: New file.
49137         * modules/unictype/property-sentence-terminal-tests: New file.
49138         * modules/unictype/property-soft-dotted-tests: New file.
49139         * modules/unictype/property-space-tests: New file.
49140         * modules/unictype/property-terminal-punctuation-tests: New file.
49141         * modules/unictype/property-test-tests: New file.
49142         * modules/unictype/property-titlecase-tests: New file.
49143         * modules/unictype/property-unassigned-code-value-tests: New file.
49144         * modules/unictype/property-unified-ideograph-tests: New file.
49145         * modules/unictype/property-uppercase-tests: New file.
49146         * modules/unictype/property-variation-selector-tests: New file.
49147         * modules/unictype/property-white-space-tests: New file.
49148         * modules/unictype/property-xid-continue-tests: New file.
49149         * modules/unictype/property-xid-start-tests: New file.
49150         * modules/unictype/property-zero-width-tests: New file.
49151         * modules/unictype/scripts-tests: New file.
49152         * modules/unictype/syntax-c-ident-tests: New file.
49153         * modules/unictype/syntax-c-whitespace-tests: New file.
49154         * modules/unictype/syntax-java-ident-tests: New file.
49155         * modules/unictype/syntax-java-whitespace-tests: New file.
49156         * tests/unictype/test-bidi_byname.c: New file.
49157         * tests/unictype/test-bidi_name.c: New file.
49158         * tests/unictype/test-bidi_of.c: New file.
49159         * tests/unictype/test-bidi_test.c: New file.
49160         * tests/unictype/test-block_list.c: New file.
49161         * tests/unictype/test-block_of.c: New file.
49162         * tests/unictype/test-block_test.c: New file.
49163         * tests/unictype/test-categ_and.c: New file.
49164         * tests/unictype/test-categ_and_not.c: New file.
49165         * tests/unictype/test-categ_byname.c: New file.
49166         * tests/unictype/test-categ_name.c: New file.
49167         * tests/unictype/test-categ_none.c: New file.
49168         * tests/unictype/test-categ_of.c: New file.
49169         * tests/unictype/test-categ_or.c: New file.
49170         * tests/unictype/test-categ_test_withtable.c: New file.
49171         * tests/unictype/test-combining.c: New file.
49172         * tests/unictype/test-decdigit.c: New file.
49173         * tests/unictype/test-digit.c: New file.
49174         * tests/unictype/test-mirror.c: New file.
49175         * tests/unictype/test-numeric.c: New file.
49176         * tests/unictype/test-pr_byname.c: New file.
49177         * tests/unictype/test-pr_test.c: New file.
49178         * tests/unictype/test-predicate-part1.h: New file.
49179         * tests/unictype/test-predicate-part2.h: New file.
49180         * tests/unictype/test-scripts.c: New file.
49181         * tests/unictype/test-sy_c_ident.c: New file.
49182         * tests/unictype/test-sy_java_ident.c: New file.
49183
49184         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49185         for Unicode 5.0.0.
49186         * tests/unictype/test-categ_Cc.c: Likewise.
49187         * tests/unictype/test-categ_Cf.c: Likewise.
49188         * tests/unictype/test-categ_Cn.c: Likewise.
49189         * tests/unictype/test-categ_Co.c: Likewise.
49190         * tests/unictype/test-categ_Cs.c: Likewise.
49191         * tests/unictype/test-categ_L.c: Likewise.
49192         * tests/unictype/test-categ_Ll.c: Likewise.
49193         * tests/unictype/test-categ_Lm.c: Likewise.
49194         * tests/unictype/test-categ_Lo.c: Likewise.
49195         * tests/unictype/test-categ_Lt.c: Likewise.
49196         * tests/unictype/test-categ_Lu.c: Likewise.
49197         * tests/unictype/test-categ_M.c: Likewise.
49198         * tests/unictype/test-categ_Mc.c: Likewise.
49199         * tests/unictype/test-categ_Me.c: Likewise.
49200         * tests/unictype/test-categ_Mn.c: Likewise.
49201         * tests/unictype/test-categ_N.c: Likewise.
49202         * tests/unictype/test-categ_Nd.c: Likewise.
49203         * tests/unictype/test-categ_Nl.c: Likewise.
49204         * tests/unictype/test-categ_No.c: Likewise.
49205         * tests/unictype/test-categ_P.c: Likewise.
49206         * tests/unictype/test-categ_Pc.c: Likewise.
49207         * tests/unictype/test-categ_Pd.c: Likewise.
49208         * tests/unictype/test-categ_Pe.c: Likewise.
49209         * tests/unictype/test-categ_Pf.c: Likewise.
49210         * tests/unictype/test-categ_Pi.c: Likewise.
49211         * tests/unictype/test-categ_Po.c: Likewise.
49212         * tests/unictype/test-categ_Ps.c: Likewise.
49213         * tests/unictype/test-categ_S.c: Likewise.
49214         * tests/unictype/test-categ_Sc.c: Likewise.
49215         * tests/unictype/test-categ_Sk.c: Likewise.
49216         * tests/unictype/test-categ_Sm.c: Likewise.
49217         * tests/unictype/test-categ_So.c: Likewise.
49218         * tests/unictype/test-categ_Z.c: Likewise.
49219         * tests/unictype/test-categ_Zl.c: Likewise.
49220         * tests/unictype/test-categ_Zp.c: Likewise.
49221         * tests/unictype/test-categ_Zs.c: Likewise.
49222         * tests/unictype/test-ctype_alnum.c: Likewise.
49223         * tests/unictype/test-ctype_alpha.c: Likewise.
49224         * tests/unictype/test-ctype_blank.c: Likewise.
49225         * tests/unictype/test-ctype_cntrl.c: Likewise.
49226         * tests/unictype/test-ctype_digit.c: Likewise.
49227         * tests/unictype/test-ctype_graph.c: Likewise.
49228         * tests/unictype/test-ctype_lower.c: Likewise.
49229         * tests/unictype/test-ctype_print.c: Likewise.
49230         * tests/unictype/test-ctype_punct.c: Likewise.
49231         * tests/unictype/test-ctype_space.c: Likewise.
49232         * tests/unictype/test-ctype_upper.c: Likewise.
49233         * tests/unictype/test-ctype_xdigit.c: Likewise.
49234         * tests/unictype/test-decdigit.h: Likewise.
49235         * tests/unictype/test-digit.h: Likewise.
49236         * tests/unictype/test-numeric.h: Likewise.
49237         * tests/unictype/test-pr_alphabetic.c: Likewise.
49238         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49239         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49240         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49241         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49242         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49243         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49244         * tests/unictype/test-pr_bidi_control.c: Likewise.
49245         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49246         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49248         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49249         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49250         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49251         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49252         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49253         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49254         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49255         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49256         * tests/unictype/test-pr_combining.c: Likewise.
49257         * tests/unictype/test-pr_composite.c: Likewise.
49258         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49259         * tests/unictype/test-pr_dash.c: Likewise.
49260         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49261         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49262         * tests/unictype/test-pr_deprecated.c: Likewise.
49263         * tests/unictype/test-pr_diacritic.c: Likewise.
49264         * tests/unictype/test-pr_extender.c: Likewise.
49265         * tests/unictype/test-pr_format_control.c: Likewise.
49266         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49267         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49268         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49269         * tests/unictype/test-pr_hex_digit.c: Likewise.
49270         * tests/unictype/test-pr_hyphen.c: Likewise.
49271         * tests/unictype/test-pr_id_continue.c: Likewise.
49272         * tests/unictype/test-pr_id_start.c: Likewise.
49273         * tests/unictype/test-pr_ideographic.c: Likewise.
49274         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49275         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49276         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49277         * tests/unictype/test-pr_iso_control.c: Likewise.
49278         * tests/unictype/test-pr_join_control.c: Likewise.
49279         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49280         * tests/unictype/test-pr_line_separator.c: Likewise.
49281         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49282         * tests/unictype/test-pr_lowercase.c: Likewise.
49283         * tests/unictype/test-pr_math.c: Likewise.
49284         * tests/unictype/test-pr_non_break.c: Likewise.
49285         * tests/unictype/test-pr_not_a_character.c: Likewise.
49286         * tests/unictype/test-pr_numeric.c: Likewise.
49287         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49288         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49289         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49290         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49291         * tests/unictype/test-pr_other_id_start.c: Likewise.
49292         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49293         * tests/unictype/test-pr_other_math.c: Likewise.
49294         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49295         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49296         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49297         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49298         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49299         * tests/unictype/test-pr_private_use.c: Likewise.
49300         * tests/unictype/test-pr_punctuation.c: Likewise.
49301         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49302         * tests/unictype/test-pr_radical.c: Likewise.
49303         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49304         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49305         * tests/unictype/test-pr_space.c: Likewise.
49306         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49307         * tests/unictype/test-pr_titlecase.c: Likewise.
49308         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49309         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49310         * tests/unictype/test-pr_uppercase.c: Likewise.
49311         * tests/unictype/test-pr_variation_selector.c: Likewise.
49312         * tests/unictype/test-pr_white_space.c: Likewise.
49313         * tests/unictype/test-pr_xid_continue.c: Likewise.
49314         * tests/unictype/test-pr_xid_start.c: Likewise.
49315         * tests/unictype/test-pr_zero_width.c: Likewise.
49316         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49317         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49318
49319 2007-11-12  Bruno Haible  <bruno@clisp.org>
49320
49321         Unicode character classification functions.
49322         * lib/unictype.h: New file.
49323         * modules/unictype/base: New file.
49324         * modules/unictype/category-L: New file.
49325         * modules/unictype/category-Lu: New file.
49326         * modules/unictype/category-Ll: New file.
49327         * modules/unictype/category-Lt: New file.
49328         * modules/unictype/category-Lm: New file.
49329         * modules/unictype/category-Lo: New file.
49330         * modules/unictype/category-M: New file.
49331         * modules/unictype/category-Mn: New file.
49332         * modules/unictype/category-Mc: New file.
49333         * modules/unictype/category-Me: New file.
49334         * modules/unictype/category-N: New file.
49335         * modules/unictype/category-Nd: New file.
49336         * modules/unictype/category-Nl: New file.
49337         * modules/unictype/category-No: New file.
49338         * modules/unictype/category-P: New file.
49339         * modules/unictype/category-Pc: New file.
49340         * modules/unictype/category-Pd: New file.
49341         * modules/unictype/category-Ps: New file.
49342         * modules/unictype/category-Pe: New file.
49343         * modules/unictype/category-Pi: New file.
49344         * modules/unictype/category-Pf: New file.
49345         * modules/unictype/category-Po: New file.
49346         * modules/unictype/category-S: New file.
49347         * modules/unictype/category-Sm: New file.
49348         * modules/unictype/category-Sc: New file.
49349         * modules/unictype/category-Sk: New file.
49350         * modules/unictype/category-So: New file.
49351         * modules/unictype/category-Z: New file.
49352         * modules/unictype/category-Zs: New file.
49353         * modules/unictype/category-Zl: New file.
49354         * modules/unictype/category-Zp: New file.
49355         * modules/unictype/category-C: New file.
49356         * modules/unictype/category-Cc: New file.
49357         * modules/unictype/category-Cf: New file.
49358         * modules/unictype/category-Cs: New file.
49359         * modules/unictype/category-Co: New file.
49360         * modules/unictype/category-Cn: New file.
49361         * modules/unictype/category-or: New file.
49362         * modules/unictype/category-of: New file.
49363         * modules/unictype/category-test: New file.
49364         * modules/unictype/category-test-withtable: New file.
49365         * modules/unictype/category-byname: New file.
49366         * modules/unictype/category-none: New file.
49367         * modules/unictype/category-and: New file.
49368         * modules/unictype/category-and-not: New file.
49369         * modules/unictype/category-name: New file.
49370         * modules/unictype/combining-class: New file.
49371         * modules/unictype/category-all: New file.
49372         * modules/unictype/bidicategory-all: New file.
49373         * modules/unictype/bidicategory-byname: New file.
49374         * modules/unictype/bidicategory-name: New file.
49375         * modules/unictype/bidicategory-of: New file.
49376         * modules/unictype/bidicategory-test: New file.
49377         * modules/unictype/decimal-digit: New file.
49378         * modules/unictype/digit: New file.
49379         * modules/unictype/numeric: New file.
49380         * modules/unictype/mirror: New file.
49381         * modules/unictype/property-white-space: New file.
49382         * modules/unictype/property-alphabetic: New file.
49383         * modules/unictype/property-other-alphabetic: New file.
49384         * modules/unictype/property-not-a-character: New file.
49385         * modules/unictype/property-default-ignorable-code-point: New file.
49386         * modules/unictype/property-other-default-ignorable-code-point: New
49387         file.
49388         * modules/unictype/property-deprecated: New file.
49389         * modules/unictype/property-logical-order-exception: New file.
49390         * modules/unictype/property-variation-selector: New file.
49391         * modules/unictype/property-private-use: New file.
49392         * modules/unictype/property-unassigned-code-value: New file.
49393         * modules/unictype/property-uppercase: New file.
49394         * modules/unictype/property-other-uppercase: New file.
49395         * modules/unictype/property-lowercase: New file.
49396         * modules/unictype/property-other-lowercase: New file.
49397         * modules/unictype/property-titlecase: New file.
49398         * modules/unictype/property-soft-dotted: New file.
49399         * modules/unictype/property-id-start: New file.
49400         * modules/unictype/property-other-id-start: New file.
49401         * modules/unictype/property-id-continue: New file.
49402         * modules/unictype/property-other-id-continue: New file.
49403         * modules/unictype/property-xid-start: New file.
49404         * modules/unictype/property-xid-continue: New file.
49405         * modules/unictype/property-pattern-white-space: New file.
49406         * modules/unictype/property-pattern-syntax: New file.
49407         * modules/unictype/property-join-control: New file.
49408         * modules/unictype/property-grapheme-base: New file.
49409         * modules/unictype/property-grapheme-extend: New file.
49410         * modules/unictype/property-other-grapheme-extend: New file.
49411         * modules/unictype/property-grapheme-link: New file.
49412         * modules/unictype/property-bidi-control: New file.
49413         * modules/unictype/property-bidi-left-to-right: New file.
49414         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49415         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49416         * modules/unictype/property-bidi-european-digit: New file.
49417         * modules/unictype/property-bidi-eur-num-separator: New file.
49418         * modules/unictype/property-bidi-eur-num-terminator: New file.
49419         * modules/unictype/property-bidi-arabic-digit: New file.
49420         * modules/unictype/property-bidi-common-separator: New file.
49421         * modules/unictype/property-bidi-block-separator: New file.
49422         * modules/unictype/property-bidi-segment-separator: New file.
49423         * modules/unictype/property-bidi-whitespace: New file.
49424         * modules/unictype/property-bidi-non-spacing-mark: New file.
49425         * modules/unictype/property-bidi-boundary-neutral: New file.
49426         * modules/unictype/property-bidi-pdf: New file.
49427         * modules/unictype/property-bidi-embedding-or-override: New file.
49428         * modules/unictype/property-bidi-other-neutral: New file.
49429         * modules/unictype/property-hex-digit: New file.
49430         * modules/unictype/property-ascii-hex-digit: New file.
49431         * modules/unictype/property-ideographic: New file.
49432         * modules/unictype/property-unified-ideograph: New file.
49433         * modules/unictype/property-radical: New file.
49434         * modules/unictype/property-ids-binary-operator: New file.
49435         * modules/unictype/property-ids-trinary-operator: New file.
49436         * modules/unictype/property-zero-width: New file.
49437         * modules/unictype/property-space: New file.
49438         * modules/unictype/property-non-break: New file.
49439         * modules/unictype/property-iso-control: New file.
49440         * modules/unictype/property-format-control: New file.
49441         * modules/unictype/property-dash: New file.
49442         * modules/unictype/property-hyphen: New file.
49443         * modules/unictype/property-punctuation: New file.
49444         * modules/unictype/property-line-separator: New file.
49445         * modules/unictype/property-paragraph-separator: New file.
49446         * modules/unictype/property-quotation-mark: New file.
49447         * modules/unictype/property-sentence-terminal: New file.
49448         * modules/unictype/property-terminal-punctuation: New file.
49449         * modules/unictype/property-currency-symbol: New file.
49450         * modules/unictype/property-math: New file.
49451         * modules/unictype/property-other-math: New file.
49452         * modules/unictype/property-paired-punctuation: New file.
49453         * modules/unictype/property-left-of-pair: New file.
49454         * modules/unictype/property-combining: New file.
49455         * modules/unictype/property-composite: New file.
49456         * modules/unictype/property-decimal-digit: New file.
49457         * modules/unictype/property-numeric: New file.
49458         * modules/unictype/property-diacritic: New file.
49459         * modules/unictype/property-extender: New file.
49460         * modules/unictype/property-ignorable-control: New file.
49461         * modules/unictype/property-test: New file.
49462         * modules/unictype/property-byname: New file.
49463         * modules/unictype/property-all: New file.
49464         * modules/unictype/scripts: New file.
49465         * modules/unictype/scripts-all: New file.
49466         * modules/unictype/block-of: New file.
49467         * modules/unictype/block-test: New file.
49468         * modules/unictype/block-list: New file.
49469         * modules/unictype/block-all: New file.
49470         * modules/unictype/syntax-c-whitespace: New file.
49471         * modules/unictype/syntax-java-whitespace: New file.
49472         * modules/unictype/syntax-c-ident: New file.
49473         * modules/unictype/syntax-java-ident: New file.
49474         * modules/unictype/ctype-alnum: New file.
49475         * modules/unictype/ctype-alpha: New file.
49476         * modules/unictype/ctype-cntrl: New file.
49477         * modules/unictype/ctype-digit: New file.
49478         * modules/unictype/ctype-graph: New file.
49479         * modules/unictype/ctype-lower: New file.
49480         * modules/unictype/ctype-print: New file.
49481         * modules/unictype/ctype-punct: New file.
49482         * modules/unictype/ctype-space: New file.
49483         * modules/unictype/ctype-upper: New file.
49484         * modules/unictype/ctype-xdigit: New file.
49485         * modules/unictype/ctype-blank: New file.
49486         * lib/unictype/bidi_byname.c: New file.
49487         * lib/unictype/bidi_name.c: New file.
49488         * lib/unictype/bidi_of.c: New file.
49489         * lib/unictype/bidi_test.c: New file.
49490         * lib/unictype/bitmap.h: New file.
49491         * lib/unictype/block_test.c: New file.
49492         * lib/unictype/blocks.c: New file.
49493         * lib/unictype/categ_C.c: New file.
49494         * lib/unictype/categ_Cc.c: New file.
49495         * lib/unictype/categ_Cf.c: New file.
49496         * lib/unictype/categ_Cn.c: New file.
49497         * lib/unictype/categ_Co.c: New file.
49498         * lib/unictype/categ_Cs.c: New file.
49499         * lib/unictype/categ_L.c: New file.
49500         * lib/unictype/categ_Ll.c: New file.
49501         * lib/unictype/categ_Lm.c: New file.
49502         * lib/unictype/categ_Lo.c: New file.
49503         * lib/unictype/categ_Lt.c: New file.
49504         * lib/unictype/categ_Lu.c: New file.
49505         * lib/unictype/categ_M.c: New file.
49506         * lib/unictype/categ_Mc.c: New file.
49507         * lib/unictype/categ_Me.c: New file.
49508         * lib/unictype/categ_Mn.c: New file.
49509         * lib/unictype/categ_N.c: New file.
49510         * lib/unictype/categ_Nd.c: New file.
49511         * lib/unictype/categ_Nl.c: New file.
49512         * lib/unictype/categ_No.c: New file.
49513         * lib/unictype/categ_P.c: New file.
49514         * lib/unictype/categ_Pc.c: New file.
49515         * lib/unictype/categ_Pd.c: New file.
49516         * lib/unictype/categ_Pe.c: New file.
49517         * lib/unictype/categ_Pf.c: New file.
49518         * lib/unictype/categ_Pi.c: New file.
49519         * lib/unictype/categ_Po.c: New file.
49520         * lib/unictype/categ_Ps.c: New file.
49521         * lib/unictype/categ_S.c: New file.
49522         * lib/unictype/categ_Sc.c: New file.
49523         * lib/unictype/categ_Sk.c: New file.
49524         * lib/unictype/categ_Sm.c: New file.
49525         * lib/unictype/categ_So.c: New file.
49526         * lib/unictype/categ_Z.c: New file.
49527         * lib/unictype/categ_Zl.c: New file.
49528         * lib/unictype/categ_Zp.c: New file.
49529         * lib/unictype/categ_Zs.c: New file.
49530         * lib/unictype/categ_and.c: New file.
49531         * lib/unictype/categ_and_not.c: New file.
49532         * lib/unictype/categ_byname.c: New file.
49533         * lib/unictype/categ_name.c: New file.
49534         * lib/unictype/categ_none.c: New file.
49535         * lib/unictype/categ_of.c: New file.
49536         * lib/unictype/categ_or.c: New file.
49537         * lib/unictype/categ_test.c: New file.
49538         * lib/unictype/combining.c: New file.
49539         * lib/unictype/ctype_alnum.c: New file.
49540         * lib/unictype/ctype_alpha.c: New file.
49541         * lib/unictype/ctype_blank.c: New file.
49542         * lib/unictype/ctype_cntrl.c: New file.
49543         * lib/unictype/ctype_digit.c: New file.
49544         * lib/unictype/ctype_graph.c: New file.
49545         * lib/unictype/ctype_lower.c: New file.
49546         * lib/unictype/ctype_print.c: New file.
49547         * lib/unictype/ctype_punct.c: New file.
49548         * lib/unictype/ctype_space.c: New file.
49549         * lib/unictype/ctype_upper.c: New file.
49550         * lib/unictype/ctype_xdigit.c: New file.
49551         * lib/unictype/decdigit.c: New file.
49552         * lib/unictype/digit.c: New file.
49553         * lib/unictype/identsyntaxmap.h: New file.
49554         * lib/unictype/mirror.c: New file.
49555         * lib/unictype/numeric.c: New file.
49556         * lib/unictype/pr_alphabetic.c: New file.
49557         * lib/unictype/pr_ascii_hex_digit.c: New file.
49558         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49559         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49560         * lib/unictype/pr_bidi_block_separator.c: New file.
49561         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49562         * lib/unictype/pr_bidi_common_separator.c: New file.
49563         * lib/unictype/pr_bidi_control.c: New file.
49564         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49565         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49566         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49567         * lib/unictype/pr_bidi_european_digit.c: New file.
49568         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49569         * lib/unictype/pr_bidi_left_to_right.c: New file.
49570         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49571         * lib/unictype/pr_bidi_other_neutral.c: New file.
49572         * lib/unictype/pr_bidi_pdf.c: New file.
49573         * lib/unictype/pr_bidi_segment_separator.c: New file.
49574         * lib/unictype/pr_bidi_whitespace.c: New file.
49575         * lib/unictype/pr_byname.c: New file.
49576         * lib/unictype/pr_byname.gperf: New file.
49577         * lib/unictype/pr_combining.c: New file.
49578         * lib/unictype/pr_composite.c: New file.
49579         * lib/unictype/pr_currency_symbol.c: New file.
49580         * lib/unictype/pr_dash.c: New file.
49581         * lib/unictype/pr_decimal_digit.c: New file.
49582         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49583         * lib/unictype/pr_deprecated.c: New file.
49584         * lib/unictype/pr_diacritic.c: New file.
49585         * lib/unictype/pr_extender.c: New file.
49586         * lib/unictype/pr_format_control.c: New file.
49587         * lib/unictype/pr_grapheme_base.c: New file.
49588         * lib/unictype/pr_grapheme_extend.c: New file.
49589         * lib/unictype/pr_grapheme_link.c: New file.
49590         * lib/unictype/pr_hex_digit.c: New file.
49591         * lib/unictype/pr_hyphen.c: New file.
49592         * lib/unictype/pr_id_continue.c: New file.
49593         * lib/unictype/pr_id_start.c: New file.
49594         * lib/unictype/pr_ideographic.c: New file.
49595         * lib/unictype/pr_ids_binary_operator.c: New file.
49596         * lib/unictype/pr_ids_trinary_operator.c: New file.
49597         * lib/unictype/pr_ignorable_control.c: New file.
49598         * lib/unictype/pr_iso_control.c: New file.
49599         * lib/unictype/pr_join_control.c: New file.
49600         * lib/unictype/pr_left_of_pair.c: New file.
49601         * lib/unictype/pr_line_separator.c: New file.
49602         * lib/unictype/pr_logical_order_exception.c: New file.
49603         * lib/unictype/pr_lowercase.c: New file.
49604         * lib/unictype/pr_math.c: New file.
49605         * lib/unictype/pr_non_break.c: New file.
49606         * lib/unictype/pr_not_a_character.c: New file.
49607         * lib/unictype/pr_numeric.c: New file.
49608         * lib/unictype/pr_other_alphabetic.c: New file.
49609         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49610         * lib/unictype/pr_other_grapheme_extend.c: New file.
49611         * lib/unictype/pr_other_id_continue.c: New file.
49612         * lib/unictype/pr_other_id_start.c: New file.
49613         * lib/unictype/pr_other_lowercase.c: New file.
49614         * lib/unictype/pr_other_math.c: New file.
49615         * lib/unictype/pr_other_uppercase.c: New file.
49616         * lib/unictype/pr_paired_punctuation.c: New file.
49617         * lib/unictype/pr_paragraph_separator.c: New file.
49618         * lib/unictype/pr_pattern_syntax.c: New file.
49619         * lib/unictype/pr_pattern_white_space.c: New file.
49620         * lib/unictype/pr_private_use.c: New file.
49621         * lib/unictype/pr_punctuation.c: New file.
49622         * lib/unictype/pr_quotation_mark.c: New file.
49623         * lib/unictype/pr_radical.c: New file.
49624         * lib/unictype/pr_sentence_terminal.c: New file.
49625         * lib/unictype/pr_soft_dotted.c: New file.
49626         * lib/unictype/pr_space.c: New file.
49627         * lib/unictype/pr_terminal_punctuation.c: New file.
49628         * lib/unictype/pr_test.c: New file.
49629         * lib/unictype/pr_titlecase.c: New file.
49630         * lib/unictype/pr_unassigned_code_value.c: New file.
49631         * lib/unictype/pr_unified_ideograph.c: New file.
49632         * lib/unictype/pr_uppercase.c: New file.
49633         * lib/unictype/pr_variation_selector.c: New file.
49634         * lib/unictype/pr_white_space.c: New file.
49635         * lib/unictype/pr_xid_continue.c: New file.
49636         * lib/unictype/pr_xid_start.c: New file.
49637         * lib/unictype/pr_zero_width.c: New file.
49638         * lib/unictype/scripts.c: New file.
49639         * lib/unictype/sy_c_ident.c: New file.
49640         * lib/unictype/sy_c_whitespace.c: New file.
49641         * lib/unictype/sy_java_ident.c: New file.
49642         * lib/unictype/sy_java_whitespace.c: New file.
49643
49644         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49645         Unicode 5.0.0.
49646         * lib/unictype/blocks.h: Likewise.
49647         * lib/unictype/categ_C.h: Likewise.
49648         * lib/unictype/categ_Cc.h: Likewise.
49649         * lib/unictype/categ_Cf.h: Likewise.
49650         * lib/unictype/categ_Cn.h: Likewise.
49651         * lib/unictype/categ_Co.h: Likewise.
49652         * lib/unictype/categ_Cs.h: Likewise.
49653         * lib/unictype/categ_L.h: Likewise.
49654         * lib/unictype/categ_Ll.h: Likewise.
49655         * lib/unictype/categ_Lm.h: Likewise.
49656         * lib/unictype/categ_Lo.h: Likewise.
49657         * lib/unictype/categ_Lt.h: Likewise.
49658         * lib/unictype/categ_Lu.h: Likewise.
49659         * lib/unictype/categ_M.h: Likewise.
49660         * lib/unictype/categ_Mc.h: Likewise.
49661         * lib/unictype/categ_Me.h: Likewise.
49662         * lib/unictype/categ_Mn.h: Likewise.
49663         * lib/unictype/categ_N.h: Likewise.
49664         * lib/unictype/categ_Nd.h: Likewise.
49665         * lib/unictype/categ_Nl.h: Likewise.
49666         * lib/unictype/categ_No.h: Likewise.
49667         * lib/unictype/categ_P.h: Likewise.
49668         * lib/unictype/categ_Pc.h: Likewise.
49669         * lib/unictype/categ_Pd.h: Likewise.
49670         * lib/unictype/categ_Pe.h: Likewise.
49671         * lib/unictype/categ_Pf.h: Likewise.
49672         * lib/unictype/categ_Pi.h: Likewise.
49673         * lib/unictype/categ_Po.h: Likewise.
49674         * lib/unictype/categ_Ps.h: Likewise.
49675         * lib/unictype/categ_S.h: Likewise.
49676         * lib/unictype/categ_Sc.h: Likewise.
49677         * lib/unictype/categ_Sk.h: Likewise.
49678         * lib/unictype/categ_Sm.h: Likewise.
49679         * lib/unictype/categ_So.h: Likewise.
49680         * lib/unictype/categ_Z.h: Likewise.
49681         * lib/unictype/categ_Zl.h: Likewise.
49682         * lib/unictype/categ_Zp.h: Likewise.
49683         * lib/unictype/categ_Zs.h: Likewise.
49684         * lib/unictype/categ_of.h: Likewise.
49685         * lib/unictype/combining.h: Likewise.
49686         * lib/unictype/ctype_alnum.h: Likewise.
49687         * lib/unictype/ctype_alpha.h: Likewise.
49688         * lib/unictype/ctype_blank.h: Likewise.
49689         * lib/unictype/ctype_cntrl.h: Likewise.
49690         * lib/unictype/ctype_digit.h: Likewise.
49691         * lib/unictype/ctype_graph.h: Likewise.
49692         * lib/unictype/ctype_lower.h: Likewise.
49693         * lib/unictype/ctype_print.h: Likewise.
49694         * lib/unictype/ctype_punct.h: Likewise.
49695         * lib/unictype/ctype_space.h: Likewise.
49696         * lib/unictype/ctype_upper.h: Likewise.
49697         * lib/unictype/ctype_xdigit.h: Likewise.
49698         * lib/unictype/decdigit.h: Likewise.
49699         * lib/unictype/digit.h: Likewise.
49700         * lib/unictype/mirror.h: Likewise.
49701         * lib/unictype/numeric.h: Likewise.
49702         * lib/unictype/pr_alphabetic.h: Likewise.
49703         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49704         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49705         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49706         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49707         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49708         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49709         * lib/unictype/pr_bidi_control.h: Likewise.
49710         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49711         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49712         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49713         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49714         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49715         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49716         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49717         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49718         * lib/unictype/pr_bidi_pdf.h: Likewise.
49719         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49720         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49721         * lib/unictype/pr_combining.h: Likewise.
49722         * lib/unictype/pr_composite.h: Likewise.
49723         * lib/unictype/pr_currency_symbol.h: Likewise.
49724         * lib/unictype/pr_dash.h: Likewise.
49725         * lib/unictype/pr_decimal_digit.h: Likewise.
49726         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49727         * lib/unictype/pr_deprecated.h: Likewise.
49728         * lib/unictype/pr_diacritic.h: Likewise.
49729         * lib/unictype/pr_extender.h: Likewise.
49730         * lib/unictype/pr_format_control.h: Likewise.
49731         * lib/unictype/pr_grapheme_base.h: Likewise.
49732         * lib/unictype/pr_grapheme_extend.h: Likewise.
49733         * lib/unictype/pr_grapheme_link.h: Likewise.
49734         * lib/unictype/pr_hex_digit.h: Likewise.
49735         * lib/unictype/pr_hyphen.h: Likewise.
49736         * lib/unictype/pr_id_continue.h: Likewise.
49737         * lib/unictype/pr_id_start.h: Likewise.
49738         * lib/unictype/pr_ideographic.h: Likewise.
49739         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49740         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49741         * lib/unictype/pr_ignorable_control.h: Likewise.
49742         * lib/unictype/pr_iso_control.h: Likewise.
49743         * lib/unictype/pr_join_control.h: Likewise.
49744         * lib/unictype/pr_left_of_pair.h: Likewise.
49745         * lib/unictype/pr_line_separator.h: Likewise.
49746         * lib/unictype/pr_logical_order_exception.h: Likewise.
49747         * lib/unictype/pr_lowercase.h: Likewise.
49748         * lib/unictype/pr_math.h: Likewise.
49749         * lib/unictype/pr_non_break.h: Likewise.
49750         * lib/unictype/pr_not_a_character.h: Likewise.
49751         * lib/unictype/pr_numeric.h: Likewise.
49752         * lib/unictype/pr_other_alphabetic.h: Likewise.
49753         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49754         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49755         * lib/unictype/pr_other_id_continue.h: Likewise.
49756         * lib/unictype/pr_other_id_start.h: Likewise.
49757         * lib/unictype/pr_other_lowercase.h: Likewise.
49758         * lib/unictype/pr_other_math.h: Likewise.
49759         * lib/unictype/pr_other_uppercase.h: Likewise.
49760         * lib/unictype/pr_paired_punctuation.h: Likewise.
49761         * lib/unictype/pr_paragraph_separator.h: Likewise.
49762         * lib/unictype/pr_pattern_syntax.h: Likewise.
49763         * lib/unictype/pr_pattern_white_space.h: Likewise.
49764         * lib/unictype/pr_private_use.h: Likewise.
49765         * lib/unictype/pr_punctuation.h: Likewise.
49766         * lib/unictype/pr_quotation_mark.h: Likewise.
49767         * lib/unictype/pr_radical.h: Likewise.
49768         * lib/unictype/pr_sentence_terminal.h: Likewise.
49769         * lib/unictype/pr_soft_dotted.h: Likewise.
49770         * lib/unictype/pr_space.h: Likewise.
49771         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49772         * lib/unictype/pr_titlecase.h: Likewise.
49773         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49774         * lib/unictype/pr_unified_ideograph.h: Likewise.
49775         * lib/unictype/pr_uppercase.h: Likewise.
49776         * lib/unictype/pr_variation_selector.h: Likewise.
49777         * lib/unictype/pr_white_space.h: Likewise.
49778         * lib/unictype/pr_xid_continue.h: Likewise.
49779         * lib/unictype/pr_xid_start.h: Likewise.
49780         * lib/unictype/pr_zero_width.h: Likewise.
49781         * lib/unictype/scripts.h: Likewise.
49782         * lib/unictype/scripts_byname.gperf: Likewise.
49783         * lib/unictype/sy_c_ident.h: Likewise.
49784         * lib/unictype/sy_c_whitespace.h: Likewise.
49785         * lib/unictype/sy_java_ident.h: Likewise.
49786         * lib/unictype/sy_java_whitespace.h: Likewise.
49787
49788         * lib/unictype/Makefile: New file.
49789         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49790         glibc.
49791         * lib/unictype/3level.h: New file, copied from glibc.
49792         * lib/unictype/3levelbit.h: New file.
49793
49794 2007-11-11  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/gperf: New file.
49797         * modules/iconv_open (Depends-on): Add it.
49798         (Makefile.am): Remove the GPERF definition.
49799
49800 2007-11-11  Bruno Haible  <bruno@clisp.org>
49801
49802         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49803         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49804
49805 2007-11-11  Bruno Haible  <bruno@clisp.org>
49806
49807         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49808         (usage): Remove function.
49809
49810 2007-11-11  Bruno Haible  <bruno@clisp.org>
49811
49812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49813         gl_FUNC_CEILF_LIBS.
49814         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49815         gl_FUNC_CEIL_LIBS.
49816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49817         gl_FUNC_CEILL_LIBS.
49818         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49819         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49820         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49821
49822 2007-11-11  Bruno Haible  <bruno@clisp.org>
49823
49824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49825         roundf were declared but do not exist on functions.
49826         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49827         roundl were declared but do not exist on functions.
49828         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49829         HAVE_FLOORL_AND_CEILL, respectively.
49830         Needed for Sun C on Solaris 10.
49831
49832 2007-11-11  Bruno Haible  <bruno@clisp.org>
49833
49834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49835         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49836         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49837         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49839         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49840         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49841         HAVE_DECL_ROUNDF.
49842         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49843         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49845         of HAVE_DECL_ROUND*.
49846         * modules/math (Makefile.am): Update.
49847
49848 2007-11-10  Bruno Haible  <bruno@clisp.org>
49849
49850         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49851         ptrdiff_t as m4/intl.m4.
49852
49853 2007-11-10  Jim Meyering  <meyering@redhat.com>
49854
49855         Avoid link failure for the argmatch test.
49856         * tests/test-argmatch.c (usage): Define function to avoid a link
49857         failure: argmatch_die requires a usage function.
49858
49859 2007-11-09  Bruno Haible  <bruno@clisp.org>
49860
49861         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49862         * doc/functions/vsnprintf.texi: Likewise.
49863         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49864         with a size argument < 2.
49865
49866 2007-11-09  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49869         buffer. Fixes an inefficiency introduced on 2007-11-03.
49870
49871 2007-11-09  Bruno Haible  <bruno@clisp.org>
49872
49873         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49874         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49875
49876 2007-11-08  Jim Meyering  <meyering@redhat.com>
49877
49878         Change cache variable name prefix "jm_" to "gl_" everywhere.
49879         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49880         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49881         * m4/uptime.m4: s/gl_/jm_/
49882
49883 2007-11-07  Bruno Haible  <bruno@clisp.org>
49884
49885         Update to GNU gettext 0.17.
49886         * m4/intl.m4: Update to GNU gettext 0.17.
49887         * m4/po.m4: Likewise.
49888         * modules/gettext (Files): Remove m4/ulonglong.m4.
49889         (configure.ac): Require gettext infrastructure from version 0.17.
49890
49891 2007-11-06  Bruno Haible  <bruno@clisp.org>
49892
49893         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49894         symbolic values are not defined in a public header.
49895         * lib/freadable.c (freadable) [QNX]: Likewise.
49896         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49897         * lib/freading.c (freading) [QNX]: Likewise.
49898         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49899         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49900         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49901         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49902         Reported by Alain Magloire.
49903
49904         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49905
49906 2007-11-05  Bruno Haible  <bruno@clisp.org>
49907
49908         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49909         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49910         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49911         Reported by Eric Blake.
49912
49913 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49914             Bruno Haible  <bruno@clisp.org>
49915
49916         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49917         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49918         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49919         (malloc): Undefine also before including <stdlib.h>.
49920         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49921         Needed on OSF/1 4.0.
49922
49923 2007-11-05  Jim Meyering  <meyering@redhat.com>
49924
49925         git-version-gen: sync from coreutils.
49926         * build-aux/git-version-gen: Add comments.
49927         Change the first '-' to '.' in the snapshot version string,
49928         e.g., 6.9-377-08144 -> 6.9.377-08144
49929         Remove first parameter.
49930         Don't declare a version "-dirty" merely because a time
49931         stamp has changed.
49932
49933 2007-11-04  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/lock.h: Protect all macro definitions containing an 'if'
49936         statement through a "do { ... } while (0)".
49937         * lib/tls.h: Likewise.
49938
49939 2007-11-04  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49942
49943 2007-11-04  Bruno Haible  <bruno@clisp.org>
49944
49945         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49946         * modules/fprintf-posix (Depends-on): Add nocrash.
49947         * modules/snprintf-posix (Depends-on): Likewise.
49948         * modules/sprintf-posix (Depends-on): Likewise.
49949         * modules/vasnprintf-posix (Depends-on): Likewise.
49950         * modules/vasprintf-posix (Depends-on): Likewise.
49951         * modules/vfprintf-posix (Depends-on): Likewise.
49952         * modules/vsnprintf-posix (Depends-on): Likewise.
49953         * modules/vsprintf-posix (Depends-on): Likewise.
49954         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49957         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49958         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49960         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49961
49962 2007-11-04  Bruno Haible  <bruno@clisp.org>
49963
49964         * modules/nocrash: New file.
49965         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49966         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49967
49968 2007-11-04  Bruno Haible  <bruno@clisp.org>
49969
49970         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49971         precision handling.
49972         * tests/test-vasprintf-posix.c (test_function): Likewise.
49973         * tests/test-snprintf-posix.h (test_function): Likewise.
49974         * tests/test-sprintf-posix.h (test_function): Likewise.
49975
49976         Fix *printf behaviour for large precisions on mingw and BeOS.
49977         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49978         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49980         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49982         gl_PRINTF_PRECISION and test its result. Invoke
49983         gl_PREREQ_VASNPRINTF_PRECISION.
49984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49991         * doc/functions/fprintf.texi: Update.
49992         * doc/functions/printf.texi: Update.
49993         * doc/functions/snprintf.texi: Update.
49994         * doc/functions/sprintf.texi: Update.
49995         * doc/functions/vfprintf.texi: Update.
49996         * doc/functions/vprintf.texi: Update.
49997         * doc/functions/vsnprintf.texi: Update.
49998         * doc/functions/vsprintf.texi: Update.
49999
50000 2007-11-04  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50003
50004 2007-11-04  Bruno Haible  <bruno@clisp.org>
50005
50006         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50007         Reported by Sylvain Beucler <beuc@gnu.org>.
50008
50009 2007-11-03  Bruno Haible  <bruno@clisp.org>
50010
50011         * tests/test-fprintf-posix2.sh: New file.
50012         * tests/test-fprintf-posix2.c: New file.
50013         * modules/fprintf-posix-tests (Files): Add them.
50014         (TESTS): Add test-fprintf-posix2.sh.
50015         (configure.ac): Check for getrlimit and setrlimit.
50016         (check_PROGRAMS): Add test-fprintf-posix2.
50017
50018         * tests/test-printf-posix2.sh: New file.
50019         * tests/test-printf-posix2.c: New file.
50020         * modules/printf-posix-tests (Files): Add them.
50021         (TESTS): Add test-printf-posix2.sh.
50022         (configure.ac): Check for getrlimit and setrlimit.
50023         (check_PROGRAMS): Add test-printf-posix2.
50024
50025         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50026         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50027         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50028         (decode_double): New function, copied from decode_long_double.
50029         (scale10_round_decimal_decoded): New function, extracted from
50030         scale10_round_decimal_long_double.
50031         (scale10_round_decimal_long_double): Use it.
50032         (scale10_round_decimal_double): New function.
50033         (floorlog10): New function.
50034         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50036         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50038         gl_PRINTF_ENOMEM and test its result. Invoke
50039         gl_PREREQ_VASNPRINTF_ENOMEM.
50040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50047         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50048         * modules/snprintf-posix (Depends-on): Likewise.
50049         * modules/sprintf-posix (Depends-on): Likewise.
50050         * modules/vasnprintf-posix (Depends-on): Likewise.
50051         * modules/vasprintf-posix (Depends-on): Likewise.
50052         * modules/vfprintf-posix (Depends-on): Likewise.
50053         * modules/vsnprintf-posix (Depends-on): Likewise.
50054         * modules/vsprintf-posix (Depends-on): Likewise.
50055         * doc/functions/fprintf.texi: Update.
50056         * doc/functions/printf.texi: Update.
50057         * doc/functions/snprintf.texi: Update.
50058         * doc/functions/sprintf.texi: Update.
50059         * doc/functions/vfprintf.texi: Update.
50060         * doc/functions/vprintf.texi: Update.
50061         * doc/functions/vsnprintf.texi: Update.
50062         * doc/functions/vsprintf.texi: Update.
50063
50064 2007-11-03  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/frexp-nolibm-tests: New file.
50067
50068         * modules/frexp-nolibm: New file.
50069         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50070
50071 2007-11-03  Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50074         value is C99 compliant.
50075         Needed for OSF/1 5.1.
50076
50077 2007-11-03  Bruno Haible  <bruno@clisp.org>
50078
50079         Fix out-of-memory handling of vasnprintf.
50080         * lib/printf-parse.c: Include <errno.h>.
50081         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50082         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50083         is already set.
50084
50085 2007-11-02  Eric Blake  <ebb9@byu.net>
50086
50087         Fix tests on cygwin.
50088         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50089
50090 2007-11-01  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50093         warning.
50094         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50095         needed for POSIX compatibility.
50096
50097 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50100         for compatibility with GNU.
50101
50102 2007-11-01  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50105         (putenv): Renamed from rpl_putenv. Change argument type from
50106         'const char *' to 'char *'.
50107         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50108         of defining putenv in config.h, just set REPLACE_PUTENV.
50109         * modules/putenv (Depends-on): Add stdlib.
50110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50111         (Include): Use <stdlib.h>.
50112         * lib/stdlib.in.h (putenv): New declaration.
50113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50114         REPLACE_PUTENV.
50115         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50116         REPLACE_PUTENV.
50117         Needed for MacOS X 10.5.0.
50118         Reported by Peter O'Gorman <peter@pogma.com>.
50119
50120 2007-11-01  Jim Meyering  <meyering@redhat.com>
50121
50122         Treat an empty date string exactly like "0".
50123         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50124         if the remaining date string (to be parsed) is empty, use "0".
50125         Reported by Mischa Molhoek and discussed in this thread:
50126         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50127
50128 2007-10-31  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50131         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50132         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50133         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50134         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50135         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50136
50137 2007-10-31  Bruno Haible  <bruno@clisp.org>
50138
50139         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50140         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50141         (AC_TYPE_LONG_LONG_INT): Use it.
50142         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50143         it as well.
50144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50145         to m4/longlong.m4.
50146         * modules/stdint (Files): Remove m4/ulonglong.m4.
50147         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50148         m4/ulonglong.m4.
50149         * modules/strtoumax (Files): Likewise.
50150
50151 2007-10-30  Bruno Haible  <bruno@clisp.org>
50152
50153         * modules/xvasprintf-posix: New file.
50154         Suggested by Eric Blake.
50155
50156 2007-10-30  Bruno Haible  <bruno@clisp.org>
50157
50158         * modules/xprintf-posix-tests: New file.
50159         * tests/test-xprintf-posix.sh: New file.
50160         * tests/test-xprintf-posix.c: New file.
50161         * tests/test-xfprintf-posix.c: New file.
50162
50163         * modules/xprintf-posix: New file.
50164
50165 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50166
50167         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50168         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50169         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50170
50171 2007-10-29  Bruno Haible  <bruno@clisp.org>
50172
50173         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50174         contain the special marker '_cv_'.
50175         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50177         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50179         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50180         Reported by Ralf Wildenhues.
50181
50182 2007-10-29  Bruno Haible  <bruno@clisp.org>
50183
50184         * gnulib-tool (func_import): When --lgpl is not specified, set
50185         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50186         GPLv3.
50187         Reported by Simon Josefsson.
50188
50189 2007-10-28  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50192         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50193         HAVE_DECL_ISFINITE.
50194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50195         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50196         HAVE_DECL_ISFINITE.
50197
50198 2007-10-28  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50201         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50202
50203 2007-10-28  Bruno Haible  <bruno@clisp.org>
50204
50205         Fix link errors with Sun C 5.0 on Solaris 10.
50206         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50207         function is declared but not present in the compiler's libm.
50208         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50209         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50210         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50211         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50212         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50213         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50214         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50216         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50217         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50218         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50219         HAVE_DECL_FLOORL.
50220
50221 2007-10-28  Bruno Haible  <bruno@clisp.org>
50222
50223         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50224         gl_FUNC_FLOORL. Cache the result.
50225         (gl_FUNC_FLOORL): Use it.
50226         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50227         gl_FUNC_CEILL. Cache the result.
50228         (gl_FUNC_CEILL): Use it.
50229
50230         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50231         gl_FUNC_FLOOR. Cache the result.
50232         (gl_FUNC_FLOOR): Use it.
50233         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50234         gl_FUNC_CEIL. Cache the result.
50235         (gl_FUNC_CEIL): Use it.
50236
50237         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50238         gl_FUNC_FLOORF. Cache the result.
50239         (gl_FUNC_FLOORF): Use it.
50240         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50241         gl_FUNC_CEILF. Cache the result.
50242         (gl_FUNC_CEILF): Use it.
50243
50244 2007-10-28  Bruno Haible  <bruno@clisp.org>
50245
50246         * gnulib-tool: Allow specifying the LGPL version number through
50247         --lgpl=2 or --lgpl=3.
50248         (func_usage): Document --lgpl with argument.
50249         Handle --lgpl=... arguments.
50250         (func_import): Recognize also gl_LGPL calls with an argument. When
50251         --lgpl=2 is used and the module's license is just LGPL, report an
50252         error. Set sed_transform_lib_file according to the lgpl variable. In
50253         the generated files, use --lgpl or gl_LGPL invocations with argument,
50254         if necessary.
50255         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50256         an LGPv2+ license.
50257         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50258         gl_LGPL macro.
50259
50260 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50261             Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50264         (u16_uctomb_aux): Likewise.
50265         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50266         !HAVE_INLINE.
50267         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50268
50269 2007-10-28  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50272         Invoke AM_GETTEXT_OPTION if it exists.
50273         * modules/vasprintf: Likewise.
50274         * modules/verror: Likewise.
50275         * modules/xprintf: Likewise.
50276         * modules/xvasprintf: Likewise.
50277
50278 2007-10-27  Ben Pfaff  <blp@gnu.org>
50279
50280         * lib/math.in.h: Define isfinite macro and prototypes for
50281         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50282         implementations.
50283         * m4/math_h.m4: New substitutions for isfinite module.
50284         * lib/isfinite.c: New file.
50285         * m4/isfinite.m4: New file.
50286         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50287         * modules/isfinite: New file.
50288         * modules/isfinite-tests: New file.
50289         * tests/tests-isfinite.c: New file.
50290         * doc/functions/isfinite.texi: Mention isfinite module.
50291         * MODULES.html.sh: Mention new module.
50292
50293 2007-10-27  Ben Pfaff  <blp@gnu.org>
50294
50295         Ralf Wildenhues reported that Tru64 4.0D declares the round
50296         functions but does not have definitions.
50297         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50298         cannot be found in any library, set the output variable to
50299         "missing" instead of "".
50300         * m4/round.m4: Also use our substitute if we cannot find round in
50301         any library, even if it is declared.
50302         * m4/roundf.m4: Likewise for roundf.
50303         * m4/roundl.m4: Likewise for roundl.
50304         * lib/math.in.h: Undefine roundf, round, roundl before defining
50305         their replacements, to allow for hypothetical systems where these
50306         may be defined as macros but not available in libraries.
50307
50308 2007-10-27  Bruno Haible  <bruno@clisp.org>
50309
50310         * doc/gnulib.texi: Invoke @firstparagraphindent.
50311         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50312         changes in gnulib.
50313         (Source changes): New section.
50314
50315 2007-10-26  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50318         borrowed from autoconf.
50319
50320 2007-10-26  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50323         strerror returned the empty string. Needed on HP-UX 11.00.
50324
50325 2007-10-24  Micah Cowan  <micah@cowan.name>
50326
50327         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50328         * build-aux/bootstrap: Remove support for now-unnecessary option,
50329         --cvs-user, and envvars CVS_USER, CVS_RSH.
50330
50331 2007-10-24  Jim Meyering  <meyering@redhat.com>
50332
50333         Avoid diagnostics from sha1sum when there is no cached checksum.
50334         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50335         if the po.s1 file hasn't been created yet.
50336
50337         * build-aux/bootstrap: Sync from coreutils:
50338         2007-10-24  Jim Meyering  <meyering@redhat.com>
50339         Get gnulib from the git repository, not from an obsolete cvs one.
50340         * build-aux/bootstrap: Suggestion from Micah Cowan.
50341         2007-10-04  Jim Meyering  <jim@meyering.net>
50342         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50343         (update_po_files): Work also when there are no .po files in po/.
50344
50345 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50346
50347         * README: Append ".git" to git and cg examples.
50348         Problem reported by Benoit Sigoure.
50349
50350 2007-10-23  Micah Cowan  <micah@cowan.name>
50351
50352         * users.txt: Add wget.
50353
50354 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50355
50356         Fix linking of some unistdio tests on FreeBSD.
50357         * modules/unistdio/u16-vsnprintf-tests
50358         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50359         * modules/unistdio/u16-vsprintf-tests
50360         (test_u16_vsnprintf1_LDADD): Likewise.
50361         * modules/unistdio/u32-vsnprintf-tests
50362         (test_u32_vsnprintf1_LDADD): Likewise.
50363         * modules/unistdio/u32-vsprintf-tests
50364         (test_u32_vsprintf1_LDADD): Likewise.
50365         * modules/unistdio/u8-vsnprintf-tests
50366         (test_u8_vsnprintf1_LDADD): Likewise.
50367         * modules/unistdio/u8-vsprintf-tests
50368         (test_u8_vsprintf1_LDADD): Likewise.
50369         * modules/unistdio/ulc-vsnprintf-tests
50370         (test_ulc_vsnprintf1_LDADD): Likewise.
50371         * modules/unistdio/ulc-vsprintf-tests
50372         (test_ulc_vsprintf1_LDADD): Likewise.
50373
50374         Fix linking of some uniconv tests on FreeBSD.
50375         * modules/uniconv/u16-conv-from-enc-tests
50376         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50377         * modules/uniconv/u16-conv-to-enc-tests
50378         (test_u16_conv_to_enc_LDADD): Likewise.
50379         * modules/uniconv/u16-strconv-from-enc-tests
50380         (test_u16_strconv_from_enc_LDADD): Likewise.
50381         * modules/uniconv/u16-strconv-to-enc-tests
50382         (test_u16_strconv_to_enc_LDADD): Likewise.
50383         * modules/uniconv/u32-conv-from-enc-tests
50384         (test_u32_conv_from_enc_LDADD): Likewise.
50385         * modules/uniconv/u32-conv-to-enc-tests
50386         (test_u32_conv_to_enc_LDADD): Likewise.
50387         * modules/uniconv/u32-strconv-from-enc-tests
50388         (test_u32_strconv_from_enc_LDADD): Likewise.
50389         * modules/uniconv/u32-strconv-to-enc-tests
50390         (test_u32_strconv_to_enc_LDADD): Likewise.
50391         * modules/uniconv/u8-conv-from-enc-tests
50392         (test_u8_conv_from_enc_LDADD): Likewise.
50393         * modules/uniconv/u8-conv-to-enc-tests
50394         (test_u8_conv_to_enc_LDADD): Likewise.
50395         * modules/uniconv/u8-strconv-from-enc-tests
50396         (test_u8_strconv_from_enc_LDADD): Likewise.
50397         * modules/uniconv/u8-strconv-to-enc-tests
50398         (test_u8_strconv_to_enc_LDADD): Likewise.
50399
50400 2007-10-22  Bruno Haible  <bruno@clisp.org>
50401
50402         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50403         size.
50404
50405 2007-10-22  Eric Blake  <ebb9@byu.net>
50406
50407         Tweak x*printf documentation.
50408         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50409         variable name and comments.
50410         Suggested by Bruno Haible.
50411
50412 2007-10-22  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/acl.c (copy_acl): Fix file name in comment.
50415
50416 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50417
50418         Fix Tru64 problem with stdbool.h.
50419         * lib/stdbool.in.h (false, true):
50420         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50421         Don't declare as an enum in this situation; it runs afoul of Tru64.
50422         Problem reported by Steven M. Schweda in
50423         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50424
50425 2007-10-22  Eric Blake  <ebb9@byu.net>
50426
50427         Also wrap vf?printf.
50428         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50429         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50430         (xvprintf, xvfprintf): New functions.
50431
50432 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50433
50434         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50435         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50436
50437         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50438         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50439
50440 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50441
50442         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50443         by Bruno Haible.
50444
50445 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50446
50447         * lib/getloadavg.c
50448         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50449         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50450
50451         * tests/test-i-ring.c: Work for C89.
50452
50453 2007-10-22  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50456         -1u, in preprocessor expression, so that we don't test for the bug
50457         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50459
50460 2007-10-22  Eric Blake  <ebb9@byu.net>
50461
50462         * tests/test-yesno.sh: Silence stderr during test.
50463
50464 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50465
50466         * modules/crypto/gc-camellia: New file.
50467
50468         * m4/gc-camellia.m4: New file.
50469
50470         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50471
50472         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50473
50474 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50475
50476         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50477         --help to stdout.  Reported by sms@antinode.org (Steven
50478         M. Schweda).
50479
50480 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50481
50482         * users.txt: Fix link to libksba.
50483
50484 2007-10-21  Ben Pfaff  <blp@gnu.org>
50485
50486         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50487         round.c roundf implementation that depends on floorf and ceilf to
50488         be tested unconditionally.
50489
50490 2007-10-21  Ben Pfaff  <blp@gnu.org>
50491
50492         * m4/check-libm-func.m4: Removed.
50493         * m4/check-math-lib.m4: New file.
50494         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50495         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50496         definition and lack of AC_LIBOBJ([roundf]).
50497         * m4/roundl.m4: Ditto, and similarly for roundl.
50498         * modules/round: Reference new m4 file.
50499         * modules/roundf: Ditto.
50500         * modules/roundl: Ditto.
50501         * tests/test-round2.c (main): Use ROUND instead of round.
50502         Bug report from Bruno Haible.
50503
50504 2007-10-21  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50507         context.
50508
50509 2007-10-21  Bruno Haible  <bruno@clisp.org>
50510
50511         * tests/test-wcwidth.c (main): Allow negative result for some control
50512         characters.
50513
50514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50515         Needed on OSF/1 5.1.
50516
50517 2007-10-21  Bruno Haible  <bruno@clisp.org>
50518
50519         * tests/test-floorf1.c: Include isnanf.h.
50520         (main): Use isnanf() instead of isnan().
50521         * tests/test-ceilf1.c: Include isnanf.h.
50522         (main): Use isnanf() instead of isnan().
50523         * tests/test-truncf1.c: Include isnanf.h.
50524         (main): Use isnanf() instead of isnan().
50525         * tests/test-roundf1.c: Include isnanf.h.
50526         (main): Use isnanf() instead of isnan().
50527
50528 2007-10-21  Eric Blake  <ebb9@byu.net>
50529
50530         * users.txt: Update URL for m4.
50531
50532 2007-10-21  Bruno Haible  <bruno@clisp.org>
50533
50534         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50535
50536 2007-10-21  Bruno Haible  <bruno@clisp.org>
50537
50538         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50539         Git's management files if the CVS files are not present.
50540
50541 2007-10-20  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50544         gcc-3.4.x.
50545
50546 2007-10-20  Ben Pfaff  <blp@gnu.org>
50547
50548         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50549         implementations.
50550         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50551         * lib/round.c: New file.
50552         * lib/roundf.c: New file.
50553         * lib/roundl.c: New file.
50554         * m4/round.m4: New file.
50555         * m4/roundf.m4: New file.
50556         * m4/roundl.m4: New file.
50557         * m4/check-libm-func-m4: New file.
50558         * modules/math: Replace round, roundf, roundl related @VARS@ in
50559         math.in.h.
50560         * modules/round: New file.
50561         * modules/round-tests: New file.
50562         * modules/roundf: New file.
50563         * modules/roundf-tests: New file.
50564         * modules/roundl: New file.
50565         * modules/roundl-tests: New file.
50566         * tests/test-round1.c: New file.
50567         * tests/test-round2.c: New file.
50568         * tests/test-roundf1.c: New file.
50569         * tests/test-roundf2.c: New file.
50570         * tests/test-roundl.c: New file.
50571         * doc/functions/round.texi: Mention round module.
50572         * doc/functions/roundf.texi: Mention roundf module.
50573         * doc/functions/roundl.texi: Mention roundl module.
50574         * MODULES.html.sh: Mention new modules.
50575         Thanks to Bruno Haible for suggestions.
50576
50577 2007-10-20  Jim Meyering  <meyering@redhat.com>
50578
50579         * lib/xprintf.c: Include <config.h> unconditionally.
50580
50581         Change xprintf's license to GPL.
50582         * modules/xprintf (License): s/LGPL/GPL/, since this module
50583         depends on modules (exit and exitfail) which are GPL.
50584         Suggestion from Bruno Haible.
50585
50586         xprintf fixes.
50587         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50588         Use a clearer diagnostic.
50589         Patch from Bruno Haible.
50590
50591 2007-10-20  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50594         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50596
50597 2007-10-20  Bruno Haible  <bruno@clisp.org>
50598
50599         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50600         precision in the comparison result > x - 1 or similar.
50601         * tests/test-ceilf2.c (correct_result_p): Likewise.
50602         * tests/test-truncf2.c (correct_result_p): Likewise.
50603         * tests/test-trunc2.c (correct_result_p): Likewise.
50604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50605
50606 2007-10-20  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/ceil: New file.
50609         * m4/ceil.m4: New file.
50610         * doc/functions/ceil.texi: Mention the 'ceil' module.
50611
50612 2007-10-20  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/floor: New file.
50615         * m4/floor.m4: New file.
50616         * doc/functions/floor.texi: Mention the 'floor' module.
50617
50618 2007-10-20  Bruno Haible  <bruno@clisp.org>
50619
50620         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50621         of %a.
50622         * modules/floorf-tests (Depends-on): Likewise.
50623         * modules/truncf-tests (Depends-on): Likewise.
50624         * modules/trunc-tests (Depends-on): Likewise.
50625         Reported by Ben Pfaff.
50626
50627 2007-10-19  Jim Meyering  <meyering@redhat.com>
50628
50629         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50630         Don't bother testing specific errno values.  Just test ferror.
50631
50632         New module: xprintf
50633         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50634
50635 2007-10-19  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50638         syntax.
50639         * modules/javaexec (Makefile.am): Likewise.
50640         * modules/relocatable-prog (Makefile.am): Likewise.
50641         Suggested by Jim Meyering.
50642
50643 2007-10-18  Bruno Haible  <bruno@clisp.org>
50644
50645         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50646         Reported by Jim Meyering.
50647
50648 2007-10-18  Eric Blake  <ebb9@byu.net>
50649
50650         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50651
50652 2007-10-18  Bruno Haible  <bruno@clisp.org>
50653
50654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50655         the format string into writable memory. Needed in Fortify conditions.
50656
50657 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50658             Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50661         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50662         * modules/trim (Depends-on): Add mbchar.
50663         (configure.ac): Add gl_FUNC_MBRTOWC.
50664         (Makefile.am): Augment lib_SOURCES.
50665
50666 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         Modify glob.c to use fstatat and dirfd, to simplify it.
50669         Suggested by Eric Blake.
50670         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50671         Don't include <stdbool.h>; not used.
50672         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50673         (link_exists_p): Simplify implementation, since we can now assume
50674         dirfd and fstatat.
50675         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50676
50677 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50678
50679         * gnulib-tool (func_get_dependencies): Fix sed script to
50680         match only tests.
50681
50682 2007-10-17  Bruno Haible  <bruno@clisp.org>
50683
50684         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50685         allow locale names without encoding suffix.
50686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50687         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50688
50689 2007-10-16  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50692         * lib/getgroups.c (getgroups): Likewise.
50693         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50694
50695 2007-10-16  Bruno Haible  <bruno@clisp.org>
50696
50697         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50698         * modules/malloc-posix (License): Likewise.
50699         * modules/realloc-posix (License): Likewise.
50700         * modules/calloc-posix (License): Likewise.
50701         * modules/intprops (License): Change from GPL to LGPL, with
50702         Paul Eggert's approval.
50703
50704 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50705
50706         Merge glibc changes into lib/glob.c.
50707
50708         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50709         2007-10-15 04:59:03 UTC.  Here are the changes:
50710
50711         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50712
50713         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50714
50715         * lib/glob.c: Add some branch prediction throughout.
50716
50717         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50718
50719         [BZ #5103]
50720         * lib/glob.c (glob): Recognize patterns starting \/.
50721
50722         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50723
50724         [BZ #3996]
50725         * lib/glob.c (attribute_hidden): Define if not defined.
50726         (glob): Unescape dirname, filename or username when needed and not
50727         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50728         is NULL.  Handle unescaped [ in pattern without closing ].
50729         Don't pass GLOB_CHECK down to recursive glob for directories.
50730         (__glob_pattern_type): New function.
50731         (__glob_pattern_p): Implement using __glob_pattern_type.
50732         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50733         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50734         Remove unreachable code.
50735
50736         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50737
50738         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50739         explain why there are no leaks.
50740
50741         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50742
50743         [BZ #3253]
50744         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50745         time, rather allocate increasingly bigger arrays of pointers, if
50746         possible with alloca, if too large with malloc.
50747
50748 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50751         Problem reported by H.Merijn Brand in
50752         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50753         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50755
50756 2007-10-15  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50759         with explicit rpl_ prefix.
50760         * lib/fopen.c (fopen): Likewise.
50761         * lib/freopen.c (freopen): Likewise.
50762         * lib/iconv.c (iconv): Likewise.
50763         * lib/iconv_close.c (iconv_close): Likewise.
50764
50765 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50766
50767         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50768
50769 2007-10-15  Bruno Haible  <bruno@clisp.org>
50770
50771         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50772         <stddef.h> instead of <stdlib.h> since we only need NULL.
50773         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50774
50775 2007-10-15  Bruno Haible  <bruno@clisp.org>
50776
50777         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50778         Replace paragraph talking about LIBOBJS.
50779         Reported by Colin Watson <cjwatson@debian.org>.
50780
50781 2007-10-15  Bruno Haible  <bruno@clisp.org>
50782
50783         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50784         <stdlib.h> before using NULL.
50785
50786 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50787
50788         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50789         Reported by Albert Chin <china@thewrittenword.com>.
50790
50791 2007-10-14  Bruno Haible  <bruno@clisp.org>
50792
50793         * modules/iconv_open-utf-tests: New file.
50794         * tests/test-iconv-utf.c: New file.
50795
50796         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50797         * modules/iconv_open-utf: New file.
50798         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50799         (iconv, iconv_close): New declarations.
50800         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50801         be defined.
50802         (iconv_open): Add special handling of conversion between UTF-8 and
50803         UTF-{16,32}{BE,LE}.
50804         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50805         * lib/iconv_close.c: New file.
50806         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50807         gl_FUNC_ICONV_OPEN.
50808         (gl_FUNC_ICONV_OPEN): Use it.
50809         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50810         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50811         and REPLACE_ICONV_UTF.
50812         * modules/iconv_open (Depends-on): Add c-strcase.
50813         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50814         ICONV_CONST.
50815         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50816
50817 2007-10-13  Albert Chin  <china@thewrittenword.com>
50818             Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50821         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50822
50823 2007-10-13  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50826         defined, use the ISO C99 inline semantics.
50827         * lib/argp.h (ARGP_EI): Likewise.
50828
50829 2007-10-13  Bruno Haible  <bruno@clisp.org>
50830
50831         Handle 'inline' change in gcc 4.3.0.
50832         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50833         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50834         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50835         argp_fmtstream_point): Disable 'extern' declaration if the function
50836         definition is going to be provided inline.
50837         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50838         semantics, not the ISO C99 inline semantics.
50839         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50840         'extern' declaration if the function definition is going to be provided
50841         inline.
50842         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50843         the GNU C inline semantics, not the ISO C99 inline semantics. With
50844         GCC 4.2, avoid a warning.
50845
50846 2007-10-13  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/freading.h (freading): Enable the use of __freading for
50849         glibc >= 2.7.
50850         * lib/freading.c (freading): Likewise.
50851
50852 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50855         "warning: C99 inline functions are not supported; using GNU89".
50856
50857 2007-10-12  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50860         of 2.
50861         * tests/test-ceilf2.c: New file.
50862         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50863
50864         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50865         * modules/ceilf-tests: Update.
50866
50867 2007-10-12  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50870         of 2.
50871         * tests/test-floorf2.c: New file.
50872         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50873
50874         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50875         * modules/floorf-tests: Update.
50876
50877 2007-10-12  Bruno Haible  <bruno@clisp.org>
50878
50879         * tests/test-trunc2.c: New file.
50880         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50881
50882         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50883         * modules/trunc-tests: Update.
50884
50885 2007-10-12  Bruno Haible  <bruno@clisp.org>
50886
50887         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50888         of 2.
50889         * tests/test-truncf2.c: New file.
50890         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50891
50892         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50893         * modules/truncf-tests: Update.
50894
50895 2007-10-11  Eric Blake  <ebb9@byu.net>
50896
50897         Don't claim strerror is broken on Interix.
50898         * doc/functions/strerror.texi (strerror): Known broken systems are
50899         now Solaris 8, and not Interix.
50900         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50901         Interix on cross-compile.
50902         Reported by Martin Koeppe in
50903         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50904
50905 2007-10-11  Bruno Haible  <bruno@clisp.org>
50906
50907         * modules/i-ring-tests: New file.
50908         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50909         instead of assert.
50910
50911 2007-10-11  Bruno Haible  <bruno@clisp.org>
50912
50913         * modules/filenamecat-tests: New file.
50914         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50915         * lib/filenamecat.c: Remove test code.
50916
50917 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50918
50919         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50920
50921         * lib/strerror.c: Include <string.h> always, to test interface,
50922         and to remove the need for the dummy.
50923         Include intprops.h to compute width instead of doing it ourselves
50924         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50925         (strerror): Define it to return NULL if there's no system strerror.
50926         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50927         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50928         ancient pre-strerror Unix systems well any more.  Saying "unknown
50929         system error" is enough.
50930         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50931         simpler strerror.c implementation.
50932         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50933         Simplify the tests to reflect the simpler strerror implementation.
50934         * modules/strerror (Depends-on): Add intprops.
50935
50936 2007-10-09  Eric Blake  <ebb9@byu.net>
50937
50938         Silence test-fpending.
50939         * modules/fpending-tests (Files): Add wrapper script.
50940         * tests/test-fpending.sh: New file.
50941
50942 2007-10-09  Bruno Haible  <bruno@clisp.org>
50943
50944         * MODULES.html.sh (func_module): Don't create a hyperlink for
50945         function names like 'printf_frexp'.
50946         (Misc): Add crc, memxor.
50947         (Characteristics of floating types): New section.
50948         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50949         isnanf-nolibm, signbit, trunc, truncf, truncl.
50950         (Enhancements for ISO C 99 functions): New subsection Input/output.
50951         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50952         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50953         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50954         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50955         (Enhancements for POSIX:2001 functions): Add chdir-long.
50956         (File system functions): Add areadlink, chdir-safer, read-file.
50957         Remove cycle-check.
50958         (File system as inode set): New section.
50959         (Date and time): Add gethrxtime.
50960         (Multithreading): Add openmp.
50961         (Internationalization functions): Add localename.
50962         (Unicode string functions): Add unistr/u*-mbsnlen.
50963         (Support for maintaining and releasing projects): Add git-version-gen.
50964         (Lone files): Remove directories.
50965
50966 2007-10-08  Ben Pfaff  <blp@gnu.org>
50967
50968         * lib/xmalloca.h: Fix typo in comment.
50969
50970 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50973         when avoiding problems with integer overflow.  Use a portable test
50974         instead.
50975
50976 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50977
50978         * modules/dummy (License): Change to LGPLv2+.
50979         * modules/float (License): Likewise
50980         * modules/realloc (License): Likewise
50981         * modules/stdlib (License): Likewise
50982
50983 2007-10-07  Bruno Haible  <bruno@clisp.org>
50984
50985         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50986         * floor.c (TWO_MANT_DIG): Likewise.
50987         * ceil.c (TWO_MANT_DIG): Likewise.
50988         Reported by Ben Pfaff.
50989
50990 2007-10-07  Bruno Haible  <bruno@clisp.org>
50991
50992         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50993         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50994         * lib/frexp.c (FUNC): Likewise.
50995         * lib/printf-frexp.h (printf_frexp): Likewise.
50996         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50997         * lib/printf-frexp.c (FUNC): Likewise.
50998         Suggested by Jim Meyering.
50999
51000 2007-10-07  Jim Meyering  <meyering@redhat.com>
51001
51002         Make xnanosleep's integer overflow test more robust.
51003         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51004         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51005
51006 2007-10-07  Bruno Haible  <bruno@clisp.org>
51007
51008         * NEWS: Mention the license change.
51009
51010         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51011         abbreviations in the modules files.
51012
51013         Change copyright notice from GPLv2+ to GPLv3+.
51014         * README: Change copyright notice.
51015         * MODULES.html.sh: Likewise.
51016         * build-aux/bootstrap.conf: Likewise.
51017         * build-aux/config.libpath: Likewise.
51018         * build-aux/csharpcomp.sh.in: Likewise.
51019         * build-aux/csharpexec.sh.in: Likewise.
51020         * build-aux/install-reloc: Likewise.
51021         * build-aux/javacomp.sh.in: Likewise.
51022         * build-aux/javaexec.sh.in: Likewise.
51023         * build-aux/ldd.sh.in: Likewise.
51024         * build-aux/reloc-ldflags: Likewise.
51025         * build-aux/relocatable.sh.in: Likewise.
51026         * build-aux/x-to-1.in: Likewise.
51027         * check-module: Likewise.
51028         * config/srclistvars.sh: Likewise.
51029         * gnulib-tool: Likewise.
51030         * lib/acl-internal.h: Likewise.
51031         * lib/acl.c: Likewise.
51032         * lib/acl.h: Likewise.
51033         * lib/acl_entries.c: Likewise.
51034         * lib/areadlink-with-size.c: Likewise.
51035         * lib/areadlink.c: Likewise.
51036         * lib/areadlink.h: Likewise.
51037         * lib/argmatch.c: Likewise.
51038         * lib/argmatch.h: Likewise.
51039         * lib/argp-ba.c: Likewise.
51040         * lib/argp-eexst.c: Likewise.
51041         * lib/argp-fmtstream.c: Likewise.
51042         * lib/argp-fmtstream.h: Likewise.
51043         * lib/argp-fs-xinl.c: Likewise.
51044         * lib/argp-help.c: Likewise.
51045         * lib/argp-namefrob.h: Likewise.
51046         * lib/argp-parse.c: Likewise.
51047         * lib/argp-pin.c: Likewise.
51048         * lib/argp-pv.c: Likewise.
51049         * lib/argp-pvh.c: Likewise.
51050         * lib/argp-xinl.c: Likewise.
51051         * lib/argp.h: Likewise.
51052         * lib/at-func.c: Likewise.
51053         * lib/atanl.c: Likewise.
51054         * lib/backupfile.c: Likewise.
51055         * lib/backupfile.h: Likewise.
51056         * lib/basename.c: Likewise.
51057         * lib/binary-io.h: Likewise.
51058         * lib/byteswap.in.h: Likewise.
51059         * lib/c-stack.c: Likewise.
51060         * lib/c-stack.h: Likewise.
51061         * lib/c-strcasestr.c: Likewise.
51062         * lib/c-strcasestr.h: Likewise.
51063         * lib/c-strstr.c: Likewise.
51064         * lib/c-strstr.h: Likewise.
51065         * lib/c-strtod.c: Likewise.
51066         * lib/calloc.c: Likewise.
51067         * lib/canon-host.c: Likewise.
51068         * lib/canon-host.h: Likewise.
51069         * lib/canonicalize-lgpl.c: Likewise.
51070         * lib/canonicalize.c: Likewise.
51071         * lib/canonicalize.h: Likewise.
51072         * lib/ceil.c: Likewise.
51073         * lib/ceilf.c: Likewise.
51074         * lib/ceill.c: Likewise.
51075         * lib/chdir-long.c: Likewise.
51076         * lib/chdir-long.h: Likewise.
51077         * lib/chdir-safer.c: Likewise.
51078         * lib/chdir-safer.h: Likewise.
51079         * lib/chown.c: Likewise.
51080         * lib/classpath.c: Likewise.
51081         * lib/classpath.h: Likewise.
51082         * lib/clean-temp.c: Likewise.
51083         * lib/clean-temp.h: Likewise.
51084         * lib/cloexec.c: Likewise.
51085         * lib/close-stream.c: Likewise.
51086         * lib/closein.c: Likewise.
51087         * lib/closein.h: Likewise.
51088         * lib/closeout.c: Likewise.
51089         * lib/closeout.h: Likewise.
51090         * lib/concat-filename.c: Likewise.
51091         * lib/copy-file.c: Likewise.
51092         * lib/copy-file.h: Likewise.
51093         * lib/count-one-bits.h: Likewise.
51094         * lib/crc.c: Likewise.
51095         * lib/crc.h: Likewise.
51096         * lib/creat-safer.c: Likewise.
51097         * lib/csharpcomp.c: Likewise.
51098         * lib/csharpcomp.h: Likewise.
51099         * lib/csharpexec.c: Likewise.
51100         * lib/csharpexec.h: Likewise.
51101         * lib/cycle-check.c: Likewise.
51102         * lib/cycle-check.h: Likewise.
51103         * lib/diacrit.c: Likewise.
51104         * lib/diacrit.h: Likewise.
51105         * lib/diffseq.h: Likewise.
51106         * lib/dirchownmod.c: Likewise.
51107         * lib/dirent.in.h: Likewise.
51108         * lib/dirfd.c: Likewise.
51109         * lib/dirfd.h: Likewise.
51110         * lib/dirname.c: Likewise.
51111         * lib/dirname.h: Likewise.
51112         * lib/dummy.c: Likewise.
51113         * lib/dup-safer.c: Likewise.
51114         * lib/dup2.c: Likewise.
51115         * lib/eealloc.h: Likewise.
51116         * lib/error.c: Likewise.
51117         * lib/error.h: Likewise.
51118         * lib/euidaccess.c: Likewise.
51119         * lib/exclude.c: Likewise.
51120         * lib/exclude.h: Likewise.
51121         * lib/execute.c: Likewise.
51122         * lib/execute.h: Likewise.
51123         * lib/exitfail.c: Likewise.
51124         * lib/exitfail.h: Likewise.
51125         * lib/expl.c: Likewise.
51126         * lib/fatal-signal.c: Likewise.
51127         * lib/fatal-signal.h: Likewise.
51128         * lib/fbufmode.c: Likewise.
51129         * lib/fbufmode.h: Likewise.
51130         * lib/fchdir.c: Likewise.
51131         * lib/fchmodat.c: Likewise.
51132         * lib/fchownat.c: Likewise.
51133         * lib/fcntl--.h: Likewise.
51134         * lib/fcntl-safer.h: Likewise.
51135         * lib/fcntl.in.h: Likewise.
51136         * lib/fd-safer.c: Likewise.
51137         * lib/fflush.c: Likewise.
51138         * lib/file-has-acl.c: Likewise.
51139         * lib/file-set.c: Likewise.
51140         * lib/file-type.c: Likewise.
51141         * lib/file-type.h: Likewise.
51142         * lib/fileblocks.c: Likewise.
51143         * lib/filemode.c: Likewise.
51144         * lib/filemode.h: Likewise.
51145         * lib/filename.h: Likewise.
51146         * lib/filenamecat.c: Likewise.
51147         * lib/filenamecat.h: Likewise.
51148         * lib/findprog.c: Likewise.
51149         * lib/findprog.h: Likewise.
51150         * lib/float.in.h: Likewise.
51151         * lib/floor.c: Likewise.
51152         * lib/floorf.c: Likewise.
51153         * lib/floorl.c: Likewise.
51154         * lib/fopen-safer.c: Likewise.
51155         * lib/fopen.c: Likewise.
51156         * lib/fpending.c: Likewise.
51157         * lib/fpending.h: Likewise.
51158         * lib/fprintf.c: Likewise.
51159         * lib/fprintftime.h: Likewise.
51160         * lib/fpucw.h: Likewise.
51161         * lib/fpurge.c: Likewise.
51162         * lib/fpurge.h: Likewise.
51163         * lib/freadable.c: Likewise.
51164         * lib/freadable.h: Likewise.
51165         * lib/freadahead.c: Likewise.
51166         * lib/freadahead.h: Likewise.
51167         * lib/freading.c: Likewise.
51168         * lib/freading.h: Likewise.
51169         * lib/free.c: Likewise.
51170         * lib/freopen.c: Likewise.
51171         * lib/frexp.c: Likewise.
51172         * lib/frexpl.c: Likewise.
51173         * lib/fseek.c: Likewise.
51174         * lib/fseterr.c: Likewise.
51175         * lib/fseterr.h: Likewise.
51176         * lib/fstatat.c: Likewise.
51177         * lib/fstrcmp.c: Likewise.
51178         * lib/fstrcmp.h: Likewise.
51179         * lib/fsusage.c: Likewise.
51180         * lib/fsusage.h: Likewise.
51181         * lib/ftell.c: Likewise.
51182         * lib/ftello.c: Likewise.
51183         * lib/fts-cycle.c: Likewise.
51184         * lib/fts.c: Likewise.
51185         * lib/fts_.h: Likewise.
51186         * lib/full-read.c: Likewise.
51187         * lib/full-read.h: Likewise.
51188         * lib/full-write.c: Likewise.
51189         * lib/full-write.h: Likewise.
51190         * lib/fwritable.c: Likewise.
51191         * lib/fwritable.h: Likewise.
51192         * lib/fwriteerror.c: Likewise.
51193         * lib/fwriteerror.h: Likewise.
51194         * lib/fwriting.c: Likewise.
51195         * lib/fwriting.h: Likewise.
51196         * lib/gcd.c: Likewise.
51197         * lib/gcd.h: Likewise.
51198         * lib/getcwd.c: Likewise.
51199         * lib/getdate.h: Likewise.
51200         * lib/getdate.y: Likewise.
51201         * lib/getdomainname.c: Likewise.
51202         * lib/getdomainname.h: Likewise.
51203         * lib/getgroups.c: Likewise.
51204         * lib/gethostname.c: Likewise.
51205         * lib/gethrxtime.c: Likewise.
51206         * lib/gethrxtime.h: Likewise.
51207         * lib/getloadavg.c: Likewise.
51208         * lib/getndelim2.c: Likewise.
51209         * lib/getndelim2.h: Likewise.
51210         * lib/getnline.c: Likewise.
51211         * lib/getnline.h: Likewise.
51212         * lib/getopt.c: Likewise.
51213         * lib/getopt.in.h: Likewise.
51214         * lib/getopt1.c: Likewise.
51215         * lib/getopt_int.h: Likewise.
51216         * lib/getpagesize.h: Likewise.
51217         * lib/getsubopt.c: Likewise.
51218         * lib/gettime.c: Likewise.
51219         * lib/getugroups.c: Likewise.
51220         * lib/getugroups.h: Likewise.
51221         * lib/getusershell.c: Likewise.
51222         * lib/gl_anyavltree_list1.h: Likewise.
51223         * lib/gl_anyavltree_list2.h: Likewise.
51224         * lib/gl_anyhash_list1.h: Likewise.
51225         * lib/gl_anyhash_list2.h: Likewise.
51226         * lib/gl_anylinked_list1.h: Likewise.
51227         * lib/gl_anylinked_list2.h: Likewise.
51228         * lib/gl_anyrbtree_list1.h: Likewise.
51229         * lib/gl_anyrbtree_list2.h: Likewise.
51230         * lib/gl_anytree_list1.h: Likewise.
51231         * lib/gl_anytree_list2.h: Likewise.
51232         * lib/gl_anytree_oset.h: Likewise.
51233         * lib/gl_anytreehash_list1.h: Likewise.
51234         * lib/gl_anytreehash_list2.h: Likewise.
51235         * lib/gl_array_list.c: Likewise.
51236         * lib/gl_array_list.h: Likewise.
51237         * lib/gl_array_oset.c: Likewise.
51238         * lib/gl_array_oset.h: Likewise.
51239         * lib/gl_avltree_list.c: Likewise.
51240         * lib/gl_avltree_list.h: Likewise.
51241         * lib/gl_avltree_oset.c: Likewise.
51242         * lib/gl_avltree_oset.h: Likewise.
51243         * lib/gl_avltreehash_list.c: Likewise.
51244         * lib/gl_avltreehash_list.h: Likewise.
51245         * lib/gl_carray_list.c: Likewise.
51246         * lib/gl_carray_list.h: Likewise.
51247         * lib/gl_linked_list.c: Likewise.
51248         * lib/gl_linked_list.h: Likewise.
51249         * lib/gl_linkedhash_list.c: Likewise.
51250         * lib/gl_linkedhash_list.h: Likewise.
51251         * lib/gl_list.c: Likewise.
51252         * lib/gl_list.h: Likewise.
51253         * lib/gl_oset.c: Likewise.
51254         * lib/gl_oset.h: Likewise.
51255         * lib/gl_rbtree_list.c: Likewise.
51256         * lib/gl_rbtree_list.h: Likewise.
51257         * lib/gl_rbtree_oset.c: Likewise.
51258         * lib/gl_rbtree_oset.h: Likewise.
51259         * lib/gl_rbtreehash_list.c: Likewise.
51260         * lib/gl_rbtreehash_list.h: Likewise.
51261         * lib/gl_sublist.c: Likewise.
51262         * lib/gl_sublist.h: Likewise.
51263         * lib/group-member.c: Likewise.
51264         * lib/group-member.h: Likewise.
51265         * lib/hard-locale.c: Likewise.
51266         * lib/hard-locale.h: Likewise.
51267         * lib/hash-pjw.c: Likewise.
51268         * lib/hash-pjw.h: Likewise.
51269         * lib/hash-triple.c: Likewise.
51270         * lib/hash.c: Likewise.
51271         * lib/hash.h: Likewise.
51272         * lib/human.c: Likewise.
51273         * lib/human.h: Likewise.
51274         * lib/i-ring.c: Likewise.
51275         * lib/i-ring.h: Likewise.
51276         * lib/idcache.c: Likewise.
51277         * lib/imaxabs.c: Likewise.
51278         * lib/imaxdiv.c: Likewise.
51279         * lib/inet_pton.c: Likewise.
51280         * lib/inet_pton.h: Likewise.
51281         * lib/intprops.h: Likewise.
51282         * lib/inttostr.c: Likewise.
51283         * lib/inttostr.h: Likewise.
51284         * lib/inttypes.in.h: Likewise.
51285         * lib/isapipe.c: Likewise.
51286         * lib/isdir.c: Likewise.
51287         * lib/isnan.c: Likewise.
51288         * lib/isnan.h: Likewise.
51289         * lib/isnanf.c: Likewise.
51290         * lib/isnanf.h: Likewise.
51291         * lib/isnanl-nolibm.h: Likewise.
51292         * lib/isnanl.c: Likewise.
51293         * lib/isnanl.h: Likewise.
51294         * lib/javacomp.c: Likewise.
51295         * lib/javacomp.h: Likewise.
51296         * lib/javaexec.c: Likewise.
51297         * lib/javaexec.h: Likewise.
51298         * lib/javaversion.c: Likewise.
51299         * lib/javaversion.h: Likewise.
51300         * lib/javaversion.java: Likewise.
51301         * lib/lbrkprop.h: Likewise.
51302         * lib/lchmod.h: Likewise.
51303         * lib/lchown.c: Likewise.
51304         * lib/ldexpl.c: Likewise.
51305         * lib/linebreak.c: Likewise.
51306         * lib/linebreak.h: Likewise.
51307         * lib/linebuffer.c: Likewise.
51308         * lib/linebuffer.h: Likewise.
51309         * lib/locale.in.h: Likewise.
51310         * lib/logl.c: Likewise.
51311         * lib/long-options.c: Likewise.
51312         * lib/long-options.h: Likewise.
51313         * lib/lstat.c: Likewise.
51314         * lib/lstat.h: Likewise.
51315         * lib/math.in.h: Likewise.
51316         * lib/mbchar.c: Likewise.
51317         * lib/mbchar.h: Likewise.
51318         * lib/mbfile.h: Likewise.
51319         * lib/mbiter.h: Likewise.
51320         * lib/mbscasecmp.c: Likewise.
51321         * lib/mbscasestr.c: Likewise.
51322         * lib/mbschr.c: Likewise.
51323         * lib/mbscspn.c: Likewise.
51324         * lib/mbslen.c: Likewise.
51325         * lib/mbsncasecmp.c: Likewise.
51326         * lib/mbsnlen.c: Likewise.
51327         * lib/mbspbrk.c: Likewise.
51328         * lib/mbspcasecmp.c: Likewise.
51329         * lib/mbsrchr.c: Likewise.
51330         * lib/mbssep.c: Likewise.
51331         * lib/mbsspn.c: Likewise.
51332         * lib/mbsstr.c: Likewise.
51333         * lib/mbstok_r.c: Likewise.
51334         * lib/mbswidth.c: Likewise.
51335         * lib/mbswidth.h: Likewise.
51336         * lib/mbuiter.h: Likewise.
51337         * lib/memcasecmp.c: Likewise.
51338         * lib/memcasecmp.h: Likewise.
51339         * lib/memchr.c: Likewise.
51340         * lib/memcmp.c: Likewise.
51341         * lib/memcoll.c: Likewise.
51342         * lib/memcoll.h: Likewise.
51343         * lib/memcpy.c: Likewise.
51344         * lib/memrchr.c: Likewise.
51345         * lib/mkancesdirs.c: Likewise.
51346         * lib/mkdir-p.c: Likewise.
51347         * lib/mkdir-p.h: Likewise.
51348         * lib/mkdir.c: Likewise.
51349         * lib/mkdirat.c: Likewise.
51350         * lib/mkdtemp.c: Likewise.
51351         * lib/mkstemp-safer.c: Likewise.
51352         * lib/mkstemp.c: Likewise.
51353         * lib/modechange.c: Likewise.
51354         * lib/modechange.h: Likewise.
51355         * lib/mountlist.c: Likewise.
51356         * lib/mountlist.h: Likewise.
51357         * lib/mpsort.c: Likewise.
51358         * lib/nanosleep.c: Likewise.
51359         * lib/obstack.c: Likewise.
51360         * lib/obstack.h: Likewise.
51361         * lib/open-safer.c: Likewise.
51362         * lib/open.c: Likewise.
51363         * lib/openat-die.c: Likewise.
51364         * lib/openat-priv.h: Likewise.
51365         * lib/openat-proc.c: Likewise.
51366         * lib/openat.c: Likewise.
51367         * lib/openat.h: Likewise.
51368         * lib/pagealign_alloc.c: Likewise.
51369         * lib/pagealign_alloc.h: Likewise.
51370         * lib/physmem.c: Likewise.
51371         * lib/physmem.h: Likewise.
51372         * lib/pipe-safer.c: Likewise.
51373         * lib/pipe.c: Likewise.
51374         * lib/pipe.h: Likewise.
51375         * lib/posixtm.c: Likewise.
51376         * lib/posixtm.h: Likewise.
51377         * lib/posixver.c: Likewise.
51378         * lib/printf-frexp.c: Likewise.
51379         * lib/printf-frexp.h: Likewise.
51380         * lib/printf-frexpl.c: Likewise.
51381         * lib/printf-frexpl.h: Likewise.
51382         * lib/printf.c: Likewise.
51383         * lib/progname.c: Likewise.
51384         * lib/progname.h: Likewise.
51385         * lib/progreloc.c: Likewise.
51386         * lib/putenv.c: Likewise.
51387         * lib/quote.c: Likewise.
51388         * lib/quote.h: Likewise.
51389         * lib/quotearg.c: Likewise.
51390         * lib/quotearg.h: Likewise.
51391         * lib/raise.c: Likewise.
51392         * lib/readline.c: Likewise.
51393         * lib/readline.h: Likewise.
51394         * lib/readlink.c: Likewise.
51395         * lib/readtokens.c: Likewise.
51396         * lib/readtokens.h: Likewise.
51397         * lib/readtokens0.c: Likewise.
51398         * lib/readtokens0.h: Likewise.
51399         * lib/readutmp.c: Likewise.
51400         * lib/readutmp.h: Likewise.
51401         * lib/realloc.c: Likewise.
51402         * lib/relocwrapper.c: Likewise.
51403         * lib/rename-dest-slash.c: Likewise.
51404         * lib/rename.c: Likewise.
51405         * lib/rmdir.c: Likewise.
51406         * lib/rpmatch.c: Likewise.
51407         * lib/safe-read.c: Likewise.
51408         * lib/safe-read.h: Likewise.
51409         * lib/safe-write.c: Likewise.
51410         * lib/safe-write.h: Likewise.
51411         * lib/same-inode.h: Likewise.
51412         * lib/same.c: Likewise.
51413         * lib/same.h: Likewise.
51414         * lib/save-cwd.c: Likewise.
51415         * lib/save-cwd.h: Likewise.
51416         * lib/savedir.c: Likewise.
51417         * lib/savedir.h: Likewise.
51418         * lib/savewd.c: Likewise.
51419         * lib/savewd.h: Likewise.
51420         * lib/search.in.h: Likewise.
51421         * lib/setenv.c: Likewise.
51422         * lib/setenv.h: Likewise.
51423         * lib/settime.c: Likewise.
51424         * lib/sh-quote.c: Likewise.
51425         * lib/sh-quote.h: Likewise.
51426         * lib/sig2str.c: Likewise.
51427         * lib/sig2str.h: Likewise.
51428         * lib/signal.in.h: Likewise.
51429         * lib/signbitd.c: Likewise.
51430         * lib/signbitf.c: Likewise.
51431         * lib/signbitl.c: Likewise.
51432         * lib/sigprocmask.c: Likewise.
51433         * lib/sincosl.c: Likewise.
51434         * lib/sleep.c: Likewise.
51435         * lib/sprintf.c: Likewise.
51436         * lib/sqrtl.c: Likewise.
51437         * lib/stat-time.h: Likewise.
51438         * lib/stdio--.h: Likewise.
51439         * lib/stdio-safer.h: Likewise.
51440         * lib/stdlib--.h: Likewise.
51441         * lib/stdlib-safer.h: Likewise.
51442         * lib/stdlib.in.h: Likewise.
51443         * lib/stpcpy.c: Likewise.
51444         * lib/stpncpy.c: Likewise.
51445         * lib/strchrnul.c: Likewise.
51446         * lib/strcspn.c: Likewise.
51447         * lib/strerror.c: Likewise.
51448         * lib/strftime.c: Likewise.
51449         * lib/strftime.h: Likewise.
51450         * lib/striconveh.c: Likewise.
51451         * lib/striconveh.h: Likewise.
51452         * lib/striconveha.c: Likewise.
51453         * lib/striconveha.h: Likewise.
51454         * lib/stripslash.c: Likewise.
51455         * lib/strnlen1.c: Likewise.
51456         * lib/strnlen1.h: Likewise.
51457         * lib/strtod.c: Likewise.
51458         * lib/strtoimax.c: Likewise.
51459         * lib/strtok_r.c: Likewise.
51460         * lib/strtol.c: Likewise.
51461         * lib/strtoll.c: Likewise.
51462         * lib/strtoul.c: Likewise.
51463         * lib/strtoull.c: Likewise.
51464         * lib/sysexits.in.h: Likewise.
51465         * lib/tempname.c: Likewise.
51466         * lib/tempname.h: Likewise.
51467         * lib/timespec.h: Likewise.
51468         * lib/tls.c: Likewise.
51469         * lib/tls.h: Likewise.
51470         * lib/tmpdir.c: Likewise.
51471         * lib/tmpdir.h: Likewise.
51472         * lib/tmpfile-safer.c: Likewise.
51473         * lib/tmpfile.c: Likewise.
51474         * lib/trigl.c: Likewise.
51475         * lib/trigl.h: Likewise.
51476         * lib/trim.c: Likewise.
51477         * lib/trim.h: Likewise.
51478         * lib/trunc.c: Likewise.
51479         * lib/truncf.c: Likewise.
51480         * lib/truncl.c: Likewise.
51481         * lib/tsearch.c: Likewise.
51482         * lib/unicodeio.c: Likewise.
51483         * lib/unicodeio.h: Likewise.
51484         * lib/unistd--.h: Likewise.
51485         * lib/unistd-safer.h: Likewise.
51486         * lib/unistdio/ulc-fprintf.c: Likewise.
51487         * lib/unistdio/ulc-vfprintf.c: Likewise.
51488         * lib/unlinkdir.c: Likewise.
51489         * lib/unlinkdir.h: Likewise.
51490         * lib/unlocked-io.h: Likewise.
51491         * lib/unsetenv.c: Likewise.
51492         * lib/userspec.c: Likewise.
51493         * lib/utime.c: Likewise.
51494         * lib/utimecmp.c: Likewise.
51495         * lib/utimecmp.h: Likewise.
51496         * lib/utimens.c: Likewise.
51497         * lib/verify.h: Likewise.
51498         * lib/verror.c: Likewise.
51499         * lib/verror.h: Likewise.
51500         * lib/version-etc-fsf.c: Likewise.
51501         * lib/version-etc.c: Likewise.
51502         * lib/version-etc.h: Likewise.
51503         * lib/vfprintf.c: Likewise.
51504         * lib/vprintf.c: Likewise.
51505         * lib/vsprintf.c: Likewise.
51506         * lib/w32spawn.h: Likewise.
51507         * lib/wait-process.c: Likewise.
51508         * lib/wait-process.h: Likewise.
51509         * lib/wcwidth.c: Likewise.
51510         * lib/write-any-file.c: Likewise.
51511         * lib/xalloc-die.c: Likewise.
51512         * lib/xalloc.h: Likewise.
51513         * lib/xasprintf.c: Likewise.
51514         * lib/xgetcwd.c: Likewise.
51515         * lib/xgetcwd.h: Likewise.
51516         * lib/xgetdomainname.c: Likewise.
51517         * lib/xgetdomainname.h: Likewise.
51518         * lib/xgethostname.c: Likewise.
51519         * lib/xmalloc.c: Likewise.
51520         * lib/xmalloca.c: Likewise.
51521         * lib/xmalloca.h: Likewise.
51522         * lib/xmemcoll.c: Likewise.
51523         * lib/xnanosleep.c: Likewise.
51524         * lib/xreadlink.c: Likewise.
51525         * lib/xreadlink.h: Likewise.
51526         * lib/xsetenv.c: Likewise.
51527         * lib/xsetenv.h: Likewise.
51528         * lib/xstriconv.c: Likewise.
51529         * lib/xstriconv.h: Likewise.
51530         * lib/xstrndup.c: Likewise.
51531         * lib/xstrndup.h: Likewise.
51532         * lib/xstrtod.c: Likewise.
51533         * lib/xstrtod.h: Likewise.
51534         * lib/xstrtol-error.c: Likewise.
51535         * lib/xstrtol.c: Likewise.
51536         * lib/xstrtol.h: Likewise.
51537         * lib/xtime.h: Likewise.
51538         * lib/xvasprintf.c: Likewise.
51539         * lib/xvasprintf.h: Likewise.
51540         * lib/yesno.c: Likewise.
51541         * lib/yesno.h: Likewise.
51542         * posix-modules: Likewise.
51543         * tests/test-alloca-opt.c: Likewise.
51544         * tests/test-arcfour.c: Likewise.
51545         * tests/test-arctwo.c: Likewise.
51546         * tests/test-argmatch.c: Likewise.
51547         * tests/test-argp-2.sh: Likewise.
51548         * tests/test-argp.c: Likewise.
51549         * tests/test-arpa_inet.c: Likewise.
51550         * tests/test-array_list.c: Likewise.
51551         * tests/test-array_oset.c: Likewise.
51552         * tests/test-atexit.c: Likewise.
51553         * tests/test-avltree_list.c: Likewise.
51554         * tests/test-avltree_oset.c: Likewise.
51555         * tests/test-avltreehash_list.c: Likewise.
51556         * tests/test-base64.c: Likewise.
51557         * tests/test-binary-io.c: Likewise.
51558         * tests/test-byteswap.c: Likewise.
51559         * tests/test-c-ctype.c: Likewise.
51560         * tests/test-c-strcasecmp.c: Likewise.
51561         * tests/test-c-strcasestr.c: Likewise.
51562         * tests/test-c-strncasecmp.c: Likewise.
51563         * tests/test-c-strstr.c: Likewise.
51564         * tests/test-canonicalize-lgpl.c: Likewise.
51565         * tests/test-canonicalize.c: Likewise.
51566         * tests/test-carray_list.c: Likewise.
51567         * tests/test-ceilf.c: Likewise.
51568         * tests/test-ceill.c: Likewise.
51569         * tests/test-count-one-bits.c: Likewise.
51570         * tests/test-crc.c: Likewise.
51571         * tests/test-dirname.c: Likewise.
51572         * tests/test-fbufmode.c: Likewise.
51573         * tests/test-fcntl.c: Likewise.
51574         * tests/test-fflush.c: Likewise.
51575         * tests/test-floorf.c: Likewise.
51576         * tests/test-floorl.c: Likewise.
51577         * tests/test-fopen.c: Likewise.
51578         * tests/test-fprintf-posix.c: Likewise.
51579         * tests/test-fprintf-posix.h: Likewise.
51580         * tests/test-fpurge.c: Likewise.
51581         * tests/test-freadable.c: Likewise.
51582         * tests/test-freadahead.c: Likewise.
51583         * tests/test-freading.c: Likewise.
51584         * tests/test-freopen.c: Likewise.
51585         * tests/test-frexp.c: Likewise.
51586         * tests/test-frexpl.c: Likewise.
51587         * tests/test-fseek.c: Likewise.
51588         * tests/test-fseeko.c: Likewise.
51589         * tests/test-fseterr.c: Likewise.
51590         * tests/test-fstrcmp.c: Likewise.
51591         * tests/test-ftell.c: Likewise.
51592         * tests/test-ftello.c: Likewise.
51593         * tests/test-fwritable.c: Likewise.
51594         * tests/test-fwriting.c: Likewise.
51595         * tests/test-getaddrinfo.c: Likewise.
51596         * tests/test-getpass.c: Likewise.
51597         * tests/test-gettimeofday.c: Likewise.
51598         * tests/test-hmac-md5.c: Likewise.
51599         * tests/test-hmac-sha1.c: Likewise.
51600         * tests/test-iconv.c: Likewise.
51601         * tests/test-iconvme.c: Likewise.
51602         * tests/test-inttypes.c: Likewise.
51603         * tests/test-isnan.c: Likewise.
51604         * tests/test-isnanf.c: Likewise.
51605         * tests/test-isnanl-nolibm.c: Likewise.
51606         * tests/test-isnanl.c: Likewise.
51607         * tests/test-isnanl.h: Likewise.
51608         * tests/test-ldexpl.c: Likewise.
51609         * tests/test-linked_list.c: Likewise.
51610         * tests/test-linkedhash_list.c: Likewise.
51611         * tests/test-locale.c: Likewise.
51612         * tests/test-localename.c: Likewise.
51613         * tests/test-lock.c: Likewise.
51614         * tests/test-lseek.c: Likewise.
51615         * tests/test-malloca.c: Likewise.
51616         * tests/test-math.c: Likewise.
51617         * tests/test-mbscasecmp.c: Likewise.
51618         * tests/test-mbscasestr1.c: Likewise.
51619         * tests/test-mbscasestr2.c: Likewise.
51620         * tests/test-mbscasestr3.c: Likewise.
51621         * tests/test-mbscasestr4.c: Likewise.
51622         * tests/test-mbschr.c: Likewise.
51623         * tests/test-mbscspn.c: Likewise.
51624         * tests/test-mbsncasecmp.c: Likewise.
51625         * tests/test-mbspbrk.c: Likewise.
51626         * tests/test-mbspcasecmp.c: Likewise.
51627         * tests/test-mbsrchr.c: Likewise.
51628         * tests/test-mbsspn.c: Likewise.
51629         * tests/test-mbsstr1.c: Likewise.
51630         * tests/test-mbsstr2.c: Likewise.
51631         * tests/test-mbsstr3.c: Likewise.
51632         * tests/test-md5.c: Likewise.
51633         * tests/test-memmem.c: Likewise.
51634         * tests/test-netinet_in.c: Likewise.
51635         * tests/test-open.c: Likewise.
51636         * tests/test-printf-frexp.c: Likewise.
51637         * tests/test-printf-frexpl.c: Likewise.
51638         * tests/test-printf-posix.c: Likewise.
51639         * tests/test-printf-posix.h: Likewise.
51640         * tests/test-rbtree_list.c: Likewise.
51641         * tests/test-rbtree_oset.c: Likewise.
51642         * tests/test-rbtreehash_list.c: Likewise.
51643         * tests/test-read-file.c: Likewise.
51644         * tests/test-rijndael.c: Likewise.
51645         * tests/test-search.c: Likewise.
51646         * tests/test-signbit.c: Likewise.
51647         * tests/test-sleep.c: Likewise.
51648         * tests/test-snprintf-posix.c: Likewise.
51649         * tests/test-snprintf-posix.h: Likewise.
51650         * tests/test-snprintf.c: Likewise.
51651         * tests/test-sprintf-posix.c: Likewise.
51652         * tests/test-sprintf-posix.h: Likewise.
51653         * tests/test-stat-time.c: Likewise.
51654         * tests/test-stdbool.c: Likewise.
51655         * tests/test-stdint.c: Likewise.
51656         * tests/test-stdio.c: Likewise.
51657         * tests/test-stdlib.c: Likewise.
51658         * tests/test-stpncpy.c: Likewise.
51659         * tests/test-strcasestr.c: Likewise.
51660         * tests/test-striconv.c: Likewise.
51661         * tests/test-striconveh.c: Likewise.
51662         * tests/test-striconveha.c: Likewise.
51663         * tests/test-string.c: Likewise.
51664         * tests/test-sys_select.c: Likewise.
51665         * tests/test-sys_socket.c: Likewise.
51666         * tests/test-sys_stat.c: Likewise.
51667         * tests/test-sys_time.c: Likewise.
51668         * tests/test-sysexits.c: Likewise.
51669         * tests/test-time.c: Likewise.
51670         * tests/test-tls.c: Likewise.
51671         * tests/test-trunc.c: Likewise.
51672         * tests/test-truncf.c: Likewise.
51673         * tests/test-truncl.c: Likewise.
51674         * tests/test-unistd.c: Likewise.
51675         * tests/test-vasnprintf-posix.c: Likewise.
51676         * tests/test-vasnprintf-posix2.c: Likewise.
51677         * tests/test-vasnprintf.c: Likewise.
51678         * tests/test-vasprintf-posix.c: Likewise.
51679         * tests/test-vasprintf.c: Likewise.
51680         * tests/test-verify.c: Likewise.
51681         * tests/test-vfprintf-posix.c: Likewise.
51682         * tests/test-vprintf-posix.c: Likewise.
51683         * tests/test-vsnprintf-posix.c: Likewise.
51684         * tests/test-vsnprintf.c: Likewise.
51685         * tests/test-vsprintf-posix.c: Likewise.
51686         * tests/test-wchar.c: Likewise.
51687         * tests/test-wctype.c: Likewise.
51688         * tests/test-wcwidth.c: Likewise.
51689         * tests/test-xstrtol.c: Likewise.
51690         * tests/test-xvasprintf.c: Likewise.
51691         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51692         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51693         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51694         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51695         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51696         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51697         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51698         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51699         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51700         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51701         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51702         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51703         * tests/uniname/test-uninames.c: Likewise.
51704         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51705         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51706         * tests/unistdio/test-u16-printf1.h: Likewise.
51707         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51708         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51709         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51710         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51711         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51712         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51713         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51714         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51715         * tests/unistdio/test-u32-printf1.h: Likewise.
51716         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51717         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51718         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51719         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51720         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51721         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51722         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51723         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51724         * tests/unistdio/test-u8-printf1.h: Likewise.
51725         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51726         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51727         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51728         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51729         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51730         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51731         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51732         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51733         * tests/unistdio/test-ulc-printf1.h: Likewise.
51734         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51735         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51736         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51737         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51738         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51739         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51740         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51741         * tests/uniwidth/test-u16-width.c: Likewise.
51742         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51743         * tests/uniwidth/test-u32-width.c: Likewise.
51744         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51745         * tests/uniwidth/test-u8-width.c: Likewise.
51746         * tests/uniwidth/test-uc_width.c: Likewise.
51747         * config/srclist-update: Likewise.
51748         (fixlicense): Update to GPLv3+.
51749
51750         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51751         * tests/test-tsearch.c: Change copyright notice.
51752
51753         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51754         * lib/c-strcaseeq.h: Change copyright notice.
51755         * lib/streq.h: Likewise.
51756         * lib/uniconv.h: Likewise.
51757         * lib/uniconv/u-conv-from-enc.h: Likewise.
51758         * lib/uniconv/u-conv-to-enc.h: Likewise.
51759         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51760         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51761         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51762         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51763         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51764         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51765         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51766         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51767         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51768         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51769         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51770         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51771         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51772         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51773         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51774         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51775         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51776         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51777         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51778         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51779         * lib/uniname.h: Likewise.
51780         * lib/uniname/uniname.c: Likewise.
51781         * lib/unistdio.h: Likewise.
51782         * lib/unistdio/u-asnprintf.h: Likewise.
51783         * lib/unistdio/u-asprintf.h: Likewise.
51784         * lib/unistdio/u-printf-args.c: Likewise.
51785         * lib/unistdio/u-printf-args.h: Likewise.
51786         * lib/unistdio/u-printf-parse.h: Likewise.
51787         * lib/unistdio/u-snprintf.h: Likewise.
51788         * lib/unistdio/u-sprintf.h: Likewise.
51789         * lib/unistdio/u-vasprintf.h: Likewise.
51790         * lib/unistdio/u-vsnprintf.h: Likewise.
51791         * lib/unistdio/u-vsprintf.h: Likewise.
51792         * lib/unistdio/u16-asnprintf.c: Likewise.
51793         * lib/unistdio/u16-asprintf.c: Likewise.
51794         * lib/unistdio/u16-printf-parse.c: Likewise.
51795         * lib/unistdio/u16-snprintf.c: Likewise.
51796         * lib/unistdio/u16-sprintf.c: Likewise.
51797         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51798         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51799         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51800         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51801         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51802         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51803         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51804         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51805         * lib/unistdio/u16-vasnprintf.c: Likewise.
51806         * lib/unistdio/u16-vasprintf.c: Likewise.
51807         * lib/unistdio/u16-vsnprintf.c: Likewise.
51808         * lib/unistdio/u16-vsprintf.c: Likewise.
51809         * lib/unistdio/u32-asnprintf.c: Likewise.
51810         * lib/unistdio/u32-asprintf.c: Likewise.
51811         * lib/unistdio/u32-printf-parse.c: Likewise.
51812         * lib/unistdio/u32-snprintf.c: Likewise.
51813         * lib/unistdio/u32-sprintf.c: Likewise.
51814         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51815         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51816         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51817         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51818         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51819         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51820         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51821         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51822         * lib/unistdio/u32-vasnprintf.c: Likewise.
51823         * lib/unistdio/u32-vasprintf.c: Likewise.
51824         * lib/unistdio/u32-vsnprintf.c: Likewise.
51825         * lib/unistdio/u32-vsprintf.c: Likewise.
51826         * lib/unistdio/u8-asnprintf.c: Likewise.
51827         * lib/unistdio/u8-asprintf.c: Likewise.
51828         * lib/unistdio/u8-printf-parse.c: Likewise.
51829         * lib/unistdio/u8-snprintf.c: Likewise.
51830         * lib/unistdio/u8-sprintf.c: Likewise.
51831         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51832         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51833         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51834         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51835         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51836         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51837         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51838         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51839         * lib/unistdio/u8-vasnprintf.c: Likewise.
51840         * lib/unistdio/u8-vasprintf.c: Likewise.
51841         * lib/unistdio/u8-vsnprintf.c: Likewise.
51842         * lib/unistdio/u8-vsprintf.c: Likewise.
51843         * lib/unistdio/ulc-asnprintf.c: Likewise.
51844         * lib/unistdio/ulc-asprintf.c: Likewise.
51845         * lib/unistdio/ulc-printf-parse.c: Likewise.
51846         * lib/unistdio/ulc-snprintf.c: Likewise.
51847         * lib/unistdio/ulc-sprintf.c: Likewise.
51848         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51849         * lib/unistdio/ulc-vasprintf.c: Likewise.
51850         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51851         * lib/unistdio/ulc-vsprintf.c: Likewise.
51852         * lib/unistr.h: Likewise.
51853         * lib/unistr/u-cpy-alloc.h: Likewise.
51854         * lib/unistr/u-cpy.h: Likewise.
51855         * lib/unistr/u-endswith.h: Likewise.
51856         * lib/unistr/u-move.h: Likewise.
51857         * lib/unistr/u-set.h: Likewise.
51858         * lib/unistr/u-startswith.h: Likewise.
51859         * lib/unistr/u-stpcpy.h: Likewise.
51860         * lib/unistr/u-stpncpy.h: Likewise.
51861         * lib/unistr/u-strcat.h: Likewise.
51862         * lib/unistr/u-strcpy.h: Likewise.
51863         * lib/unistr/u-strcspn.h: Likewise.
51864         * lib/unistr/u-strdup.h: Likewise.
51865         * lib/unistr/u-strlen.h: Likewise.
51866         * lib/unistr/u-strncat.h: Likewise.
51867         * lib/unistr/u-strncpy.h: Likewise.
51868         * lib/unistr/u-strnlen.h: Likewise.
51869         * lib/unistr/u-strpbrk.h: Likewise.
51870         * lib/unistr/u-strspn.h: Likewise.
51871         * lib/unistr/u-strstr.h: Likewise.
51872         * lib/unistr/u-strtok.h: Likewise.
51873         * lib/unistr/u16-check.c: Likewise.
51874         * lib/unistr/u16-chr.c: Likewise.
51875         * lib/unistr/u16-cmp.c: Likewise.
51876         * lib/unistr/u16-cpy-alloc.c: Likewise.
51877         * lib/unistr/u16-cpy.c: Likewise.
51878         * lib/unistr/u16-endswith.c: Likewise.
51879         * lib/unistr/u16-mblen.c: Likewise.
51880         * lib/unistr/u16-mbsnlen.c: Likewise.
51881         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51882         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51883         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51884         * lib/unistr/u16-mbtouc.c: Likewise.
51885         * lib/unistr/u16-mbtoucr.c: Likewise.
51886         * lib/unistr/u16-move.c: Likewise.
51887         * lib/unistr/u16-next.c: Likewise.
51888         * lib/unistr/u16-prev.c: Likewise.
51889         * lib/unistr/u16-set.c: Likewise.
51890         * lib/unistr/u16-startswith.c: Likewise.
51891         * lib/unistr/u16-stpcpy.c: Likewise.
51892         * lib/unistr/u16-stpncpy.c: Likewise.
51893         * lib/unistr/u16-strcat.c: Likewise.
51894         * lib/unistr/u16-strchr.c: Likewise.
51895         * lib/unistr/u16-strcmp.c: Likewise.
51896         * lib/unistr/u16-strcpy.c: Likewise.
51897         * lib/unistr/u16-strcspn.c: Likewise.
51898         * lib/unistr/u16-strdup.c: Likewise.
51899         * lib/unistr/u16-strlen.c: Likewise.
51900         * lib/unistr/u16-strmblen.c: Likewise.
51901         * lib/unistr/u16-strmbtouc.c: Likewise.
51902         * lib/unistr/u16-strncat.c: Likewise.
51903         * lib/unistr/u16-strncmp.c: Likewise.
51904         * lib/unistr/u16-strncpy.c: Likewise.
51905         * lib/unistr/u16-strnlen.c: Likewise.
51906         * lib/unistr/u16-strpbrk.c: Likewise.
51907         * lib/unistr/u16-strrchr.c: Likewise.
51908         * lib/unistr/u16-strspn.c: Likewise.
51909         * lib/unistr/u16-strstr.c: Likewise.
51910         * lib/unistr/u16-strtok.c: Likewise.
51911         * lib/unistr/u16-to-u32.c: Likewise.
51912         * lib/unistr/u16-to-u8.c: Likewise.
51913         * lib/unistr/u16-uctomb-aux.c: Likewise.
51914         * lib/unistr/u16-uctomb.c: Likewise.
51915         * lib/unistr/u32-check.c: Likewise.
51916         * lib/unistr/u32-chr.c: Likewise.
51917         * lib/unistr/u32-cmp.c: Likewise.
51918         * lib/unistr/u32-cpy-alloc.c: Likewise.
51919         * lib/unistr/u32-cpy.c: Likewise.
51920         * lib/unistr/u32-endswith.c: Likewise.
51921         * lib/unistr/u32-mblen.c: Likewise.
51922         * lib/unistr/u32-mbsnlen.c: Likewise.
51923         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51924         * lib/unistr/u32-mbtouc.c: Likewise.
51925         * lib/unistr/u32-mbtoucr.c: Likewise.
51926         * lib/unistr/u32-move.c: Likewise.
51927         * lib/unistr/u32-next.c: Likewise.
51928         * lib/unistr/u32-prev.c: Likewise.
51929         * lib/unistr/u32-set.c: Likewise.
51930         * lib/unistr/u32-startswith.c: Likewise.
51931         * lib/unistr/u32-stpcpy.c: Likewise.
51932         * lib/unistr/u32-stpncpy.c: Likewise.
51933         * lib/unistr/u32-strcat.c: Likewise.
51934         * lib/unistr/u32-strchr.c: Likewise.
51935         * lib/unistr/u32-strcmp.c: Likewise.
51936         * lib/unistr/u32-strcpy.c: Likewise.
51937         * lib/unistr/u32-strcspn.c: Likewise.
51938         * lib/unistr/u32-strdup.c: Likewise.
51939         * lib/unistr/u32-strlen.c: Likewise.
51940         * lib/unistr/u32-strmblen.c: Likewise.
51941         * lib/unistr/u32-strmbtouc.c: Likewise.
51942         * lib/unistr/u32-strncat.c: Likewise.
51943         * lib/unistr/u32-strncmp.c: Likewise.
51944         * lib/unistr/u32-strncpy.c: Likewise.
51945         * lib/unistr/u32-strnlen.c: Likewise.
51946         * lib/unistr/u32-strpbrk.c: Likewise.
51947         * lib/unistr/u32-strrchr.c: Likewise.
51948         * lib/unistr/u32-strspn.c: Likewise.
51949         * lib/unistr/u32-strstr.c: Likewise.
51950         * lib/unistr/u32-strtok.c: Likewise.
51951         * lib/unistr/u32-to-u16.c: Likewise.
51952         * lib/unistr/u32-to-u8.c: Likewise.
51953         * lib/unistr/u32-uctomb.c: Likewise.
51954         * lib/unistr/u8-check.c: Likewise.
51955         * lib/unistr/u8-chr.c: Likewise.
51956         * lib/unistr/u8-cmp.c: Likewise.
51957         * lib/unistr/u8-cpy-alloc.c: Likewise.
51958         * lib/unistr/u8-cpy.c: Likewise.
51959         * lib/unistr/u8-endswith.c: Likewise.
51960         * lib/unistr/u8-mblen.c: Likewise.
51961         * lib/unistr/u8-mbsnlen.c: Likewise.
51962         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51963         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51964         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51965         * lib/unistr/u8-mbtouc.c: Likewise.
51966         * lib/unistr/u8-mbtoucr.c: Likewise.
51967         * lib/unistr/u8-move.c: Likewise.
51968         * lib/unistr/u8-next.c: Likewise.
51969         * lib/unistr/u8-prev.c: Likewise.
51970         * lib/unistr/u8-set.c: Likewise.
51971         * lib/unistr/u8-startswith.c: Likewise.
51972         * lib/unistr/u8-stpcpy.c: Likewise.
51973         * lib/unistr/u8-stpncpy.c: Likewise.
51974         * lib/unistr/u8-strcat.c: Likewise.
51975         * lib/unistr/u8-strchr.c: Likewise.
51976         * lib/unistr/u8-strcmp.c: Likewise.
51977         * lib/unistr/u8-strcpy.c: Likewise.
51978         * lib/unistr/u8-strcspn.c: Likewise.
51979         * lib/unistr/u8-strdup.c: Likewise.
51980         * lib/unistr/u8-strlen.c: Likewise.
51981         * lib/unistr/u8-strmblen.c: Likewise.
51982         * lib/unistr/u8-strmbtouc.c: Likewise.
51983         * lib/unistr/u8-strncat.c: Likewise.
51984         * lib/unistr/u8-strncmp.c: Likewise.
51985         * lib/unistr/u8-strncpy.c: Likewise.
51986         * lib/unistr/u8-strnlen.c: Likewise.
51987         * lib/unistr/u8-strpbrk.c: Likewise.
51988         * lib/unistr/u8-strrchr.c: Likewise.
51989         * lib/unistr/u8-strspn.c: Likewise.
51990         * lib/unistr/u8-strstr.c: Likewise.
51991         * lib/unistr/u8-strtok.c: Likewise.
51992         * lib/unistr/u8-to-u16.c: Likewise.
51993         * lib/unistr/u8-to-u32.c: Likewise.
51994         * lib/unistr/u8-uctomb-aux.c: Likewise.
51995         * lib/unistr/u8-uctomb.c: Likewise.
51996         * lib/unitypes.h: Likewise.
51997         * lib/uniwidth.h: Likewise.
51998         * lib/uniwidth/cjk.h: Likewise.
51999         * lib/uniwidth/u16-strwidth.c: Likewise.
52000         * lib/uniwidth/u16-width.c: Likewise.
52001         * lib/uniwidth/u32-strwidth.c: Likewise.
52002         * lib/uniwidth/u32-width.c: Likewise.
52003         * lib/uniwidth/u8-strwidth.c: Likewise.
52004         * lib/uniwidth/u8-width.c: Likewise.
52005         * lib/uniwidth/width.c: Likewise.
52006
52007 2007-10-07  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52010         The file is still under LGPL (see modules/inttypes).
52011
52012 2007-10-06  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/trunc (Dependencies): Add 'extensions'.
52015         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52016         Reported by Ben Pfaff <blp@gnu.org>.
52017
52018 2007-10-06  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/freopen-tests: New file.
52021         * tests/test-freopen.c: New file.
52022
52023         * modules/fopen-tests: New file.
52024         * tests/test-fopen.c: New file.
52025
52026         * modules/fopen: New file.
52027         * lib/fopen.c: New file.
52028         * m4/fopen.m4: New file.
52029         * modules/freopen: New file.
52030         * lib/freopen.c: New file.
52031         * m4/freopen.m4: New file.
52032         * lib/stdio.in.h (fopen, freopen): New declarations.
52033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52034         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52035         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52036         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52037         * doc/functions/fopen.texi: Mention the 'fopen' module.
52038         * doc/functions/freopen.texi: Mention the 'freopen' module.
52039
52040 2007-10-06  Bruno Haible  <bruno@clisp.org>
52041
52042         * modules/open-tests: New file.
52043         * tests/test-open.c: New file.
52044
52045         * modules/open: New file.
52046         * lib/open.c: New file.
52047         * m4/open.m4: New file.
52048         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52049         lib/open.c does.
52050         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52051         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52052         macros.
52053         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52054         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52055         REPLACE_OPEN.
52056         * doc/functions/open.texi: Mention the 'open' module.
52057
52058 2007-10-04  Bruno Haible  <bruno@clisp.org>
52059
52060         * modules/ceill-tests: New file.
52061         * tests/test-ceill.c: New file.
52062
52063         * modules/ceill: New file.
52064         * lib/ceill.c: Replace entire file.
52065         * m4/ceill.m4: New file.
52066         * lib/math.in.h (ceill): Replace declaration.
52067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52068         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52069         * doc/functions/ceill.texi: Mention the 'ceill' module.
52070         * modules/mathl (Files): Remove lib/ceill.c.
52071         (Depends-on): Add ceill.
52072
52073 2007-10-04  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/ceilf-tests: New file.
52076         * tests/test-ceilf.c: New file.
52077
52078         * modules/ceilf: New file.
52079         * lib/ceil.c: New file.
52080         * lib/ceilf.c: New file.
52081         * m4/ceilf.m4: New file.
52082         * lib/math.in.h (ceilf): New declaration.
52083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52084         HAVE_DECL_CEILF.
52085         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52086         HAVE_DECL_CEILF.
52087         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52088
52089 2007-10-04  Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/floorl-tests: New file.
52092         * tests/test-floorl.c: New file.
52093
52094         * modules/floorl: New file.
52095         * lib/floorl.c: Replace entire file.
52096         * m4/floorl.m4: New file.
52097         * lib/math.in.h (floorl): Replace declaration.
52098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52099         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52100         * doc/functions/floorl.texi: Mention the 'floorl' module.
52101         * modules/mathl (Files): Remove lib/floorl.c.
52102         (Depends-on): Add floorl.
52103
52104 2007-10-04  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/floorf-tests: New file.
52107         * tests/test-floorf.c: New file.
52108
52109         * modules/floorf: New file.
52110         * lib/floor.c: New file.
52111         * lib/floorf.c: New file.
52112         * m4/floorf.m4: New file.
52113         * lib/math.in.h (floorf): New declaration.
52114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52115         HAVE_DECL_FLOORF.
52116         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52117         HAVE_DECL_FLOORF.
52118         * doc/functions/floorf.texi: Mention the 'floorf' module.
52119
52120 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52121             Bruno Haible  <bruno@clisp.org>
52122
52123         Advertise for the Git server instead of the CVS server.
52124         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52125         repository instead of the CVS one.
52126         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52127         about all VCS systems generically.
52128         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52129
52130 2007-10-04  Bruno Haible  <bruno@clisp.org>
52131
52132         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52133         means.
52134         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52135
52136 2007-10-04  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/truncl-tests: New file.
52139         * tests/test-truncl.c: New file.
52140
52141         * modules/truncl: New file.
52142         * lib/truncl.c: New file.
52143         * m4/truncl.m4: New file.
52144         * lib/math.in.h (truncl): New declaration.
52145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52146         HAVE_DECL_TRUNCL.
52147         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52148         HAVE_DECL_TRUNCL.
52149         * doc/functions/truncl.texi: Mention the 'truncl' module.
52150
52151 2007-10-04  Bruno Haible  <bruno@clisp.org>
52152
52153         * modules/truncf-tests: New file.
52154         * tests/test-truncf.c: New file.
52155
52156         * modules/truncf: New file.
52157         * lib/trunc.c: Make paramerizable through USE_* macros.
52158         * lib/truncf.c: New file.
52159         * m4/truncf.m4: New file.
52160         * lib/math.in.h (truncf): New declaration.
52161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52162         HAVE_DECL_TRUNCF.
52163         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52164         HAVE_DECL_TRUNCF.
52165         * doc/functions/truncf.texi: Mention the 'truncf' module.
52166
52167 2007-10-03  Bruno Haible  <bruno@clisp.org>
52168
52169         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52170         augmentation also for tests modules.
52171         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52172         * modules/atexit-tests (Makefile.am): Likewise.
52173         * modules/binary-io-tests (Makefile.am): Likewise.
52174         * modules/c-strcase-tests (Makefile.am): Likewise.
52175         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52176         * modules/canonicalize-tests (Makefile.am): Likewise.
52177         * modules/closein-tests (Makefile.am): Likewise.
52178         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52179         * modules/freadahead-tests (Makefile.am): Likewise.
52180         * modules/fseek-tests (Makefile.am): Likewise.
52181         * modules/fseeko-tests (Makefile.am): Likewise.
52182         * modules/ftell-tests (Makefile.am): Likewise.
52183         * modules/ftello-tests (Makefile.am): Likewise.
52184         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52185         * modules/isnanl-tests (Makefile.am): Likewise.
52186         * modules/lseek-tests (Makefile.am): Likewise.
52187         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52188         * modules/mbscasestr-tests (Makefile.am): Likewise.
52189         * modules/mbschr-tests (Makefile.am): Likewise.
52190         * modules/mbscspn-tests (Makefile.am): Likewise.
52191         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52192         * modules/mbspbrk-tests (Makefile.am): Likewise.
52193         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52194         * modules/mbsrchr-tests (Makefile.am): Likewise.
52195         * modules/mbsspn-tests (Makefile.am): Likewise.
52196         * modules/mbsstr-tests (Makefile.am): Likewise.
52197         * modules/printf-posix-tests (Makefile.am): Likewise.
52198         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52199         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52200         * modules/tsearch-tests (Makefile.am): Likewise.
52201         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52202         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52203         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52204         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52205         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52206         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52207         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52208         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52209         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52210         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52211         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52212         * modules/xstrtol-tests (Makefile.am): Likewise.
52213         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52214         * modules/yesno-tests (Makefile.am): Likewise.
52215
52216 2007-10-03  Bruno Haible  <bruno@clisp.org>
52217
52218         * modules/trunc-tests: New file.
52219         * tests/test-trunc.c: New file.
52220
52221         * modules/trunc: New file.
52222         * lib/trunc.c: New file.
52223         * m4/trunc.m4: New file.
52224         * lib/math.in.h (trunc): New declaration.
52225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52226         HAVE_DECL_TRUNC.
52227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52228         HAVE_DECL_TRUNC.
52229         * doc/functions/trunc.texi: Mention the 'trunc' module.
52230
52231 2007-10-03  Bruno Haible  <bruno@clisp.org>
52232
52233         * tests/test-fpending.c: New file, mostly copied
52234         from coreutils/lib/t-fpending.c.
52235         * modules/fpending-tests: New file.
52236
52237 2007-10-03  Bruno Haible  <bruno@clisp.org>
52238
52239         Port the stdio extensions to QNX (untested).
52240         * lib/fseterr.c (fseterr): Add support for QNX.
52241         * lib/fbufmode.c (fbufmode): Likewise.
52242         * lib/freadable.c (freadable): Likewise.
52243         * lib/fwritable.c (fwritable): Likewise.
52244         * lib/freading.c (freading): Likewise.
52245         * lib/fwriting.c (fwriting): Likewise.
52246         * lib/freadahead.c (freadahed): Likewise.
52247         * lib/fpurge.c (fpurge): Likewise.
52248         * lib/fseeko.c (rpl_fseeko): Likewise.
52249
52250 2007-10-03  Bruno Haible  <bruno@clisp.org>
52251             Jim Meyering  <jim@meyering.net>
52252             Eric Blake  <ebb9@byu.net>
52253
52254         * doc/relocatable.texi: Use @command instead of @program.
52255
52256 2007-10-02  Jim Meyering  <jim@meyering.net>
52257
52258         Perform one more "_.h" -> ".in.h" substitution.
52259         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52260         instead of unistd_.h here, too.
52261
52262 2007-10-01  Bruno Haible  <bruno@clisp.org>
52263
52264         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52265         Needed for the alloca-opt module.
52266
52267 2007-09-30  Bruno Haible  <bruno@clisp.org>
52268
52269         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52270         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52271         alloca_.h.
52272         * lib/argz.in.h: Renamed from lib/argz_.h.
52273         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52274         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52275         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52276         byteswap_.h.
52277         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52278         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52279         dirent_.h.
52280         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52281         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52282         fcntl_.h.
52283         * lib/float.in.h: Renamed from lib/float_.h.
52284         * modules/float (Files, Makefile.am): Use float.in.h instead of
52285         float_.h.
52286         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52287         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52288         fnmatch_.h.
52289         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52290         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52291         getopt_.h.
52292         * lib/glob.in.h: Renamed from lib/glob_.h.
52293         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52294         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52295         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52296         iconv_.h.
52297         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52298         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52299         inttypes_.h.
52300         * lib/locale.in.h: Renamed from lib/locale_.h.
52301         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52302         locale_.h.
52303         * lib/math.in.h: Renamed from lib/math_.h.
52304         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52305         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52306         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52307         of netinet_in_.h. Add dependency.
52308         * lib/poll.in.h: Renamed from lib/poll_.h.
52309         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52310         * lib/search.in.h: Renamed from lib/search_.h.
52311         * modules/search (Files, Makefile.am): Use search.in.h instead of
52312         search_.h.
52313         * lib/signal.in.h: Renamed from lib/signal_.h.
52314         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52315         _signal.h.
52316         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52317         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52318         stdbool_.h.
52319         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52320         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52321         stdint_.h.
52322         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52323         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52324         stdio_.h.
52325         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52326         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52327         stdlib_.h.
52328         * lib/string.in.h: Renamed from lib/string_.h.
52329         * modules/string (Files, Makefile.am): Use string.in.h instead of
52330         string_.h.
52331         * doc/gnulib-tool.texi (Initial import): Update.
52332         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52333         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52334         of sys_select_.h. Add dependency.
52335         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52336         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52337         of sys_socket_.h.
52338         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52339         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52340         sys_stat_.h.
52341         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52342         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52343         sys_time_.h.
52344         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52345         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52346         sysexits_.h.
52347         * lib/time.in.h: Renamed from lib/time_.h.
52348         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52349         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52350         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52351         unistd_.h.
52352         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52353         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52354         wchar_.h.
52355         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52356         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52357         wctype_.h.
52358         * build-aux/bootstrap (slurp): Update.
52359         * lib/.cppi-disable: Update.
52360
52361 2007-09-30  Bruno Haible  <bruno@clisp.org>
52362
52363         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52364         Needed on BeOS.
52365
52366 2007-09-30  Bruno Haible  <bruno@clisp.org>
52367
52368         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52369
52370 2007-09-29  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52373
52374 2007-09-29  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52377         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52378         * build-aux/install-reloc: Compile also areadlink.c.
52379         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52380
52381 2007-09-29  Bruno Haible  <bruno@clisp.org>
52382
52383         * gnulib-tool (func_emit_initmacro_done): Indentation.
52384
52385 2007-09-29  Bruno Haible  <bruno@clisp.org>
52386
52387         * README: Add CVS checkout update instructions.
52388         Info from Bob Proulx <bob@proulx.com>.
52389
52390 2007-09-28  Eric Blake  <ebb9@byu.net>
52391
52392         Provide move-if-change.
52393         * build-aux/move-if-change: New file, based on best practice
52394         rather than any canonical upstream location.
52395
52396 2007-09-28  Jim Meyering  <jim@meyering.net>
52397
52398         Fix canonicalize loop-detection corner case.
52399         Do not attempt to stat the symlink values stored via seen_triple.
52400         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52401         on linux-2.6.18, (but not 2.6.22).
52402         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52403         triple_compare.  The former compares dev,ino,filename, while the latter
52404         would actually stat dirname(filename) when dev and ino were equal.
52405         * lib/hash-triple.c: Install <string.h>.
52406         (STREQ): Define.
52407         (triple_compare_ino_str): New function.
52408         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52409
52410 2007-09-28  Eric Blake  <ebb9@byu.net>
52411
52412         Enforce that AC_REPLACE_FUNCS files exist.
52413         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52414         override check for typos.
52415
52416         Fix test-closein on Solaris 10.
52417         * tests/test-closein.c (main): Don't assume stdin can be inherited
52418         closed on all systems.
52419         * tests/test-closein.sh: Likewise.
52420         Reported by Piotr Tarnowski.
52421
52422 2007-09-28  Jim Meyering  <jim@meyering.net>
52423
52424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52425
52426 2007-09-27  Jim Meyering  <jim@meyering.net>
52427
52428         canonicalize: Avoid a false-positive cycle failure.
52429         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52430         Sort.  Remove cycle-check.
52431         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52432         not cycle-check.h.
52433         (seen_triple): New function.
52434         (canonicalize_filename_mode): Use it instead of cycle-check.
52435         * tests/test-canonicalize.c: Add a test for this bug.
52436         * tests/test-canonicalize.sh: Set up and run the test.
52437
52438         New module, file-set, from coreutils.
52439         * modules/file-set: Define it.
52440         * lib/file-set.c, lib/file-set.h: Implement.
52441
52442         New module, hash-triple, from coreutils.
52443         * modules/hash-triple: Define it.
52444         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52445
52446 2007-09-25  Eric Blake  <ebb9@byu.net>
52447
52448         Fix strerror on Interix.
52449         * lib/string_.h (strerror): Declare replacement.
52450         * doc/functions/strerror.texi (strerror): Document the Interix
52451         shortcoming.
52452         * modules/string (Makefile.am): Support new hooks.
52453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52454         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52455         gl_FUNC_STRERROR_SEPARATE.
52456         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52457         * lib/strerror.c (rpl_strerror): Provide replacement.
52458         * modules/strerror (Depends-on): Add string.
52459         (configure.ac): Detect use of module.
52460         * tests/test-strerror.c: New file.
52461         * modules/strerror-tests: New test module.
52462         * modules/argp (Depends-on): Add strerror.
52463         * modules/error (Depends-on): Likewise.
52464         Reported by Martin Koeppe.
52465
52466 2007-09-24  Bruno Haible  <bruno@clisp.org>
52467
52468         * README: Update git instructions.
52469
52470 2007-09-24  Eric Blake  <ebb9@byu.net>
52471
52472         Revert fpending breakage from 2007-09-08.
52473         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52474         __fpending.c.
52475
52476 2007-09-24  Jim Meyering  <jim@meyering.net>
52477
52478         filenamecat.c: Add a test.
52479         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52480         showing how the function works when DIR is the empty string.
52481
52482 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52483
52484         * tests/test-canonicalize.sh: Turn on executable bit.
52485
52486 2007-09-19  Eric Blake  <ebb9@byu.net>
52487
52488         * README: Update CVS instructions.
52489
52490 2007-09-18  Bruno Haible  <bruno@clisp.org>
52491
52492         * modules/areadlink: New file.
52493         * lib/areadlink.h (areadlink): New declaration.
52494         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52495
52496 2007-09-17  Jim Meyering  <jim@meyering.net>
52497
52498         * lib/savewd.c (ESTALE) [!defined]: Define.
52499         Reported to be required on Interix by Martin Koeppe.
52500
52501 2007-09-17  Bruno Haible  <bruno@clisp.org>
52502
52503         * gnulib-tool (func_version): Use $version.
52504
52505 2007-09-16  Bruno Haible  <bruno@clisp.org>
52506
52507         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52508         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52509         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52510         Reported by Greg Schafer <gschafer@zip.com.au>.
52511
52512 2007-09-15  Bruno Haible  <bruno@clisp.org>
52513
52514         * gnulib-tool (sed): Try a little harder to make bash understand the
52515         alias.
52516         Reported by Bruce Korb <bruce.korb@gmail.com>.
52517
52518 2007-09-13  Eric Blake  <ebb9@byu.net>
52519
52520         * ChangeLog: Remove conflict markers.
52521
52522 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52523
52524         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52525         Reported by Bruno Haible <bruno@clisp.org>.
52526
52527 2007-09-12  Bruno Haible  <bruno@clisp.org>
52528
52529         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52530         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52531         is not defined.
52532
52533 2007-09-12  Eric Blake  <ebb9@byu.net>
52534
52535         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52537         Autoconf definition.
52538         * modules/euidaccess (Depends-on): Add extensions, for
52539         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52540         * modules/fnmatch (Depends-on): Likewise.
52541         * modules/getaddrinfo (Depends-on): Likewise.
52542         * modules/getdelim (Depends-on): Likewise.
52543         * modules/getline (Depends-on): Likewise.
52544         * modules/getsubopt (Depends-on): Likewise.
52545         * modules/gettext (Depends-on): Likewise.
52546         * modules/group-member (Depends-on): Likewise.
52547         * modules/mbchar (Depends-on): Likewise.
52548         * modules/memmem (Depends-on): Likewise.
52549         * modules/mempcpy (Depends-on): Likewise.
52550         * modules/memrchr (Depends-on): Likewise.
52551         * modules/pagealign_alloc (Depends-on): Likewise.
52552         * modules/readutmp (Depends-on): Likewise.
52553         * modules/stpcpy (Depends-on): Likewise.
52554         * modules/stpncpy (Depends-on): Likewise.
52555         * modules/strchrnul (Depends-on): Likewise.
52556         * modules/strndup (Depends-on): Likewise.
52557         * modules/strsep (Depends-on): Likewise.
52558         * modules/strverscmp (Depends-on): Likewise.
52559         * modules/vasprintf (Depends-on): Likewise.
52560         * modules/wcwidth (Depends-on): Likewise.
52561         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52562         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52563         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52565         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52566         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52567         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52568         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52569         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52570         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52572         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52573         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52574         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52575         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52576         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52577         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52578         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52580         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52581         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52583         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52584         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52585         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52587         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52588         so that lock.m4 can be used in gettext without extensions module.
52589
52590 2007-09-11  Bruno Haible  <bruno@clisp.org>
52591
52592         * m4/isc-posix.m4: Remove file.
52593         Suggested by Eric Blake.
52594
52595 2007-09-11  Eric Blake  <ebb9@byu.net>
52596
52597         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52598
52599 2007-09-10  Bruno Haible  <bruno@clisp.org>
52600
52601         * posix-modules: Fix typo in error message.
52602         Reported by Matt <mkraai@beckman.com>.
52603
52604 2007-09-09  Bruno Haible  <bruno@clisp.org>
52605
52606         * doc/functions/getdelim.texi: Update list of platforms lacking the
52607         function.
52608         * doc/functions/getline.texi: Likewise.
52609
52610 2007-09-09  Jim Meyering  <jim@meyering.net>
52611
52612         * lib/hash.c (hash_initialize): Detect calloc failure.
52613         Reported by Bruno Haible.
52614
52615 2007-09-09  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52618         malloc or realloc fails.
52619
52620 2007-09-09  Bruno Haible  <bruno@clisp.org>
52621
52622         * modules/getcwd (Depends-on): Add malloc-posix.
52623         * modules/glob (Depends-on): Likewise.
52624         * modules/putenv (Depends-on): Likewise.
52625         * modules/strdup (Depends-on): Likewise.
52626         * modules/getdelim (Depends-on): Add realloc-posix.
52627         * modules/read-file (Depends-on): Likewise.
52628
52629 2007-09-09  Bruno Haible  <bruno@clisp.org>
52630
52631         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52632         (gl_FUNC_MALLOC_POSIX): Require it.
52633         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52634         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52635         * modules/realloc (Files): Add m4/malloc.m4.
52636         * modules/calloc (Files): Likewise.
52637
52638 2007-09-09  Bruno Haible  <bruno@clisp.org>
52639
52640         * modules/malloc-posix: New file.
52641         * modules/malloc (Depends-on): Add malloc-posix.
52642         * lib/malloc.c: Include errno.h.
52643         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52644         and a POSIX-compatible malloc into a single function. Set ENOMEM
52645         when returning NULL.
52646         * m4/malloc.m4: New file.
52647         * doc/functions/malloc.texi: Mention the malloc-posix module.
52648         * lib/stdlib_.h (malloc): New declaration.
52649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52650         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52651         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52652         and HAVE_MALLOC_POSIX.
52653
52654 2007-09-09  Bruno Haible  <bruno@clisp.org>
52655
52656         * modules/realloc-posix: New file.
52657         * modules/realloc (Depends-on): Add realloc-posix.
52658         * lib/realloc.c: Include errno.h.
52659         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52660         and a POSIX-compatible realloc into a single function. Set ENOMEM
52661         when returning NULL.
52662         * m4/realloc.m4: New file.
52663         * doc/functions/realloc.texi: Mention the realloc-posix module.
52664         * lib/stdlib_.h (realloc): New declaration.
52665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52666         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52667         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52668         and HAVE_REALLOC_POSIX.
52669
52670 2007-09-09  Bruno Haible  <bruno@clisp.org>
52671
52672         * modules/calloc-posix: New file.
52673         * modules/calloc (Depends-on): Add calloc-posix.
52674         * lib/calloc.c: Include errno.h.
52675         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52676         and a POSIX-compatible calloc into a single function. Set ENOMEM
52677         when returning NULL.
52678         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52679         * doc/functions/calloc.texi: Mention the calloc-posix module.
52680         * lib/stdlib_.h (calloc): New declaration.
52681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52682         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52683         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52684         and HAVE_CALLOC_POSIX.
52685
52686 2007-09-09  Bruno Haible  <bruno@clisp.org>
52687
52688         Allow for modules to show an arbitrary notice.
52689         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52690         * gnulib-tool: New option --extract-notice.
52691         (func_usage): Document it.
52692         (sed_extract_prog): Update.
52693         (func_get_notice): New function.
52694         (func_modules_notice): New function.
52695         (func_import, func_create_testdir): Invoke it.
52696         Suggested by Jim Meyering.
52697
52698 2007-09-09  Bruno Haible  <bruno@clisp.org>
52699
52700         * gnulib-tool: New options --verbose, --quiet.
52701         (func_usage): Document them.
52702         (verbose): New variable.
52703         (func_execute_command): New function.
52704         (func_import): Don't show the module list and the file list if
52705         $verbose < 0.
52706         (func_create_testdir): Likewise. Use func_execute_command.
52707         (func_create_megatestdir): Use func_execute_command.
52708
52709 2007-09-08  Bruno Haible  <bruno@clisp.org>
52710
52711         * gnulib-tool (func_import): Prefer rsync over wget when available,
52712         for fetching the PO files.
52713
52714 2007-09-08  Bruno Haible  <bruno@clisp.org>
52715
52716         * posix-modules: New file. Portions copied from gnulib-tool.
52717         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52718
52719 2007-09-08  Jim Meyering  <jim@meyering.net>
52720
52721         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52722         * lib/fpending.h: Rename from __fpending.h.
52723         * lib/fpending.c: Rename from __fpending.c.
52724         Include "fpending.h", not "__fpending.h".
52725         * lib/__fpending.h, lib/__fpending.c: Remove files.
52726         * modules/fpending (Files): Reflect new file names.
52727         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52728
52729 2007-09-08  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/inttypes-h.m4: Remove stub file.
52732
52733 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52734
52735         * doc/headers/stdint.texi: Discuss #include_next issue.
52736
52737 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52740
52741 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52742
52743         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52744         in variable name.
52745
52746 2007-09-03  Jim Meyering  <jim@meyering.net>
52747
52748         New module: git-version-gen.
52749         * modules/git-version-gen: New file.
52750
52751         Import changes from coreutils for bootstrap script.
52752
52753         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52754
52755         bootstrap: uses rsync to download the .po files
52756         * build-aux/bootstrap (po_download_command_format): New global.
52757         (download_po_files): Use rsync.
52758         (update_po_files): Don't remove .po files after download,
52759         so future rsync runs can take advantage of the copies.
52760
52761         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52762
52763         Solve the unnecessary-.po-file-regeneration problem once and for all.
52764         * build-aux/bootstrap (download_po_files): New function, renamed from
52765         get_translations.  Now, downloads, but doesn't update LINGUAS.
52766         (update_po_files): New function.
52767
52768         bootstrap: Ignore more.
52769         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52770         uniwidth to e.g., lib/.gitignore.
52771         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52772
52773         * build-aux/bootstrap: New setting: vc_ignore.
52774         (insert_sorted_if_absent): Create $file if absent.
52775         Adapt to new, possibly empty, list: $vc_ignore.
52776
52777         bootstrap: generate more ignorable names
52778         * build-aux/bootstrap (slurp): When generating ignorable names,
52779         also map .sin to .sed, .gperf to .c, and .y to .c.
52780
52781 2007-09-03  Jim Meyering  <jim@meyering.net>
52782
52783         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52784         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52785
52786 2007-09-02  Bruno Haible  <bruno@clisp.org>
52787
52788         Fix mis-recognition of 'mcs' on QNX 6.
52789         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52790         output contains the string "Mono".
52791         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52792         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52793
52794 2007-09-01  Bruno Haible  <bruno@clisp.org>
52795
52796         Fix collision between uniwidth/* and linebreak modules.
52797         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52798         u32_width): Remove declarations.
52799         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52800         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52801         streq3, streq2, streq1, streq0): Remove functions.
52802         (STREQ): Remove macro.
52803         (is_cjk_encoding): Remove function.
52804         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52805         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52806         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52807         * NEWS: Document the change.
52808
52809 2007-09-01  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/streq.h: Add double-inclusion guard.
52812
52813 2007-09-01  Karl Berry  <karl@gnu.org>
52814
52815         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52816
52817 2007-08-28  Jim Meyering  <jim@meyering.net>
52818
52819         Rename mreadlink_with_size to areadlink_with_size.
52820         * NEWS: Document the change.
52821         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52822         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52823         * lib/mreadlink.h: Rename this to...
52824         * lib/areadlink.h: ...this.
52825         * modules/mreadlink-with-size: Rename this to...
52826         * modules/areadlink-with-size: ...this.
52827         * lib/canonicalize.c: Reflect the renaming.
52828         * modules/canonicalize: Likewise.
52829
52830 2007-08-26  Bruno Haible  <bruno@clisp.org>
52831
52832         * gnulib-tool (func_import): When deciding which files to remove,
52833         consider also dangling symbolic links.
52834         Reported by Eric Blake.
52835
52836 2007-08-26  Bruno Haible  <bruno@clisp.org>
52837
52838         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52839
52840 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52841
52842         * lib/readline.c: Don't include getline.h, the prototype is now
52843         found in stdio.h.
52844
52845 2007-08-23  Jim Meyering  <jim@meyering.net>
52846
52847         Getdelim touchup.
52848         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52849         around the funlockfile call, since funlockfile never sets errno.
52850         Don't set errno upon failed realloc.
52851
52852 2007-08-22  Eric Blake  <ebb9@byu.net>
52853
52854         Getline touchups.
52855         * lib/getdelim.c (getdelim): Revert regression that required *n to
52856         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52857         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52858         getdelim, rather than whether implementation is missing.
52859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52860         * lib/stdio_.h (getline): Also declare if replacement is
52861         required.
52862         * doc/functions/getdelim.texi: New file.
52863         * doc/functions/getline.texi: Likewise.
52864         * doc/gnulib.texi (Function Substitutes): Add new files.
52865         Reported by Bruno Haible.
52866
52867 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52868
52869         * users.txt: Add Guile.
52870
52871 2007-08-22  Eric Blake  <ebb9@byu.net>
52872
52873         * tests/test-getdelim.c (main): Use remove, not unlink.
52874         * tests/test-getline.c (main): Likewise.
52875
52876         Move getline and getdelim into stdio.h, per POSIX 200x.
52877         * modules/getline (Files): Remove getline.h.
52878         (Depends-on): Add stdio.
52879         (configure.ac): Add module indicator.
52880         * modules/getdelim (Files): Remove getdelim.h.
52881         (Depends-on): Add stdio.
52882         (configure.ac): Add module indicator.
52883         * modules/stdio (Makefile.am): Work with new indicators.
52884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52886         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52887         * lib/getdelim.h: Delete.
52888         * lib/getline.h: Delete.
52889         * lib/stdio_.h (getdelim, getline): Declare.
52890         * modules/getdelim-tests: New module.
52891         * modules/getline-tests: Likewise.
52892         * tests/test-getdelim.c: New file.
52893         * tests/test-getline.c: Likewise.
52894         * NEWS: Document the change.
52895         * lib/getline.c: Update choice of header.
52896         * lib/csharpcomp.c: Likewise.
52897         * lib/getpass.c: Likewise.
52898         * lib/javacomp.c: Likewise.
52899         * lib/javaversion.c: Likewise.
52900         * lib/yesno.c: Likewise.
52901         * lib/getdelim.c: Likewise.
52902         (getdelim): Set errno on failure, and avoid memory leak.
52903
52904 2007-08-19  Bruno Haible  <bruno@clisp.org>
52905
52906         * modules/closein (Depends-on): Add freadahead.
52907         * lib/closein.c: Include freadahead.h.
52908         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52909         is zero.
52910
52911 2007-08-19  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/freadahead-tests: New file.
52914         * tests/test-freadahead.sh: New file.
52915         * tests/test-freadahead.c: New file.
52916
52917         * modules/freadahead: New file.
52918         * lib/freadahead.h: New file.
52919         * lib/freadahead.c: New file.
52920         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52921         fbufmode, fpurge, freadable, fwritable.
52922
52923 2007-08-19  Eric Blake  <ebb9@byu.net>
52924
52925         Test yesno in combination with closein.
52926         * lib/yesno.c (yesno): Document use of stdin.
52927         * modules/yesno-tests (Files): New module.
52928         * tests/test-yesno.c (main): New file.
52929         * tests/test-yesno.sh: Likewise.
52930
52931 2007-08-19  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52934         * lib/fseeko.c (rpl_fseeko): Likewise.
52935         * lib/fseterr.c (fseterr): Likewise.
52936
52937 2007-08-19  Bruno Haible  <bruno@clisp.org>
52938
52939         * tests/test-lseek.c (main): Disable a test for BeOS.
52940         * doc/functions/lseek.texi: Document the BeOS bug.
52941
52942 2007-08-19  Bruno Haible  <bruno@clisp.org>
52943             Eric Blake  <ebb9@byu.net>
52944
52945         * lib/lseek.c: Include <sys/stat.h>.
52946         (rpl_lseek): Add workaround code also for Unix platforms.
52947         Needed for BeOS.
52948         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52949         * doc/functions/lseek.texi: Document BeOS definiency.
52950
52951 2007-08-18  Bruno Haible  <bruno@clisp.org>
52952
52953         * modules/fstrcmp-tests: New file.
52954         * tests/test-fstrcmp.c: New file.
52955
52956 2007-08-18  Bruno Haible  <bruno@clisp.org>
52957
52958         * modules/fstrcmp: New file, from GNU gettext with modifications.
52959         * lib/fstrcmp.h: New file, from GNU gettext.
52960         * lib/fstrcmp.c: New file, from GNU gettext.
52961         * MODULES.html.sh (String handling): Add fstrcmp.
52962
52963 2007-08-18  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52966         'bool'.
52967         (diag, compareseq): Remove const from the ctxt argument.
52968         (USE_HEURISTIC): Undefine at the end.
52969
52970 2007-08-18  Jim Meyering  <jim@meyering.net>
52971
52972         New file: lib/idcache.h
52973         * NEWS: Mention the addition.
52974         * modules/idcache (Files): Add lib/idcache.h
52975         * lib/idcache.c: Include "idcache.h".
52976         Don't include <sys/types.h>.
52977         Add a FIXME comment.
52978         Move file-scoped "static" declarations to the top.
52979         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52980
52981 2007-08-17  Bruno Haible  <bruno@clisp.org>
52982         and Paul Eggert  <eggert@cs.ucla.edu>
52983
52984         * MODULES.html.sh: Add diffseq.
52985         * modules/diffseq: New file.
52986         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52987         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52988
52989 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52990
52991         Import changes from coreutils for bootstrap script.
52992
52993         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52994
52995         * build-aux/bootstrap (slurp): Work even in environments where
52996         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52997         current code does not slurp files whose names start with ".", and
52998         this looks like it might be a troublesome area.
52999
53000         2007-07-11  Jim Meyering  <jim@meyering.net>
53001
53002         If there's a GPL vN copyright comment, require that N == 3.
53003
53004         2007-07-08  Jim Meyering  <jim@meyering.net>
53005
53006         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53007         * build-aux/bootstrap (mam_template): Move definition out of loop.
53008
53009         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53010
53011         * build-aux/bootstrap (symlink_to_dir): Rename function from
53012         symlink_to_gnulib.  Add a directory parameter.  Update all
53013         callers.
53014         (cp_mark_as_generated): Also check for -- and link to -- files in
53015         gl/.
53016
53017         2007-07-08  Jim Meyering  <jim@meyering.net>
53018
53019         Adapt to deeper hierarchy in gnulib.
53020         * build-aux/bootstrap (symlink_to_dir): If the destination
53021         directory doesn't exist, create it. This is required at least for
53022         "lib/uniwidth/cjk.h".
53023
53024         2007-05-15  Jim Meyering  <jim@meyering.net>
53025
53026         * build-aux/bootstrap: Now that generated Makefile.am files
53027         are no longer under version control, they must be created at
53028         bootstrap time.
53029
53030 2007-08-14  Ben Pfaff  <blp@gnu.org>
53031
53032         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53033
53034 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53037         given the changes below.
53038         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53039         even on hosts that have padding bits beyond the supported 64.
53040
53041 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53042
53043         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53044         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53045         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53046         depends on it.
53047         (xstrtol_error): Remove.
53048         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53049         but with a different signature.
53050         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53051         * lib/xstrtol-error.c: Include exitfail.h.
53052         (xstrtol_fatal): New function, with a different signature from the
53053         old xstrtol_error, so that the caller need not worry about passing
53054         in an exit status, or about storage management of the option argument.
53055         (xstrtol_error): Now a static function.  Redo signature to
53056         implement xstrtol_fatal.  Output the correct number of hyphens in
53057         front of the option so that the caller need not worry about
53058         storage management.
53059         (N_): New macro.
53060         (_): Remove; not used now.
53061         * modules/xstrtol: Depend on getopt.
53062         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53063         of old STRTOL_FATAL_ERROR macro.
53064         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53065         of test program.
53066         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53067         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53068
53069 2007-08-08  Eric Blake  <ebb9@byu.net>
53070
53071         * lib/xstrtol-error.c: Add missing include.
53072
53073         Move xstrtol messages into gnulib domain, when --pobase is used.
53074         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53075         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53076         * modules/xstrtol (Files): Distribute new file.
53077         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53078         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53079         * tests/test-xstrtol.c: ...into new file.
53080         * tests/test-xstrtoul.c: Also test xstrtoul.
53081         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53082         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53083         * tests/test-xstrtol.sh: Drive the tests.
53084         * tests/test-xstrtoimax.sh: Likewise.
53085         * tests/test-xstrtoumax.sh: Likewise.
53086         * modules/xstrtol-tests: New module.
53087         * modules/xstrtoimax-tests: Likewise.
53088         * modules/xstrtoumax-tests: Likewise.
53089
53090 2007-08-08  Jim Meyering  <jim@meyering.net>
53091
53092         New function: mfile_name_concat.
53093         * lib/filenamecat.c (mfile_name_concat): New function, just like
53094         file_name_concat, but return NULL upon failure rather than exiting
53095         with a diagnostic.
53096         * lib/filenamecat.h: Declare it.
53097
53098 2007-08-07  Bruno Haible  <bruno@clisp.org>
53099
53100         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53101         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53102         warning from gcc.
53103         Reported by Eric Blake.
53104
53105 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53106
53107         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53108         * modules/crypto/arcfour (License): Likewise.
53109         * modules/crypto/des-tests (License): Likewise.
53110         * modules/crypto/gc-arctwo-tests (License): Likewise.
53111         * modules/crypto/gc-des-tests (License): Likewise.
53112         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53113         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53114         * modules/crypto/gc-md2-tests (License): Likewise.
53115         * modules/crypto/gc-md4-tests (License): Likewise.
53116         * modules/crypto/gc-md5-tests (License): Likewise.
53117         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53118         * modules/crypto/gc-rijndael-tests (License): Likewise.
53119         * modules/crypto/gc-sha1-tests (License): Likewise.
53120         * modules/crypto/gc-tests (License): Likewise.
53121         * modules/crypto/hmac-md5 (License): Likewise.
53122         * modules/crypto/hmac-sha1 (License): Likewise.
53123         * modules/crypto/md2-tests (License): Likewise.
53124         * modules/crypto/md4-tests (License): Likewise.
53125         * modules/crypto/md5 (License): Likewise.
53126         * modules/crypto/rijndael (License): Likewise.
53127         * modules/crypto/sha1 (License): Likewise.
53128         * modules/memxor (License): Likewise.
53129
53130 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53131         and Bruno Haible  <bruno@clisp.org>
53132
53133         * NEWS: Describe interface changes to human, xstrtol.
53134         * lib/human.h: Include <xstrtol.h>.
53135         (human_options): Return enum strtol_error, not int.  Remove
53136         bool arg; take int * instead.
53137         * lib/human.c: Don't include "gettext.h".
53138         (_): Remove; no longer used.
53139         Don't include <xstrtol.h>, since human.h does it.
53140         (human_options): Adjust to abovementioned interface changes.
53141         Do not report error to stderr; that's now the caller's
53142         responsibility.
53143         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53144         interface change.
53145         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53146         Str, Argument_type_string.  All uses changed.  Put " argument"
53147         in diagnostics to make them clearer.  Change wording of suffix
53148         message for clarity.
53149         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53150         Argument_type_string.
53151         (STRTOL_FATAL_WARN): Remove; no longer used.
53152         * modules/human (Depends-on): Remove gettext-h.
53153
53154 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53155
53156         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53157
53158 2007-07-31  Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53161         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53162         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53163
53164 2007-07-31  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53167         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53168
53169 2007-07-30  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53172         * modules/c-ctype (License): Likewise.
53173         * modules/c-strcase (License): Likewise.
53174         * modules/check-version (License): Likewise.
53175         * modules/iconv (License): Likewise.
53176         * modules/iconv_open (License): Likewise.
53177         * modules/read-file (License): Likewise.
53178         * modules/striconv (License): Likewise.
53179         * modules/strverscmp (License): Likewise.
53180         * modules/vasprintf (License): Likewise.
53181         * modules/crypto/des (License): Likewise.
53182         * modules/crypto/gc (License): Likewise.
53183         * modules/crypto/gc-arcfour (License): Likewise.
53184         * modules/crypto/gc-arctwo (License): Likewise.
53185         * modules/crypto/gc-des (License): Likewise.
53186         * modules/crypto/gc-hmac-md5 (License): Likewise.
53187         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53188         * modules/crypto/gc-md2 (License): Likewise.
53189         * modules/crypto/gc-md4 (License): Likewise.
53190         * modules/crypto/gc-md5 (License): Likewise.
53191         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53192         * modules/crypto/gc-random (License): Likewise.
53193         * modules/crypto/gc-rijndael (License): Likewise.
53194         * modules/crypto/gc-sha1 (License): Likewise.
53195         * modules/crypto/md2 (License): Likewise.
53196         * modules/crypto/md4 (License): Likewise.
53197
53198 2007-07-30  Jim Meyering  <jim@meyering.net>
53199
53200         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53201         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53202         it has valid stat data.  This bug would cause du not to count the
53203         sizes of inaccessible directories.
53204         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53205         in <http://bugzilla.redhat.com/250077>.
53206
53207 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53208             Bruno Haible  <bruno@clisp.org>
53209
53210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53211         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53212         #include_next, gives a diagnostic about it, but reports no error in
53213         the exit code.
53214         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53215
53216 2007-07-24  Ben Pfaff  <blp@gnu.org>
53217
53218         Improve name: "count-one-bits" is better than "popcount".
53219         * MODULES.html.sh: Update name.
53220         * lib/popcount.h: Renamed lib/count-one-bits.h.
53221         (popcount): Renamed count_one_bits.
53222         (popcountl): Renamed count_one_bits_l.
53223         (popcountll): Renamed count_one_bits_ll.
53224         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53225         * modules/popcount: Renamed module/count-one-bits.
53226         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53227         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53228
53229 2007-07-23  Ben Pfaff  <blp@gnu.org>
53230
53231         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53232         better code generation, and add U to large constants to avoid
53233         warnings, in non-GCC case.
53234         Suggested by Bruno Haible.
53235
53236 2007-07-23  Ben Pfaff  <blp@gnu.org>
53237
53238         * lib/popcount.h: Use verify_true instead of if...abort.
53239         * modules/popcount: Depend on verify module.
53240         Suggested by Jim Meyering.
53241
53242 2007-07-23  Bruno Haible  <bruno@clisp.org>
53243
53244         * gnulib-tool (func_import): Create a .cvsignore file also when the
53245         directory is not yet in CVS but the toplevel directory is. When
53246         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53247         Reported by Karl Berry.
53248
53249 2007-07-22  Ben Pfaff  <blp@gnu.org>
53250
53251         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53252         case.
53253         Suggested by Eric Blake.
53254
53255 2007-07-22  Ben Pfaff  <blp@gnu.org>
53256
53257         New module: popcount.
53258         * MODULES.html.sh: Add popcount.
53259         * modules/popcount: New file.
53260         * modules/popcount-tests: New file.
53261         * tests/test-popcount.c: New file.
53262         * lib/popcount.h: New file.
53263         * m4/popcount.m4: New file.
53264
53265 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53266
53267         * build-aux/announce-gen: Update to GPLv3.
53268
53269         * build-aux/config.guess: Update from config.
53270
53271 2007-07-21  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53274         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53275
53276 2007-07-20  Jim Meyering  <jim@meyering.net>
53277
53278         * check-module: Diagnose a self-dependency.
53279
53280 2007-07-19  Bruno Haible  <bruno@clisp.org>
53281
53282         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53283         empty.
53284         Reported by Eric Blake.
53285
53286 2007-07-18  Bruno Haible  <bruno@clisp.org>
53287
53288         * gnulib-tool: New options --po-base, --po-domain.
53289         (func_usage): Document them.
53290         (pobase, po_domain): New variables.
53291         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53292         DEFAULT_TEXT_DOMAIN.
53293         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53294         (func_import): Consider pobase and po_domain. Create a po/ directory.
53295         (func_create_testdir): Set pobase and po_domain to empty.
53296         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53297         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53298
53299 2007-07-18  Bruno Haible  <bruno@clisp.org>
53300
53301         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53302         EXTRA_DIST augmentation for files in build-aux/.
53303
53304 2007-07-16  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53307         * modules/getdelim (License): Likewise.
53308
53309 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53310
53311         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53312         * modules/d-type (License): Likewise.
53313         * modules/extensions (License): Likewise.
53314         * modules/fnmatch (License): Likewise.
53315         * modules/fseeko (License): Likewise.
53316         * modules/getaddrinfo (License): Likewise.
53317         * modules/getline (License): Likewise.
53318         * modules/getlogin_r (License): Likewise.
53319         * modules/getpass (License): Likewise.
53320         * modules/gettimeofday (License): Likewise.
53321         * modules/glob (License): Likewise.
53322         * modules/inet_ntop (License): Likewise.
53323         * modules/malloc (License): Likewise.
53324         * modules/malloca (License): Likewise.
53325         * modules/memmem (License): Likewise.
53326         * modules/mempcpy (License): Likewise.
53327         * modules/memset (License): Likewise.
53328         * modules/minmax (License): Likewise.
53329         * modules/mktime (License): Likewise.
53330         * modules/netinet_in (License): Likewise.
53331         * modules/pathmax (License): Likewise.
53332         * modules/poll (License): Likewise.
53333         * modules/regex (License): Likewise.
53334         * modules/snprintf (License): Likewise.
53335         * modules/stdbool (License): Likewise.
53336         * modules/stdint (License): Likewise.
53337         * modules/stdio (License): Likewise.
53338         * modules/strcase (License): Likewise.
53339         * modules/strcasestr (License): Likewise.
53340         * modules/strdup (License): Likewise.
53341         * modules/string (License): Likewise.
53342         * modules/strndup (License): Likewise.
53343         * modules/strnlen (License): Likewise.
53344         * modules/strpbrk (License): Likewise.
53345         * modules/strptime (License): Likewise.
53346         * modules/strsep (License): Likewise.
53347         * modules/sys_select (License): Likewise.
53348         * modules/sys_socket (License): Likewise.
53349         * modules/sys_stat (License): Likewise.
53350         * modules/sys_time (License): Likewise.
53351         * modules/time (License): Likewise.
53352         * modules/time_r (License): Likewise.
53353         * modules/timegm (License): Likewise.
53354         * modules/unistd (License): Likewise.
53355         * modules/vsnprintf (License): Likewise.
53356         * modules/wctype (License): Likewise.
53357
53358 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53359
53360         * modules/argz (License): LGPLv2+.
53361
53362 2007-07-15  Karl Berry  <karl@gnu.org>
53363
53364         * doc/gnulib.texi: revise node structure per new fdl.texi.
53365
53366 2007-07-14  Bruno Haible  <bruno@clisp.org>
53367
53368         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53369         the output file.
53370         * lib/uniname/uninames.h: Regenerated.
53371
53372 2007-07-14  Karl Berry  <karl@gnu.org>
53373
53374         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53375         omitting sectioning and index commands.
53376
53377 2007-07-13  Bruno Haible  <bruno@clisp.org>
53378
53379         New gnulib-tool option --more-symlinks.
53380         * gnulib-tool (func_usage): Document --more-symlinks.
53381         (do_copyrights): New variable.
53382         Recognize option --more-symlinks.
53383         (func_import): Don't add a copyright notice transform to
53384         sed_transform_lib_file if do_copyrights is empty.
53385
53386 2007-07-13  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/vasnprintf.c (decimal_point_char): Define also if
53389         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53390         && !NEED_PRINTF_DIRECTIVE_A.
53391         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53392         Gary V. Vaughan <gary@gnu.org>.
53393
53394 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53395
53396         * lib/inttypes_.h: Undo previous change, since it was fixed
53397         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53398
53399 2007-07-13  Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53402         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53403
53404 2007-07-13  Jim Meyering  <jim@meyering.net>
53405
53406         df: Don't fail for Tru64's "file-on-file mount".
53407         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53408         so we fall through and use statfs instead.  Details here:
53409         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53410         Reported by Albert Chin.
53411
53412 2007-07-13  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53415         * modules/configmake (License): Likewise.
53416         * modules/gettext (License): Likewise.
53417         * modules/gettext-h (License): Likewise.
53418         * modules/include_next (License): Likewise.
53419         * modules/link-warning (License): Likewise.
53420         * modules/localcharset (License): Likewise.
53421         * modules/localename (License): Likewise.
53422         * modules/lock (License): Likewise.
53423         * modules/relocatable-lib-lgpl (License): Likewise.
53424         * modules/size_max (License): Likewise.
53425         * modules/vasnprintf (License): Likewise.
53426         * modules/wchar (License): Likewise.
53427         * modules/xsize (License): Likewise.
53428
53429 2007-07-13  Bruno Haible  <bruno@clisp.org>
53430
53431         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53432         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53433
53434 2007-07-12  Bruno Haible  <bruno@clisp.org>
53435
53436         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53437         in the modules files.
53438
53439 2007-07-11  Karl Berry  <karl@gnu.org>
53440
53441         * MODULES.html.sh (func_module): use
53442          sed -e '\|^'"${includefile}"'$|d'
53443          instead of /.../d, to avoid errors on $includefile's containing /.
53444
53445 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53446
53447         * gnulib-tool (func_import): Avoid duplication of --avoid
53448         statements
53449         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53450         names to `_' in variable names.
53451
53452 2007-07-10  Eric Blake  <ebb9@byu.net>
53453
53454         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53455         * NEWS: Document this change.
53456
53457 2007-07-08  Bruno Haible  <bruno@clisp.org>
53458
53459         Update to Unicode 5.0.
53460         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53461         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53462         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53463         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53464         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53465         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53466         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53467         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53468         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53469         U+10A3F, U+1D242..U+1D244.
53470         (nonspacing_table_ind): Update.
53471         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53472         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53473
53474 2007-07-08  Bruno Haible  <bruno@clisp.org>
53475
53476         Update to Unicode 5.0.
53477         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53478         code transform. Extend the name index field of unicode_name_to_code and
53479         unicode_code_to_name from 16 to 24 bits.
53480         * lib/uniname/uniname.c (unicode_character_name,
53481         unicode_name_character): Add the range 0x12xxx to the code transform.
53482         * lib/uniname/uninames.h: Regenerated.
53483         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53484
53485 2007-07-07  Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/wcwidth-tests: New file.
53488         * tests/test-wcwidth.c: New file.
53489
53490         Work around MacOS X wcwidth() bug.
53491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53492         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53493         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53494         original wcwidth in non-UTF-8 locales.
53495         * modules/wcwidth (Depends-on): Add localcharset, streq,
53496         uniwidth/width.
53497         * doc/functions/wcwidth.texi: Update.
53498
53499 2007-07-07  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53502         (wcwidth): New declaration.
53503         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53504         macros.
53505         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53506         here. Prepare for creating <wchar.h> unconditionally.
53507         * modules/wchar (Depends-on): Add link-warning.
53508         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53509         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53510         * lib/wcwidth.h: Remove file.
53511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53512         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53513         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53514         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53515         (Include): Replace wcwidth.h with <wchar.h>.
53516         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53517         * lib/mbchar.h: Don't include wcwidth.h.
53518         * lib/mbswidth.c: Likewise.
53519         * NEWS: Mention the change.
53520
53521 2007-07-07  Bruno Haible  <bruno@clisp.org>
53522
53523         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53524         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53525         definition with an external declaration.
53526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53527         defined as a function. Remove AC_C_INLINE requirement.
53528         * modules/wcwidth (Files): Add lib/wcwidth.c.
53529         (Makefile.am): Remove redundant statement.
53530
53531 2007-07-07  Bruno Haible  <bruno@clisp.org>
53532
53533         * MODULES.html.sh (Unicode string functions): Add the new modules.
53534
53535         * tests/uniwidth/test-u32-strwidth.c: New file.
53536         * modules/uniwidth/u32-strwidth-tests: New file.
53537
53538         * lib/uniwidth/u32-strwidth.c: New file.
53539         * modules/uniwidth/u32-strwidth: New file.
53540
53541         * tests/uniwidth/test-u16-strwidth.c: New file.
53542         * modules/uniwidth/u16-strwidth-tests: New file.
53543
53544         * lib/uniwidth/u16-strwidth.c: New file.
53545         * modules/uniwidth/u16-strwidth: New file.
53546
53547         * tests/uniwidth/test-u8-strwidth.c: New file.
53548         * modules/uniwidth/u8-strwidth-tests: New file.
53549
53550         * lib/uniwidth/u8-strwidth.c: New file.
53551         * modules/uniwidth/u8-strwidth: New file.
53552
53553         * tests/uniwidth/test-u32-width.c: New file.
53554         * modules/uniwidth/u32-width-tests: New file.
53555
53556         * lib/uniwidth/u32-width.c: New file.
53557         * modules/uniwidth/u32-width: New file.
53558
53559         * tests/uniwidth/test-u16-width.c: New file.
53560         * modules/uniwidth/u16-width-tests: New file.
53561
53562         * lib/uniwidth/u16-width.c: New file.
53563         * modules/uniwidth/u16-width: New file.
53564
53565         * tests/uniwidth/test-u8-width.c: New file.
53566         * modules/uniwidth/u8-width-tests: New file.
53567
53568         * lib/uniwidth/u8-width.c: New file.
53569         * modules/uniwidth/u8-width: New file.
53570
53571         * tests/uniwidth/test-uc_width.c: New file.
53572         * modules/uniwidth/width-tests: New file.
53573
53574         * lib/uniwidth/width.c: New file, from GNU libiconv.
53575         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53576         * modules/uniwidth/width: New file.
53577
53578         * lib/uniwidth.h: New file, from GNU libiconv.
53579         * modules/uniwidth/base: New file.
53580
53581 2007-07-07  Bruno Haible  <bruno@clisp.org>
53582
53583         * lib/uniname.h: New file, from GNU gettext.
53584         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53585         * lib/uniname/uninames.h: New file, from GNU gettext.
53586         * lib/uniname/uniname.c: New file, from GNU gettext.
53587         * tests/uniname/test-uninames.sh: New file.
53588         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53589         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53590         * modules/uniname/base: New file.
53591         * modules/uniname/uniname: New file.
53592         * modules/uniname/uniname-tests: New file.
53593         * MODULES.html.sh (Unicode string functions): Add the new modules.
53594
53595 2007-07-06  Bruno Haible  <bruno@clisp.org>
53596
53597         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53598
53599 2007-07-06  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53602         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53603         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53604         include <sys/time.h>.
53605         Reported by Eric Blake.
53606
53607 2007-07-06  Eric Blake  <ebb9@byu.net>
53608
53609         Fix testing canonicalize on cygwin.
53610         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53611         Revert patch from 2007-06-19.
53612         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53613         canonicalize module is also in use.
53614         * tests/test-canonicalize.c: New file.
53615         * tests/test-canonicalize.sh: Likewise.
53616         * modules/canonicalize-tests: Likewise.
53617
53618 2007-07-06  Jim Meyering  <jim@meyering.net>
53619
53620         * lib/getugroups.c (getugroups): Detect getgrent failure.
53621         Adjust comment to reflect reality: this function may return -1.
53622
53623 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53624
53625         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53626         the new TP address.
53627         (usage): Fix typo
53628         (gnulib_mk): New variable.
53629
53630 2007-07-05  Jim Meyering  <jim@meyering.net>
53631
53632         Don't let endgrent clobber errno, no matter how improbable.
53633         * lib/getugroups.c (getugroups): Save and restore errno around
53634         endgrent call.
53635
53636         Close the group DB even when failing with 2^31 or more members.
53637         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53638
53639 2007-07-04  Jim Meyering  <jim@meyering.net>
53640
53641         * lib/getugroups.h: New file.
53642         * lib/getugroups.c: Include "getugroups.h".
53643         Remove uses of "register" keyword.
53644         Move local variable, "cp", down into scope where used.
53645         Give "username" parameter the "const" attribute.
53646         * modules/getugroups (Files): Add lib/getugroups.h
53647
53648 2007-07-04  Karl Berry  <karl@gnu.org>
53649
53650         * MODULES.html.sh (func_all_modules): Complete rename of
53651         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53652
53653 2007-07-02  Bruno Haible  <bruno@clisp.org>
53654
53655         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53656         mode, when inttypes.h comes from gnulib.
53657         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53658
53659 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53660
53661         * NEWS: Mention lgpl module name change.
53662
53663         * modules/lgpl-2.1: Renamed from lgpl.
53664
53665         * NEWS: Mention gpl module name change.
53666
53667         * modules/gpl-3.0: New file, based on gpl-2.0.
53668
53669         * modules/gpl-2.0: Renamed from gpl.
53670
53671         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53672         doc/gpl-2.0.texi.
53673
53674 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53677         #define __STDC_LIMIT_MACROS temporarily while including
53678         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53679         Problem reported by Joel E. Denny in
53680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53681
53682 2007-07-01  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/unistdio.h: New file.
53685         * lib/unistdio/u-asnprintf.h: New file.
53686         * lib/unistdio/u-asprintf.h: New file.
53687         * lib/unistdio/u-printf-args.c: New file.
53688         * lib/unistdio/u-printf-args.h: New file.
53689         * lib/unistdio/u-printf-parse.h: New file.
53690         * lib/unistdio/u-snprintf.h: New file.
53691         * lib/unistdio/u-sprintf.h: New file.
53692         * lib/unistdio/u-vasprintf.h: New file.
53693         * lib/unistdio/u-vsnprintf.h: New file.
53694         * lib/unistdio/u-vsprintf.h: New file.
53695         * lib/unistdio/ulc-asnprintf.c: New file.
53696         * lib/unistdio/ulc-asprintf.c: New file.
53697         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53698         * lib/unistdio/ulc-printf-parse.c: New file.
53699         * lib/unistdio/ulc-snprintf.c: New file.
53700         * lib/unistdio/ulc-sprintf.c: New file.
53701         * lib/unistdio/ulc-vasnprintf.c: New file.
53702         * lib/unistdio/ulc-vasprintf.c: New file.
53703         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53704         * lib/unistdio/ulc-vsnprintf.c: New file.
53705         * lib/unistdio/ulc-vsprintf.c: New file.
53706         * lib/unistdio/u8-asnprintf.c: New file.
53707         * lib/unistdio/u8-asprintf.c: New file.
53708         * lib/unistdio/u8-printf-parse.c: New file.
53709         * lib/unistdio/u8-snprintf.c: New file.
53710         * lib/unistdio/u8-sprintf.c: New file.
53711         * lib/unistdio/u8-vasnprintf.c: New file.
53712         * lib/unistdio/u8-vasprintf.c: New file.
53713         * lib/unistdio/u8-vsnprintf.c: New file.
53714         * lib/unistdio/u8-vsprintf.c: New file.
53715         * lib/unistdio/u8-u8-asnprintf.c: New file.
53716         * lib/unistdio/u8-u8-asprintf.c: New file.
53717         * lib/unistdio/u8-u8-snprintf.c: New file.
53718         * lib/unistdio/u8-u8-sprintf.c: New file.
53719         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53720         * lib/unistdio/u8-u8-vasprintf.c: New file.
53721         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53722         * lib/unistdio/u8-u8-vsprintf.c: New file.
53723         * lib/unistdio/u16-asnprintf.c: New file.
53724         * lib/unistdio/u16-asprintf.c: New file.
53725         * lib/unistdio/u16-printf-parse.c: New file.
53726         * lib/unistdio/u16-snprintf.c: New file.
53727         * lib/unistdio/u16-sprintf.c: New file.
53728         * lib/unistdio/u16-vasnprintf.c: New file.
53729         * lib/unistdio/u16-vasprintf.c: New file.
53730         * lib/unistdio/u16-vsnprintf.c: New file.
53731         * lib/unistdio/u16-vsprintf.c: New file.
53732         * lib/unistdio/u16-u16-asnprintf.c: New file.
53733         * lib/unistdio/u16-u16-asprintf.c: New file.
53734         * lib/unistdio/u16-u16-snprintf.c: New file.
53735         * lib/unistdio/u16-u16-sprintf.c: New file.
53736         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53737         * lib/unistdio/u16-u16-vasprintf.c: New file.
53738         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53739         * lib/unistdio/u16-u16-vsprintf.c: New file.
53740         * lib/unistdio/u32-asnprintf.c: New file.
53741         * lib/unistdio/u32-asprintf.c: New file.
53742         * lib/unistdio/u32-printf-parse.c: New file.
53743         * lib/unistdio/u32-snprintf.c: New file.
53744         * lib/unistdio/u32-sprintf.c: New file.
53745         * lib/unistdio/u32-vasnprintf.c: New file.
53746         * lib/unistdio/u32-vasprintf.c: New file.
53747         * lib/unistdio/u32-vsnprintf.c: New file.
53748         * lib/unistdio/u32-vsprintf.c: New file.
53749         * lib/unistdio/u32-u32-asnprintf.c: New file.
53750         * lib/unistdio/u32-u32-asprintf.c: New file.
53751         * lib/unistdio/u32-u32-snprintf.c: New file.
53752         * lib/unistdio/u32-u32-sprintf.c: New file.
53753         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53754         * lib/unistdio/u32-u32-vasprintf.c: New file.
53755         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53756         * lib/unistdio/u32-u32-vsprintf.c: New file.
53757         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53758         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53759         * tests/unistdio/test-ulc-printf1.h: New file.
53760         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53761         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53762         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53763         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53764         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53765         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53766         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53767         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53768         * tests/unistdio/test-u8-asnprintf1.c: New file.
53769         * tests/unistdio/test-u8-asnprintf1.h: New file.
53770         * tests/unistdio/test-u8-printf1.h: New file.
53771         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53772         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53773         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53774         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53775         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53776         * tests/unistdio/test-u8-vasprintf1.c: New file.
53777         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53778         * tests/unistdio/test-u8-vsprintf1.c: New file.
53779         * tests/unistdio/test-u16-asnprintf1.c: New file.
53780         * tests/unistdio/test-u16-asnprintf1.h: New file.
53781         * tests/unistdio/test-u16-printf1.h: New file.
53782         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53783         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53784         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53785         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53786         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53787         * tests/unistdio/test-u16-vasprintf1.c: New file.
53788         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53789         * tests/unistdio/test-u16-vsprintf1.c: New file.
53790         * tests/unistdio/test-u32-asnprintf1.c: New file.
53791         * tests/unistdio/test-u32-asnprintf1.h: New file.
53792         * tests/unistdio/test-u32-printf1.h: New file.
53793         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53794         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53795         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53796         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53797         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53798         * tests/unistdio/test-u32-vasprintf1.c: New file.
53799         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53800         * tests/unistdio/test-u32-vsprintf1.c: New file.
53801         * modules/unistdio/base: New file.
53802         * modules/unistdio/u-printf-args: New file.
53803         * modules/unistdio/ulc-asnprintf: New file.
53804         * modules/unistdio/ulc-asprintf: New file.
53805         * modules/unistdio/ulc-fprintf: New file.
53806         * modules/unistdio/ulc-printf-parse: New file.
53807         * modules/unistdio/ulc-snprintf: New file.
53808         * modules/unistdio/ulc-sprintf: New file.
53809         * modules/unistdio/ulc-vasnprintf: New file.
53810         * modules/unistdio/ulc-vasprintf: New file.
53811         * modules/unistdio/ulc-vfprintf: New file.
53812         * modules/unistdio/ulc-vsnprintf: New file.
53813         * modules/unistdio/ulc-vsprintf: New file.
53814         * modules/unistdio/u8-asnprintf: New file.
53815         * modules/unistdio/u8-asprintf: New file.
53816         * modules/unistdio/u8-printf-parse: New file.
53817         * modules/unistdio/u8-snprintf: New file.
53818         * modules/unistdio/u8-sprintf: New file.
53819         * modules/unistdio/u8-vasnprintf: New file.
53820         * modules/unistdio/u8-vasprintf: New file.
53821         * modules/unistdio/u8-vsnprintf: New file.
53822         * modules/unistdio/u8-vsprintf: New file.
53823         * modules/unistdio/u8-u8-asnprintf: New file.
53824         * modules/unistdio/u8-u8-asprintf: New file.
53825         * modules/unistdio/u8-u8-snprintf: New file.
53826         * modules/unistdio/u8-u8-sprintf: New file.
53827         * modules/unistdio/u8-u8-vasnprintf: New file.
53828         * modules/unistdio/u8-u8-vasprintf: New file.
53829         * modules/unistdio/u8-u8-vsnprintf: New file.
53830         * modules/unistdio/u8-u8-vsprintf: New file.
53831         * modules/unistdio/u16-asnprintf: New file.
53832         * modules/unistdio/u16-asprintf: New file.
53833         * modules/unistdio/u16-printf-parse: New file.
53834         * modules/unistdio/u16-snprintf: New file.
53835         * modules/unistdio/u16-sprintf: New file.
53836         * modules/unistdio/u16-vasnprintf: New file.
53837         * modules/unistdio/u16-vasprintf: New file.
53838         * modules/unistdio/u16-vsnprintf: New file.
53839         * modules/unistdio/u16-vsprintf: New file.
53840         * modules/unistdio/u16-u16-asnprintf: New file.
53841         * modules/unistdio/u16-u16-asprintf: New file.
53842         * modules/unistdio/u16-u16-snprintf: New file.
53843         * modules/unistdio/u16-u16-sprintf: New file.
53844         * modules/unistdio/u16-u16-vasnprintf: New file.
53845         * modules/unistdio/u16-u16-vasprintf: New file.
53846         * modules/unistdio/u16-u16-vsnprintf: New file.
53847         * modules/unistdio/u16-u16-vsprintf: New file.
53848         * modules/unistdio/u32-asnprintf: New file.
53849         * modules/unistdio/u32-asprintf: New file.
53850         * modules/unistdio/u32-printf-parse: New file.
53851         * modules/unistdio/u32-snprintf: New file.
53852         * modules/unistdio/u32-sprintf: New file.
53853         * modules/unistdio/u32-vasnprintf: New file.
53854         * modules/unistdio/u32-vasprintf: New file.
53855         * modules/unistdio/u32-vsnprintf: New file.
53856         * modules/unistdio/u32-vsprintf: New file.
53857         * modules/unistdio/u32-u32-asnprintf: New file.
53858         * modules/unistdio/u32-u32-asprintf: New file.
53859         * modules/unistdio/u32-u32-snprintf: New file.
53860         * modules/unistdio/u32-u32-sprintf: New file.
53861         * modules/unistdio/u32-u32-vasnprintf: New file.
53862         * modules/unistdio/u32-u32-vasprintf: New file.
53863         * modules/unistdio/u32-u32-vsnprintf: New file.
53864         * modules/unistdio/u32-u32-vsprintf: New file.
53865         * modules/unistdio/ulc-asnprintf-tests: New file.
53866         * modules/unistdio/ulc-vasnprintf-tests: New file.
53867         * modules/unistdio/ulc-vasprintf-tests: New file.
53868         * modules/unistdio/ulc-vsnprintf-tests: New file.
53869         * modules/unistdio/ulc-vsprintf-tests: New file.
53870         * modules/unistdio/u8-asnprintf-tests: New file.
53871         * modules/unistdio/u8-vasnprintf-tests: New file.
53872         * modules/unistdio/u8-vasprintf-tests: New file.
53873         * modules/unistdio/u8-vsnprintf-tests: New file.
53874         * modules/unistdio/u8-vsprintf-tests: New file.
53875         * modules/unistdio/u16-asnprintf-tests: New file.
53876         * modules/unistdio/u16-vasnprintf-tests: New file.
53877         * modules/unistdio/u16-vasprintf-tests: New file.
53878         * modules/unistdio/u16-vsnprintf-tests: New file.
53879         * modules/unistdio/u16-vsprintf-tests: New file.
53880         * modules/unistdio/u32-asnprintf-tests: New file.
53881         * modules/unistdio/u32-vasnprintf-tests: New file.
53882         * modules/unistdio/u32-vasprintf-tests: New file.
53883         * modules/unistdio/u32-vsnprintf-tests: New file.
53884         * modules/unistdio/u32-vsprintf-tests: New file.
53885         * MODULES.html.sh (Unicode string functions): Add the new modules.
53886
53887 2007-07-01  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/sprintf.c (sprintf): Limit the available length estimation,
53890         to avoid address wraparound.
53891         * lib/vsprintf.c (vsprintf): Likewise.
53892         * modules/sprintf-posix (Dependencies): Add stdint.
53893         * modules/vsprintf-posix (Dependencies): Likewise.
53894
53895 2007-07-01  Bruno Haible  <bruno@clisp.org>
53896
53897         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53898         Windows PATH as well. Conservative double-quoting. Comments.
53899
53900 2007-07-01  Bruno Haible  <bruno@clisp.org>
53901             Eric Blake  <ebb9@byu.net>
53902             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53903
53904         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53905         empty components in $PATH, denoting '.'.
53906
53907 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53908
53909         * gnulib-tool: Fix indentation.
53910         (func_create_megatestdir): Likewise.
53911         Report by Bruno Haible.
53912
53913 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53914
53915         Sync from Automake.
53916         * build-aux/gnupload: Fix shell portability issues with for loops.
53917         Report by Karl Berry.
53918
53919 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53920
53921         * build-aux/maint.mk (POURL): Use translationproject.org.
53922
53923 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53924             Bruno Haible  <bruno@clisp.org>
53925
53926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53927         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53928         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53929         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53930         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53931
53932 2007-06-27  Bruno Haible  <bruno@clisp.org>
53933
53934         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53935         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53936
53937 2007-06-26  Karl Berry  <karl@gnu.org>
53938
53939         * MODULES.html.sh: remove xreadlink-with-size.
53940
53941 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53944         method that I hope also handles the double-include problem noted
53945         by Bruno Haible in
53946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53947
53948 2007-06-23  Bruno Haible  <bruno@clisp.org>
53949
53950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53951         Don't let the 'mostlyclean' target fail if the last subdirectory could
53952         not be removed.
53953         Reported by Karl Berry.
53954
53955 2007-06-23  Bruno Haible  <bruno@clisp.org>
53956
53957         * gnulib-tool (echo): Add a speedier workaround for ksh.
53958         * tests/test-echo.sh: Likewise.
53959
53960 2007-06-23  Bruno Haible  <bruno@clisp.org>
53961
53962         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53963         * tests/test-echo.sh: Likewise.
53964
53965 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53966
53967         * gnulib-tool (IFS): Initialize early, so we don't set it to
53968         empty later.
53969         (self_abspathname): Rewrite algorithm to set it, reindent.
53970         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53971         (func_create_megatestdir): Merge some sed scripts.
53972
53973 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53974
53975         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53976         exposed by Sun Studio 11 cc on Solaris 8.
53977
53978 2007-06-22  Bruno Haible  <bruno@clisp.org>
53979
53980         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53981         backslashes.
53982         * tests/test-echo.sh: New file.
53983
53984 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53985
53986         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53987         simplify `sed_replace_build_aux' scripts, they are portable but
53988         echoing them with `echo' is not.
53989         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53990
53991 2007-06-21  Karl Berry  <karl@gnu.org>
53992
53993         * config/srclist.txt: guess we can't handle the licenses via
53994         srclist at the moment.
53995
53996 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * MODULES.html.sh: Add include_next.
53999         * modules/include_next: New file.
54000
54001 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54004         INCLUDE_NEXT.
54005         (gl_CHECK_NEXT_HEADERS): New macro.
54006         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54007         the obsolescent gl_ABSOLUTE_HEADER.
54008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54009         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54010         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54011         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54012         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54013         * m4/math_h.m4 (gl_MATH_H): Likewise.
54014         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54015         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54016         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54017         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54018         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54019         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54020         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54021         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54025         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54026         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54027         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54028         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54029         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54030         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54031         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54032         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54033         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54034         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54035         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54036         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54037         * lib/float_.h: Likewise.
54038         * lib/inttypes_.h: Likewise.
54039         * lib/math_.h: Likewise.
54040         * lib/search_.h: Likewise.
54041         * lib/signal_.h: Likewise.
54042         * lib/stdint_.h: Likewise.
54043         * lib/stdio_.h: Likewise.
54044         * lib/stdlib_.h: Likewise.
54045         * lib/string_.h: Likewise.
54046         * lib/sys_stat_.h: Likewise.
54047         * lib/sys_time_.h: Likewise.
54048         * lib/time_.h: Likewise.
54049         * lib/unistd_.h: Likewise.
54050         * lib/wchar_.h: Likewise.
54051         * lib/wctype_.h: Likewise.
54052         * lib/dirent_.h: Likewise.
54053         * lib/iconv_.h: Likewise.
54054         * lib/locale_.h: Likewise.
54055         * lib/netinet_in_.h: Likewise.
54056         * lib/sys_select_.h: Likewise.
54057         * lib/sys_socket_.h: Likewise.
54058         * lib/sysexits_.h: Likewise.
54059         * modules/fcntl (Depends-on): Depend on include_next, not
54060         absolute_header.
54061         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54062         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54063         * modules/fchdir: Likewise.
54064         * modules/float: Likewise.
54065         * modules/iconv_open: Likewise.
54066         * modules/inttypes: Likewise.
54067         * modules/locale: Likewise.
54068         * modules/math: Likewise.
54069         * modules/netinet_in: Likewise.
54070         * modules/search: Likewise.
54071         * modules/signal: Likewise.
54072         * modules/stdint: Likewise.
54073         * modules/stdio: Likewise.
54074         * modules/stdlib: Likewise.
54075         * modules/string: Likewise.
54076         * modules/sys_select: Likewise.
54077         * modules/sys_socket: Likewise.
54078         * modules/sys_stat: Likewise.
54079         * modules/sys_time: Likewise.
54080         * modules/sysexits: Likewise.
54081         * modules/time: Likewise.
54082         * modules/unistd: Likewise.
54083         * modules/wchar: Likewise.
54084         * modules/wctype: Likewise.
54085         * modules/sys_stat: Change maintainer to "all".
54086         * modules/unistd: Likewise.
54087
54088 2007-06-20  Karl Berry  <karl@gnu.org>
54089
54090         * config/srclist.txt: track www changes in license files.
54091
54092 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54093
54094         * build-aux/bootstrap: Remove stray dot.
54095         Make sure build_aux settings are honored when linking
54096         gnulib_extra_files.
54097
54098 2007-06-19  Eric Blake  <ebb9@byu.net>
54099
54100         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54101         Allow compilation on cygwin.
54102
54103 2007-06-19  Jim Meyering  <jim@meyering.net>
54104
54105         xreadlink-with-size: Remove module.  No longer used.
54106         Ex-callers now use xreadlink or mreadlink-with-size.
54107         * modules/xreadlink-with-size: Remove module.
54108         * lib/xreadlink-with-size.c: Remove file.
54109         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54110         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54111         just before the function definition *is* accurate.
54112
54113         Eliminate one way canonicalize_filename_mode could exit.
54114         * lib/canonicalize.c (canonicalize_filename_mode):
54115         Use mreadlink_with_size, not xreadlink_with_size.
54116
54117 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         Detect porting problems to FreeBSD/arm, which has time_t wider than
54120         long int.  Original problem reported for GNU diff by Xin Li in
54121         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54122         * modules/getdate (Depends-on): Add intprops, verify.
54123         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54124         is an integer type no wider than long int.
54125
54126 2007-06-18  Jim Meyering  <jim@meyering.net>
54127
54128         New module: mreadlink-with-size.
54129         * MODULES.html.sh: Add mreadlink-with-size.
54130         * modules/mreadlink-with-size: New module
54131         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54132         not xreadlink-with-size.
54133         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54134
54135 2007-06-16  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54138         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54139         Reported by Gary V. Vaughan <gary@gnu.org>.
54140
54141 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         Revamp lchown so that it lives in unistd.h where it belongs.
54144         * lib/lchown.h: Remove.
54145         * lib/dirchownmod.c: Don't include lib/lchown.h.
54146         * lib/fchownat.c: Likewise.
54147         * lib/openat.c: Likewise.
54148         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54149         does not follow symlinks.
54150         (EOPNOTSUPP): Define if not defined.
54151         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54152         is defined to 0.
54153         (lchown): New decl.
54154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54155         Do not check for lchown decl.
54156         Set REPLACE_LCHOWN.
54157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54158         REPLACE_LCHOWN.
54159         * modules/chown: Make it clear it follows symlinks.
54160         * modules/lchown: Make it clear it doesn't follow symlinks.
54161         (Files): Remove lib/lchown.h
54162         (Depends-on): Add unistd.
54163         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54164         (Include): Include <unistd.h>, not "lchown.h".
54165         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54166         REPLACE_LCHOWN.
54167
54168 2007-06-15  Jim Meyering  <jim@meyering.net>
54169
54170         Change license (GPL to LGPL) of fsusage and dependents.
54171         * modules/fsusage (License): Change to LGPL.
54172         * modules/full-read (License): Likewise.
54173         * modules/full-write (License): Likewise.
54174         * modules/safe-read (License): Likewise.
54175         * modules/safe-write (License): Likewise.
54176
54177 2007-06-14  Ben Pfaff  <blp@gnu.org>
54178
54179         Missing part of allocsa -> malloca transition.
54180         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54181         gl_MALLOCA.
54182
54183 2007-06-12  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54186         to ia64, x86_64, i386.
54187         Reported by Eric Blake.
54188
54189 2007-06-12  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54192         cross-compiling to x86_64.
54193
54194 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54197         glitch reported by Ralf Wildenhues in
54198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54199
54200         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54201         Vin Shelton.
54202
54203 2007-06-11  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54206         replacement string.
54207         Reported by Eric Blake.
54208
54209 2007-06-10  Bruno Haible  <bruno@clisp.org>
54210
54211         Prepare vasnprintf code for use with Unicode strings.
54212         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54213         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54214         TYPE_U32_STRING.
54215         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54216         a_u32_string variants.
54217         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54218         * lib/printf-args.c: Don't include config.h and the specification
54219         header if PRINTF_FETCHARGS is already defined.
54220         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54221         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54222         TYPE_U16_STRING, TYPE_U32_STRING.
54223         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54224         u16_directive, u16_directives, u32_directive, u32_directives): New
54225         types.
54226         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54227         New declarations.
54228         * lib/printf-parse.c: Don't include config.h and the specification
54229         header if PRINTF_PARSE is already defined. Eliminate the set of
54230         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54231         them now. Include c-ctype.h.
54232         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54233         directive and CHAR_T_ONLY_ASCII.
54234         * lib/vasnprintf.c: Don't include config.h and the specification header
54235         if VASNPRINTF is already defined.
54236         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54237         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54238         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54239         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54240         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54241         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54242         code accordingly.
54243         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54244         pad_ourselves also in this case, with the 'c' and 's' directives, and
54245         with a different notion of "width".
54246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54247
54248 2007-06-10  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/unistr/u32-mbsnlen: New file.
54251         * lib/unistr/u32-mbsnlen.c: New file.
54252
54253         * modules/unistr/u16-mbsnlen: New file.
54254         * lib/unistr/u16-mbsnlen.c: New file.
54255
54256         * modules/unistr/u8-mbsnlen: New file.
54257         * lib/unistr/u8-mbsnlen.c: New file.
54258
54259         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54260         declarations.
54261
54262 2007-06-10  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/string_.h (mbsnlen): New declaration.
54265         * lib/mbsnlen.c: New file.
54266         * m4/mbsnlen.m4: New file.
54267         * modules/mbsnlen: New file.
54268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54269         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54270         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54271
54272 2007-06-10  Bruno Haible  <bruno@clisp.org>
54273
54274         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54275
54276 2007-06-10  Bruno Haible  <bruno@clisp.org>
54277
54278         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54279         * lib/mbuiter.h: Likewise.
54280
54281 2007-06-10  Bruno Haible  <bruno@clisp.org>
54282
54283         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54284         declaration.
54285
54286 2007-06-10  Karl Berry  <karl@gnu.org>
54287
54288         * config/srclist.txt: remove gettext entries, Bruno prefers
54289         to update individually.
54290
54291 2007-06-10  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54294         'maxlen'. Ensure only length + width bytes are allocated, not
54295         length + 1 + width.
54296
54297 2007-06-09  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54300         (CHAR_T): Remove macro.
54301         (VASNPRINTF): Update.
54302
54303 2007-06-09  Bruno Haible  <bruno@clisp.org>
54304
54305         * MODULES.html.sh (Unicode string functions): Add the new modules.
54306
54307         * modules/uniconv/u32-conv-to-enc: New file.
54308         * lib/uniconv/u32-conv-to-enc.c: New file.
54309         * modules/uniconv/u32-conv-to-enc-tests: New file.
54310         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54311
54312         * modules/uniconv/u16-conv-to-enc: New file.
54313         * lib/uniconv/u16-conv-to-enc.c: New file.
54314         * lib/uniconv/u-conv-to-enc.h: New file.
54315         * modules/uniconv/u16-conv-to-enc-tests: New file.
54316         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54317
54318         * modules/uniconv/u8-conv-to-enc: New file.
54319         * lib/uniconv/u8-conv-to-enc.c: New file.
54320         * modules/uniconv/u8-conv-to-enc-tests: New file.
54321         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54322
54323         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54324         u32_conv_to_encoding): New declarations.
54325
54326 2007-06-09  Bruno Haible  <bruno@clisp.org>
54327
54328         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54329
54330 2007-06-09  Bruno Haible  <bruno@clisp.org>
54331
54332         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54333         * modules/malloca: Renamed from modules/allocsa, updated.
54334         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54335         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54336         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54337         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54338         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54339         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54340         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54341         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54342         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54343         * modules/c-strcasestr (Depends-on): Update.
54344         * lib/c-strcasestr.c: Update.
54345         * modules/c-strstr (Depends-on): Update.
54346         * lib/c-strstr.c: Update.
54347         * modules/canonicalize-lgpl (Depends-on): Update.
54348         * lib/canonicalize-lgpl.c: Update.
54349         * modules/clean-temp (Depends-on): Update.
54350         * lib/clean-temp.c: Update.
54351         * modules/csharpcomp (Depends-on): Update.
54352         * lib/csharpcomp.c: Update.
54353         * modules/csharpexec (Depends-on): Update.
54354         * lib/csharpexec.c: Update.
54355         * modules/javacomp (Depends-on): Update.
54356         * lib/javacomp.c: Update.
54357         * modules/javaexec (Depends-on): Update.
54358         * lib/javaexec.c: Update.
54359         * modules/mbscasestr (Depends-on): Update.
54360         * lib/mbscasestr.c: Update.
54361         * modules/mbsstr (Depends-on): Update.
54362         * lib/mbsstr.c: Update.
54363         * modules/setenv (Depends-on): Update.
54364         * lib/setenv.c: Update.
54365         * modules/strcasestr (Depends-on): Update.
54366         * lib/strcasestr.c: Update.
54367         * modules/striconveha (Depends-on): Update.
54368         * lib/striconveha.c: Update.
54369         * modules/relocatable-prog-wrapper (Files): Update.
54370         * lib/relocwrapper.c: Update.
54371         * build-aux/install-reloc: Update.
54372         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54373
54374 2007-06-08  Bruno Haible  <bruno@clisp.org>
54375
54376         Port to uClibc.
54377         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54378         * lib/fpurge.c (fpurge): Likewise.
54379         * lib/freading.c (freading): Likewise.
54380         * lib/fseeko.c (rpl_fseeko): Likewise.
54381         * lib/fseterr.c (fseterr): Likewise.
54382         * lib/fwriting.c (fwriting): Likewise.
54383         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54384
54385 2007-06-08  Bruno Haible  <bruno@clisp.org>
54386
54387         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54388         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54389         * modules/gettext (Files): Add m4/intlmacosx.m4.
54390
54391 2007-06-07  Bruno Haible  <bruno@clisp.org>
54392
54393         * modules/localename-tests: New file.
54394         * tests/test-localename.c: New file.
54395
54396         New module 'localename'.
54397         * lib/localename.h: New file.
54398         * lib/localename.c: New file, from GNU gettext.
54399         * m4/localename.m4: New file.
54400         * modules/localename: New file.
54401
54402 2007-06-07  Bruno Haible  <bruno@clisp.org>
54403
54404         Work around the lack of <wchar.h> on some builds of uClibc.
54405         * doc/headers/wchar.texi: Update.
54406         * lib/wchar_.h: Include <wchar.h> only if it exists.
54407         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54408         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54409         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54410         doesn't exist.
54411         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54412         * modules/mbfile (Depends-on): Add wchar.
54413         * modules/mbiter (Depends-on): Likewise.
54414         * modules/mbuiter (Depends-on): Likewise.
54415         Reported by Simon Josefsson.
54416
54417 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         Work around problem reported by Steven M. Schweda in
54420         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54421         Tru64 5.1B with the Compaq compiler environment installed declares
54422         an 'isblank' function but does not define it in the C library.
54423         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54424         * lib/regex_internal.h (isblank): Likewise.
54425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54427
54428 2007-06-05  Bruno Haible  <bruno@clisp.org>
54429
54430         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54431         ia64.
54432         * modules/printf-safe: New file.
54433         * modules/fprintf-posix (Depends-on): Add printf-safe.
54434         * modules/printf-posix (Depends-on): Likewise.
54435         * modules/snprintf-posix (Depends-on): Likewise.
54436         * modules/sprintf-posix (Depends-on): Likewise.
54437         * modules/vasnprintf-posix (Depends-on): Likewise.
54438         * modules/vasprintf-posix (Depends-on): Likewise.
54439         * modules/vfprintf-posix (Depends-on): Likewise.
54440         * modules/vprintf-posix (Depends-on): Likewise.
54441         * modules/vsnprintf-posix (Depends-on): Likewise.
54442         * modules/vsprintf-posix (Depends-on): Likewise.
54443         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54444         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54445         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54446         "no" on i386, x86_64, ia64.
54447         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54448         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54449         on i386, x86_64, ia64.
54450         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54451         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54452         on i386, x86_64, ia64.
54453         * tests/test-vasnprintf-posix.c: Include float.h.
54454         (LDBL80_WORDS): New macro.
54455         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54456         on i386, x86_64, ia64.
54457         * tests/test-vasprintf-posix.c: Include float.h.
54458         (LDBL80_WORDS): New macro.
54459         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54460         on i386, x86_64, ia64.
54461         * tests/test-snprintf-posix.c: Include float.h.
54462         * tests/test-sprintf-posix.c: Likewise.
54463         * tests/test-vsnprintf-posix.c: Likewise.
54464         * tests/test-vsprintf-posix.c: Likewise.
54465
54466 2007-06-05  Bruno Haible  <bruno@clisp.org>
54467
54468         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54469         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54470         non-IEEE numbers on i386, x86_64, ia64.
54471         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54472         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54473         * tests/test-isnanl.h: Include float.h.
54474         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54475
54476 2007-06-05  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54479         also the %a / %A. Handle the %a / %A code before this extra handling.
54480
54481 2007-06-05  Bruno Haible  <bruno@clisp.org>
54482
54483         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54484         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54485
54486 2007-06-05  Bruno Haible  <bruno@clisp.org>
54487
54488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54489         typo in variable name.
54490
54491 2007-06-05  Eric Blake  <ebb9@byu.net>
54492
54493         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54494         Reported by Simon Josefsson.
54495
54496 2007-06-04  Bruno Haible  <bruno@clisp.org>
54497
54498         Avoid test failures on some PowerPC platforms.
54499         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54500         Define differently for PowerPC.
54501         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54502         Reported by Gary V. Vaughan <gary@gnu.org>.
54503
54504 2007-06-02  Bruno Haible  <bruno@clisp.org>
54505
54506         Fix test-stdint failure on FreeBSD/ia64.
54507         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54508         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54509         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54510         * doc/headers/stdint.texi: Update.
54511
54512 2007-06-01  Bruno Haible  <bruno@clisp.org>
54513
54514         * tests/test-binary-io.c (main): Pass a third argument to open().
54515         Reported by Gary V. Vaughan <gary@gnu.org>.
54516
54517 2007-06-01  Bruno Haible  <bruno@clisp.org>
54518
54519         * doc/functions/frexpl.texi: Update for mingw.
54520
54521 2007-06-01  Bruno Haible  <bruno@clisp.org>
54522
54523         * tests/test-lseek.c (main): Disable test of errno for invalid third
54524         argument.
54525         * doc/functions/lseek.texi: Update.
54526         Reported by Gary V. Vaughan <gary@gnu.org>.
54527
54528 2007-05-28  Bruno Haible  <bruno@clisp.org>
54529
54530         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54531
54532 2007-05-31  Eric Blake  <ebb9@byu.net>
54533
54534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54535         cross compiling.
54536
54537 2007-05-30  Eric Blake  <ebb9@byu.net>
54538         and Bruno Haible  <bruno@clisp.org>
54539
54540         Work around mingw test failures exposed by m4-1.4.9b.
54541         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54542         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54543         moment.
54544
54545 2007-05-30  Bruno Haible  <bruno@clisp.org>
54546
54547         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54548         assuming that they are closed. Needed on HP-UX 11.
54549
54550 2007-05-29  Bruno Haible  <bruno@clisp.org>
54551
54552         Fix a problem with #include_next.
54553         * lib/dirent_.h: Split the double-inclusion guard.
54554         * lib/fcntl_.h: Likewise.
54555         * lib/float_.h: Likewise.
54556         * lib/iconv_.h: Likewise.
54557         * lib/inttypes_.h: Likewise.
54558         * lib/locale_.h: Likewise.
54559         * lib/math_.h: Likewise.
54560         * lib/netinet_in_.h: Likewise.
54561         * lib/search_.h: Likewise.
54562         * lib/signal_.h: Likewise.
54563         * lib/stdint_.h: Likewise.
54564         * lib/stdio_.h: Likewise.
54565         * lib/stdlib_.h: Likewise.
54566         * lib/string_.h: Likewise.
54567         * lib/sys_select_.h: Likewise.
54568         * lib/sys_socket_.h: Likewise.
54569         * lib/sys_stat_.h: Likewise.
54570         * lib/sys_time_.h: Likewise.
54571         * lib/sysexits_.h: Likewise.
54572         * lib/time_.h: Likewise.
54573         * lib/unistd_.h: Likewise.
54574         * lib/wchar_.h: Likewise.
54575         * lib/wctype_.h: Likewise.
54576
54577 2007-05-29  Bruno Haible  <bruno@clisp.org>
54578
54579         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54580         for the moment.
54581
54582 2007-05-29  Bruno Haible  <bruno@clisp.org>
54583
54584         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54585         invocation.
54586         Reported by Eric Blake.
54587
54588 2007-05-29  Bruno Haible  <bruno@clisp.org>
54589
54590         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54591         compiling case.
54592
54593 2007-05-29  Eric Blake  <ebb9@byu.net>
54594             Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54597         cross compiles.
54598
54599 2007-05-28  Eric Blake  <ebb9@byu.net>
54600
54601         * modules/closein-tests (test_closein_LDADD): Support test on
54602         cygwin with libtool.
54603
54604 2007-05-28  Bruno Haible  <bruno@clisp.org>
54605
54606         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54607         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54608         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54609         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54610         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54611         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54612         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54613         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54614         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54615
54616 2007-05-28  Eric Blake  <ebb9@byu.net>
54617
54618         Unconditionally include <config.h> in unit tests.
54619         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54620         * tests/test-allocsa.c, tests/test-arcfour.c,
54621         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54622         tests/test-array_list.c, tests/test-array_oset.c,
54623         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54624         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54625         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54626         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54627         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54628         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54629         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54630         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54631         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54632         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54633         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54634         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54635         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54636         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54637         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54638         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54639         test-md5.c, test-memmem.c, test-printf-posix.c,
54640         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54641         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54642         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54643         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54644         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54645         test-vasnprintf-posix2.c, test-vasnprintf.c,
54646         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54647         test-vfprintf-posix.c, test-vprintf-posix.c,
54648         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54649         test-xvasprintf.c: Likewise.
54650
54651 2007-05-28  Bruno Haible  <bruno@clisp.org>
54652
54653         * gnulib-tool (func_import): Remember the --with-tests command-line
54654         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54655         Reported by Eric Blake.
54656
54657 2007-05-28  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/ftell-tests: New file.
54660         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54661         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54662
54663         * lib/ftell.c: New file.
54664         * modules/ftell: New file.
54665         * m4/ftell.m4: New file.
54666         * doc/functions/ftell.texi: Update.
54667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54668         REPLACE_FTELL.
54669         * lib/stdio_.h (rpl_ftell): New declaration.
54670         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54671         REPLACE_FTELL.
54672
54673 2007-05-28  Eric Blake  <ebb9@byu.net>
54674
54675         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54676
54677 2007-05-28  Bruno Haible  <bruno@clisp.org>
54678
54679         * modules/fseek-tests: New file.
54680         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54681         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54682
54683         * lib/fseek.c: New file.
54684         * modules/fseek: New file.
54685         * m4/fseek.m4: New file.
54686         * doc/functions/fseek.texi: Update.
54687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54688         REPLACE_FSEEK.
54689         * lib/stdio_.h (rpl_fseek): New declaration.
54690         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54691         REPLACE_FSEEK.
54692
54693 2007-05-28  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/stdio_.h (fflush): More comments.
54696
54697 2007-05-28  Bruno Haible  <bruno@clisp.org>
54698
54699         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54700         runtime test.
54701
54702 2007-05-28  Eric Blake  <ebb9@byu.net>
54703
54704         Improve lseek module.
54705         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54706         * lib/unistd_.h (lseek): Scale back link warning message.
54707         * tests/test-lseek.c: Beef up test.
54708         * tests/test-lseek.sh: Exercise more facets of lseek.
54709         Reported by Bruno Haible.
54710
54711 2007-05-28  Bruno Haible  <bruno@clisp.org>
54712
54713         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54714         to define.
54715
54716 2007-05-27  Bruno Haible  <bruno@clisp.org>
54717
54718         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54719
54720 2007-05-27  Bruno Haible  <bruno@clisp.org>
54721
54722         * modules/openmp: New file.
54723         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54724         Noah Misch.
54725
54726 2007-05-26  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/chdir-long (Depends-on): Add fchdir.
54729         * modules/chdir-safer (Depends-on): Likewise.
54730         * modules/fts (Depends-on): Likewise.
54731         * modules/fts-lgpl (Depends-on): Likewise.
54732         * modules/openat (Depends-on): Likewise.
54733         * modules/savewd (Depends-on): Likewise.
54734
54735 2007-05-24  Eric Blake  <ebb9@byu.net>
54736
54737         Fix lseek on mingw.
54738         * modules/lseek: New module.
54739         * m4/lseek.m4: New file.
54740         * lib/lseek.c: New file.
54741         * modules/lseek-tests: New file.
54742         * tests/test-lseek.c: New file.
54743         * tests/test-lseek.sh: New file.
54744         * MODULES.html.sh: Document lseek module.
54745         * modules/fflush (Depends-on): Add lseek, fseeko.
54746         * modules/fseeko (Depends-on): Likewise.
54747         * modules/ftello (Depends-on): Likewise.
54748         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54749         broken.
54750         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54751         broken.
54752         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54753         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54754         * lib/ftello.c (rpl_ftello): Likewise.
54755         * tests/test-fseeko.c (main): Test this.
54756         * tests/test-fseeko.sh: Likewise.
54757         * tests/test-ftello.c (main): Likewise.
54758         * tests/test-ftello.sh: Likewise.
54759         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54760         implies replacing fseek.
54761         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54762         HAVE_FTELLO.
54763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54764         * modules/unistd (Makefile.am): Likewise.
54765         * lib/unistd_.h (lseek): Declare a replacement.
54766         * doc/functions/lseek.texi (lseek): Document this fix.
54767         * doc/functions/fseek.texi (fseek): Likewise.
54768         * doc/functions/ftell.texi (ftell): Likewise.
54769
54770 2007-05-24  Bruno Haible  <bruno@clisp.org>
54771
54772         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54773         in the printed representation of a NaN.
54774         * tests/test-vasprintf-posix.c (test_function): Likewise.
54775         * tests/test-snprintf-posix.h (test_function): Likewise.
54776         * tests/test-sprintf-posix.h (test_function): Likewise.
54777         Reported by Eric Blake.
54778
54779 2007-05-23  Eric Blake  <ebb9@byu.net>
54780
54781         Fix fseeko/ftello on cygwin 1.5.24.
54782         * doc/functions/fseeko.texi (fseeko): Document the fix.
54783         * doc/functions/ftello.texi (ftello): Document the fix.
54784         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54785         * doc/functions/stdout.text (stdout): New file.
54786         * doc/functions/stderr.text (stderr): New file.
54787         * doc/gnulib.texi (Function Substitutes): Use new files.
54788         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54789         prior to 1.7.0.
54790         * tests/test-ftello.c (main): Likewise for ftello.
54791         * tests/test-fseeko.sh: New file.
54792         * tests/test-ftello.sh: New file.
54793         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54794         with seekable stdin.
54795         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54796         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54797         (gl_REPLACE_FSEEKO): New macro.
54798         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54799         * modules/fseeko (Files): Distribute fseeko.c.
54800         * modules/ftello (Files): Distribute ftello.c.
54801         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54802         mode.
54803         * lib/ftello.c (rpl_ftello): New file.
54804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54805         fseeko, ftello.
54806         (gl_STDIN_LARGE_OFFSET): New macro.
54807         * modules/stdio (Makefile.am): Perform the replacement.
54808         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54809
54810 2007-05-23  Bruno Haible  <bruno@clisp.org>
54811
54812         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54813         GNULIB_POSIXCHECK is defined.
54814
54815 2007-05-21  Bruno Haible  <bruno@clisp.org>
54816
54817         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54818         Check also the output for NaN arguments. When cross-compiling, guess
54819         no on IRIX.
54820         * lib/vasnprintf.c: Update comments.
54821         * tests/test-vasnprintf-posix.c (strisnan): New function.
54822         (test_function): Use it.
54823         * tests/test-vasprintf-posix.c (strisnan): New function.
54824         (test_function): Use it.
54825         * tests/test-snprintf-posix.h (strisnan): New function.
54826         (test_function): Use it.
54827         * tests/test-sprintf-posix.h (strisnan): New function.
54828         (test_function): Use it.
54829         Reported by Eric Blake.
54830
54831 2007-05-20  Bruno Haible  <bruno@clisp.org>
54832
54833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54834         numbers that fails on BeOS.
54835         * doc/functions/frexpl.texi: Update.
54836
54837 2007-05-20  Jim Meyering  <jim@meyering.net>
54838
54839         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54840         forced upon us by glibc-2.6.
54841
54842 2007-05-20  Bruno Haible  <bruno@clisp.org>
54843
54844         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54845         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54846         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54847         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54848         NEED_PRINTF_INFINITE.
54849         (is_infinitel): New function.
54850         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54852         gl_PREREQ_VASNPRINTF_INFINITE.
54853         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54855         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54856         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54857         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54858         gl_PREREQ_VASNPRINTF_INFINITE.
54859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54860         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54863         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54866         * doc/functions/fprintf.texi: Update.
54867         * doc/functions/printf.texi: Update.
54868         * doc/functions/snprintf.texi: Update.
54869         * doc/functions/sprintf.texi: Update.
54870         * doc/functions/vfprintf.texi: Update.
54871         * doc/functions/vprintf.texi: Update.
54872         * doc/functions/vsnprintf.texi: Update.
54873         * doc/functions/vsprintf.texi: Update.
54874
54875 2007-05-20  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54878         was not found in libc.
54879         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54880
54881 2007-05-20  Bruno Haible  <bruno@clisp.org>
54882
54883         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54884         printed as "-nan" instead of "nan".
54885         * tests/test-vasprintf-posix.c (test_function): Likewise.
54886         * tests/test-snprintf-posix.h (test_function): Likewise.
54887         * tests/test-sprintf-posix.h (test_function): Likewise.
54888         Needed for HP-UX 11.
54889
54890 2007-05-20  Jim Meyering  <jim@meyering.net>
54891
54892         Fix buggy test for the fchownat-deref bug.
54893         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54894         symlink required for the run-test.  Without it, this test would
54895         always declare that fchownat doesn't work, and client code would
54896         unnecessarily use the replacement function with fixed libc.
54897         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54898         Reported by Greg Schafer.
54899
54900 2007-05-19  Bruno Haible  <bruno@clisp.org>
54901
54902         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54903         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54904         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54905         Needed for IRIX 6.5 and Solaris 2.5.1.
54906
54907 2007-05-19  Bruno Haible  <bruno@clisp.org>
54908
54909         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54910         (test_function): Skip tests involving -0.0 on platforms where
54911         -0.0 = 0.0.
54912         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54913         (test_function): Skip tests involving -0.0 on platforms where
54914         -0.0 = 0.0.
54915         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54916         (test_function): Skip tests involving -0.0 on platforms where
54917         -0.0 = 0.0.
54918         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54919         (test_function): Skip tests involving -0.0 on platforms where
54920         -0.0 = 0.0.
54921         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54922         tests.
54923         * tests/test-printf-posix.h (test_function): Likewise.
54924         * tests/test-printf-posix.output: Remove all -0.0 related results.
54925         Needed for IRIX 6.5.
54926
54927 2007-05-19  Bruno Haible  <bruno@clisp.org>
54928
54929         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54930         printed as "nan0x7fffffff" instead of "nan".
54931         * tests/test-vasprintf-posix.c (test_function): Likewise.
54932         * tests/test-snprintf-posix.h (test_function): Likewise.
54933         * tests/test-sprintf-posix.h (test_function): Likewise.
54934         * tests/test-fprintf-posix.h (NaN): Remove macro.
54935         (test_function): Remove all NaN related tests.
54936         * tests/test-printf-posix.h (NaN): Remove macro.
54937         (test_function): Remove all NaN related tests.
54938         * tests/test-printf-posix.output: Remove all NaN related results.
54939         Needed for IRIX 6.5.
54940
54941 2007-05-19  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54945
54946 2007-05-19  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/float_.h: New file.
54949         * m4/float_h.m4: New file.
54950         * modules/float: New file.
54951         * modules/isnanl (Dependencies): Add float.
54952         * modules/isnanl-nolibm (Dependencies): Likewise.
54953         * modules/mathl (Dependencies): Likewise.
54954         * modules/printf-frexpl (Dependencies): Likewise.
54955         * modules/signbit (Dependencies): Likewise.
54956         * modules/vasnprintf (Dependencies): Likewise.
54957         * doc/headers/float.texi: Update.
54958
54959 2007-05-19  Jim Meyering  <jim@meyering.net>
54960
54961         * lib/utimens.c (gl_futimens): Rename from futimens,
54962         now that glibc-2.6 declares futimens.
54963         * lib/utimens.h: Likewise.
54964
54965 2007-05-19  Bruno Haible  <bruno@clisp.org>
54966
54967         Avoid test failures on mingw.
54968         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54969         * tests/test-printf-posix.sh: Likewise.
54970         * tests/test-vfprintf-posix.sh: Likewise.
54971         * tests/test-vprintf-posix.sh: Likewise.
54972
54973 2007-05-19  Bruno Haible  <bruno@clisp.org>
54974
54975         Fix *printf result for NaN, Inf, -0.0 on mingw.
54976         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54977         * lib/vasnprintf.c: Include math.h and isnan.h.
54978         (is_infinite_or_zero): New function.
54979         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54980         values in the %f, %F, %e, %E, %g, %G directives.
54981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54983         gl_PRINTF_INFINITE and test its result. Invoke
54984         gl_PREREQ_VASNPRINTF_INFINITE.
54985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54992         * doc/functions/fprintf.texi: Update.
54993         * doc/functions/printf.texi: Update.
54994         * doc/functions/snprintf.texi: Update.
54995         * doc/functions/sprintf.texi: Update.
54996         * doc/functions/vfprintf.texi: Update.
54997         * doc/functions/vprintf.texi: Update.
54998         * doc/functions/vsnprintf.texi: Update.
54999         * doc/functions/vsprintf.texi: Update.
55000
55001 2007-05-19  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55004         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55005         Instead of multiplying with 10^k, set extra_zeroes to k.
55006         (scale10_round_long_double): Remove function.
55007
55008 2007-05-18  Bruno Haible  <bruno@clisp.org>
55009
55010         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55011         introduced on 2007-05-06.
55012
55013 2007-05-18  Bruno Haible  <bruno@clisp.org>
55014
55015         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55016         %g directives.
55017         * tests/test-vasprintf-posix.c (test_function): Likewise.
55018         * tests/test-snprintf-posix.h (test_function): Likewise.
55019         * tests/test-sprintf-posix.h (test_function): Likewise.
55020
55021 2007-05-18  Bruno Haible  <bruno@clisp.org>
55022
55023         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55024         (strmatch): New function.
55025         (test_function): Test the %f directive on numbers of various exponents.
55026         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55027         (strmatch): New function.
55028         (test_function): Test the %f directive on numbers of various exponents.
55029         * tests/test-snprintf-posix.h (strmatch): New function.
55030         (test_function): Test the %f directive on numbers of various exponents.
55031         * tests/test-sprintf-posix.h (strmatch): New function.
55032         (test_function): Test the %f directive on numbers of various exponents.
55033         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55034         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55035         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55036         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55037
55038 2007-05-18  Bruno Haible  <bruno@clisp.org>
55039
55040         Add support for 'long double' number output.
55041         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55042         * lib/vasnprintf.c: Include math.h and float+.h.
55043         (mp_limb_t): New type.
55044         (GMP_LIMB_BITS): New macro.
55045         (mp_twolimb_t): New type.
55046         (GMP_TWOLIMB_BITS): New macro.
55047         (mpn_t): New type.
55048         (multiply, divide, convert_to_decimal, decode_long_double,
55049         scale10_round_long_double, scale10_round_decimal_long_double,
55050         floorlog10l): New functions.
55051         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55052         for the %f, %F, %e, %E, %g, %G directives.
55053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55055         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55056         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55064         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55065         * modules/snprintf-posix (Depends-on): Likewise.
55066         * modules/sprintf-posix (Depends-on): Likewise.
55067         * modules/vasnprintf-posix (Depends-on): Likewise.
55068         * modules/vasprintf-posix (Depends-on): Likewise.
55069         * modules/vfprintf-posix (Depends-on): Likewise.
55070         * modules/vsnprintf-posix (Depends-on): Likewise.
55071         * modules/vsprintf-posix (Depends-on): Likewise.
55072         * modules/vasnprintf (Files): Add lib/float+.h.
55073         * doc/functions/fprintf.texi: Update.
55074         * doc/functions/printf.texi: Update.
55075         * doc/functions/snprintf.texi: Update.
55076         * doc/functions/sprintf.texi: Update.
55077         * doc/functions/vfprintf.texi: Update.
55078         * doc/functions/vprintf.texi: Update.
55079         * doc/functions/vsnprintf.texi: Update.
55080         * doc/functions/vsprintf.texi: Update.
55081
55082 2007-05-18  Bruno Haible  <bruno@clisp.org>
55083
55084         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55085
55086 2007-05-18  Bruno Haible  <bruno@clisp.org>
55087
55088         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55089         for printing 64-bit integers. Needed for mingw.
55090
55091 2007-05-18  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55094         gl_FUNC_FREXPL_WORKS.
55095         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55096
55097 2007-05-18  Bruno Haible  <bruno@clisp.org>
55098
55099         * modules/frexpl-nolibm-tests: New file.
55100
55101         * modules/frexpl-nolibm: New file.
55102         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55103
55104 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55107         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55108         GCC 4.2, which otherwise issues a lot of warnings.
55109         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55110         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55111         Likewise.
55112         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55113         * modules/iconv_open (iconv.h): Likewise.
55114         * modules/locale (locale.h): Likewise.
55115         * modules/netinet_in (netinet/in.h): Likewise.
55116         * modules/sys_select (sys_select.h): Likewise.
55117         * modules/sys_socket (sys/socket.h): Likewise.
55118         * modules/sys_stat (sys/stat.h): Likewise.
55119         * modules/sysexits (sysexits.h): Likewise.
55120         * modules/unistd (unistd.h): Likewise.
55121
55122 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55123
55124         * modules/closein-tests (Makefile.am): Distribute
55125         `test-closein.sh'.
55126
55127 2007-05-17  Bruno Haible  <bruno@clisp.org>
55128
55129         * tests/test-printf-posix.output: Renamed from
55130         tests/test-fprintf-posix.out.
55131         * modules/fprintf-posix-tests: Update.
55132         * modules/printf-posix-tests: Update.
55133         * modules/vfprintf-posix-tests: Update.
55134         * modules/vprintf-posix-tests: Update.
55135         * tests/test-fprintf-posix.sh: Update.
55136         * tests/test-printf-posix.sh: Update.
55137         * tests/test-vfprintf-posix.sh: Update.
55138         * tests/test-vprintf-posix.sh: Update.
55139         Reported by Ralf Wildenhues.
55140
55141 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55144         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55145         GCC 4.2, which otherwise issues a lot of warnings.
55146         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55147         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55148         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55149         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55150         it should no longer be needed.
55151         * lib/string_.h: Likewise.
55152         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55153         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55154         * modules/inttypes (inttypes.h): Likewise.
55155         * modules/math (math.h): Likewise.
55156         * modules/search (search.h): Likewise.
55157         * modules/signal (signal.h): Likewise.
55158         * modules/stdint (stdint.h): Likewise.
55159         * modules/stdio (stdio.h): Likewise.
55160         * modules/stdlib (stdlib.h): Likewise.
55161         * modules/string (string.h): Likewise.
55162         * modules/sys_time (sys/time.h): Likewise.
55163         * modules/time (time.h): Likewise.
55164         * modules/wchar (wchar.h): Likewise.
55165         * modules/wctype (wtype.h): Likewise.
55166
55167 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55168
55169         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55170
55171 2007-05-13  Bruno Haible  <bruno@clisp.org>
55172
55173         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55174         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55175         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55176         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55177         (gl_PREREQ_STRTOK_R): Don't require it here.
55178
55179 2007-05-13  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55182         when used in C++ mode.
55183
55184 2007-05-12  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/linebuffer.h: Tweak doc.
55187         * lib/linebuffer.c: Likewise.
55188
55189 2007-05-12  James Youngman  <jay@gnu.org>
55190
55191         * lib/linebuffer.c (readlinebuffer_delim): New function,
55192         like readlinebuffer, but use a caller-specified delimiter.
55193         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55194         as the delimiter.
55195         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55196
55197 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55198
55199         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55200         * modules/openat (Files): Remove openat-die.c.
55201         (Depends-on): Add openat-die.
55202         * modules/openat-die: New module.
55203
55204 2007-05-06  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55207         Update with info about Cygwin.
55208         * doc/functions/fprintf.texi: Update.
55209         * doc/functions/printf.texi: Update.
55210         * doc/functions/snprintf.texi: Update.
55211         * doc/functions/sprintf.texi: Update.
55212         * doc/functions/vfprintf.texi: Update.
55213         * doc/functions/vprintf.texi: Update.
55214         * doc/functions/vsnprintf.texi: Update.
55215         * doc/functions/vsprintf.texi: Update.
55216         Reported by Eric Blake.
55217
55218 2007-05-06  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55221         padding ourselves for the floating-point directives.
55222         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55225         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55226         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55234         * tests/test-snprintf-posix.h (test_function): Also check the width
55235         and some flags in the %f directive.
55236         * tests/test-sprintf-posix.h (test_function): Likewise.
55237         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55238         * tests/test-vasprintf-posix.c (test_function): Likewise.
55239         * doc/functions/fprintf.texi: Update.
55240         * doc/functions/printf.texi: Update.
55241         * doc/functions/snprintf.texi: Update.
55242         * doc/functions/sprintf.texi: Update.
55243         * doc/functions/vfprintf.texi: Update.
55244         * doc/functions/vprintf.texi: Update.
55245         * doc/functions/vsnprintf.texi: Update.
55246         * doc/functions/vsprintf.texi: Update.
55247
55248 2007-05-06  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55251         pass the ' flag character to sprintf or snprintf.
55252         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55255         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55256         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55264         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55265         flag.
55266         * tests/test-sprintf-posix.h (test_function): Likewise.
55267         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55268         * tests/test-vasprintf-posix.c (test_function): Likewise.
55269         * doc/functions/fprintf.texi: Update.
55270         * doc/functions/printf.texi: Update.
55271         * doc/functions/snprintf.texi: Update.
55272         * doc/functions/sprintf.texi: Update.
55273         * doc/functions/vfprintf.texi: Update.
55274         * doc/functions/vprintf.texi: Update.
55275         * doc/functions/vsnprintf.texi: Update.
55276         * doc/functions/vsprintf.texi: Update.
55277
55278 2007-05-01  Bruno Haible  <bruno@clisp.org>
55279
55280         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55281
55282 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55285         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55286
55287 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55290         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55292
55293 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55294
55295         * lib/argp-help.c (struct hol_entry): New member `ord'.
55296         (HOL_ENTRY_PTRCMP): Use ord for comparison
55297         (hol_sort): Initialize ord.
55298
55299 2007-05-01  Bruno Haible  <bruno@clisp.org>
55300
55301         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55302         Reported by Eric Blake.
55303         * doc/gnulib.texi (Function Substitutes): Update.
55304
55305 2007-05-01  Bruno Haible  <bruno@clisp.org>
55306
55307         * doc/functions.texi: Remove file, now redundant through
55308         doc/functions/*.texi.
55309
55310 2007-05-01  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/argp (Depends-on): Add sleep.
55313
55314 2007-05-01  Bruno Haible  <bruno@clisp.org>
55315
55316         * modules/sleep-tests: New file.
55317         * tests/test-sleep.c: New file.
55318
55319         * modules/sleep: New file.
55320         * lib/sleep.c: New file.
55321         * m4/sleep.m4: New file.
55322         * lib/unistd_.h (sleep): New declaration.
55323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55324         HAVE_SLEEP.
55325         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55326         * doc/functions/sleep.texi: Document the sleep module.
55327
55328 2007-05-01  Bruno Haible  <bruno@clisp.org>
55329
55330         * lib/sigprocmask.h: Remove file.
55331         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55332         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55333         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55334         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55335         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55336         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55337         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55338         HAVE_SIGSET_T as a shell variable.
55339         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55340         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55341         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55342         (Depends-on): Add signal. Remove verify.
55343         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55344         (Include): Mention <signal.h> instead of sigprocmask.h.
55345         * NEWS: Mention the change.
55346         * lib/fatal-signal.c: Don't include sigprocmask.h.
55347
55348 2007-05-01  Bruno Haible  <bruno@clisp.org>
55349
55350         * modules/signal: New file.
55351         * lib/signal_.h: New file.
55352         * m4/signal_h.m4: New file.
55353
55354 2007-05-01  Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55357         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55358         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55359         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55360
55361 2007-05-01  Bruno Haible  <bruno@clisp.org>
55362
55363         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55364         configure time.
55365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55366         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55367         * modules/sys_stat (Makefile.am): Substitute their values into
55368         sys/stat.h.
55369
55370 2007-05-01  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55373         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55374         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55375
55376 2007-05-01  Bruno Haible  <bruno@clisp.org>
55377
55378         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55379         'assert' module here.
55380
55381 2007-05-01  Bruno Haible  <bruno@clisp.org>
55382
55383         * doc/functions/*.texi: New files.
55384         * doc/functions/google-ranking.txt: New file.
55385         * doc/gnulib.texi (Function Substitutes): New chapter.
55386         (ctime, inet_ntoa): Remove sections.
55387         * doc/ctime.texi: Remove file.
55388         * doc/inet_ntoa.texi: Remove file.
55389         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55390         dependencies.
55391         (%.info): New rule, specifying a --reference-limit.
55392
55393 2007-05-01  Bruno Haible  <bruno@clisp.org>
55394
55395         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55396
55397 2007-05-01  Bruno Haible  <bruno@clisp.org>
55398
55399         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55400         the portability of 'mkdir' to mingw systems.
55401
55402 2007-05-01  Bruno Haible  <bruno@clisp.org>
55403
55404         * doc/headers/google-ranking.txt: New file.
55405
55406 2007-04-30  Eric Blake  <ebb9@byu.net>
55407
55408         Prefer fseeko to fseek.
55409         * modules/getpass (Depends-on): Add fseeko.
55410         * lib/getpass.c (getpass): Use fseeko, not fseek.
55411
55412 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55413
55414         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55415         assumes the sorting is stable, while most qsort implementations
55416         are not.  Use argument addresses to ensure they never compare as
55417         equal.
55418
55419         * tests/test-argp-2.sh (usage-indent test): Fix output
55420         (func_compare): Restore diff options
55421         * tests/test-argp.c: Restore #include "progname.h"
55422
55423 2007-04-29  Bruno Haible  <bruno@clisp.org>
55424
55425         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55427         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55429         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55430         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55431         (TESTS, check_PROGRAMS): Add test-snprintf.
55432         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55433         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55434         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55435         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55436         assertions that fail on HP-UX, OSF/1, or IRIX.
55437         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55438
55439 2007-04-29  Bruno Haible  <bruno@clisp.org>
55440
55441         * MODULES.html.sh (posix_functions): Remove 'contents'.
55442
55443 2007-04-29  Karl Berry  <karl@gnu.org>
55444
55445         * config/srclist.txt (gendocs_template_min): new entry.
55446
55447 2007-04-29  Bruno Haible  <bruno@clisp.org>
55448
55449         Work around fpurge bug on BSD systems.
55450         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55451         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55452         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55453         fpurge to rpl_fpurge if the system already has this function.
55454         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55455         the case where the system already has this function. Correct invariants
55456         on BSD systems.
55457         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55458         BSD systems.
55459
55460 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55461
55462         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55463         proposed by Sven Verdoolaege.
55464
55465         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55466         options.
55467         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55468         (usage and help tests): Update
55469
55470 2007-04-29  Bruno Haible  <bruno@clisp.org>
55471
55472         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55473         Print more information in case of failure. Disable a test on BeOS.
55474
55475 2007-04-29  Bruno Haible  <bruno@clisp.org>
55476
55477         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55478         This helps debugging on systems on which no gdb is available.
55479
55480 2007-04-29  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/freading.h: Improve comments.
55483         * lib/fwriting.h: Likewise.
55484         * tests/test-freading.c (main): Don't check freading immediately after
55485         repositioning. Needed for glibc.
55486
55487 2007-04-29  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/freading.c (freading): Trivial simplification.
55490
55491 2007-04-28  Bruno Haible  <bruno@clisp.org>
55492
55493         * tests/test-fwriting.c (main): Also test the interaction between
55494         fflush and fwriting.
55495         * modules/fwriting-tests (Depends-on): Add fflush.
55496
55497         * tests/test-freading.c (main): Also test the interaction between
55498         fflush and freading.
55499         * modules/freading-tests (Depends-on): Add fflush.
55500
55501 2007-04-28  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55504         fseeko and ftello.
55505         Suggested by Eric Blake.
55506
55507 2007-04-28  Jim Meyering  <jim@meyering.net>
55508
55509         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55510         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55511         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55512
55513 2007-04-27  Eric Blake  <ebb9@byu.net>
55514
55515         * doc/headers/assert.texi (assert.h): Document assert module use.
55516
55517 2007-04-27  Bruno Haible  <bruno@clisp.org>
55518
55519         * doc/headers/*.texi: New files.
55520         * doc/gnulib.texi (Header File Substitutes): New chapter.
55521         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55522         dependencies.
55523         (standards.info ,standards.html, standards.dvi): Update dependencies.
55524         (mostlyclean, clean): New targets.
55525
55526 2007-04-27  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55529         * modules/sysexits (Files, Makefile.am): Update.
55530
55531         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55532         * modules/sys_socket (Files, Makefile.am): Update.
55533
55534         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55535         * modules/sys_stat (Files, Makefile.am): Update.
55536
55537 2007-04-27  Eric Blake  <ebb9@byu.net>
55538
55539         * lib/freading.h: Improve comments.
55540         * lib/fwriting.h: Likewise.
55541         * lib/fflush.c: Likewise.
55542
55543         Fix closein for mingw.
55544         * modules/closein-tests: Add tests for closein.
55545         * tests/test-closein.c: New file.
55546         * tests/test-closein.sh: Likewise.
55547         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55548         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55549
55550 2007-04-27  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55553         version is < 6.
55554         * lib/math_.h [__DECC]: Likewise.
55555         * lib/stdio_.h [__DECC]: Likewise.
55556         * lib/stdlib_.h [__DECC]: Likewise.
55557         * lib/string_.h [__DECC]: Likewise.
55558         * lib/time_.h [__DECC]: Likewise.
55559         * lib/wchar_.h [__DECC]: Likewise.
55560         * lib/wctype_.h [__DECC]: Likewise.
55561
55562 2007-04-27  Bruno Haible  <bruno@clisp.org>
55563
55564         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55565
55566 2007-04-27  Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/fflush.c: Add comments.
55569         * modules/fpurge-tests (Depends-on): Add fflush.
55570         * modules/freadable-tests (Depends-on): Likewise.
55571         * modules/fwritable-tests (Depends-on): Likewise.
55572
55573 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55574
55575         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55576         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55577         Report by Bruno Haible <bruno@clisp.org>.
55578
55579 2007-04-26  Eric Blake  <ebb9@byu.net>
55580
55581         Fix fflush on mingw.
55582         * modules/fflush (Depends-on): Add freading.
55583         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55584         but unread data.
55585
55586 2007-04-26  Eric Blake  <ebb9@byu.net>
55587         and Bruno Haible  <bruno@clisp.org>
55588
55589         Implement freading and fwriting.
55590         * lib/freading.c: New file.
55591         * lib/freading.h: Likewise.
55592         * m4/freading.m4: Likewise.
55593         * modules/freading: Likewise.
55594         * modules/freading-tests: Likewise.
55595         * tests/test-freading.c: Likewise.
55596         * lib/fwriting.c: New file.
55597         * lib/fwriting.h: Likewise.
55598         * m4/fwriting.m4: Likewise.
55599         * modules/fwriting: Likewise.
55600         * modules/fwriting-tests: Likewise.
55601         * tests/test-fwriting.c: Likewise.
55602         * MODULES.html.sh (File stream based Input/Output): Mention them.
55603
55604 2007-04-26  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55607         'long' when we assume it.
55608         Suggested by Eric Blake.
55609
55610 2007-04-26  Bruno Haible  <bruno@clisp.org>
55611
55612         Ensure fseeko, ftello are declared on glibc systems.
55613         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55614         * modules/fseeko (configure.ac-early): Likewise.
55615         * modules/ftello (configure.ac-early): Likewise.
55616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55617         AC_FUNC_FSEEKO for this.
55618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55619         (gl_CHECK_FSEEKO): Remove macro.
55620
55621 2007-04-26  Bruno Haible  <bruno@clisp.org>
55622
55623         * tests/test-fflush.c (main): Also check the ftell result after
55624         fflush and fseek/fseeko.
55625         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55626         file descriptor position cache in the stream.
55627         * lib/fseeko.c (rpl_fseeko): Likewise.
55628
55629 2007-04-26  Bruno Haible  <bruno@clisp.org>
55630
55631         * modules/fflush-tests (Depends-on): Add fseeko.
55632
55633 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55634             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55635
55636         * lib/argz_.h: ensure error_t definition is obtained in same
55637         mechanism system argz.h would have.
55638         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55639         argz facilities are known bad.  Err on the side of caution if
55640         cross-compiling.
55641
55642 2007-04-25  Eric Blake  <ebb9@byu.net>
55643
55644         * lib/fpurge.c (includes): Use stdlib.h for free.
55645         * tests/test-fflush.c (main): Also test fflush-fseeko.
55646
55647 2007-04-25  Bruno Haible  <bruno@clisp.org>
55648
55649         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55650         * lib/fseeko.c: New file.
55651         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55652         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55653         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55654         gl_FUNC_FSEEKO.
55655         (gl_FUNC_FSEEKO): Invoke it.
55656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55657         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55658         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55659
55660 2007-04-25  Bruno Haible  <bruno@clisp.org>
55661
55662         * modules/fflush (Depends-on): Add ftello.
55663
55664 2007-04-25  Bruno Haible  <bruno@clisp.org>
55665
55666         * modules/ftello-tests: New file.
55667         * tests/test-ftello.c: New file.
55668
55669         * modules/ftello: New file.
55670         * m4/ftello.m4: New file.
55671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55672         HAVE_FTELLO.
55673         * lib/stdio_.h (ftello): New declaration.
55674         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55675         HAVE_FTELLO.
55676
55677 2007-04-25  Bruno Haible  <bruno@clisp.org>
55678
55679         * modules/fseeko-tests: New file.
55680         * tests/test-fseeko.c: New file.
55681
55682         * modules/fseeko: New file.
55683         * m4/fseeko.m4: New file.
55684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55685         HAVE_FSEEKO.
55686         * lib/stdio_.h (fseeko): New declaration.
55687         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55688         HAVE_FSEEKO.
55689
55690 2007-04-25  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55693
55694 2007-04-25  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55697         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55698         * tests/test-unistd.c: Likewise.
55699         * tests/test-fcntl.c: Likewise.
55700
55701 2007-04-23  Eric Blake  <ebb9@byu.net>
55702
55703         * lib/fflush.c: Fix missing include.
55704         Reported by Bruno Haible.
55705
55706 2007-04-23  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55709         Reported by Eric Blake.
55710
55711 2007-04-23  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55714
55715 2007-04-23  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55718
55719 2007-04-23  Bruno Haible  <bruno@clisp.org>
55720
55721         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55722         Needed on HP-UX 11.
55723
55724 2007-04-16  Eric Blake  <ebb9@byu.net>
55725
55726         Make fflush rely on fpurge.
55727         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55728         open coding all variants.
55729         * modules/fflush (Depends-on): Add fpurge and unistd.
55730         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55731         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55732
55733         Fix --with-tests compilation on cygwin.
55734         * modules/argmatch-tests (Makefile.am): List gnulib library first
55735         in LDADD.
55736         * modules/argp-tests (Makefile.am): Likewise.
55737         * modules/array-list-tests (Makefile.am): Likewise.
55738         * modules/array-oset-tests (Makefile.am): Likewise.
55739         * modules/avltree-list-tests (Makefile.am): Likewise.
55740         * modules/avltree-oset-tests (Makefile.am): Likewise.
55741         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55742         * modules/carray-list-tests (Makefile.am): Likewise.
55743         * modules/dirname-tests (Makefile.am): Likewise.
55744         * modules/frexp-tests (Makefile.am): Likewise.
55745         * modules/isnanl-tests (Makefile.am): Likewise.
55746         * modules/linked-list-tests (Makefile.am): Likewise.
55747         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55748         * modules/lock-tests (Makefile.am): Likewise.
55749         * modules/rbtree-list-tests (Makefile.am): Likewise.
55750         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55751         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55752         * modules/tls-tests (Makefile.am): Likewise.
55753         * modules/tsearch-tests (Makefile.am): Likewise.
55754         * modules/xvasprintf-tests (Makefile.am): Likewise.
55755
55756         Fix fpurge for cygwin.
55757         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55758         value.
55759         * modules/fpurge-tests (Depends-on): Clean up trash.
55760
55761 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55762
55763         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55764
55765         * m4/autobuild.m4: Re-indent.
55766
55767 2007-04-13  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/fpurge-tests: New file.
55770         * tests/test-fpurge.c: New file.
55771
55772         * modules/fpurge: New file.
55773         * lib/fpurge.h: New file.
55774         * lib/fpurge.c: New file.
55775         * m4/fpurge.m4: New file.
55776
55777 2007-04-13  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/fbufmode-tests: New file.
55780         * tests/test-fbufmode.c: New file.
55781
55782         * modules/fbufmode: New file.
55783         * lib/fbufmode.h: New file.
55784         * lib/fbufmode.c: New file.
55785         * m4/fbufmode.m4: New file.
55786
55787 2007-04-13  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/fwritable-tests: New file.
55790         * tests/test-fwritable.c: New file.
55791
55792         * modules/fwritable: New file.
55793         * lib/fwritable.h: New file.
55794         * lib/fwritable.c: New file.
55795         * m4/fwritable.m4: New file.
55796
55797 2007-04-13  Bruno Haible  <bruno@clisp.org>
55798
55799         * modules/freadable-tests: New file.
55800         * tests/test-freadable.c: New file.
55801
55802         * modules/freadable: New file.
55803         * lib/freadable.h: New file.
55804         * lib/freadable.c: New file.
55805         * m4/freadable.m4: New file.
55806
55807 2007-04-13  Bruno Haible  <bruno@clisp.org>
55808
55809         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55810         MOSTLYCLEANFILES.
55811
55812 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55815         gzip bootstrap.conf to avoid dragging in i18n machinery.
55816         (gnulib_tool_option): Use it.
55817
55818 2007-04-13  Bruno Haible  <bruno@clisp.org>
55819
55820         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55821         %F directives.
55822         * tests/test-vasprintf-posix.c (test_function): Likewise.
55823         * tests/test-snprintf-posix.h (test_function): Likewise.
55824         * tests/test-sprintf-posix.h (test_function): Likewise.
55825         * tests/test-fprintf-posix.h (test_function): Likewise.
55826         * tests/test-printf-posix.h (test_function): Likewise.
55827         * tests/test-fprintf-posix.out: Likewise.
55828
55829 2007-04-13  Bruno Haible  <bruno@clisp.org>
55830
55831         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55832         * modules/tls-tests (configure.ac): Likewise.
55833         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55834
55835 2007-04-13  Bruno Haible  <bruno@clisp.org>
55836
55837         * lib/tls.c (glthread_tls_get): Fix return type.
55838         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55839
55840 2007-04-12  Eric Blake  <ebb9@byu.net>
55841
55842         * modules/gettime (Depends-on): Remove gettime.
55843         Reported by Dmitry V. Levin.
55844
55845 2007-04-12  Bruno Haible  <bruno@clisp.org>
55846
55847         * modules/fflush (Include): Mention <stdio.h>.
55848         * modules/strtoimax (Include): Mention <inttypes.h>.
55849         * modules/strtoumax (Include): Likewise.
55850
55851 2007-04-12  Eric Blake  <ebb9@byu.net>
55852
55853         * .cvsignore: New file.
55854         * .gitignore: Likewise.
55855
55856 2007-04-12  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55859         not before, since $(LDADD) often contains libgnu.a.
55860         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55861         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55862         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55863         Needed on Cygwin.
55864
55865 2007-04-12  Eric Blake  <ebb9@byu.net>
55866
55867         Work around glibc's failure to flush stdin on fclose.
55868         * lib/closein.c (close_stdin): Flush stdin before closing.
55869
55870         Work around glibc's failure to reset seekable stdin on exit.
55871         * modules/closein: New module.
55872         * lib/closein.c: New file.
55873         * lib/closein.h: Likewise.
55874         * m4/closein.m4: Likewise.
55875         * MODULES.html.sh (File stream based Input/Output): Document it.
55876
55877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55878
55879         * gnulib-tool: Rename generated 'autobuild' script to
55880         'do-autobuild' in --create-megatestdir output.
55881
55882         * doc/gnulib.texi (Build robot for gnulib): Fix.
55883
55884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55885
55886         * modules/sysexits (Depends-on): Add absolute-header.
55887
55888 2007-04-12  Eric Blake  <ebb9@byu.net>
55889
55890         No need to preserve errno on success.
55891         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55892         Reported by Bruno Haible.
55893
55894 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55895
55896         * MODULES.html.sh (Support for maintaining and releasing
55897         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55898
55899 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55900
55901         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55902
55903 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55904
55905         * modules/autobuild: New module.
55906
55907         * m4/autobuild.m4: New file.
55908
55909 2007-04-11  Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55912         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55924         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55925         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55926         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55928         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55929         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55931         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55932         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55934         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55935         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55937         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55938         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55939         Reported by Eric Blake.
55940
55941 2007-04-11  Bruno Haible  <bruno@clisp.org>
55942
55943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55944
55945 2007-04-10  Bruno Haible  <bruno@clisp.org>
55946
55947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55948         for NaN and Infinity. Needed on FreeBSD 6.1.
55949         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55950         regarding results for "%010a" of Infinity and NaN.
55951         * tests/test-vasprintf-posix.c (test_function): Likewise.
55952         * tests/test-snprintf-posix.h (test_function): Likewise.
55953         * tests/test-sprintf-posix.h (test_function): Likewise.
55954         * tests/test-fprintf-posix.h (test_function): Likewise.
55955         * tests/test-printf-posix.h (test_function): Likewise.
55956         * tests/test-fprintf-posix.out: Likewise.
55957
55958 2007-04-10  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/locale-tests: New file.
55961         * tests/test-locale.c: New file.
55962
55963         * modules/locale: New file.
55964         * lib/locale_.h: New file.
55965         * m4/locale_h.m4: New file.
55966
55967 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55968             Bruno Haible  <bruno@clisp.org>
55969
55970         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55971         be determined, test for availability of the copysignf, copysign,
55972         copysignl functions.
55973         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55974         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55975         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55976
55977 2007-04-09  Eric Blake  <ebb9@byu.net>
55978
55979         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55980         * modules/stdio (Makefile.am): Support fflush.
55981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55982         * modules/fflush: New file.
55983         * lib/fflush.c: Likewise.
55984         * m4/fflush.m4: Likewise.
55985         * modules/fflush-tests: New test.
55986         * tests/test-fflush.c: Likewise.
55987         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55988
55989 2007-04-06  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55992         (VASNPRINTF): Use signbit for faster determination whether to print a
55993         minus sign.
55994         * modules/vasnprintf (Files): Remove lib/float+.h.
55995         * modules/fprintf-posix (Depends-on): Add signbit.
55996         * modules/snprintf-posix (Depends-on): Likewise.
55997         * modules/sprintf-posix (Depends-on): Likewise.
55998         * modules/vasnprintf-posix (Depends-on): Likewise.
55999         * modules/vasprintf-posix (Depends-on): Likewise.
56000         * modules/vfprintf-posix (Depends-on): Likewise.
56001         * modules/vsnprintf-posix (Depends-on): Likewise.
56002         * modules/vsprintf-posix (Depends-on): Likewise.
56003
56004 2007-04-06  Bruno Haible  <bruno@clisp.org>
56005
56006         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56007         * tests/test-frexpl.c (main): Likewise.
56008         * tests/test-ldexpl.c (main): Likewise.
56009         * modules/frexp-tests (Depends-on): Add signbit.
56010         * modules/frexpl-tests (Depdends-on): Likewise.
56011         * modules/ldexpl-tests (Depdends-on): Likewise.
56012
56013 2007-04-06  Bruno Haible  <bruno@clisp.org>
56014
56015         * modules/signbit-tests: New file.
56016         * tests/test-signbit.c: New file.
56017
56018         * modules/signbit: New file.
56019         * lib/signbitf.c: New file.
56020         * lib/signbitd.c: New file.
56021         * lib/signbitl.c: New file.
56022         * m4/signbit.m4: New file.
56023         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56024         (signbit): New macro.
56025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56026         REPLACE_SIGNBIT.
56027         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56028         REPLACE_FREXPL into math.h.
56029
56030 2007-04-06  Bruno Haible  <bruno@clisp.org>
56031
56032         * modules/isnanf-nolibm-tests: New file.
56033         * tests/test-isnanf.c: New file.
56034
56035         * modules/isnanf-nolibm: New file.
56036         * lib/isnanf.h: New file.
56037         * lib/isnanf.c: New file.
56038         * lib/isnan.c: Consider the USE_FLOAT macro.
56039         * m4/isnanf.m4: New file.
56040
56041 2007-04-06  Bruno Haible  <bruno@clisp.org>
56042
56043         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56044         (Link): New section.
56045
56046         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56047
56048 2007-04-06  Bruno Haible  <bruno@clisp.org>
56049
56050         Assume the 'long double' type.
56051         * m4/longdouble.m4: Remove file.
56052         * config/srclist.txt: Don't mention longdouble.m4.
56053         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56054         * lib/float+.h: Likewise.
56055         * lib/frexp.c: Likewise.
56056         * lib/printf-args.h: Likewise.
56057         * lib/printf-args.c: Likewise.
56058         * lib/printf-frexp.c: Likewise.
56059         * lib/printf-parse.c: Likewise.
56060         * lib/vasnprintf.c: Likewise.
56061         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56062         * m4/intl.m4: Likewise.
56063         * m4/isnanl.m4: Likewise.
56064         * m4/printf.m4: Likewise.
56065         * m4/printf-frexpl.m4: Likewise.
56066         * m4/vasnprintf.m4: Likewise.
56067         * modules/allocsa (Files): Remove m4/longdouble.m4.
56068         * modules/gettext (Files): Likewise.
56069         * modules/relocatable-prog-wrapper (Files): Likewise.
56070         * modules/vasnprintf (Files): Likewise.
56071         * modules/isnanl (Files): Likewise.
56072         (Include): Simplify.
56073         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56074         (Include): Simplify.
56075         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56076         (Include): Simplify.
56077         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56078         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56079         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56080         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56081         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56082         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56083         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56084         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56085         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56086         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56087         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56088         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56089         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56090         * tests/test-isnanl.c: Likewise.
56091         * tests/test-snprintf-posix.h: Likewise.
56092         * tests/test-sprintf-posix.h: Likewise.
56093         * tests/test-vasnprintf-posix.c: Likewise.
56094         * tests/test-vasnprintf-posix2.c: Likewise.
56095         * tests/test-vasprintf-posix.c: Likewise.
56096
56097 2007-04-06  Bruno Haible  <bruno@clisp.org>
56098
56099         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56100         * lib/math_.h [__DECC]: Include the overridden include file through
56101         #include_next, outside the double-inclusion guard.
56102         * lib/stdio_.h [__DECC]: Likewise.
56103         * lib/stdlib_.h [__DECC]: Likewise.
56104         * lib/string_.h [__DECC]: Likewise.
56105         * lib/time_.h [__DECC]: Likewise.
56106         * lib/wchar_.h [__DECC]: Likewise.
56107         * lib/wctype_.h [__DECC]: Likewise.
56108         * lib/inttypes_.h [__DECC]: Likewise.
56109         Reported by Albert Chin <china@thewrittenword.com> in
56110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56111
56112 2007-04-04  Eric Blake  <ebb9@byu.net>
56113
56114         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56115         1.5.x.
56116
56117 2007-04-04  Bruno Haible  <bruno@clisp.org>
56118
56119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56120         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56121
56122 2007-04-04  Bruno Haible  <bruno@clisp.org>
56123
56124         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56125         results for "%010a" of Infinity and NaN.
56126         * tests/test-vasprintf-posix.c (test_function): Likewise.
56127         * tests/test-snprintf-posix.h (test_function): Likewise.
56128         * tests/test-sprintf-posix.h (test_function): Likewise.
56129         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56130         * tests/test-printf-posix.h (test_function): Likewise.
56131         * tests/test-fprintf-posix.out: Update.
56132         Needed for FreeBSD 6.1.
56133
56134 2007-04-04  Bruno Haible  <bruno@clisp.org>
56135
56136         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56137         directly used by the gnulib modules nor by gnulib-tool.
56138
56139 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * DEPENDENCIES: Give overall description of version dependency
56142         desirability.  Use more-typical names for apps.
56143         Add shell, coreutils, diffutils, grep, tar, gzip.
56144
56145 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56146
56147         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56148
56149 2007-04-04  Karl Berry  <karl@gnu.org>
56150
56151         * MODULES.html.sh (func_module): missing '.
56152
56153 2007-04-03  Bruno Haible  <bruno@clisp.org>
56154
56155         * modules/argmatch-tests (Makefile.am): New variable
56156         test_argmatch_LDADD.
56157         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56158         * modules/array-list-tests (Makefile.am): New variable
56159         test_array_list_LDADD.
56160         * modules/array-oset-tests (Makefile.am): New variable
56161         test_array_oset_LDADD.
56162         * modules/avltree-list-tests (Makefile.am): New variable
56163         test_avltree_list_LDADD.
56164         * modules/avltree-oset-tests (Makefile.am): New variable
56165         test_avltree_oset_LDADD.
56166         * modules/avltreehash-list-tests (Makefile.am): New variable
56167         test_avltreehash_list_LDADD.
56168         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56169         test_canonicalize_lgpl_LDADD.
56170         * modules/carray-list-tests (Makefile.am): New variable
56171         test_carray_list_LDADD.
56172         * modules/dirname-tests (Makefile.am): New variable
56173         test_dirname_LDADD.
56174         * modules/linked-list-tests (Makefile.am): New variable
56175         test_linked_list_LDADD.
56176         * modules/linkedhash-list-tests (Makefile.am): New variable
56177         test_linkedhash_list_LDADD.
56178         * modules/rbtree-list-tests (Makefile.am): New variable
56179         test_rbtree_list_LDADD.
56180         * modules/rbtree-oset-tests (Makefile.am): New variable
56181         test_rbtree_oset_LDADD.
56182         * modules/rbtreehash-list-tests (Makefile.am): New variable
56183         test_rbtreehash_list_LDADD.
56184         * modules/xvasprintf-tests (Makefile.am): New variable
56185         test_xvasprintf_LDADD.
56186         Reported by Eric Blake.
56187
56188 2007-04-03  Eric Blake  <ebb9@byu.net>
56189
56190         * DEPENDENCIES: Weaken m4 requirements.
56191
56192 2007-04-03  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56195         * modules/isnanl-tests (configure.ac): Likewise.
56196
56197 2007-04-03  Ben Pfaff  <blp@gnu.org>
56198
56199         * modules/iconv_open: Add $(srcdir)/ to source directory
56200         references in Makefile fragments that call gperf, to fix VPATH
56201         builds.
56202
56203 2007-04-03  Bruno Haible  <bruno@clisp.org>
56204
56205         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56206         * lib/ldexpl.c: Undo last change.
56207
56208 2007-04-03  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/printf-frexpl (Depends-on): Undo last change.
56211         (Files): Add m4/ldexpl.m4.
56212
56213 2007-04-03  Bruno Haible  <bruno@clisp.org>
56214
56215         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56216         * modules/isnanl (Link): New section.
56217
56218         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56219         * modules/frexp (Link): New section.
56220
56221         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56222         * modules/frexpl (Link): New section.
56223
56224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56225         * modules/ldexpl (Link): New section.
56226
56227 2007-04-03  Bruno Haible  <bruno@clisp.org>
56228
56229         * modules/TEMPLATE-EXTENDED: New file.
56230         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56231
56232 2007-04-03  Bruno Haible  <bruno@clisp.org>
56233
56234         * DEPENDENCIES: New file.
56235         Suggested by Simon Josefsson.
56236
56237 2007-04-03  Bruno Haible  <bruno@clisp.org>
56238
56239         * doc/gnulib.texi: Escape @.
56240
56241 2007-04-03  James Youngman  <jay@gnu.org>
56242         and Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56245         birthtime on all systems that have birthtime, not just those which
56246         use st_birthtimensec rather than st_birthtim.  Putting zero in
56247         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56248         that the birth time is not available for files on an NFS mount.
56249
56250 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56251
56252         * modules/memxor: Move back from crypto/, suggested by Bruno.
56253         * modules/crypto/hmac-sha1: Fix memxor dependency.
56254
56255         * modules/crypto/gc: Moved from ../.
56256
56257 2007-04-02  Eric Blake  <ebb9@byu.net>
56258
56259         * lib/ldexpl.c (includes): Avoid libm.
56260
56261         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56262
56263 2007-04-02  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56266         on IRIX.
56267
56268 2007-04-02  Bruno Haible  <bruno@clisp.org>
56269
56270         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56271         x86 or x86_64 platforms running MacOS X.
56272         Reported by Ryan Schmidt <@ryandesign.com>.
56273
56274 2007-04-02  Bruno Haible  <bruno@clisp.org>
56275
56276         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56277         i386.
56278
56279 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56280
56281         * modules/crypto/arcfour: Moved from ../.
56282         * modules/crypto/arcfour-tests: Moved from ../.
56283         * modules/crypto/arctwo: Moved from ../.
56284         * modules/crypto/arctwo-tests: Moved from ../.
56285         * modules/crypto/des: Moved from ../.
56286         * modules/crypto/des-tests: Moved from ../.
56287         * modules/crypto/gc-arcfour: Moved from ../.
56288         * modules/crypto/gc-arcfour-tests: Moved from ../.
56289         * modules/crypto/gc-arctwo: Moved from ../.
56290         * modules/crypto/gc-arctwo-tests: Moved from ../.
56291         * modules/crypto/gc-des: Moved from ../.
56292         * modules/crypto/gc-des-tests: Moved from ../.
56293         * modules/crypto/gc-hmac-md5: Moved from ../.
56294         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56295         * modules/crypto/gc-hmac-sha1: Moved from ../.
56296         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56297         * modules/crypto/gc-md2: Moved from ../.
56298         * modules/crypto/gc-md2-tests: Moved from ../.
56299         * modules/crypto/gc-md4: Moved from ../.
56300         * modules/crypto/gc-md4-tests: Moved from ../.
56301         * modules/crypto/gc-md5: Moved from ../.
56302         * modules/crypto/gc-md5-tests: Moved from ../.
56303         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56304         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56305         * modules/crypto/gc-random: Moved from ../.
56306         * modules/crypto/gc-rijndael: Moved from ../.
56307         * modules/crypto/gc-rijndael-tests: Moved from ../.
56308         * modules/crypto/gc-sha1: Moved from ../.
56309         * modules/crypto/gc-sha1-tests: Moved from ../.
56310         * modules/crypto/gc-tests: Moved from ../.
56311         * modules/crypto/hmac-md5: Moved from ../.
56312         * modules/crypto/hmac-md5-tests: Moved from ../.
56313         * modules/crypto/hmac-sha1: Moved from ../.
56314         * modules/crypto/hmac-sha1-tests: Moved from ../.
56315         * modules/crypto/md2: Moved from ../.
56316         * modules/crypto/md2-tests: Moved from ../.
56317         * modules/crypto/md4: Moved from ../.
56318         * modules/crypto/md4-tests: Moved from ../.
56319         * modules/crypto/md5: Moved from ../.
56320         * modules/crypto/md5-tests: Moved from ../.
56321         * modules/crypto/memxor: Moved from ../.
56322         * modules/crypto/rijndael: Moved from ../.
56323         * modules/crypto/rijndael-tests: Moved from ../.
56324         * modules/crypto/sha1: Moved from ../.
56325
56326 2007-03-30  James Youngman  <jay@gnu.org>
56327
56328         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56329         rename() to change the ctime of a file (because ctime is unaffected
56330         by rename on jfs2 on AIX 5.1).
56331         (main): Start by doing cleanup, in case a previous run failed leaving
56332         test files behind.
56333
56334 2007-03-31  Bruno Haible  <bruno@clisp.org>
56335
56336         Support old proprietary implementations of iconv.
56337         * modules/iconv_open: New file.
56338         * lib/iconv_.h: New file.
56339         * m4/iconv_h.m4: New file.
56340         * lib/iconv_open.c: New file.
56341         * lib/iconv_open-aix.gperf: New file.
56342         * lib/iconv_open-hpux.gperf: New file.
56343         * lib/iconv_open-irix.gperf: New file.
56344         * lib/iconv_open-osf.gperf: New file.
56345         * m4/iconv_open.m4: New file.
56346         * modules/linebreak (Depends-on): Add iconv_open.
56347         * modules/striconv (Depends-on): Likewise.
56348         * modules/striconveh (Depends-on): Likewise.
56349         * modules/unicodeio (Depends-on): Likewise.
56350         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56351         (iconv_t)(-1).
56352         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56353         conversion if cd is (iconv_t)(-1).
56354         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56355         is not possible.
56356
56357 2007-03-31  Bruno Haible  <bruno@clisp.org>
56358
56359         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56360         work on Solaris either. Protect also second use of "autodetect_jp".
56361
56362 2007-03-31  Bruno Haible  <bruno@clisp.org>
56363
56364         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56365         the function is not present.
56366
56367 2007-03-31  Bruno Haible  <bruno@clisp.org>
56368
56369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56370         the function is not present.
56371
56372 2007-03-31  Bruno Haible  <bruno@clisp.org>
56373
56374         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56375         a bug in HP-UX iconv_open().
56376
56377 2007-03-31  Bruno Haible  <bruno@clisp.org>
56378
56379         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56380         (Mathematics <math.h>): New section, add fpieee.
56381         (Input/output <stdio.h>): Add fseterr.
56382         (Mathematics <math.h>): New section, add printf-frexp.
56383         (Container data structures): Add sublist.
56384         (Core language properties): Add fpucw, inline.
56385         (Functions for greatest-width integer types <inttypes.h>): Add
56386         imaxabs, imaxdiv, inttypes.
56387         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56388         isnanl-nolibm, ldexp.
56389         (Mathematics <math.h>): New section, add printf-frexpl.
56390         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56391         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56392         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56393         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56394         (Unicode string functions): Add unistr/u*-mbtoucr.
56395         (Java): Add javacomp-script, javaexec-script.
56396         (C#): Add csharpcomp-script, csharpexec-script.
56397         (Support for building libraries and executables): Add havelib,
56398         relocatable-*.
56399         (Support for maintaining and releasing projects): Renamed from
56400         'Support for maintaining and release projects'. Add announce-gen.
56401
56402 2007-03-31  Bruno Haible  <bruno@clisp.org>
56403
56404         * README: Talk primarily about git.
56405         (git and CVS): Renamed from CVS.
56406         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56407         gnulib is available through git.
56408         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56409
56410 2007-03-30  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56413         * lib/poll_.h: Likewise.
56414         * lib/stat_.h: Likewise.
56415         * lib/sys_time_.h: Likewise.
56416         * lib/sysexit_.h: Likewise.
56417         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56418         * lib/stdbool_.h: Likewise.
56419         * lib/byteswap_.h: Add double-inclusion guard.
56420
56421 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56422
56423         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56424
56425 2007-03-30  Karl Berry  <karl@gnu.org>
56426
56427         * config/srclist-update: double space after USA in the license
56428         substitution, since that's how it's usually (?) written.
56429
56430 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56431
56432         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56433         reported by Bruno Haible.
56434
56435 2007-03-29  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56438         a bug in AIX iconv().
56439
56440 2007-03-29  Bruno Haible  <bruno@clisp.org>
56441
56442         * modules/ldexpl-tests: New file.
56443         * tests/test-ldexpl.c: New file.
56444
56445 2007-03-29  Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/ldexpl.c: Include fpucw.h.
56448         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56449         multiplication.
56450         * modules/ldexpl (Depends-on): Add fpucw.
56451
56452 2007-03-29  Bruno Haible  <bruno@clisp.org>
56453
56454         * modules/ldexpl: New file.
56455         * m4/ldexpl.m4: New file.
56456         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56457         set.
56458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56459         REPLACE_LDEXPL.
56460         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56461         REPLACE_LDEXPL.
56462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56463         gl_FUNC_LDEXPL_WORKS.
56464         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56465         * modules/mathl (Files): Remove lib/ldexpl.c.
56466         (Depends-on): Add ldexpl.
56467
56468 2007-03-29  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56471
56472 2007-03-29  Bruno Haible  <bruno@clisp.org>
56473
56474         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56475         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56476         and possibly also HP-UX.
56477         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56478         work on AIX, IRIX, HP-UX, OSF/1.
56479         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56480         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56481         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56482         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56483         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56484         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56485
56486 2007-03-29  Bruno Haible  <bruno@clisp.org>
56487
56488         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56489
56490 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56491
56492         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56493         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56494
56495 2007-03-29  Eric Blake  <ebb9@byu.net>
56496
56497         * lib/acl-internal.h: Remove redundant include.
56498         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56499         Cygwin when a file is locked.
56500
56501 2007-03-29  Bruno Haible  <bruno@clisp.org>
56502
56503         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56504         file.
56505         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56506
56507 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56508
56509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56510         try to remove a parent directory if the child couldn't be removed
56511         (except for the first rmdir, which could fail because the child
56512         doesn't exist).  Problem reported by Jeff Blaine in
56513         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56514
56515 2007-03-28  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/striconveh.c (utf8conv_carefully): New function.
56518         (mem_cd_iconveh_internal): Invoke it.
56519
56520 2007-03-28  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56523         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56524         input.
56525         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56526         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56527         unistr/u8-uctomb.
56528
56529 2007-03-28  Bruno Haible  <bruno@clisp.org>
56530
56531         * modules/unistr/u8-mbtoucr: New file.
56532         * lib/unistr/u8-mbtoucr.c: New file.
56533         * modules/unistr/u16-mbtoucr: New file.
56534         * lib/unistr/u16-mbtoucr.c: New file.
56535         * modules/unistr/u16-mbtoucr: New file.
56536         * lib/unistr/u16-mbtoucr.c: New file.
56537         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56538
56539 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56540             Bruno Haible  <bruno@clisp.org>
56541
56542         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56543         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56544         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56545
56546         * m4/stdio_h.m4: Add stubs for vasprintf too.
56547
56548         * modules/stdio: Support vasprintf in sed command.
56549
56550         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56551         vasprintf.h.  Add stdio module indicator.
56552
56553         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56554         vasprintf.h.
56555
56556         * lib/vasprintf.h: File removed.
56557
56558         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56559         * lib/vasprintf.c: Ditto.
56560         * lib/xvasprintf.c: Ditto.
56561         * tests/test-vasprintf-posix.c: Ditto.
56562         * tests/test-vasprintf.c: Ditto.
56563
56564 2007-03-27  Bruno Haible  <bruno@clisp.org>
56565
56566         Make vasnprintf multithread-safe.
56567         * lib/vasnprintf.c (decimal_point_char): New function.
56568         (VASNPRINTF): Use it.
56569         Suggested by Simon Josefsson.
56570
56571 2007-03-27  Eric Blake  <ebb9@byu.net>
56572
56573         Support sub-second birthtime on cygwin.
56574         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56575         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56576         (get_stat_birthtime): Also work with st_birthtim.
56577
56578 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56579
56580         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56581         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56582         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56583         (get_stat_birthtime_ns): Simplify compile-time tests.
56584         (get_stat_birthtime): Change the API to look like
56585         get_stat_mtime etc., except return a negative tv_nsec on error.
56586         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56587         Don't check for "spare" fields.
56588         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56589         or for struct stat.st_birthtime, as these tests aren't used.
56590         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56591
56592 2007-03-27  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/stat-time.h: Include <sys/stat.h>.
56595
56596 2007-03-27  James Youngman  <jay@gnu.org>
56597
56598         * lib/stat-time.h (get_stat_birthtime): New function for
56599           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56600         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56601           and its variants.
56602         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56603         * modules/stat-time-test: New file.
56604         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56605
56606 2007-03-26  Bruno Haible  <bruno@clisp.org>
56607
56608         Better support of signalling NaNs.
56609         * lib/atanl.c: Include isnanl.h.
56610         (atanl): Perform test for NaN at the beginning of the function and
56611         through a call to isnanl.
56612         * lib/cosl.c: Include isnanl.h.
56613         (cosl): Perform test for NaN at the beginning of the function and
56614         through a call to isnanl.
56615         * lib/ldexpl.c: Include isnanl.h.
56616         (ldexpl): Perform test for NaN through a call to isnanl.
56617         * lib/logl.c: Include isnanl.h.
56618         (logl): Perform test for NaN at the beginning of the function and
56619         through a call to isnanl.
56620         * lib/sinl.c: Include isnanl.h.
56621         (sinl): Perform test for NaN at the beginning of the function and
56622         through a call to isnanl.
56623         * lib/sqrtl.c: Include isnanl.h.
56624         (sqrtl): Perform test for NaN at the beginning of the function and
56625         through a call to isnanl.
56626         * lib/tanl.c: Include isnanl.h.
56627         (tanl): Perform test for NaN at the beginning of the function and
56628         through a call to isnanl.
56629         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56630         * modules/mathl (Depends-on): Add isnanl.
56631
56632 2007-03-26  Eric Blake  <ebb9@byu.net>
56633
56634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56635         regression in logic sense of previous patch.
56636
56637 2007-03-26  Bruno Haible  <bruno@clisp.org>
56638
56639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56640         unportable shell command "if ! ...".
56641         Reported by Ralf Wildenhues.
56642
56643 2007-03-25  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56646         <sysexits.h> file, and only add EX_CONFIG.
56647         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56648         absolute file name and whether it is sufficient. Substitute also
56649         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56650         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56651         ABSOLUTE_SYSEXITS_H into sysexits.h.
56652
56653 2007-03-25  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56656         hints is NULL.
56657
56658 2007-03-25  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56661         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56662
56663 2007-03-25  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/vasnprintf.c: Include langinfo.h.
56666         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56667         multithread-safe.
56668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56677         Reported by Simon Josefsson.
56678
56679 2007-03-25  Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56682         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56683         * modules/vasnprintf (Depends-on): Add stdint.
56684
56685 2007-03-25  Bruno Haible  <bruno@clisp.org>
56686
56687         * modules/fpieee: New file.
56688         * m4/fpieee.m4: New file.
56689         * modules/isnan-nolibm (Depends-on): Add fpieee.
56690         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56691         * modules/isnanl (Depends-on): Add fpieee.
56692
56693 2007-03-25  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56696
56697 2007-03-25  Bruno Haible  <bruno@clisp.org>
56698
56699         Avoid test failures on IRIX 6.5.
56700         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56701         (main): Use it.
56702         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56703         macros.
56704         (main): Use them.
56705
56706 2007-03-25  Bruno Haible  <bruno@clisp.org>
56707
56708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56709         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56710         exists but doesn't work.
56711         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56712         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56714         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56715         math.h.
56716
56717 2007-03-25  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56720         returns inf. Needed on IRIX 6.5.
56721
56722 2007-03-25  Bruno Haible  <bruno@clisp.org>
56723
56724         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56725         (main): Use isnanl instead of x != x idiom.
56726         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56727
56728         * tests/test-frexp.c: Include isnan.h.
56729         (main): Use isnan instead of x != x idiom.
56730         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56731
56732 2007-03-25  Bruno Haible  <bruno@clisp.org>
56733
56734         * tests/test-frexp.c (NaN): New function/macro.
56735         (main): Use it instead of 0.0 / 0.0.
56736         * tests/test-isnan.c (NaN): New function/macro.
56737         (main): Use it instead of 0.0 / 0.0.
56738         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56739         (test_function): Use it instead of 0.0 / 0.0.
56740         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56741         (test_function): Use it instead of 0.0 / 0.0.
56742         * tests/test-snprintf-posix.h (NaN): New function/macro.
56743         (test_function): Use it instead of 0.0 / 0.0.
56744         * tests/test-sprintf-posix.h (NaN): New function/macro.
56745         (test_function): Use it instead of 0.0 / 0.0.
56746         * tests/test-fprintf-posix.h (NaN): New function/macro.
56747         (test_function): Use it instead of 0.0 / 0.0.
56748         * tests/test-printf-posix.h (NaN): New function/macro.
56749         (test_function): Use it instead of 0.0 / 0.0.
56750
56751         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56752
56753 2007-03-25  Bruno Haible  <bruno@clisp.org>
56754
56755         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56756
56757 2007-03-25  Bruno Haible  <bruno@clisp.org>
56758
56759         * lib/regexec.c (merge_state_with_log): Make static.
56760
56761 2007-03-25  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/trigl.c (kernel_rem_pio2): Make static.
56764
56765 2007-03-25  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/sincosl.c (sincosl_table): Make static.
56768
56769 2007-03-25  Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56772         if the compiler does not support C99.
56773
56774 2007-03-25  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/time (Makefile.am): Ensure all rule action lines start with a
56777         tab.
56778
56779 2007-03-24  Bruno Haible  <bruno@clisp.org>
56780
56781         * modules/tsearch-tests: New file.
56782         * tests/test-tsearch.sh: New file.
56783         * tests/test-tsearch.c: New file, mostly copied from glibc.
56784
56785         * modules/search-tests: New file.
56786         * tests/test-search.c: New file.
56787
56788         * modules/search: New file.
56789         * lib/search_.h: New file, incorporating lib/tsearch.h.
56790         * m4/search_h.m4: New file.
56791         * lib/tsearch.h: Remove file.
56792         * lib/tsearch.c: Include search.h instead of tsearch.h.
56793         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56794         HAVE_TSEARCH.
56795         * modules/tsearch (Files): Remove lib/tsearch.h.
56796         (Depends-on): Add search.
56797         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56798         (Include): Change tsearch.h into search.h.
56799
56800 2007-03-24  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/fpucw: New file.
56803         * lib/fpucw.h: New file.
56804         * lib/frexp.c: Include fpucw.h.
56805         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56806         (FUNC): Use them.
56807         * lib/printf-frexp.c: Include fpucw.h.
56808         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56809         (FUNC): Use them.
56810         * lib/vasnprintf.c: Include fpucw.h.
56811         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56812         'long double' calculations.
56813         * tests/test-frexpl.c: Include fpucw.h.
56814         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56815         * tests/test-printf-frexpl.c: Include fpucw.h.
56816         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56817         * modules/frexpl (Depends-on): Add fpucw.
56818         * modules/printf-frexpl (Depends-on): Likewise.
56819         * modules/fprintf-posix (Depends-on): Likewise.
56820         * modules/snprintf-posix (Depends-on): Likewise.
56821         * modules/sprintf-posix (Depends-on): Likewise.
56822         * modules/vasnprintf-posix (Depends-on): Likewise.
56823         * modules/vasprintf-posix (Depends-on): Likewise.
56824         * modules/vfprintf-posix (Depends-on): Likewise.
56825         * modules/vsnprintf-posix (Depends-on): Likewise.
56826         * modules/vsprintf-posix (Depends-on): Likewise.
56827         * modules/frexpl-tests (Depends-on): Likewise.
56828         * modules/printf-frexpl-tests (Depends-on): Likewise.
56829
56830 2007-03-24  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/float+.h: New file.
56833         * lib/isnan.c: Include float+.h.
56834         (SIZE): New macro.
56835         (FUNC): Compare only SIZE bytes of the value.
56836         * lib/vasnprintf.c: Include float+.h.
56837         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56838         SIZEOF_LDBL or SIZEOF_DBL bytes.
56839         * modules/isnan-nolibm (Files): Add lib/float+.h.
56840         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56841         * modules/isnanl (Files): Add lib/float+.h.
56842         * modules/vasnprintf (Files): Add lib/float+.h.
56843
56844 2007-03-24  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56847         include isnanl-nolibm.h.
56848
56849 2007-03-24  Bruno Haible  <bruno@clisp.org>
56850
56851         * tests/test-read-file.c (main): Don't produce spurious output for
56852         expected situations. Make the test fail if it encountered unexpected
56853         results.
56854
56855 2007-03-24  Bruno Haible  <bruno@clisp.org>
56856
56857         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56858         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56859
56860 2007-03-24  Bruno Haible  <bruno@clisp.org>
56861
56862         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56863
56864 2007-03-24  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56867         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56868
56869         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56870         * modules/utf8-ucs4: Turn into a symbolic link to module
56871         unistr/u8-mbtouc.
56872
56873         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56874         utf8-ucs4-unsafe.
56875         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56876         unistr/u8-mbtouc-unsafe.
56877
56878         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56879         * modules/utf16-ucs4: Turn into a symbolic link to module
56880         unistr/u16-mbtouc.
56881
56882         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56883         utf16-ucs4-unsafe.
56884         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56885         unistr/u16-mbtouc-unsafe.
56886
56887         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56888         * modules/ucs4-utf8: Turn into a symbolic link to module
56889         unistr/u8-ubtomb.
56890
56891         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56892         * modules/ucs4-utf16: Turn into a symbolic link to module
56893         unistr/u16-ubtomb.
56894
56895 2007-03-24  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56898         Enable the function only if HAVE_INLINE.
56899         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56900         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56901         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56902         Enable the function only if HAVE_INLINE.
56903         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56904         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56905         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56906         Enable the function only if HAVE_INLINE.
56907         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56908         Enable the function only if HAVE_INLINE.
56909         * modules/utf8-ucs4: Update.
56910         * modules/utf8-ucs4-unsafe: Update.
56911         * modules/utf16-ucs4: Update.
56912         * modules/utf16-ucs4-unsafe: Update.
56913         * modules/ucs4-utf8: Update.
56914         * modules/ucs4-utf16: Update.
56915
56916 2007-03-24  Bruno Haible  <bruno@clisp.org>
56917
56918         * lib/utf8-ucs4.h: Remove file.
56919         * lib/utf8-ucs4-unsafe.h: Remove file.
56920         * lib/utf16-ucs4.h: Remove file.
56921         * lib/utf16-ucs4-unsafe.h: Remove file.
56922         * lib/ucs4-utf8.h: Remove file.
56923         * lib/ucs4-utf16.h: Remove file.
56924         * lib/unistr.h: Include their previous contents.
56925         * m4/utf-ucs4.m4: Remove file.
56926         * m4/ucs4-utf.m4: Remove file.
56927         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56928         (Depends-on): Add unistr/base.
56929         (configure.ac): Remove gl_UTF_UCS4.
56930         (Makefile.am): Update.
56931         (Include): Change to unistr.h.
56932         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56933         (Depends-on): Add unistr/base.
56934         (configure.ac): Remove gl_UTF_UCS4.
56935         (Makefile.am): Update.
56936         (Include): Change to unistr.h.
56937         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56938         (Depends-on): Add unistr/base.
56939         (configure.ac): Remove gl_UTF_UCS4.
56940         (Makefile.am): Update.
56941         (Include): Change to unistr.h.
56942         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56943         (Depends-on): Add unistr/base.
56944         (configure.ac): Remove gl_UTF_UCS4.
56945         (Makefile.am): Update.
56946         (Include): Change to unistr.h.
56947         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56948         (Depends-on): Add unistr/base.
56949         (configure.ac): Remove gl_UCS4_UTF.
56950         (Makefile.am): Update.
56951         (Include): Change to unistr.h.
56952         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56953         (Depends-on): Add unistr/base.
56954         (configure.ac): Remove gl_UCS4_UTF.
56955         (Makefile.am): Update.
56956         (Include): Change to unistr.h.
56957         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56958         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56959         utf8-ucs4-unsafe.h.
56960         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56961         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56962         utf16-ucs4-unsafe.h.
56963         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56964         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56965         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56966         * lib/unistr/u8-strchr.c: Likewise.
56967         * lib/unistr/u8-strrchr.c: Likewise.
56968         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56969         * lib/unistr/u16-strchr.c: Likewise.
56970         * lib/unistr/u16-strrchr.c: Likewise.
56971         * lib/striconveh.c: Update.
56972         * lib/linebreak.c: Update.
56973
56974 2007-03-24  Bruno Haible  <bruno@clisp.org>
56975
56976         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56977         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56978
56979 2007-03-22  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56982
56983 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56984
56985         * MODULES.html.sh (File system functions): New module write-any-file.
56986         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56987         * m4/write-any-file.m4: New files.
56988
56989 2007-03-23  Eric Blake  <ebb9@byu.net>
56990
56991         * gnulib-tool: Rearrange space-tab sequences, since some editors
56992         like to eat them.
56993
56994 2007-03-23  Eric Blake  <ebb9@byu.net>
56995
56996         * lib/version-etc.c (version_etc_va): Update license wording to
56997         be more concise.  Recommended by Richard Stallman.
56998
56999 2007-03-22  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/poll.c (MSG_PEEK): New fallback definition.
57002
57003 2007-03-22  Bruno Haible  <bruno@clisp.org>
57004
57005         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57006         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57007         (main): Update.
57008         Fixes a compilation error on BeOS.
57009
57010 2007-03-22  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/frexpl-tests: New file.
57013         * tests/test-frexpl.c: New file.
57014
57015         * modules/frexpl: New file.
57016         * m4/frexpl.m4: New file.
57017         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57018         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57020         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57021         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57022         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57023
57024 2007-03-22  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/frexpl.c: Share code with lib/frexp.c.
57027         * modules/mathl (Files): Add lib/frexp.c.
57028         (Depends-on): Add isnanl-nolibm.
57029
57030 2007-03-22  Bruno Haible  <bruno@clisp.org>
57031
57032         * modules/printf-frexp (Files): Add m4/frexp.m4.
57033         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57034         only if the found frexp function actually works.
57035
57036 2007-03-22  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/frexp.c: Remove older implementation that uses divisions.
57039
57040 2007-03-21  Bruno Haible  <bruno@clisp.org>
57041
57042         * modules/frexp-tests: New file.
57043         * tests/test-frexp.c: New file.
57044
57045         * modules/frexp: New file.
57046         * lib/frexp.c: New file.
57047         * m4/frexp.m4: New file.
57048         * lib/math_.h (frexp): New declaration.
57049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57050         REPLACE_FREXP.
57051         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57052
57053 2007-03-21  Bruno Haible  <bruno@clisp.org>
57054
57055         * modules/isnanl-tests: New file.
57056         * tests/test-isnanl.c: New file.
57057
57058         * modules/isnanl: New file.
57059         * lib/isnanl.h: New file.
57060         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57061         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57062         gl_FUNC_ISNANL_WORKS.
57063         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57064         New macros.
57065
57066 2007-03-21  Bruno Haible  <bruno@clisp.org>
57067
57068         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57069         lib/isnanl.h.
57070         (Include): Update.
57071         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57072         * lib/vasnprintf.c: Update.
57073         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57074         tests/test-isnanl.h, remove tests/test-isnanl.c.
57075         (Makefile.am): Update.
57076         * tests/test-isnanl-nolibm.c: New file.
57077         * tests/test-isnanl.h: New file.
57078         * tests/test-isnanl.c: Remove file.
57079
57080 2007-03-21  Jim Meyering  <jim@meyering.net>
57081
57082         When trying to open ".", treat ESTALE like EACCES.
57083         * lib/savewd.c (savewd_save): Resort to forking not just upon
57084         failure with EACCES, but also when errno is ESTALE.
57085
57086 2007-03-20  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57089         Needed on AIX 5.1. Reported by Matthew Woehlke.
57090
57091 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         Suggestions by Bruno Haible:
57094         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57095         our own.
57096         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57097         * modules/acl (Depends-on): Add gettext.
57098
57099 2007-03-19  Bruno Haible  <bruno@clisp.org>
57100
57101         * modules/iconvme: Remove file.
57102         * lib/iconvme.h: Remove file.
57103         * lib/iconvme.c: Remove file.
57104         * m4/iconvme.m4: Remove file.
57105
57106 2007-03-19  Bruno Haible  <bruno@clisp.org>
57107
57108         * doc/relocatable-maint.texi: Break long shell script line.
57109         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57110
57111 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57114         handle file_has_acl.
57115         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57116         * lib/acl.c: Move header inclusions and related macro defns into
57117         lib/acl-internal.h.
57118         (S_ISLNK): Remove defn, since that's now done for us.
57119         (file_has_acl): Move to lib/file-has-acl.c.
57120         Call acl_trivial if available.  This is the crucial part of the fix.
57121         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57122         shared within the library.  Rewrite a bit, partly to make it compatible
57123         with the GNU coding style.
57124         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57125         Remove unnecessary double-quotes.
57126         Don't test for acl_to_text; the build will catch that.
57127         Replace acl_entries if it doesn't exist and it is needed.
57128         Check for -lsec and acl_trivial (as used on Solaris 10).
57129         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57130         lib/file-has-acl.c.
57131         (Depends-on): Add sys_stat, for S_ISLNK.
57132
57133 2007-03-19  Ben Pfaff  <blp@gnu.org>
57134
57135         * doc/gnulib.texi: Fix typos.
57136         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57137
57138 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57139
57140         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57141         If size is zero here, buf must be zero.
57142
57143 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57144
57145         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57146         <bruno@clisp.org>.
57147
57148 2007-03-18  Bruno Haible  <bruno@clisp.org>
57149
57150         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57151         Suggested by Eric Blake.
57152
57153 2007-03-18  Ben Pfaff  <blp@gnu.org>
57154
57155         * doc/relocatable.texi: Recommend using as prefix a directory
57156         that does not exist and will never be created.  Based on
57157         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57158         and others.
57159
57160 2007-03-17  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/fchownat.c: Include lchown.h.
57163
57164 2007-03-17  Bruno Haible  <bruno@clisp.org>
57165
57166         Fix endless loop when the given allocated size was > INT_MAX.
57167         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57168         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57169         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57170         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57171         * lib/sprintf.c (sprintf): Likewise.
57172
57173 2007-03-17  Bruno Haible  <bruno@clisp.org>
57174
57175         * tests/test-argp-2.sh (func_compare): Output a context diff.
57176
57177 2007-03-17  Bruno Haible  <bruno@clisp.org>
57178
57179         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57180         locale's decimal-point character.
57181
57182 2007-03-17  Bruno Haible  <bruno@clisp.org>
57183
57184         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57185         before comparing it. Needed because on some platforms (e.g. x86) a
57186         'long double' occupies less bytes than sizeof (long double).
57187
57188 2007-03-17  Bruno Haible  <bruno@clisp.org>
57189
57190         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57191         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57192         * tests/test-getaddrinfo.c (simple): Likewise.
57193         * tests/test-read-file.c (main): Likewise.
57194
57195 2007-03-17  Bruno Haible  <bruno@clisp.org>
57196
57197         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57198
57199 2007-03-17  Bruno Haible  <bruno@clisp.org>
57200
57201         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57202         unused variable.
57203
57204 2007-03-17  Bruno Haible  <bruno@clisp.org>
57205
57206         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57207         * tests/test-c-strncasecmp.c: Likewise.
57208
57209 2007-03-17  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/stdlib (Depends-on): Add unistd.
57212         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57213         Needed for MacOS X 10.3.
57214
57215 2007-03-17  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57218
57219 2007-03-17  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57222
57223 2007-03-17  Bruno Haible  <bruno@clisp.org>
57224
57225         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57226         to reflect files copied from gnulib (with or without modifications).
57227         Suggested by Jim Meyering.
57228
57229 2007-03-17  Eric Blake  <ebb9@byu.net>
57230
57231         * NEWS: Document stdlib change from 2007-02-18.
57232
57233 2007-03-17  Jim Meyering  <jim@meyering.net>
57234
57235         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57236         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57237         someone uses a name containing shell meta-characters.
57238         Reported by Alfred M. Szmidt.
57239
57240         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57241
57242 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57243
57244         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57245         and copy gettext configuration files only if configure.ac contains
57246         a use of AM_GNU_GETTEXT_VERSION.
57247
57248 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57249
57250         * build-aux/bootstrap (gnulib_name): New variable.
57251         (gnulib_tool_options): Use it.
57252
57253 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57254
57255         * tests/test-des.c: Use new namespace.
57256
57257 2007-03-15  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57260         Reported by James Youngman <jay@gnu.org>.
57261
57262 2007-03-15  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57265         declared prototype. Needed with cc on OSF/1 5.1.
57266
57267 2007-03-15  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57270         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57271         (struct gl_list_implementation): Add dispose_fn argument to the
57272         'create_empty', 'create' methods.
57273         (struct gl_list_impl_base): Add field 'dispose_fn'.
57274         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57275         argument.
57276         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57277         dispose_fn argument.
57278         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57279         dispose_fn on the dropped values.
57280         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57281         dispose_fn argument.
57282         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57283         dropped values.
57284         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57285         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57286         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57287         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57288         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57289         argument.
57290         (gl_tree_list_free): Call dispose_fn on the dropped values.
57291         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57292         the dropped values.
57293         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57294         Add dispose_fn argument.
57295         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57296         Call dispose_fn on the dropped values.
57297         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57298         Add dispose_fn argument.
57299         (gl_sublist_create): Initialize the 'dispose_fn' field.
57300         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57301         * tests/test-array_list.c (main): Update.
57302         * tests/test-carray_list.c (main): Update.
57303         * tests/test-avltree_list.c (main): Update.
57304         * tests/test-rbtree_list.c (main): Update.
57305         * tests/test-avltreehash_list.c (main): Update.
57306         * tests/test-rbtreehash_list.c (main): Update.
57307         * tests/test-linked_list.c (main): Update.
57308         * tests/test-linkedhash_list.c (main): Update.
57309         * tests/test-array_oset.c (main): Update.
57310
57311 2007-03-15  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57314         (gl_oset_create_empty): Add dispose_fn argument.
57315         (struct gl_oset_implementation): Add dispose_fn argument to
57316         'create_empty' method.
57317         (struct gl_oset_impl_base): Add dispose_fn field.
57318         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57319         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57320         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57321         values.
57322         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57323         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57324         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57325         dropped value.
57326         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57327         dropped value.
57328         * tests/test-array_oset.c (main): Update.
57329         * tests/test-avltree_oset.c (main): Update.
57330         * tests/test-rbtree_oset.c (main): Update.
57331         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57332
57333 2007-03-13  Bruno Haible  <bruno@clisp.org>
57334
57335         * tests/test-stdbool.c (i): Update after last patch.
57336
57337 2007-03-12  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57340         the iswprint macro. Needed on Solaris 2.5.1.
57341
57342 2007-03-12  Bruno Haible  <bruno@clisp.org>
57343
57344         * tests/test-printf-frexp.c (main): Declare x as volatile.
57345
57346 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57347
57348         * doc/gnulib.texi (Build robot for gnulib): New section.
57349
57350 2007-03-12  Jim Meyering  <jim@meyering.net>
57351
57352         * build-aux/bootstrap: New file.
57353         * build-aux/bootstrap.conf: New file, from coreutils.
57354
57355 2007-03-11  Bruno Haible  <bruno@clisp.org>
57356
57357         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57358
57359 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57360
57361         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57362         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57363         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57364
57365 2007-03-11  Bruno Haible  <bruno@clisp.org>
57366
57367         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57368         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57369
57370 2007-03-11  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57373         formula. Needed for SunPRO C 5.0.
57374
57375 2007-03-11  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/long-options (Depends-on): Add getopt.
57378
57379 2007-03-11  Bruno Haible  <bruno@clisp.org>
57380
57381         * modules/modechange (Depends-on): Add stdbool.
57382
57383 2007-03-11  Bruno Haible  <bruno@clisp.org>
57384
57385         * modules/i-ring (Depends-on): Add stdbool.
57386
57387 2007-03-11  Bruno Haible  <bruno@clisp.org>
57388
57389         * modules/gc-des (Depends-on): Add stdbool.
57390
57391 2007-03-11  Bruno Haible  <bruno@clisp.org>
57392
57393         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57394
57395 2007-03-11  Bruno Haible  <bruno@clisp.org>
57396
57397         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57398
57399 2007-03-11  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57402
57403 2007-03-11  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/vasnprintf.c (sprintf): Undefine.
57406
57407 2007-03-11  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57410         initializers in SunPRO C and Compaq C compilers.
57411
57412 2007-03-11  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57415         decrementing code ANSI C compliant.
57416
57417 2007-03-11  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57420         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57421
57422 2007-03-11  Bruno Haible  <bruno@clisp.org>
57423
57424         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57425         <stdbool.h> substitute doesn't pass.
57426
57427 2007-03-11  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57430
57431 2007-03-11  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57434         script, for submission to autobuild.josefsson.org.
57435
57436 2007-03-10  Bruno Haible  <bruno@clisp.org>
57437
57438         * modules/canonicalize-lgpl-tests: New file.
57439         * tests/test-canonicalize-lgpl.sh: New file.
57440         * tests/test-canonicalize-lgpl.c: New file.
57441
57442         * modules/c-strcase-tests: New file.
57443         * tests/test-c-strcase.sh: New file.
57444         * tests/test-c-strcasecmp.c: New file.
57445         * tests/test-c-strncasecmp.c: New file.
57446
57447         * modules/atexit-tests: New file.
57448         * tests/test-atexit.sh: New file.
57449         * tests/test-atexit.c: New file.
57450
57451 2007-03-10  Bruno Haible  <bruno@clisp.org>
57452
57453         * tests/test-binary-io.sh: Use temporary filenames that are not so
57454         likely to clash with those of other tests (in a parallel make).
57455         * tests/test-binary-io.c: Likewise.
57456
57457 2007-03-10  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57460         fallback; use #error instead.
57461         Suggested by Simon Josefsson.
57462
57463 2007-03-10  Bruno Haible  <bruno@clisp.org>
57464
57465         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57466         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57467         first and the last.
57468
57469 2007-03-10  Bruno Haible  <bruno@clisp.org>
57470
57471         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57472
57473 2007-03-10  Bruno Haible  <bruno@clisp.org>
57474
57475         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57476         "make distcheck".
57477         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57478         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57479         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57480
57481 2007-03-10  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57484         variable.
57485         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57486         variable.
57487
57488 2007-03-09  Eric Blake  <ebb9@byu.net>
57489         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57490
57491         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57492         types are not being provided by gnulib.
57493         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57494         types are supported.
57495
57496 2007-03-10  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/stdio_.h (__attribute__): New macro.
57499         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57500         vsprintf): Specify __attribute__ __format__ for GCC.
57501         Suggested by Eric Blake.
57502
57503 2007-03-09  Bruno Haible  <bruno@clisp.org>
57504
57505         * modules/printf-posix-tests: New file.
57506         * tests/test-printf-posix.sh: New file.
57507         * tests/test-printf-posix.c: New file.
57508
57509         * modules/printf-posix: New file.
57510         * lib/printf.c: New file.
57511         * m4/printf-posix-rpl.m4: New file.
57512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57513         REPLACE_PRINTF.
57514         * lib/stdio_.h (printf): New declaration.
57515         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57516         ____strfmon____): New macros.
57517         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57518         REPLACE_PRINTF.
57519
57520 2007-03-09  Bruno Haible  <bruno@clisp.org>
57521
57522         * tests/test-vasnprintf-posix2.sh: New file.
57523         * tests/test-vasnprintf-posix2.c: New file.
57524         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57525         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57526         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57527
57528         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57529         a locale dependent decimal point, rather than always '.'.
57530
57531 2007-03-09  Eric Blake  <ebb9@byu.net>
57532
57533         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57534         spite of platforms like Tandem/NSK that define it to -1.
57535
57536 2007-03-08  Bruno Haible  <bruno@clisp.org>
57537
57538         * modules/vprintf-posix-tests: New file.
57539         * tests/test-vprintf-posix.sh: New file.
57540         * tests/test-vprintf-posix.c: New file.
57541         * tests/test-printf-posix.h: New file.
57542
57543         * modules/vprintf-posix: New file.
57544         * lib/vprintf.c: New file.
57545         * m4/vprintf-posix.m4: New file.
57546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57547         REPLACE_VPRINTF.
57548         * lib/stdio_.h (vprintf): New declaration.
57549         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57550         REPLACE_VPRINTF.
57551
57552 2007-03-08  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/fprintf-posix-tests: New file.
57555         * tests/test-fprintf-posix.sh: New file.
57556         * tests/test-fprintf-posix.c: New file.
57557
57558         * modules/fprintf-posix: New file.
57559         * lib/fprintf.c: New file.
57560         * m4/fprintf-posix.m4: New file.
57561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57562         REPLACE_FPRINTF.
57563         * lib/stdio_.h (fprintf): New declaration.
57564         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57565         REPLACE_FPRINTF.
57566
57567 2007-03-08  Bruno Haible  <bruno@clisp.org>
57568
57569         * modules/vfprintf-posix-tests: New file.
57570         * tests/test-vfprintf-posix.sh: New file.
57571         * tests/test-vfprintf-posix.c: New file.
57572         * tests/test-fprintf-posix.h: New file.
57573         * tests/test-fprintf-posix.out: New file.
57574
57575         * modules/vfprintf-posix: New file.
57576         * lib/vfprintf.c: New file.
57577         * m4/vfprintf-posix.m4: New file.
57578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57579         REPLACE_VFPRINTF.
57580         * lib/stdio_.h (vfprintf): New declaration.
57581         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57582         REPLACE_VFPRINTF.
57583
57584 2007-03-08  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57587
57588 2007-03-08  Bruno Haible  <bruno@clisp.org>
57589
57590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57591         instead of 'expr' invocations.
57592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57595         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57597         Suggested by Paul Eggert.
57598
57599 2007-03-08  Bruno Haible  <bruno@clisp.org>
57600
57601         * modules/fseterr-tests: New file.
57602         * tests/test-fseterr.c: New file.
57603
57604         * modules/fseterr: New file.
57605         * lib/fseterr.h: New file.
57606         * lib/fseterr.c: New file.
57607
57608 2007-03-08  Bruno Haible  <bruno@clisp.org>
57609
57610         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57611         * lib/getopt_.h: Likewise.
57612         * lib/mbswidth.h: Likewise.
57613         * lib/setenv.h: Likewise.
57614         * lib/vasnprintf.h: Likewise.
57615         * lib/vasprintf.h: Likewise.
57616         * lib/verror.h: Likewise.
57617         * lib/xsetenv.h: Likewise.
57618         * lib/xvasprintf.h: Likewise.
57619
57620 2007-03-08  Jim Meyering  <jim@meyering.net>
57621
57622         * users.txt: Add parted.
57623
57624         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57625
57626 2007-03-07  Bruno Haible  <bruno@clisp.org>
57627
57628         * m4/printf.m4: Make the shell script snippets copy&pastable.
57629
57630 2007-03-02  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/netinet_in_.h: New file.
57633         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57634         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57635         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57636         (Depends-on): Add absolute-header.
57637         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57638         into netinet/in.h.
57639
57640 2007-03-03  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/sys_select_.h: New file.
57643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57644         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57645         * modules/sys_select (Files): Add lib/sys_select_.h.
57646         (Depends-on): Add absolute-header.
57647         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57648         into sys/select.h.
57649
57650 2007-03-02  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57653         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57654         values.
57655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57656         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57657         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57658         * modules/sys_socket (Depends-on): Add absolute-header.
57659         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57660         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57661         (Include): Remove requirement of inclusion of <sys/types.h>.
57662
57663 2007-03-02  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/byteswap_.h (bswap_32): Fix formula.
57666
57667 2007-03-06  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/sprintf-posix-tests: New file.
57670         * tests/test-sprintf-posix.c: New file.
57671
57672         * modules/sprintf-posix: New file.
57673         * lib/sprintf.c: New file.
57674         * m4/sprintf-posix.m4: New file.
57675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57676         REPLACE_SPRINTF.
57677         * lib/stdio_.h (sprintf): New declaration.
57678         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57679         REPLACE_SPRINTF.
57680
57681 2007-03-06  Bruno Haible  <bruno@clisp.org>
57682
57683         * modules/vsprintf-posix-tests: New file.
57684         * tests/test-vsprintf-posix.c: New file.
57685         * tests/test-sprintf-posix.h: New file.
57686
57687         * modules/vsprintf-posix: New file.
57688         * lib/vsprintf.c: New file.
57689         * m4/vsprintf-posix.m4: New file.
57690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57691         REPLACE_VSPRINTF.
57692         * lib/stdio_.h (vsprintf): New declaration.
57693         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57694         REPLACE_VSPRINTF.
57695
57696 2007-03-06  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/vsnprintf (Depend-on): Remove minmax.
57699
57700 2007-03-06  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/snprintf-posix-tests: New file.
57703         * tests/test-snprintf-posix.c: New file.
57704
57705         * modules/snprintf-posix: New file.
57706         * m4/snprintf-posix.m4: New file.
57707         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57708         gl_FUNC_SNPRINTF.
57709         (gl_FUNC_SNPRINTF): Invoke it.
57710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57711         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57712         is set.
57713         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57714
57715 2007-03-06  Bruno Haible  <bruno@clisp.org>
57716
57717         * modules/vsnprintf-posix-tests: New file.
57718         * tests/test-vsnprintf-posix.c: New file.
57719         * tests/test-snprintf-posix.h: New file.
57720
57721         * modules/vsnprintf-posix: New file.
57722         * m4/vsnprintf-posix.m4: New file.
57723         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57724         gl_FUNC_VSNPRINTF.
57725         (gl_FUNC_VSNPRINTF): Invoke it.
57726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57727         * lib/stdio_.h (vsnprintf): Define as a replacement if
57728         REPLACE_VSNPRINTF is set.
57729         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57730
57731 2007-03-06  Bruno Haible  <bruno@clisp.org>
57732
57733         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57735
57736 2007-03-06  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57739         (asinl): Declare also if HAVE_DECL_ASINL is set.
57740         (atanl): Declare also if HAVE_DECL_ATANL is set.
57741         (ceill): Declare also if HAVE_DECL_CEILL is set.
57742         (cosl): Declare also if HAVE_DECL_COSL is set.
57743         (expl): Declare also if HAVE_DECL_EXPL is set.
57744         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57745         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57746         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57747         (logl): Declare also if HAVE_DECL_LOGL is set.
57748         (sinl): Declare also if HAVE_DECL_SINL is set.
57749         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57750         (tanl): Declare also if HAVE_DECL_TANL is set.
57751         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57754         declaration of frexpl, ldexpl.
57755         * modules/printf-frexpl (Depends-on): Add math.
57756         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57757
57758 2007-03-05  Bruno Haible  <bruno@clisp.org>
57759
57760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57761         frexpl and ldexpl are declared.
57762         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57763
57764 2007-03-05  Bruno Haible  <bruno@clisp.org>
57765
57766         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57767         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57768
57769 2007-03-05  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/stdio_.h: Include <stddef.h>.
57772
57773 2007-03-05  Bruno Haible  <bruno@clisp.org>
57774
57775         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57776
57777 2007-03-05  Bruno Haible  <bruno@clisp.org>
57778
57779         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57780         NetBSD 4, from Ralf Wildenhues.
57781
57782 2007-03-04  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/vasprintf.h: Update #if logic for the case when the functions
57785         exist but are overridden.
57786
57787 2007-03-04  Bruno Haible  <bruno@clisp.org>
57788
57789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57790         implementations: glibc-2.4 and MacOS X 10.3.
57791         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57792         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57793         * tests/test-vasprintf-posix.c (test_function): Likewise.
57794
57795 2007-03-04  Bruno Haible  <bruno@clisp.org>
57796
57797         * modules/vasprintf-posix-tests: New file.
57798         * tests/test-vasprintf-posix.c: New file.
57799
57800         * modules/vasprintf-posix: New file.
57801         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57802         defined.
57803         * m4/vasprintf-posix.m4: New file.
57804         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57805         gl_FUNC_VASPRINTF.
57806         (gl_FUNC_VASPRINTF): Invoke it.
57807         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57808         here.
57809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57810
57811 2007-03-04  Bruno Haible  <bruno@clisp.org>
57812
57813         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57814         REPLACE_GETTIMEOFDAY.
57815         * modules/sys_time (Makefile.am): Likewise.
57816         * m4/sys_time_h.m4: Likewise.
57817         * m4/gettimeofday.m4: Likewise.
57818
57819 2007-03-04  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/vasnprintf-posix-tests: New file.
57822         * tests/test-vasnprintf-posix.c: New file.
57823
57824         * modules/vasnprintf-posix: New file.
57825         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57826         printf-frexpl.h.
57827         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57828         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57829         REPLACE_VASNPRINTF is defined.
57830         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57831         gl_FUNC_VASNPRINTF.
57832         (gl_FUNC_VASNPRINTF): Invoke it.
57833         * m4/vasnprintf-posix.m4: New file.
57834         * m4/printf.m4: New file.
57835
57836 2007-03-04  Bruno Haible  <bruno@clisp.org>
57837
57838         Compile progreloc.c only if --enable-relocatable is specified.
57839         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57840         if --enable-relocatable was specified.
57841         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57842         lib_SOURCES.
57843
57844 2007-03-04  Jim Meyering  <jim@meyering.net>
57845
57846         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57847         Use it consistently, rather than enumerating errno constants.
57848
57849 2007-03-04  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/xvasprintf-tests: New file.
57852         * tests/test-xvasprintf.c: New file.
57853
57854         * modules/vasprintf-tests: New file.
57855         * tests/test-vasprintf.c: New file.
57856
57857         * modules/vasnprintf-tests: New file.
57858         * tests/test-vasnprintf.c: New file.
57859
57860         * modules/vsnprintf-tests: New file.
57861         * tests/test-vsnprintf.c: New file.
57862
57863         * modules/snprintf-tests: New file.
57864         * tests/test-snprintf.c: New file.
57865
57866 2007-03-04  Bruno Haible  <bruno@clisp.org>
57867
57868         Compile relocatable.c only if --enable-relocatable is specified.
57869         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57870         gl_RELOCATABLE_LIBRARY.
57871         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57872         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57873         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57874         gl_RELOCATABLE_LIBRARY.
57875         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57876         (Makefile.am): Remove lib_SOURCES.
57877         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57878         gl_RELOCATABLE_LIBRARY.
57879         (Makefile.am): Remove lib_SOURCES.
57880         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57881         always.
57882         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57883         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57884
57885 2007-03-04  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/argmatch-tests: New file.
57888         * tests/test-argmatch.c: New file.
57889
57890         * tests/test-allocsa.c (main): Halve the number of loop runs.
57891
57892         * modules/alloca-opt-tests: New file.
57893         * tests/test-alloca-opt.c: New file.
57894
57895 2007-03-04  Jim Meyering  <jim@meyering.net>
57896
57897         Work around difference between Linux ACLs and Solaris 10 ZFS.
57898         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57899         for EINVAL.
57900
57901 2007-03-03  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/relocatable-prog (Depends-on): Add back progreloc's
57904         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57905
57906 2007-03-03  Bruno Haible  <bruno@clisp.org>
57907
57908         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57909         * modules/relocatable-lib: New file.
57910
57911 2007-03-03  Bruno Haible  <bruno@clisp.org>
57912
57913         * modules/relocatable-prog: Renamed from modules/relocatable.
57914         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57915
57916 2007-03-03  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57919         m4/relocatable-lib.m4.
57920         (Depends-on): Remove 'relocatable'.
57921         (configure.ac): Add gl_RELOCATABLE_NOP.
57922
57923 2007-03-03  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/relocatable-prog-wrapper: New file.
57926         * modules/relocatable (Depends-on): Add it. Remove all other
57927         dependencies except progname.
57928         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57929
57930         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57931         (gl_FUNC_STRERROR): Nop.
57932         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57933
57934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57935         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57936
57937         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57938         (gl_FUNC_READLINK): Update.
57939
57940         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57941
57942 2007-03-03  Bruno Haible  <bruno@clisp.org>
57943
57944         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57945         * modules/xreadlink (Depends-on): Add unistd.
57946         * modules/xreadlink-with-size (Depends-on): Likewise.
57947
57948 2007-03-03  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57951         extracted from gt_FUNC_SETENV.
57952         (gt_FUNC_SETENV): Remove macro.
57953         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57954         remove gt_FUNC_SETENV.
57955
57956 2007-03-03  Bruno Haible  <bruno@clisp.org>
57957
57958         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57959         ENABLE_RELOCATABLE here.
57960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57961
57962 2007-03-03  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57965         * tests/test-rbtreehash_list.c: Include progname.h.
57966         (main): Call set_program_name.
57967
57968         * modules/rbtree-oset-tests (Depends-on): Add progname.
57969         * tests/test-rbtree_oset.c: Include progname.h.
57970         (main): Call set_program_name.
57971
57972         * modules/rbtree-list-tests (Depends-on): Add progname.
57973         * tests/test-rbtree_list.c: Include progname.h.
57974         (main): Call set_program_name.
57975
57976         * modules/linked-list-tests (Depends-on): Add progname.
57977         * tests/test-linked_list.c: Include progname.h.
57978         (main): Call set_program_name.
57979
57980 2007-03-03  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57983         All uses of __restrict changed to _Restrict_.
57984         * lib/glob_.h (__restrict): Remove macro.
57985
57986 2007-03-02  Bruno Haible  <bruno@clisp.org>
57987
57988         * modules/gettext (configure.ac): Require gettext infrastructure
57989         from version 0.16.1.
57990
57991 2007-03-02  Bruno Haible  <bruno@clisp.org>
57992
57993         * modules/linkedhash-list-tests (Depends-on): Add progname.
57994         * tests/test-linkedhash_list.c: Include progname.h.
57995         (main): Call set_program_name.
57996
57997         * modules/carray-list-tests (Depends-on): Add progname.
57998         * tests/test-carray_list.c: Include progname.h.
57999         (main): Call set_program_name.
58000
58001         * modules/avltreehash-list-tests (Depends-on): Add progname.
58002         * tests/test-avltreehash_list.c: Include progname.h.
58003         (main): Call set_program_name.
58004
58005         * modules/avltree-oset-tests (Depends-on): Add progname.
58006         * tests/test-avltree_oset.c: Include progname.h.
58007         (main): Call set_program_name.
58008
58009         * modules/avltree-list-tests (Depends-on): Add progname.
58010         * tests/test-avltree_list.c: Include progname.h.
58011         (main): Call set_program_name.
58012
58013         * modules/array-oset-tests (Depends-on): Add progname.
58014         * tests/test-array_oset.c: Include progname.h.
58015         (main): Call set_program_name.
58016
58017         * modules/array-list-tests (Depends-on): Add progname.
58018         * tests/test-array_list.c: Include progname.h.
58019         (main): Call set_program_name.
58020
58021         * modules/argp-tests (Depends-on): Add progname.
58022         * tests/test-argp.c: Include argp.h first. Include progname.h.
58023         (main): Call set_program_name.
58024
58025 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * doc/gnulib-tool.texi (Initial import): Reword description of
58028         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58029         limited effect even if defined after the first system include.
58030
58031 2007-03-01  Bruno Haible  <bruno@clisp.org>
58032
58033         * build-aux/config.libpath: Update to libtool-1.5.22.
58034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58035
58036 2007-03-01  Bruno Haible  <bruno@clisp.org>
58037
58038         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58039         foo_CFLAGS.
58040         Reported by Ralf Wildenhues.
58041
58042 2007-03-01  Bruno Haible  <bruno@clisp.org>
58043
58044         * build-aux/install-reloc: Remove object files left over by some
58045         compilers.
58046         Reported by Ralf Wildenhues.
58047
58048 2007-03-01  Bruno Haible  <bruno@clisp.org>
58049
58050         * build-aux/install-reloc: Break long lines.
58051
58052 2007-03-01  Bruno Haible  <bruno@clisp.org>
58053
58054         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58055         Reported by Ralf Wildenhues.
58056
58057 2007-03-01  Bruno Haible  <bruno@clisp.org>
58058
58059         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58060         include ordering constraints.
58061
58062 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58066         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58067         as another example.
58068         * lib/time_.h: Fix misspelling.
58069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58070         Require gl_HEADER_TIME_H_DEFAULTS.
58071         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58072         * m4/time_r.m4 (gl_TIME_R): Likewise.
58073         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58074
58075 2007-03-01  Bruno Haible  <bruno@clisp.org>
58076
58077         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58078         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58079
58080 2007-03-01  Jim Meyering  <jim@meyering.net>
58081
58082         * modules/xreadlink (Maintainer): Add my name.
58083         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58084
58085 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58086             Bruno Haible  <bruno@clisp.org>
58087
58088         * build-aux/install-reloc: Compile also c-ctype.c.
58089         * build-aux/relocatable.sh.in: New file.
58090         * doc/relocatable.texi: New file.
58091         * doc/relocatable-maint.texi: New file.
58092         * doc/gnulib.texi: Include relocatable-maint.texi.
58093         * lib/progreloc.c: Include unistd.h unconditionally.
58094         * lib/relocwrapper.c: Include unistd.h unconditionally.
58095         Include c-ctype.h.
58096         (add_dotbin): Use c_tolower.
58097         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58098         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58099         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58100         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58101         to m4/relocatable-lib.m4.
58102         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58103         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58104         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58105         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58106         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58107         * modules/relocatable: New file.
58108         * modules/relocatable-lib: New file.
58109         * modules/relocatable-script: New file.
58110
58111 2007-02-28  Bruno Haible  <bruno@clisp.org>
58112
58113         Import --enable-relocatable infrastructure.
58114         * build-aux/config.libpath: New file, from GNU gettext.
58115         * build-aux/install-reloc: New file, from GNU gettext.
58116         * build-aux/reloc-ldflags: New file, from GNU gettext.
58117         * lib/relocatable.h: New file, from GNU gettext.
58118         * lib/relocatable.c: New file, from GNU gettext.
58119         * lib/relocwrapper.c: New file, from GNU gettext.
58120         * m4/relocatable.m4: New file, from GNU gettext.
58121
58122 2007-02-28  Bruno Haible  <bruno@clisp.org>
58123
58124         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58125
58126         * modules/xreadlink: New file, from GNU gettext with modifications.
58127         * lib/xreadlink.c: New file, from GNU gettext.
58128         * lib/xreadlink.h: Add comments.
58129         (xreadlink): New declaration.
58130
58131         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58132         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58133         lib/xreadlink-with-size.c.
58134         (configure.ac): Remove gl_XREADLINK invocation.
58135         (Makefile.am): Augment lib_SOURCES.
58136         * m4/xreadlink.m4: Remove file.
58137         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58138         (xreadlink_with_size): Renamed from xreadink.
58139         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58140         * modules/canonicalize (Depends-on): Replace xreadlink with
58141         xreadlink-with-size.
58142         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58143
58144 2007-02-25  Jim Meyering  <jim@meyering.net>
58145
58146         * build-aux/announce-gen: When complaining about excess arguments,
58147         list them.
58148
58149 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * README: Document signed integer overflow situation more
58152         accurately.
58153
58154 2007-02-25  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58157         'a' or 'A' conversion.
58158
58159 2007-02-25  Bruno Haible  <bruno@clisp.org>
58160
58161         * modules/filename: Renamed from modules/pathname.
58162         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58163         lib/concatpath.c with lib/concat-filename.c.
58164         (Makefile.am): Update.
58165         (Include): Replace pathname.h with filename.h.
58166         * lib/filename.h: Renamed from lib/pathname.h.
58167         (concatenated_filename): Renamed from concatenated_pathname.
58168         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58169         (concatenated_filename): Renamed from concatenated_pathname.
58170         * lib/findprog.c: Include filename.h instead of pathname.h.
58171         (find_in_path): Update.
58172         * lib/javacomp.c: Include filename.h instead of pathname.h.
58173         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58174         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58175         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58176         is_oldgcj_14_13_usable, is_javac_usable): Update.
58177         * lib/javaexec.c: Include filename.h instead of pathname.h.
58178         (execute_java_class): Update.
58179         * modules/findprog: Update.
58180         * modules/javacomp: Update.
58181         * modules/javaexec: Update.
58182         * MODULES.html.sh (File system functions): Add 'filename', remove
58183         'pathname'.
58184
58185 2007-02-25  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/printf-frexpl-tests: New file.
58188         * tests/test-printf-frexpl.c: New file.
58189
58190         * modules/printf-frexpl: New file.
58191         * lib/printf-frexpl.h: New file.
58192         * lib/printf-frexpl.c: New file.
58193         * m4/printf-frexpl.m4: New file.
58194
58195 2007-02-25  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/printf-frexp-tests: New file.
58198         * tests/test-printf-frexp.c: New file.
58199
58200         * modules/printf-frexp: New file.
58201         * lib/printf-frexp.h: New file.
58202         * lib/printf-frexp.c: New file.
58203         * m4/printf-frexp.m4: New file.
58204
58205 2007-02-25  Bruno Haible  <bruno@clisp.org>
58206
58207         Assume automake >= 1.10 for the tests.
58208         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58209         * modules/arctwo-tests: Likewise.
58210         * modules/argp-tests: Likewise.
58211         * modules/avltree-list-tests: Likewise.
58212         * modules/avltree-oset-tests: Likewise.
58213         * modules/avltreehash-list-tests: Likewise.
58214         * modules/carray-list-tests: Likewise.
58215         * modules/crc-tests: Likewise.
58216         * modules/des-tests: Likewise.
58217         * modules/gc-arcfour-tests: Likewise.
58218         * modules/gc-arctwo-tests: Likewise.
58219         * modules/gc-des-tests: Likewise.
58220         * modules/gc-hmac-md5-tests: Likewise.
58221         * modules/gc-hmac-sha1-tests: Likewise.
58222         * modules/gc-md2-tests: Likewise.
58223         * modules/gc-md4-tests: Likewise.
58224         * modules/gc-md5-tests: Likewise.
58225         * modules/gc-pbkdf2-sha1-tests: Likewise.
58226         * modules/gc-rijndael-tests: Likewise.
58227         * modules/gc-sha1-tests: Likewise.
58228         * modules/gc-tests: Likewise.
58229         * modules/getaddrinfo-tests: Likewise.
58230         * modules/hmac-md5-tests: Likewise.
58231         * modules/hmac-sha1-tests: Likewise.
58232         * modules/linked-list-tests: Likewise.
58233         * modules/linkedhash-list-tests: Likewise.
58234         * modules/lock-tests: Likewise.
58235         * modules/md2-tests: Likewise.
58236         * modules/md4-tests: Likewise.
58237         * modules/md5-tests: Likewise.
58238         * modules/rbtree-list-tests: Likewise.
58239         * modules/rbtree-oset-tests: Likewise.
58240         * modules/rbtreehash-list-tests: Likewise.
58241         * modules/read-file-tests: Likewise.
58242         * modules/rijndael-tests: Likewise.
58243         * modules/stdint-tests: Likewise.
58244         * modules/tls-tests: Likewise.
58245
58246 2007-02-24  Bruno Haible  <bruno@clisp.org>
58247
58248         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58249         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58250         function; instead check whether isnan with a double argument links.
58251         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58252         function; instead check whether isnan with a 'long double' argument
58253         links.
58254         Reported by Eric Blake <ebb9@byu.net>.
58255
58256 2007-02-24  Bruno Haible  <bruno@clisp.org>
58257
58258         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58259         defined.
58260         * lib/isnanl.c: Remove all code. Just include isnan.c.
58261         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58262
58263 2007-02-25  Jim Meyering  <jim@meyering.net>
58264
58265         Avoid conflicting types for 'unsetenv' on FreeBSD.
58266         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58267         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58268         in stdlib.h.
58269
58270 2007-02-24  Bruno Haible  <bruno@clisp.org>
58271
58272         * modules/isnanl-nolibm-tests: New file.
58273         * tests/test-isnanl.c: New file.
58274
58275         * modules/isnanl-nolibm: New file.
58276         * lib/isnanl.h: New file.
58277         * lib/isnanl.c: New file.
58278         * m4/isnanl.m4: New file.
58279
58280 2007-02-24  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/isnan-nolibm-tests: New file.
58283         * tests/test-isnan.c: New file.
58284
58285         * modules/isnan-nolibm: New file.
58286         * lib/isnan.h: New file.
58287         * lib/isnan.c: New file.
58288         * m4/isnan.m4: New file.
58289
58290 2007-02-24  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58293         assume that an exponent fits in 20 bits.
58294
58295 2007-02-24  Jim Meyering  <jim@meyering.net>
58296
58297         * m4/regex.m4: Update the description of the configure-time option,
58298         --without-included-regex, to state accurately what the defaults are,
58299         and perhaps to give people an idea why using this option is risky.
58300
58301 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58302
58303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58304         loops on small arguments.  This attempts to avoid the problem
58305         Bruno Haible reported for AIX 4.3.2 in
58306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58307
58308 2007-02-23  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58311         Needed for help2man.
58312
58313 2007-02-23  Karl Berry  <karl@gnu.org>
58314
58315         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58316         exists, foo.h should be cvs-ignored, not committed.
58317
58318 2007-02-23  Eric Blake  <ebb9@byu.net>
58319
58320         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58321         * lib/stat-time.h (includes): Likewise.
58322         * lib/utimecmp.c (includes): Likewise.
58323         * lib/utimens.h (includes): Likewise.
58324         * lib/getdate.y (includes): Also include "timespec.h" for use
58325         internal to the module.
58326         * modules/utimens (Depends-on): Revert yesterday's patch.
58327         * modules/nanosleep (Depends-on): Add missing dependency.
58328
58329 2007-02-22  Bruno Haible  <bruno@clisp.org>
58330
58331         * lib/glob.c: Don't include getlogin_r.h.
58332
58333 2007-02-22  Jim Meyering  <jim@meyering.net>
58334
58335         * modules/utimens (Depends-on): Add timespec, required for
58336         utimens.h's inclusion of timespec.h.
58337
58338 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58341         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58342         Schwab in
58343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58344         I'll try to think of a better way to fix the Solaris problem.
58345
58346         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58347         like glibc; on Solaris 10, it fails with errno == EINVAL.
58348         POSIX says the behavior is unspecified if the first argument is NULL,
58349         so play it safe and never pass NULL to the system getcwd.
58350
58351 2007-02-21  Jim Meyering  <jim@meyering.net>
58352
58353         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58354         of gettimeofday.  It would conflict with the one now always
58355         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58356         an IRIX 6.5 build failure.
58357
58358 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         Minor fixups to port to Solaris 10 with Sun C 5.8.
58361         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58362         * modules/getcwd (Depends-on): Add dirfd.
58363         * lib/putenv.c (putenv): #undef it.
58364         (rpl_putenv): New decl.
58365         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58366
58367 2007-02-20  Bruno Haible  <bruno@clisp.org>
58368
58369         * modules/stdio-tests: New file.
58370         * tests/test-stdio.c: New file.
58371
58372         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58373         (Depends-on): Add stdio.
58374         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58375         (Include): Use <stdio.h> instead of vsnprintf.h.
58376         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58377         HAVE_DECL_VSNPRINTF.
58378         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58379
58380         * modules/snprintf (Files): Remove lib/snprintf.h.
58381         (Depends-on): Add stdio.
58382         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58383         (Include): Use <stdio.h> instead of snprintf.h.
58384         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58385         HAVE_DECL_SNPRINTF.
58386         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58387         * lib/getaddrinfo.c: Likewise.
58388
58389         * modules/stdio: New file.
58390         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58391         * lib/snprintf.h: Remove file.
58392         * lib/vsnprintf.h: Remove file.
58393         * lib/.cppi-disable: Remove snprintf.h.
58394         * m4/stdio_h.m4: New file.
58395         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58396
58397 2007-02-20  Jim Meyering  <jim@meyering.net>
58398
58399         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58400         used by e.g., mingw.  From Bruno Haible.
58401
58402 2007-02-19  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58405         warnings.
58406         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58407
58408 2007-02-19  Bruno Haible  <bruno@clisp.org>
58409
58410         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58411         from mingw users.
58412
58413 2007-02-19  Bruno Haible  <bruno@clisp.org>
58414
58415         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58416         warnings.
58417         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58418
58419 2007-02-19  Jim Meyering  <jim@meyering.net>
58420
58421         Don't use FD after a successful "fdopendir (fd)".
58422         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58423         Reset it by calling dirfd on the just-obtained DIR*.
58424
58425         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58426         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58427
58428 2007-02-18  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/readlink.c: Include <unistd.h>.
58431         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58432         HAVE_READLINK.
58433         * modules/readlink (Depends-on): Add unistd.
58434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58435         (Include): Add <unistd.h>.
58436
58437         * lib/getlogin_r.h: Remove file.
58438         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58439         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58440         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58441         HAVE_DECL_GETLOGIN_R.
58442         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58444         (Include): Use <unistd.h> instead of getlogin_r.h.
58445
58446         * lib/getcwd.h: Remove file.
58447         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58448         * lib/xgetcwd.c: Likewise.
58449         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58450         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58451         * modules/getcwd (Files): Remove lib/getcwd.h.
58452         (Depends-on): Add unistd.
58453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58454         (Include): Use <unistd.h> instad of getcwd.h.
58455
58456         * lib/ftruncate.c: Include <unistd.h> first.
58457         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58458         Set HAVE_FTRUNCATE.
58459         * modules/ftruncate (Depends-on): Add unistd.
58460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58461
58462         * lib/fchdir.c: Include <unistd.h> first.
58463         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58465         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58466         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58467         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58468
58469         * lib/dup2.c: Include <unistd.h> first.
58470         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58471         HAVE_DUP2.
58472         * modules/dup2 (Depends-on): Add unistd.
58473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58474
58475         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58476         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58477         REPLACE_CHOWN. Don't define chown as a macro here.
58478         * modules/chown (Depends-on): Add unistd.
58479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58480
58481         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58482         Add definition for GL_LINK_WARNING.
58483         (chown, dup2): New declarations.
58484         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58485         link warning.
58486         (ftruncate): New declaration.
58487         (getcwd): New declaration, taken from old getcwd.h.
58488         (getlogin_r): New declaration, taken from old getlogin_r.h.
58489         (readlink): New declaration.
58490         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58491         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58492         (gl_PREREQ_UNISTD): Remove macro.
58493         (gl_UNISTD_MODULE_INDICATOR): New macro.
58494         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58495         many new variables. Don't set UNISTD_H.
58496         * modules/unistd (Description): Change.
58497         (Depends-on): Add link-warning.
58498         (configure.ac): Update.
58499         (Makefile.am): Create unistd.h always. Substitute many new variables
58500         into it.
58501
58502 2007-02-18  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58505         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58506         HAVE_GETSUBOPT.
58507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58508         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58509         * lib/getsubopt.h: Remove file.
58510         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58511         (Depends-on): Add stdlib.
58512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58513         (Includes): Use <stdlib.h> instead of getsubopt.h.
58514         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58515         Set HAVE_GETSUBOPT.
58516         * lib/getsubopt.c: Don't include getsubopt.h.
58517
58518 2007-02-18  Bruno Haible  <bruno@clisp.org>
58519
58520         * modules/fchdir (Depends-on): Add dup2.
58521
58522 2007-02-18  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/stdlib_.h: Handle glibc's special invocation convention
58525         specially.
58526
58527 2007-02-18  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/stdlib-tests: New file.
58530         * tests/test-stdlib.c: New file.
58531
58532         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58533         (Depends-on): Add stdlib.
58534         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58535         (Includes): Use <stdlib.h> instead of mkstemp.h.
58536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58537         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58538         * lib/mkstemp.c: Don't include mkstemp.h.
58539         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58540         * lib/stdlib--.h: Don't include mkstemp.h.
58541
58542         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58543         (Depends-on): Add stdlib.
58544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58545         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58546         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58547         HAVE_MKDTEMP.
58548         * lib/mkdtemp.c: Don't include mkdtemp.h.
58549         * lib/clean-temp.c: Don't include mkdtemp.h.
58550
58551         * modules/exit (Files): Remove lib/exit.h.
58552         (Depends-on): Add stdlib.
58553         (Makefile.am): Remove lib_SOURCES.
58554         (Include): Use <stdlib.h> instead of exit.h.
58555         * lib/argmatch.c: Don't include exit.h.
58556         * lib/execute.c: Likewise.
58557         * lib/pagealign_alloc.c: Likewise.
58558         * lib/pipe.c: Likewise.
58559         * lib/wait-process.c: Likewise.
58560         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58561         * lib/exitfail.c: Likewise.
58562         * lib/savewd.c: Likewise.
58563         * lib/xsetenv.c: Likewise.
58564
58565         * modules/stdlib: New file.
58566         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58567         and extra comments about mkstemp().
58568         * lib/exit.h: Remove file.
58569         * lib/mkdtemp.h: Remove file.
58570         * lib/mkstemp.h: Remove file.
58571         * m4/stdlib_h.m4: New file.
58572         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58573
58574 2007-02-18  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/math-tests: New file.
58577         * tests/test-math.c: New file.
58578
58579         * modules/math: New file.
58580         * modules/mathl (Files): Remove lib/mathl.h.
58581         (Depends-on): Add math.
58582         (Makefile.am): Don't mention mathl.h.
58583         (Include): Use <math.h> instead of mathl.h.
58584         * lib/math_.h: New file.
58585         * lib/mathl.h: Remove file.
58586         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58587         mathl.h.
58588         * lib/asinl.c: Likewise.
58589         * lib/atanl.c: Likewise.
58590         * lib/ceill.c: Likewise.
58591         * lib/cosl.c: Likewise.
58592         * lib/expl.c: Likewise.
58593         * lib/floorl.c: Likewise.
58594         * lib/frexpl.c: Likewise.
58595         * lib/ldexpl.c: Likewise.
58596         * lib/logl.c: Likewise.
58597         * lib/sincosl.c: Likewise.
58598         * lib/sinl.c: Likewise.
58599         * lib/sqrtl.c: Likewise.
58600         * lib/tanl.c: Likewise.
58601         * lib/trigl.c: Likewise.
58602         * m4/math_h.m4: New file.
58603         * MODULES.html.sh (Mathematics): Add math.
58604
58605 2007-02-17  Bruno Haible  <bruno@clisp.org>
58606
58607         * modules/wctype-tests: New file.
58608         * tests/test-wctype.c: New file.
58609
58610         * modules/wchar-tests: New file.
58611         * tests/test-wchar.c: New file.
58612
58613         * modules/unistd-tests: New file.
58614         * tests/test-unistd.c: New file.
58615
58616         * modules/time-tests: New file.
58617         * tests/test-time.c: New file.
58618
58619         * modules/sysexits-tests: New file.
58620         * tests/test-sysexits.c: New file.
58621
58622         * modules/sys_time-tests: New file.
58623         * tests/test-sys_time.c: New file.
58624
58625         * modules/sys_stat-tests: New file.
58626         * tests/test-sys_stat.c: New file.
58627
58628         * modules/sys_socket-tests: New file.
58629         * tests/test-sys_socket.c: New file.
58630
58631         * modules/sys_select-tests: New file.
58632         * tests/test-sys_select.c: New file.
58633
58634         * modules/string-tests: New file.
58635         * tests/test-string.c: New file.
58636
58637         * modules/stdbool-tests: New file.
58638         * tests/test-stdbool.c: New file.
58639
58640         * modules/netinet_in-tests: New file.
58641         * tests/test-netinet_in.c: New file.
58642
58643         * modules/inttypes-tests: New file.
58644         * tests/test-inttypes.c: New file.
58645
58646         * modules/fcntl-tests: New file.
58647         * tests/test-fcntl.c: New file.
58648
58649         * modules/byteswap-tests: New file.
58650         * tests/test-byteswap.c: New file.
58651
58652         * modules/arpa_inet-tests: New file.
58653         * tests/test-arpa_inet.c: New file.
58654
58655 2007-02-17  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58658         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58659         if the corresponding module is not enabled. Emit link warnings if
58660         the function is used nevertheless.
58661         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58662         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58663         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58664         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58665         * modules/inttypes (Depends-on): Add link-warning.
58666         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58667         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58668         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58669         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58670         * modules/imaxdiv (configure.ac): Likewise.
58671         * modules/strtoimax (configure.ac): Likewise.
58672         * modules/strtoumax (configure.ac): Likewise.
58673
58674 2007-02-17  Bruno Haible  <bruno@clisp.org>
58675
58676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58677         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58679         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58680
58681 2007-02-17  Bruno Haible  <bruno@clisp.org>
58682
58683         * modules/link-warning: New file.
58684         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58685         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58686         * modules/string (Depends-on): Add link-warning.
58687         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58688         string.h.
58689         * MODULES.html.sh (Support for building libraries and executables): Add
58690         link-warning.
58691
58692 2007-02-17  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58695         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58696         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58697         long lines.
58698
58699 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58700             Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/tmpfile: New file.
58703         * lib/tmpfile.c: New file.
58704         * m4/tmpfile.m4: New file.
58705         * MODULES.html.sh (func_all_modules): New section "Input/output".
58706
58707 2007-02-15  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58710         (supports_delete_on_close): New function.
58711         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58712
58713 2007-02-14  Bruno Haible  <bruno@clisp.org>
58714
58715         * modules/mbspcasecmp-tests: New file.
58716         * tests/test-mbspcasecmp.sh: New file.
58717         * tests/test-mbspcasecmp.c: New file.
58718
58719         New module mbspcasecmp.
58720         * modules/mbspcasecmp: New file.
58721         * lib/mbspcasecmp.c: New file.
58722         * lib/string_.h (strncasecmp): Change warning message.
58723         (mbspcasecmp): New declaration.
58724         * m4/mbspcasecmp.m4: New file.
58725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58726         GNULIB_MBSPCASECMP.
58727         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58728         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58729
58730 2007-02-14  Bruno Haible  <bruno@clisp.org>
58731
58732         * modules/mbsncasecmp-tests: New file.
58733         * tests/test-mbsncasecmp.sh: New file.
58734         * tests/test-mbsncasecmp.c: New file.
58735
58736         New module mbsncasecmp.
58737         * modules/mbsncasecmp: New file.
58738         * lib/mbsncasecmp.c: New file.
58739         * lib/string_.h (mbsncasecmp): New declaration.
58740         * m4/mbsncasecmp.m4: New file.
58741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58742         GNULIB_MBSNCASECMP.
58743         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58744         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58745
58746 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58747
58748         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58749         Verify that it doesn't overlap with our flags.
58750         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58751         do not have the desired effect in multibyte locales; instead, use
58752         mbscasecmp.
58753         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58754         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58755         we don't require GNU fnmatch ourselves (if our users require it, they
58756         should do so explicitly).
58757
58758         Fix regex code so it doesn't rely on strcasecmp.
58759         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58760         Otherwise, include gnulib's langinfo.h.
58761         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58762         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58763         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58764         * modules/regex (FILES): Remove m4/codeset.m4.
58765         (Depends-on): Add localcharset.  Remove strcase.
58766
58767 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58768
58769         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58771
58772 2007-02-13  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58776
58777 2007-02-12  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58780         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58781         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58782         time warning rather than a link error.
58783
58784 2007-02-12  Bruno Haible  <bruno@clisp.org>
58785
58786         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58787         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58789
58790 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58793         args, not 2.
58794
58795 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         New module 'time', so that apps can include <time.h> as per
58798         POSIX and GNU instead of separate include files like time_r.h
58799         and timegm.h.  This implementation tries out a simpler approach
58800         for replacing decls in standard include files (as compared to
58801         the string module), somewhat as an experiment.
58802
58803         * config/srclist.txt: Comment out mktime.c for now.
58804         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58805         since it doesn't apply any more.  Use generic wording instead.
58806         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58807         'time'.
58808         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58809         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58810         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58811         Don't include <sys/types.h>; no longer needed since we assume C89.
58812         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58813         * lib/strftime.c: Likewise.
58814         * lib/time_r.c: Likewise.
58815         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58816         * lib/nanosleep.c: Include <time.h> first, to check interface.
58817         * lib/strptime.c: Likewise.
58818         * lib/time_r.c: Likewise.
58819         * lib/timegm.c: Likewise.
58820         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58821         needed.
58822         * lib/timegm.c: Don't include timegm.h; no longer needed.
58823         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58824         time.h now handles any problems in that area.
58825         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58826         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58827         that time.h defines struct timespec.
58828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58829         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58830         handles that.
58831         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58832         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58833         needed.  Set REPLACE_LOCALTIME.
58834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58835         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58836         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58837         nanosleep; time_h.m4 now does that.  Don't require
58838         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58839         module handles this now.
58840         * modules/getdate (Depends-on): Remove timespec.  Add time.
58841         * modules/nanosleep (Depends-on): Likewise.
58842         * modules/stat-time (Depends-on): Likewise.
58843         * modules/nanosleep (Include): Include time.h, not timespec.h.
58844         * modules/strptime (Files): Remove lib/strptime.h.
58845         (Depends-on): Add extensions, time.
58846         (Include): Include time.h, not strptime.h.
58847         * modules/time_r (Files): Remove lib/time_r.h.
58848         (Depends-on): Add time.
58849         (Include): Include time.h, not time_r.h.
58850         * modules/timegm: Likewise.
58851         * modules/timespec (Description): Now does timespec-related decls
58852         of our own, instead of struct timespec itself.
58853         (Depends-on): Add time; remove extensions.
58854         (Maintainer): Add self.
58855         * modules/utimecmp (Depends-on): Add time; remove timespec.
58856         * modules/utimens (Depends-on): Likewise.
58857         * modules/xnanosleep (Depends-on): Likewise.
58858
58859 2007-02-11  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/c-strstr.c: Include allocsa.h.
58862         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58863         * lib/c-strcasestr.c: Include allocsa.h.
58864         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58865         * lib/strcasestr.c: Include allocsa.h.
58866         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58867         * lib/mbsstr.c: Include allocsa.h.
58868         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58869         allocsa/freesa instead of malloc/free.
58870         * lib/mbscasestr.c: Include allocsa.h.
58871         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58872         allocsa/freesa instead of malloc/free.
58873         * modules/c-strstr (Depends-on): Add allocsa.
58874         * modules/c-strcasestr (Depends-on): Likewise.
58875         * modules/strcasestr (Depends-on): Likewise.
58876         * modules/mbsstr (Depends-on): Likewise.
58877         * modules/mbscasestr (Depends-on): Likewise.
58878
58879 2007-02-11  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58882
58883         * modules/mbsspn-tests: New file.
58884         * tests/test-mbsspn.sh: New file.
58885         * tests/test-mbsspn.c: New file.
58886
58887 2007-02-11  Bruno Haible  <bruno@clisp.org>
58888
58889         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58890
58891         * modules/mbspbrk-tests: New file.
58892         * tests/test-mbspbrk.sh: New file.
58893         * tests/test-mbspbrk.c: New file.
58894
58895 2007-02-11  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58898         unneeded cast.
58899
58900         * modules/mbscspn-tests: New file.
58901         * tests/test-mbscspn.sh: New file.
58902         * tests/test-mbscspn.c: New file.
58903
58904 2007-02-11  Bruno Haible  <bruno@clisp.org>
58905
58906         * modules/mbscasecmp-tests: New file.
58907         * tests/test-mbscasecmp.sh: New file.
58908         * tests/test-mbscasecmp.c: New file.
58909
58910 2007-02-11  Bruno Haible  <bruno@clisp.org>
58911
58912         Ensure O(n) worst-case complexity of mbscasestr.
58913         * lib/mbscasestr.c: Include stdbool.h.
58914         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58915         functions.
58916         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58917         the bookkeeping indicates that it's worth it.
58918         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58919
58920         * modules/mbscasestr-tests: New file.
58921         * tests/test-mbscasestr1.c: New file.
58922         * tests/test-mbscasestr2.sh: New file.
58923         * tests/test-mbscasestr2.c: New file.
58924         * tests/test-mbscasestr3.sh: New file.
58925         * tests/test-mbscasestr3.c: New file.
58926         * tests/test-mbscasestr4.sh: New file.
58927         * tests/test-mbscasestr4.c: New file.
58928         * m4/locale-tr.m4: New file.
58929
58930 2007-02-11  Bruno Haible  <bruno@clisp.org>
58931
58932         Ensure O(n) worst-case complexity of mbsstr.
58933         * lib/mbsstr.c: Include stdbool.h.
58934         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58935         functions.
58936         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58937         bookkeeping indicates that it's worth it.
58938         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58939
58940         * modules/mbsstr-tests: New file.
58941         * tests/test-mbsstr1.c: New file.
58942         * tests/test-mbsstr2.sh: New file.
58943         * tests/test-mbsstr2.c: New file.
58944         * tests/test-mbsstr3.sh: New file.
58945         * tests/test-mbsstr3.c: New file.
58946         * m4/locale-fr.m4: New file.
58947
58948 2007-02-11  Bruno Haible  <bruno@clisp.org>
58949
58950         * lib/mbsrchr.c (mbsrchr): Fix bug.
58951
58952         * modules/mbsrchr-tests: New file.
58953         * tests/test-mbsrchr.sh: New file.
58954         * tests/test-mbsrchr.c: New file.
58955
58956 2007-02-11  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/mbschr.c (mbschr): Fix bug.
58959
58960         * modules/mbschr-tests: New file.
58961         * tests/test-mbschr.sh: New file.
58962         * tests/test-mbschr.c: New file.
58963         * m4/locale-zh.m4: New file.
58964
58965 2007-02-11  Bruno Haible  <bruno@clisp.org>
58966
58967         Support for copying multibyte string iterators.
58968         * lib/mbiter.h: Include <string.h>.
58969         (mbiter_multi_copy): New function.
58970         (mbi_copy): New macro.
58971         * lib/mbuiter.h: Include <string.h>.
58972         (mbuiter_multi_copy): New function.
58973         (mbui_copy): New macro.
58974
58975 2007-02-11  Bruno Haible  <bruno@clisp.org>
58976
58977         New module mbslen.
58978         * modules/mbslen: New file.
58979         * lib/mbslen.c: New file.
58980         * lib/string_.h (mbslen): New declaration.
58981         * m4/mbslen.m4: New file.
58982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58983         GNULIB_MBSLEN.
58984         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58985         * MODULES.html.sh (Internationalization functions): Add mbslen.
58986
58987 2007-02-11  Bruno Haible  <bruno@clisp.org>
58988
58989         Ensure O(n) worst-case complexity of strcasestr substitute.
58990         * lib/strcasestr.c: Include stdbool.h.
58991         (knuth_morris_pratt): New function.
58992         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58993         bookkeeping indicates that it's worth it.
58994         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58995
58996         * modules/strcasestr-tests: New file.
58997         * tests/test-strcasestr.c: New file.
58998
58999 2007-02-11  Bruno Haible  <bruno@clisp.org>
59000
59001         Ensure O(n) worst-case complexity of c_strcasestr.
59002         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59003         (knuth_morris_pratt): New function.
59004         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59005         the bookkeeping indicates that it's worth it.
59006         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59007
59008         * modules/c-strcasestr-tests: New file.
59009         * tests/test-c-strcasestr.c: New file.
59010
59011 2007-02-11  Bruno Haible  <bruno@clisp.org>
59012
59013         Ensure O(n) worst-case complexity of c_strstr.
59014         * lib/c-strstr.c: Include stdbool.h, string.h.
59015         (knuth_morris_pratt): New function.
59016         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59017         bookkeeping indicates that it's worth it.
59018         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59019
59020         * lib/c-strstr.c: Complete rewrite for maintainability.
59021
59022         * modules/c-strstr-tests: New file.
59023         * tests/test-c-strstr.c: New file.
59024
59025 2007-02-11  Bruno Haible  <bruno@clisp.org>
59026
59027         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59028         5.2.1 and earlier, whereby \055 was treated just like the range
59029         delimiter '-'.
59030         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59031
59032 2007-02-08  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/regex (Depends-on): Add stdbool.
59035         Reported by Dalibor Topic <robilad@kaffe.org>.
59036
59037 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59038
59039         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59040         Prefer returning from main to exiting from it.
59041         Remove unnecessary parens after sizeof.
59042
59043 2007-02-05  Bruno Haible  <bruno@clisp.org>
59044
59045         New module mbssep.
59046         * modules/mbssep: New file.
59047         * lib/mbssep.c: New file.
59048         * lib/string_.h (strsep): Add a conditional link warning.
59049         (mbssep): New declaration.
59050         * m4/mbssep.m4: New file.
59051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59052         GNULIB_MBSSEP.
59053         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59054         * MODULES.html.sh (Internationalization functions): Add mbssep.
59055
59056 2007-02-05  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59059         Optimize search in case of 1 delimiter.
59060
59061 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59062
59063         * lib/acl.h: Include sys/types.h before sys/acl.h.
59064
59065 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59066
59067         Merge upstream fix for glibc bugzilla #3957:
59068
59069         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59070
59071         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59072         bit for RE_HAT_LISTS_NOT_NEWLINE.
59073         (build_charclass_op): Remove bogus comment.
59074
59075 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59076
59077         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59078
59079 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59082         * lib/memmem.c [!defined _LIBC]: Include config.h.
59083
59084 2007-02-04  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59087         warning message.
59088
59089 2007-02-04  Bruno Haible  <bruno@clisp.org>
59090
59091         New module mbstok_r.
59092         * modules/mbstok_r: New file.
59093         * lib/mbstok_r.c: New file.
59094         * lib/string_.h (strtok_r): Change argument names to match the
59095         comments. Add a conditional link warning.
59096         (mbstok_r): New declaration.
59097         * m4/mbstok_r.m4: New file.
59098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59099         GNULIB_MBSTOK_R.
59100         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59101         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59102
59103 2007-02-04  Bruno Haible  <bruno@clisp.org>
59104
59105         New module mbsspn.
59106         * modules/mbsspn: New file.
59107         * lib/mbsspn.c: New file.
59108         * lib/string_.h (strspn): Add a conditional link warning.
59109         (mbsspn): New declaration.
59110         * m4/mbsspn.m4: New file.
59111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59112         GNULIB_MBSSPN.
59113         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59114         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59115
59116 2007-02-04  Bruno Haible  <bruno@clisp.org>
59117
59118         New module mbspbrk.
59119         * modules/mbspbrk: New file.
59120         * lib/mbspbrk.c: New file.
59121         * lib/string_.h (strpbrk): Add a conditional link warning.
59122         (mbspbrk): New declaration.
59123         * m4/mbspbrk.m4: New file.
59124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59125         GNULIB_MBSPBRK.
59126         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59127         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59128
59129 2007-02-04  Bruno Haible  <bruno@clisp.org>
59130
59131         New module mbscspn.
59132         * modules/mbscspn: New file.
59133         * lib/mbscspn.c: New file.
59134         * lib/string_.h (strcspn): Add a conditional link warning.
59135         (mbscspn): New declaration.
59136         * m4/mbscspn.m4: New file.
59137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59138         GNULIB_MBSCSPN.
59139         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59140         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59141
59142 2007-02-04  Bruno Haible  <bruno@clisp.org>
59143
59144         New module mbscasestr, reduced goal of strcasestr.
59145         * modules/mbscasestr: New file.
59146         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59147         (mbscasestr): Renamed from strcasestr.
59148         * lib/strcasestr.c: Don't include mbuiter.h.
59149         (strcasestr): Remove support for multibyte locales.
59150         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59151         Change the conditional link warning.
59152         (mbscasestr): New declaration.
59153         * m4/mbscasestr.m4: New file.
59154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59155         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59156         REPLACE_STRCASESTR.
59157         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59159         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59160         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59161         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59162         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59163         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59164         (Depends-on): Remove mbuiter.
59165         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59166
59167 2007-02-04  Bruno Haible  <bruno@clisp.org>
59168
59169         Simplify handling of strncasecmp.
59170         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59171         the conditional link warning.
59172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59173         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59174         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59175         * modules/strcase (configure.ac): Don't invoke
59176         gl_STRING_MODULE_INDICATOR.
59177         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59178
59179 2007-02-04  Bruno Haible  <bruno@clisp.org>
59180
59181         New module mbscasecmp, reduced goal of strcasecmp.
59182         * modules/mbscasecmp: New file.
59183         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59184         (mbscasecmp): Renamed from strcasecmp.
59185         * lib/strcasecmp.c: Don't include mbuiter.h.
59186         (strcasecmp): Remove support for multibyte locales.
59187         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59188         Change the conditional link warning.
59189         (mbscasecmp): New declaration.
59190         * m4/mbscasecmp.m4: New file.
59191         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59192         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59193         REPLACE_STRCASECMP.
59194         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59196         GNULIB_MBSCASECMP.
59197         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59198         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59199         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59200         (Depends-on): Remove mbuiter.
59201         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59202
59203 2007-02-04  Bruno Haible  <bruno@clisp.org>
59204
59205         New module mbsstr. Remove module strstr.
59206         * modules/mbsstr: New file.
59207         * modules/strstr: Remove file.
59208         * lib/mbsstr.c: Renamed from lib/strstr.c.
59209         (mbsstr): Renamed from strstr.
59210         * lib/string_.h (strstr): Remove declaration. Change the conditional
59211         link warning.
59212         (mbsstr): New declaration.
59213         * m4/mbsstr.m4: New file.
59214         * m4/strstr.m4: Remove file.
59215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59216         REPLACE_STRSTR.
59217         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59218         Don't initialize GNULIB_STRSTR.
59219         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59220         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59221         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59222         (Support for systems lacking ANSI C 89): Remove strstr.
59223
59224 2007-02-04  Bruno Haible  <bruno@clisp.org>
59225
59226         New module mbsrchr.
59227         * modules/mbsrchr: New file.
59228         * lib/mbsrchr.c: New file.
59229         * lib/string_.h (strrchr): Add a conditional link warning.
59230         (mbsrchr): New declaration.
59231         * m4/mbsrchr.m4: New file.
59232         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59233         GNULIB_MBSRCHR.
59234         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59235         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59236
59237 2007-02-04  Bruno Haible  <bruno@clisp.org>
59238
59239         New module mbschr.
59240         * modules/mbschr: New file.
59241         * lib/mbschr.c: New file.
59242         * lib/string_.h (strchr): Add a conditional link warning.
59243         (mbschr): New declaration.
59244         * m4/mbschr.m4: New file.
59245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59246         GNULIB_MBSCHR.
59247         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59248         * MODULES.html.sh (Internationalization functions): Add mbschr.
59249
59250 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59253
59254         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59255
59256 2007-02-04  Bruno Haible  <bruno@clisp.org>
59257
59258         New module description section 'configure.ac-early'.
59259         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59260         (func_get_autoconf_early_snippet): New function.
59261         (func_import, func_create_testdir): Use it. Remove special cases for
59262         modules 'extensions' and 'lock'.
59263         * modules/extensions (configure.ac-early): Require
59264         gl_USE_SYSTEM_EXTENSIONS.
59265         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59266
59267 2007-02-04  Bruno Haible  <bruno@clisp.org>
59268
59269         Make use of gcj-4.3's -fsource and -ftarget option.
59270         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59271         and if so try the options -fsource and -ftarget.
59272         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59273         source_version, ftarget_option, target_version arguments.
59274         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59275         (is_envjavac_oldgcj_14_14_usable): Renamed from
59276         is_envjavac_gcj_14_14_usable.
59277         (is_envjavac_oldgcj_14_13_usable): Renamed from
59278         is_envjavac_gcj_14_13_usable.
59279         (is_gcj_present): Update.
59280         (is_gcj_43, is_gcj43_usable): New functions.
59281         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59282         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59283         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59284         try the options -fsource and -ftarget.
59285
59286 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59289         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59290         larger value.
59291
59292 2007-02-03  Jim Meyering  <jim@meyering.net>
59293
59294         Give tools a better chance to allocate space for very large buffers.
59295         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59296
59297         Make pwd and readlink work also when run with an unreadable parent dir
59298         on systems with openat support.
59299         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59300         provided getcwd function, even when we have openat support.
59301         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59302
59303 2007-02-02  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59306         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59307         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59308         portability problems if one of these functions is only used on specific
59309         platforms.
59310         Reported by Paul Eggert.
59311
59312 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59315         is causing more trouble than it's curing.
59316         * lib/regex_internal.h (__mempcpy): Remove.
59317         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59318         (and make the code a tad smaller to boot).
59319         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59320
59321 2007-02-02  Jim Meyering  <jim@meyering.net>
59322
59323         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59324         section, not in the Makefile.am: one.
59325
59326 2007-02-02  Eric Blake  <ebb9@byu.net>
59327
59328         * lib/strchrnul.c: Always include config.h first.
59329
59330         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59331         gnulib strstr is not necessary here.
59332
59333 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59334
59335         * m4/socklen.m4: Fix typo.
59336
59337 2007-02-02  Eric Blake  <ebb9@byu.net>
59338
59339         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59340         * modules/netinet_in (Makefile.am): Likewise.
59341
59342 2007-02-01  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/string_.h (GL_LINK_WARNING): New macro.
59345         (strcasecmp, strstr, strcasestr): If provided by the system,
59346         conditionally define as a macro that leads to a warning instead of to
59347         an error.
59348         (strncasecmp): Conditionally define as a macro that leads to a warning.
59349
59350 2007-02-01  Karl Berry  <karl@gnu.org>
59351
59352         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59353
59354 2007-02-01  Bruno Haible  <bruno@clisp.org>
59355
59356         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59357         renamings.
59358
59359 2007-02-01  Eric Blake  <ebb9@byu.net>
59360
59361         * modules/regex (Depends-on): Revert dependence on mempcpy.
59362         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59363         module's definition of mempcpy.
59364         Reported by Paul Eggert.
59365
59366 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59369         the symbol XYZ before redefining it.  This fixes a problem with
59370         programs that don't use XYZ, when compiled on systems that define
59371         XYZ to something else.
59372
59373 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59376         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59377         writeable to group or other and (2) is intended to have a special
59378         mode bit that is set or cleared.  In such a case, the directory
59379         should be neither group- nor other-writeable until the special
59380         mode bits are right.
59381
59382 2007-01-31  Eric Blake  <ebb9@byu.net>
59383
59384         * modules/mountlist (Depends-on): Add strstr.
59385
59386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59387         bug.
59388         * modules/string (Makefile.am): Remove redundant replacement.
59389         * modules/regex (Depends-on): Add mempcpy.
59390
59391 2007-01-31  Bruno Haible  <bruno@clisp.org>
59392
59393         New module description field 'Link'.
59394         * gnulib-tool (func_usage): Document --extract-link-directive.
59395         (sed_extract_prog): Recognize 'Link' directive.
59396         (func_get_link_directive): New function.
59397         (func_import): Show summary of link directives.
59398         Handle --extract-link-directive option.
59399         * modules/acl (Link): New section.
59400         * modules/clock-time (Link): New section.
59401         * modules/euidaccess (Link): New section.
59402         * modules/gettext (Link): New section.
59403         * modules/iconv (Link): New section.
59404         * modules/lock (Link): New section.
59405         * modules/nanosleep (Link): New section.
59406         * modules/readline (Link): New section.
59407
59408 2007-01-27  Bruno Haible  <bruno@clisp.org>
59409
59410         Enforce the use of gnulib modules for unportable <string.h> functions.
59411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59412         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59413         (gl_HEADER_STRING_H_BODY): Require it.
59414         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59415         the symbol XYZ to one that gives a link error.
59416         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59417         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59418         * modules/mempcpy (configure.ac): Likewise.
59419         * modules/memrchr (configure.ac): Likewise.
59420         * modules/stpcpy (configure.ac): Likewise.
59421         * modules/stpncpy (configure.ac): Likewise.
59422         * modules/strcase (configure.ac): Likewise.
59423         * modules/strcasestr (configure.ac): Likewise.
59424         * modules/strchrnul (configure.ac): Likewise.
59425         * modules/strdup (configure.ac): Likewise.
59426         * modules/strndup (configure.ac): Likewise.
59427         * modules/strnlen (configure.ac): Likewise.
59428         * modules/strpbrk (configure.ac): Likewise.
59429         * modules/strsep (configure.ac): Likewise.
59430         * modules/strstr (configure.ac): Likewise.
59431         * modules/strtok_r (configure.ac): Likewise.
59432
59433 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59434
59435         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59436
59437 2007-01-30  Jim Meyering  <jim@meyering.net>
59438
59439         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59440
59441 2007-01-29  Bruno Haible  <bruno@clisp.org>
59442
59443         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59444         * lib/execute.c: Likewise.
59445         * lib/pipe.c: Likewise.
59446         * lib/printf-args.h: Likewise.
59447         * lib/printf-args.c: Likewise.
59448         * lib/printf-parse.c: Likewise.
59449         * lib/vasnprintf.c: Likewise.
59450
59451 2007-01-29  Eric Blake  <ebb9@byu.net>
59452
59453         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59454         declaration.
59455
59456 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/strptime.h (strptime): Use 'restrict' for args where
59459         POSIX requires this.
59460         * lib/strptime.c (strptime): Likewise.
59461         Change license notice from LGPL to GPL, since gnulib-tool will
59462         change this as needed.
59463         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59464         defined.
59465         Include "strptime.h" first, to check interface.
59466         Do not #undef _LIBC and _NL_CURRENT.
59467         Do not include <stdlib.h>; no longer needed.
59468         Include "time_r.h" and declare ptime_locale_status
59469         only if _LIBC is not defined.
59470         (__P): Remove unused macro.
59471         (match_string): Bring back glibc version, but use it only if _LIBC
59472         is defined.
59473         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59474         Remove unnecessary assertion and abort() call.
59475         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59476         * m4/strptime.m4: Fix serial number comment.
59477         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59478         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59479         (Depends-on): Add time_r.
59480
59481 2007-01-29  Bruno Haible  <bruno@clisp.org>
59482
59483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59484         strptime.
59485         * modules/strptime (Depends-on): Add stdbool.
59486         * lib/strptime.h: Include <time.h> always. Add comments.
59487
59488 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59489
59490         * modules/strptime: New file.
59491         * lib/strptime.h: New file.
59492         * lib/strptime.c: New file.
59493         * m4/strptime.m4: New file.
59494
59495 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * MODULES.html.sh: New module mpsort.
59498         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59499
59500         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59501         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59503         All uses changed.
59504         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59505         All uses changed.
59506         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59507         to _Restrict_.
59508         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59509         the parameter matches the prototype.
59510
59511 2007-01-28  Jim Meyering  <jim@meyering.net>
59512
59513         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59514         sys/time.h here, reverting that part of the previous patch:
59515         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59516
59517 2007-01-28  Bruno Haible  <bruno@clisp.org>
59518
59519         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59520         value of $(SYS_TIME_H).
59521         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59522         remove it conditionally, too. [added by Jim Meyering]
59523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59525         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59526         GETTIMEOFDAY_REPLACEMENT to 1.
59527
59528 2007-01-28  Bruno Haible  <bruno@clisp.org>
59529
59530         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59531         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59533         Set UNISTD_H instead of UNISTD_H2.
59534         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59535
59536 2007-01-28  Bruno Haible  <bruno@clisp.org>
59537
59538         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59539         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59540
59541 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59542
59543         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59544         (func_create_testdir): Ensure C locale for `grep' and `tr'
59545         character ranges.
59546         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59547         ACLOCAL_AMFLAGS parsing state machine.
59548
59549 2007-01-27  Bruno Haible  <bruno@clisp.org>
59550
59551         * modules/unistr/base: Update.
59552
59553 2007-01-27  Bruno Haible  <bruno@clisp.org>
59554
59555         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59556         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59557         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59558         modules/unistr/u32-mbtouc.
59559         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59560         * lib/unistr.h: Update.
59561         * lib/linebreak.c: Update.
59562         * modules/unistr/u32-mbtouc: Renamed from
59563         modules/unistr/u32-mbtouc-safe.
59564         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59565         * lib/unistr.h: Update.
59566         * lib/unistr/u32-to-u8.c: Update.
59567         * lib/unistr/u32-to-u16.c: Update.
59568
59569 2007-01-27  Bruno Haible  <bruno@clisp.org>
59570
59571         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59572         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59573         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59574         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59575         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59576         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59577         modules/unistr/u16-mbtouc.
59578         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59579         * lib/unistr.h: Update.
59580         * lib/linebreak.c: Update.
59581         * modules/linebreak: Update.
59582         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59583         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59584         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59585         * modules/unistr/u16-mbtouc: Renamed from
59586         modules/unistr/u16-mbtouc-safe.
59587         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59588         * lib/unistr.h: Update.
59589         * lib/unistr/u16-to-u8.c: Update.
59590         * modules/unistr/u16-to-u8: Update.
59591         * lib/unistr/u16-to-u32.c: Update.
59592         * modules/unistr/u16-to-u32: Update.
59593
59594 2007-01-27  Bruno Haible  <bruno@clisp.org>
59595
59596         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59597         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59598         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59599         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59600         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59601         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59602         modules/unistr/u8-mbtouc.
59603         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59604         * lib/unistr.h: Update.
59605         * lib/striconveh.c: Update.
59606         * modules/striconveh: Update.
59607         * lib/linebreak.c: Update.
59608         * modules/linebreak: Update.
59609         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59610         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59611         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59612         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59613         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59614         * lib/unistr.h: Update.
59615         * lib/striconveh.c: Update.
59616         * modules/striconveh: Update.
59617         * lib/unistr/u8-to-u16.c: Update.
59618         * modules/unistr/u8-to-u16: Update.
59619         * lib/unistr/u8-to-u32.c: Update.
59620         * modules/unistr/u8-to-u32: Update.
59621
59622 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59623
59624         Sync from Libtool.
59625         * lib/argz.c: Do not include strings.h nor memory.h, include
59626         string.h unconditionally.  Patch by Simon Josefsson.
59627
59628 2007-01-27  Bruno Haible  <bruno@clisp.org>
59629
59630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59631         from gl_HEADER_STRING_H_BODY.
59632         (gl_HEADER_STRING_H_BODY): Require it.
59633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59636         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59638         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59640         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59641         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59643         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59644         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59645         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59648
59649 2007-01-27  Bruno Haible  <bruno@clisp.org>
59650
59651         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59652         check_PROGRAMS into noinst_PROGRAMS.
59653         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59654         check_PROGRAMS in this case.
59655         (func_import): Set for_test to false.
59656         (func_create_testdir): Set for_test to true.
59657
59658 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59659             Bruno Haible  <bruno@clisp.org>
59660
59661         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59662         (Depends-on): Add string.
59663         (Includes): Use <string.h> instead of strcasestr.h.
59664         * modules/string (Makefile.am): Also substitute the value of
59665         REPLACE_STRCASESTR.
59666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59667         assume strcasestr is declared in <string.h> not <strings.h>. Also
59668         set REPLACE_STRCASESTR.
59669         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59670         REPLACE_STRCASESTR.
59671         * lib/strcasestr.h: Remove file.
59672         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59673         * lib/string_.h (strcasestr): New declaration.
59674
59675 2007-01-27  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/string_.h: Use 'extern'.
59678
59679 2007-01-27  Jim Meyering  <jim@meyering.net>
59680
59681         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59682         of set-but-not-used local, "q".
59683
59684         * lib/mempcpy.c: Include <config.h> before <string.h>.
59685         This fixes a compilation error on HP-UX, due to the system's
59686         "restrict"-using mempcpy prototype.
59687
59688 2007-01-26  Bruno Haible  <bruno@clisp.org>
59689
59690         Small optimization.
59691         * lib/javacomp.c: Include c-strstr.h.
59692          (is_envjavac_gcj): Use c_strstr instead of strstr.
59693         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59694
59695 2007-01-26  Bruno Haible  <bruno@clisp.org>
59696
59697         * MODULES.html.sh (Unicode string functions): Add the new modules.
59698
59699         * modules/uniconv/u32-strconv-to-locale: New file.
59700         * lib/uniconv/u32-strconv-to-locale.c: New file.
59701
59702         * modules/uniconv/u16-strconv-to-locale: New file.
59703         * lib/uniconv/u16-strconv-to-locale.c: New file.
59704
59705         * modules/uniconv/u8-strconv-to-locale: New file.
59706         * lib/uniconv/u8-strconv-to-locale.c: New file.
59707
59708         * modules/uniconv/u32-strconv-from-locale: New file.
59709         * lib/uniconv/u32-strconv-from-locale.c: New file.
59710
59711         * modules/uniconv/u16-strconv-from-locale: New file.
59712         * lib/uniconv/u16-strconv-from-locale.c: New file.
59713
59714         * modules/uniconv/u8-strconv-from-locale: New file.
59715         * lib/uniconv/u8-strconv-from-locale.c: New file.
59716
59717         * modules/uniconv/u32-strconv-to-enc: New file.
59718         * lib/uniconv/u32-strconv-to-enc.c: New file.
59719         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59720         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59721
59722         * modules/uniconv/u16-strconv-to-enc: New file.
59723         * lib/uniconv/u16-strconv-to-enc.c: New file.
59724         * lib/uniconv/u-strconv-to-enc.h: New file.
59725         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59726         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59727
59728         * modules/uniconv/u8-strconv-to-enc: New file.
59729         * lib/uniconv/u8-strconv-to-enc.c: New file.
59730         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59731         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59732
59733         * modules/uniconv/u32-strconv-from-enc: New file.
59734         * lib/uniconv/u32-strconv-from-enc.c: New file.
59735         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59736         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59737
59738         * modules/uniconv/u16-strconv-from-enc: New file.
59739         * lib/uniconv/u16-strconv-from-enc.c: New file.
59740         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59741         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59742
59743         * modules/uniconv/u8-strconv-from-enc: New file.
59744         * lib/uniconv/u8-strconv-from-enc.c: New file.
59745         * lib/uniconv/u-strconv-from-enc.h: New file.
59746         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59747         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59748
59749         * modules/uniconv/u32-conv-from-enc: New file.
59750         * lib/uniconv/u32-conv-from-enc.c: New file.
59751         * modules/uniconv/u32-conv-from-enc-tests: New file.
59752         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59753
59754         * modules/uniconv/u16-conv-from-enc: New file.
59755         * lib/uniconv/u16-conv-from-enc.c: New file.
59756         * lib/uniconv/u-conv-from-enc.h: New file.
59757         * modules/uniconv/u16-conv-from-enc-tests: New file.
59758         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59759
59760         * modules/uniconv/u8-conv-from-enc: New file.
59761         * lib/uniconv/u8-conv-from-enc.c: New file.
59762         * modules/uniconv/u8-conv-from-enc-tests: New file.
59763         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59764
59765         * modules/uniconv/base: New file.
59766         * lib/uniconv.h: New file.
59767
59768 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59769
59770         * doc/gnulib-tool.texi (Initial import): Update to match current
59771         behavior with strdup module.
59772         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59773         * lib/memmem.h: Remove; all uses removed.  This is now done
59774         by <string.h>.
59775         * lib/mempcpy.h: Likewise.
59776         * lib/memrchr.h: Likewise.
59777         * lib/stpcpy.h: Likewise.
59778         * lib/stpncpy.h: Likewise.
59779         * lib/strcase.h: Likewise.
59780         * lib/strchrnul.h: Likewise.
59781         * lib/strdup.h: Likewise.
59782         * lib/strndup.h: Likewise.
59783         * lib/strnlen.h: Likewise.
59784         * lib/strpbrk.h: Likewise.
59785         * lib/strsep.h: Likewise.
59786         * lib/strstr.h: Likewise.
59787         * lib/strtok_r.h: Likewise.
59788         * lib/string_.h: New file.
59789         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59790         Rely on <string.h> instead.
59791         * lib/canon-host.c: Likewise.
59792         * lib/chdir-long.c: Likewise.
59793         * lib/concatpath.c: Likewise.
59794         * lib/exclude.c: Likewise.
59795         * lib/fchdir.c: Likewise.
59796         * lib/getaddrinfo.c: Likewise.
59797         * lib/getcwd.c: Likewise.
59798         * lib/getsubopt.c: Likewise.
59799         * lib/glob.c: Likewise.
59800         * lib/hard-locale.c: Likewise.
59801         * lib/iconvme.c: Likewise.
59802         * lib/javacomp.c: Likewise.
59803         * lib/mempcpy.c: Likewise.
59804         * lib/memrchr.c: Likewise.
59805         * lib/regex_internal.h: Likewise.
59806         * lib/stpncpy.c: Likewise.
59807         * lib/strcasecmp.c: Likewise.
59808         * lib/strchrnul.c: Likewise.
59809         * lib/strdup.c: Likewise.
59810         * lib/striconv.c: Likewise.
59811         * lib/striconveh.c: Likewise.
59812         * lib/striconveha.c: Likewise.
59813         * lib/strncasecmp.c: Likewise.
59814         * lib/strndup.c: Likewise.
59815         * lib/strnlen.c: Likewise.
59816         * lib/strsep.c: Likewise.
59817         * lib/strstr.c: Likewise.
59818         * lib/strtok_r.c: Likewise.
59819         * lib/userspec.c: Likewise.
59820         * lib/w32spawn.h: Likewise.
59821         * lib/xstrndup.c: Likewise.
59822         * lib/mountlist.c (strstr): Remove decl.
59823         * m4/string_h.m4: New file.
59824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59827         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59828         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59829         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59830         Set REPLACE_STRCASECMP if necessary.
59831         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59833         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59835         HAVE_DECL_STRDUP if necessary.
59836         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59837         since gl_FUNC_STRNDUP does that now.
59838         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59839         Check for decl here...
59840         (gl_PREREQ_STRNLEN): ... not here.
59841         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59842         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59843         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59845         necessary.
59846         * modules/string: New file.
59847         * modules/memmem (Files): Remove special-purpose include file.
59848         (Depends-on): Add string.
59849         (Include): Include <string.h>, not the removed file.
59850         * modules/mempcpy: Likewise.
59851         * modules/memrchr: Likewise.
59852         * modules/stpcpy: Likewise.
59853         * modules/stpncpy: Likewise.
59854         * modules/strcase: Likewise.
59855         * modules/strchrnul: Likewise.
59856         * modules/strdup: Likewise.
59857         * modules/strndup: Likewise.
59858         * modules/strnlen: Likewise.
59859         * modules/strpbrk: Likewise.
59860         * modules/strsep: Likewise.
59861         * modules/strstr: Likewise.
59862         * modules/strtok_r: Likewise.
59863         * tests/test-dirname.c: Don't include "strdup.h", since
59864         <string.h> now suffices.
59865         * tests/test-memmem.c: Don't include "memmem.h", since
59866         <string.h> now suffices.
59867
59868 2007-01-25  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59871         *resultp is 0.
59872
59873         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59874         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59875         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59876         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59877
59878         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59879         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59880         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59881         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59882         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59883         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59884
59885 2007-01-24  Bruno Haible  <bruno@clisp.org>
59886
59887         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59889         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59890         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59891         gl_FUNC_FTS_CORE.
59892         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59893         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59894         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59895         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59896         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59897         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59898         gl_FUNC_FCHOWNAT.
59899         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59900         gl_FUNC_STRFTIME.
59901         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59902         Reported by Ralf Wildenhues.
59903
59904 2007-01-24  Bruno Haible  <bruno@clisp.org>
59905
59906         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59907         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59908         gl_GETADDRINFO.
59909         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59910         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59911         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59912
59913 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59914
59915         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59916         Don't use 'exit'; just return from 'main'.
59917         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59918
59919         * lib/fnmatch_.h: Readjust white space and comments to match
59920         glibc, to avoid spurious diffs.
59921
59922 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59925         2004-12-01 change by Jakub Jelinek, since this code won't compile
59926         if !LIBC.  Problem reported by Bob Proulx.
59927
59928 2007-01-23  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/striconveh.c: Include c-strcaseeq.h.
59931         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59932         * modules/striconveh (Depends-on): Add c-strcaseeq.
59933
59934 2007-01-23  Bruno Haible  <bruno@clisp.org>
59935
59936         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59937
59938         * modules/c-strcaseeq: New file.
59939         * lib/c-strcaseeq.h: New file.
59940
59941         * modules/streq: New file.
59942         * lib/streq.h: New file.
59943
59944 2007-01-23  Bruno Haible  <bruno@clisp.org>
59945
59946         * modules/striconveha-tests: New file.
59947         * tests/test-striconveha.c: New file.
59948
59949         * lib/striconveha.h: Include <stdbool.h>.
59950         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59951         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59952         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59953         (mem_iconveha): New function.
59954         (str_iconveha_notranslit): Renamed from str_iconveha.
59955         (str_iconveha): New function.
59956         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59957         c-strcase.
59958
59959 2007-01-23  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59962         encodings without forgiving before trying any encoding with handler.
59963         (str_iconveha): Try all encodings without forgiving before trying any
59964         encoding with handler.
59965
59966 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         Import the following changes from libc.
59969
59970         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59971
59972         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59973
59974         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59975
59976         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59977         normal_bracket label.
59978
59979         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59980
59981         [BZ #361]
59982         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59983         to normal_bracket after fetching the next character.
59984
59985 2007-01-22  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59988         argument.
59989         * lib/striconveh.c (iconv_carefully_1): New function.
59990         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59991         argument.
59992         (str_cd_iconveh): Update.
59993         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59994         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59995         * tests/test-striconveh.c (MAGIC): New macro.
59996         (new_offsets): New function.
59997         (main): Test call with and without offsets.
59998
59999 2007-01-22  Bruno Haible  <bruno@clisp.org>
60000
60001         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60002         * modules/sys_select (Makefile.am): Likewise.
60003         * modules/sys_socket (Makefile.am): Likewise.
60004         * modules/sys_time (Makefile.am): Likewise.
60005
60006 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * modules/gettimeofday (License): Change from GPL to LGPL, since
60009         gettimeofday is a library function.
60010
60011 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60012
60013         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60014
60015 2007-01-21  Bruno Haible  <bruno@clisp.org>
60016
60017         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60018
60019 2007-01-21  Bruno Haible  <bruno@clisp.org>
60020
60021         * modules/striconveha: New file.
60022         * lib/striconveha.h: New file.
60023         * lib/striconveha.c: New file.
60024         * MODULES.html.sh (Internationalization functions): Add striconveha.
60025         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60026         string.
60027         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60028
60029 2007-01-21  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60032         * lib/striconveh.c (str_iconveh): Likewise.
60033
60034 2007-01-21  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/striconveh.h (mem_iconveh): New declaration.
60037         * lib/striconveh.c (mem_iconveh): New function.
60038         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60039
60040 2007-01-21  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60043
60044         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60045         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60046         original result buffer.
60047         (str_cd_iconveh): Update.
60048         * tests/test-striconveh.c (main): Update.
60049
60050         * lib/striconv.h (mem_cd_iconv): Change specification.
60051         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60052         result buffer.
60053         (str_cd_iconv): Update.
60054         * tests/test-striconv.c (main): Update.
60055
60056 2007-01-21  Bruno Haible  <bruno@clisp.org>
60057
60058         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60059
60060 2007-01-20  Jim Meyering  <jim@meyering.net>
60061
60062         * lib/userspec.c (parse_with_separator): If a user or group string
60063         starts with "+", skip the corresponding name-to-ID look-up, since
60064         such a look-up must fail: user and group names may not include "+".
60065
60066 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60067
60068         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60069         since we now assume the sys_time module.
60070         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60071         check for sys/time.h; no longer needed.
60072         * modules/poll (Depends-on): Depend on sys_time.
60073
60074 2007-01-18  Bruno Haible  <bruno@clisp.org>
60075
60076         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60077         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60078
60079         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60080         gettimeofday.
60081
60082         * tests/test-gettimeofday.c: Include <time.h>.
60083         (dummy): Remove variable.
60084
60085         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60086         gl_HEADER_SYS_TIME_H.
60087         (gl_HEADER_SYS_TIME_H): New macro.
60088
60089         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60090         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60092         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60093         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60095         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60096         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60097         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60098         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60099         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60100
60101         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60102         last change; it caused a compilation error when cross-compiling to
60103         Cygwin.
60104
60105 2007-01-18  Jim Meyering  <jim@meyering.net>
60106
60107         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60108         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60109         than the race-prone "test -d sys || mkdir sys".
60110         (configure.ac): Use AC_PROG_MKDIR_P.
60111         * modules/sys_select: Likewise.
60112         * modules/sys_socket: Likewise.
60113         * modules/sys_time: Likewise.
60114
60115 2007-01-18  Eric Blake  <ebb9@byu.net>
60116
60117         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60118         replace gettimeofday.
60119         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60120         name, to avoid infinite recursion.
60121
60122 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60125         module sys_time.
60126         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60127         assume timespec.h defines struct timeval.
60128         * lib/settime.c: Likewise.
60129         * lib/utimens.c: Likewise.
60130         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60131         since we now assume the gettimeofday module.
60132         * lib/tempname.c (__gen_tempname): Likewise.
60133         * lib/gettimeofday.h: Remove.
60134         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60135         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60136         Include <time.h>, for 'time()'.
60137         (localtime_buffer_addr): Also use this workaround if
60138         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60139         to simplify the uses.  All uses changed.
60140         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60141         that #undef is inside {}, and 'const' follows type name consistently.
60142         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60143         (gettimeofday): Do not use the maximum possible value for
60144         tv->tv_usec, since that might break usages other than ls.c.
60145         Instead, we'll leave ls.c alone.  This undoes today's patch
60146         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60147         we've never observed the problem but might as well keep the
60148         canary.
60149         * lib/nanosleep.c: Include timespec.h first, for interface check.
60150         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60151         now assume the sys_time module.
60152         * lib/tempname.c: Likewise.
60153         * lib/timespec.h: Likewise.
60154         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60155         needed.
60156         * lib/strftime.c: Likewise.
60157         * lib/timespec.h: Likewise.
60158         * lib/posixtm.c: Include posixtm.h first, for interface check.
60159         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60160         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60161         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60162         * lib/sys_time_.h: New file.
60163         * lib/timespec.h (struct timespec): Use long int, not long.
60164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60165         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60166         Remove obsolescent call to AC_HEADER_TIME.
60167         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60169         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60170         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60171         Likewise.
60172         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60173         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60175         into the sys_time module.  Check for gettimeofday just once.
60176         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60177         for gettimeofday signature to just check the signature.  Merely
60178         compile it, since linking doesn't test signature.  Improve test for
60179         whether gettimeofday.o is actually needed.
60180         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60181         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60182         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60183         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60184         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60185         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60186         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60187         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60188         than worrying about sys/time.h.
60189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60190         Don't bother worrying about TIME_WITH_SYS_TIME.
60191         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60192         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60193         * m4/sys_time_h.m4: New file.
60194         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60195         Don't include sys/time.h.  Return from main rather than exiting.
60196         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60197         all uses changed.
60198         * modules/gethrxtime (Depends-on): Add sys_time.
60199         * modules/gettime (Depends-on): Likewise.
60200         * modules/gettimeofday (Depends-on): Likewise.
60201         * modules/nanosleep (Depends-on): Likewise.
60202         * modules/settime (Depends-on): Likewise.
60203         * modules/tempname (Depends-on): Likewise.
60204         * modules/utimens (Depends-on): Likewise.
60205         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60206         (Include): Change back to <sys/time.h>.
60207         (Maintainer): Add self.
60208         * modules/sys_time: New file.
60209         * modules/tempname (Depends-on): Add gettimeofday.
60210         * tests/test-gettimeofday.c: Include <sys/time.h>
60211         rather than gettimeofday.h.
60212
60213 2007-01-17  Bruno Haible  <bruno@clisp.org>
60214
60215         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60216         the license default to GPL.
60217         (func_create_testdir): Don't complain if a module is LGPL and its
60218         tests module depends on GPLed modules.
60219
60220 2007-01-17  Bruno Haible  <bruno@clisp.org>
60221
60222         * lib/gettimeofday.c (gettimeofday): Add code for the case
60223         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60224         maximum possible value for tv->tv_usec, rather than the minimum one.
60225
60226 2005-10-08  Martin Lambers  <marlam@marlam.de>
60227 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60228 2007-01-16  Bruno Haible  <bruno@clisp.org>
60229
60230         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60231         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60232         gl_FUNC_GETTIMEOFDAY.
60233         (Include): Add gettimeofday.h.
60234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60235         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60236         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60237         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60238         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60239         * lib/gettimeofday.h: New file.
60240         * lib/gettimeofday.c: Include <sys/timeb.h>.
60241         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60242         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60243         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60244         fall back on time().
60245
60246         * tests/test-gettimeofday.c: New file.
60247         * modules/gettimeofday-tests: New file.
60248
60249 2007-01-16  Eric Blake  <ebb9@byu.net>
60250
60251         * modules/fnmatch (Depends-on): Depend on wchar.
60252         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60253         * m4/fnmatch.m4: Likewise.
60254         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60255         * m4/mbchar.m4: Likewise.
60256         * modules/mbswidth (Depends-on): Depend on wchar.
60257         * lib/mbswidth.c: Assume <wchar.h>.
60258         * m4/mbswidth.m4: Likewise.
60259         * modules/quotearg (Depends-on): Depend on wchar.
60260         * lib/quotearg.c: Assume <wchar.h>.
60261         * m4/quotearg.m4: Likewise.
60262         * modules/regex (Depends-on): Depend on wchar.
60263         * lib/regex_internal.h: Assume <wchar.h>.
60264         * m4/regex.m4: Likewise.
60265         * modules/stdint (Depends-on): Depend on wchar.
60266         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60267         * m4/stdint.m4: Likewise.
60268         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60269         * modules/strftime (Depends-on): Depend on wchar.
60270         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60271         * modules/strtol (Depends-on): Depend on wchar.
60272         * lib/strtol.c: Assume <wchar.h>.
60273         * modules/wcwidth (Depends-on): Depend on wchar.
60274         * lib/wcwidth.h: Assume <wchar.h>.
60275         * m4/wcwidth.m4: Likewise.
60276
60277 2007-01-16  Bruno Haible  <bruno@clisp.org>
60278
60279         * modules/csharpexec-script: New, created from...
60280         * modules/csharpexec: ... this.
60281
60282 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60283
60284         * modules/javaexec-script: New, created from...
60285         * modules/javaexec: ... this.
60286
60287 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60288
60289         * modules/poll (Dependencies): Add sys_select.
60290
60291 2007-01-15  Jim Meyering  <jim@meyering.net>
60292
60293         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60294         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60295         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60296         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60297
60298 2007-01-15  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/striconveh: New file.
60301         * lib/striconveh.h: New file.
60302         * lib/striconveh.c: New file.
60303         * MODULES.html.sh (Internationalization functions): Add striconveh.
60304
60305         * modules/striconveh-tests: New file.
60306         * tests/test-striconveh.c: New file.
60307
60308 2007-01-15  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60311         not from GNU libiconv or GNU libc.
60312
60313 2007-01-15  Bruno Haible  <bruno@clisp.org>
60314
60315         * doc/gnulib-intro.texi (Copyright): Explain the different license
60316         terms for module descriptions, autoconf macros, tests, documentation.
60317
60318 2007-01-14  Bruno Haible  <bruno@clisp.org>
60319
60320         * modules/striconv-tests: New file.
60321         * tests/test-striconv.c: New file.
60322
60323 2007-01-14  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/iconv-tests: New file.
60326         * tests/test-iconv.c: New file.
60327
60328 2007-01-14  Bruno Haible  <bruno@clisp.org>
60329
60330         * gnulib-tool (func_get_license): For test modules, use the license of
60331         the main module.
60332
60333 2007-01-14  Bruno Haible  <bruno@clisp.org>
60334
60335         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60336         if iconv is found to exist.
60337
60338 2007-01-14  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/c-ctype-tests: New file.
60341         * tests/test-c-ctype.c: New file.
60342
60343 2007-01-14  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/binary-io-tests: New file.
60346         * tests/test-binary-io.sh: New file.
60347         * tests/test-binary-io.c: New file.
60348
60349 2007-01-14  Bruno Haible  <bruno@clisp.org>
60350
60351         * modules/array-oset-tests: New file.
60352         * tests/test-array_oset.c: New file.
60353
60354 2007-01-14  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/array-list-tests: New file.
60357         * tests/test-array_list.c: New file.
60358
60359 2007-01-14  Bruno Haible  <bruno@clisp.org>
60360
60361         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60362         and make.
60363         Reported by Simon Josefsson in
60364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60365
60366 2007-01-14  Bruno Haible  <bruno@clisp.org>
60367
60368         * modules/allocsa-tests: New file.
60369         * tests/test-allocsa.c: New file.
60370
60371 2007-01-14  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/fchdir (Depends-on): Add absolute-header.
60374         * modules/unistd (Depends-on): Likewise.
60375
60376 2006-12-30  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/fchdir: New file.
60379         * modules/unistd (Files): Add lib/unistd_.h.
60380         (Makefile.am): Generate unistd.h from unistd_.h.
60381         * lib/fchdir.c: New file.
60382         * lib/dirent_.h: New file.
60383         * lib/unistd_.h: New file.
60384         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60385         * m4/fchdir.m4: New file.
60386         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60387         (gl_HEADER_UNISTD): Invoke it.
60388         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60389         function.
60390         * lib/backupfile.c (opendir, closedir): Undefine.
60391         * lib/chown.c (open, close): Undefine.
60392         * lib/clean-temp.c (open, close): Undefine.
60393         * lib/copy-file.c (open, close): Undefine.
60394         * lib/execute.c (open, close): Undefine.
60395         * lib/fsusage.c (open, close): Undefine.
60396         * lib/gc-gnulib.c (open, close): Undefine.
60397         * lib/getcwd.c (opendir, closedir): Undefine.
60398         * lib/glob.c (opendir, closedir): Undefine.
60399         * lib/javacomp.c (open, close): Undefine.
60400         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60401         * lib/openat-proc.c (open, close): Undefine.
60402         * lib/pagealign_alloc.c (open, close): Undefine.
60403         * lib/pipe.c (open, close): Undefine.
60404         * lib/progreloc.c (open, close): Undefine.
60405         * lib/savedir.c (opendir, closedir): Undefine.
60406         * lib/utime.c (open, close): Undefine.
60407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60408
60409 2007-01-10  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60412
60413 2007-01-12  Eric Blake  <ebb9@byu.net>
60414
60415         Provide a robust <wchar.h>.  Further simplifications are now
60416         possible in other modules, but not included here.
60417         * modules/wchar: New module.
60418         * m4/wchar.m4: New file.
60419         * lib/wchar_.h: Likewise.
60420         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60421         of the new module.
60422         * MODULES.html.sh (Extended multibyte and wide character utilities):
60423         New section.
60424
60425 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60428         to a reasonable default for memory allocation.
60429         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60430         file system that reports garbage st_size values for symlinks.
60431         Problem reported by Liyang Hu.
60432
60433 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60434
60435         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60436         Emacs .#* auto-save files).
60437
60438 2007-01-11  Bruno Haible  <bruno@clisp.org>
60439
60440         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60441         directory.
60442
60443 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60444
60445         Use @...@ consistently in lib/wctype_.h.
60446         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60447         on it being set to 1 or 0.
60448         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60449         go back to AC_SUBSTing it.
60450         * modules/wctype (Makefile.am): Undo previous change.
60451
60452 2007-01-10  Eric Blake  <ebb9@byu.net>
60453
60454         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60455         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60456         * modules/wctype (Makefile.am): Likewise.
60457         Reported by Chris McGuire.
60458
60459 2007-01-10  Jim Meyering  <jim@meyering.net>
60460
60461         fts.c: a small readability/maintainability improvement
60462         * lib/fts.c (fts_read): Make this code slightly more readable and
60463         maintainable by hoisting the "sp->fts_cur = p" assignments to
60464         immediately follow the statements that set P.  Derived from
60465         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60466
60467 2007-01-10  Eric Blake  <ebb9@byu.net>
60468
60469         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60470         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60472         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60473         Reported by Chris McGuire.
60474
60475 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60476
60477         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60478         in sed script.
60479
60480 2007-01-09  Bruno Haible  <bruno@clisp.org>
60481
60482         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60483         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60484         variables.
60485         (func_module): Use them.
60486
60487 2007-01-09  Bruno Haible  <bruno@clisp.org>
60488
60489         * modules/unistr/base: New file.
60490         * lib/unistr.h: New file.
60491
60492         * modules/unistr/u8-to-u16: New file.
60493         * lib/unistr/u8-to-u16.c: New file.
60494
60495         * modules/unistr/u8-to-u32: New file.
60496         * lib/unistr/u8-to-u32.c: New file.
60497
60498         * modules/unistr/u16-to-u8: New file.
60499         * lib/unistr/u16-to-u8.c: New file.
60500
60501         * modules/unistr/u16-to-u32: New file.
60502         * lib/unistr/u16-to-u32.c: New file.
60503
60504         * modules/unistr/u32-to-u8: New file.
60505         * lib/unistr/u32-to-u8.c: New file.
60506
60507         * modules/unistr/u32-to-u16: New file.
60508         * lib/unistr/u32-to-u16.c: New file.
60509
60510         * modules/unistr/u8-check: New file.
60511         * modules/unistr/u16-check: New file.
60512         * modules/unistr/u32-check: New file.
60513         * lib/unistr/u8-check.c: New file.
60514         * lib/unistr/u16-check.c: New file.
60515         * lib/unistr/u32-check.c: New file.
60516
60517         * modules/unistr/u8-chr: New file.
60518         * modules/unistr/u16-chr: New file.
60519         * modules/unistr/u32-chr: New file.
60520         * lib/unistr/u8-chr.c: New file.
60521         * lib/unistr/u16-chr.c: New file.
60522         * lib/unistr/u32-chr.c: New file.
60523
60524         * modules/unistr/u8-cmp: New file.
60525         * modules/unistr/u16-cmp: New file.
60526         * modules/unistr/u32-cmp: New file.
60527         * lib/unistr/u8-cmp.c: New file.
60528         * lib/unistr/u16-cmp.c: New file.
60529         * lib/unistr/u32-cmp.c: New file.
60530
60531         * modules/unistr/u8-cpy: New file.
60532         * modules/unistr/u16-cpy: New file.
60533         * modules/unistr/u32-cpy: New file.
60534         * lib/unistr/u8-cpy.c: New file.
60535         * lib/unistr/u16-cpy.c: New file.
60536         * lib/unistr/u32-cpy.c: New file.
60537         * lib/unistr/u-cpy.h: New file.
60538
60539         * modules/unistr/u8-cpy-alloc: New file.
60540         * modules/unistr/u16-cpy-alloc: New file.
60541         * modules/unistr/u32-cpy-alloc: New file.
60542         * lib/unistr/u8-cpy-alloc.c: New file.
60543         * lib/unistr/u16-cpy-alloc.c: New file.
60544         * lib/unistr/u32-cpy-alloc.c: New file.
60545         * lib/unistr/u-cpy-alloc.h: New file.
60546
60547         * modules/unistr/u8-endswith: New file.
60548         * modules/unistr/u16-endswith: New file.
60549         * modules/unistr/u32-endswith: New file.
60550         * lib/unistr/u8-endswith.c: New file.
60551         * lib/unistr/u16-endswith.c: New file.
60552         * lib/unistr/u32-endswith.c: New file.
60553         * lib/unistr/u-endswith.h: New file.
60554
60555         * modules/unistr/u8-mblen: New file.
60556         * modules/unistr/u16-mblen: New file.
60557         * modules/unistr/u32-mblen: New file.
60558         * lib/unistr/u8-mblen.c: New file.
60559         * lib/unistr/u16-mblen.c: New file.
60560         * lib/unistr/u32-mblen.c: New file.
60561
60562         * modules/unistr/u8-mbtouc: New file.
60563         * modules/unistr/u16-mbtouc: New file.
60564         * modules/unistr/u32-mbtouc: New file.
60565         * lib/unistr/u8-mbtouc.c: New file.
60566         * lib/unistr/u16-mbtouc.c: New file.
60567         * lib/unistr/u32-mbtouc.c: New file.
60568
60569         * modules/unistr/u8-mbtouc-safe: New file.
60570         * modules/unistr/u16-mbtouc-safe: New file.
60571         * modules/unistr/u32-mbtouc-safe: New file.
60572         * lib/unistr/u8-mbtouc-safe.c: New file.
60573         * lib/unistr/u16-mbtouc-safe.c: New file.
60574         * lib/unistr/u32-mbtouc-safe.c: New file.
60575
60576         * modules/unistr/u8-move: New file.
60577         * modules/unistr/u16-move: New file.
60578         * modules/unistr/u32-move: New file.
60579         * lib/unistr/u8-move.c: New file.
60580         * lib/unistr/u16-move.c: New file.
60581         * lib/unistr/u32-move.c: New file.
60582         * lib/unistr/u-move.h: New file.
60583
60584         * modules/unistr/u8-next: New file.
60585         * modules/unistr/u16-next: New file.
60586         * modules/unistr/u32-next: New file.
60587         * lib/unistr/u8-next.c: New file.
60588         * lib/unistr/u16-next.c: New file.
60589         * lib/unistr/u32-next.c: New file.
60590
60591         * modules/unistr/u8-prev: New file.
60592         * modules/unistr/u16-prev: New file.
60593         * modules/unistr/u32-prev: New file.
60594         * lib/unistr/u8-prev.c: New file.
60595         * lib/unistr/u16-prev.c: New file.
60596         * lib/unistr/u32-prev.c: New file.
60597
60598         * modules/unistr/u8-set: New file.
60599         * modules/unistr/u16-set: New file.
60600         * modules/unistr/u32-set: New file.
60601         * lib/unistr/u8-set.c: New file.
60602         * lib/unistr/u16-set.c: New file.
60603         * lib/unistr/u32-set.c: New file.
60604         * lib/unistr/u-set.h: New file.
60605
60606         * modules/unistr/u8-startswith: New file.
60607         * modules/unistr/u16-startswith: New file.
60608         * modules/unistr/u32-startswith: New file.
60609         * lib/unistr/u8-startswith.c: New file.
60610         * lib/unistr/u16-startswith.c: New file.
60611         * lib/unistr/u32-startswith.c: New file.
60612         * lib/unistr/u-startswith.h: New file.
60613
60614         * modules/unistr/u8-stpcpy: New file.
60615         * modules/unistr/u16-stpcpy: New file.
60616         * modules/unistr/u32-stpcpy: New file.
60617         * lib/unistr/u8-stpcpy.c: New file.
60618         * lib/unistr/u16-stpcpy.c: New file.
60619         * lib/unistr/u32-stpcpy.c: New file.
60620         * lib/unistr/u-stpcpy.h: New file.
60621
60622         * modules/unistr/u8-stpncpy: New file.
60623         * modules/unistr/u16-stpncpy: New file.
60624         * modules/unistr/u32-stpncpy: New file.
60625         * lib/unistr/u8-stpncpy.c: New file.
60626         * lib/unistr/u16-stpncpy.c: New file.
60627         * lib/unistr/u32-stpncpy.c: New file.
60628         * lib/unistr/u-stpncpy.h: New file.
60629
60630         * modules/unistr/u8-strcat: New file.
60631         * modules/unistr/u16-strcat: New file.
60632         * modules/unistr/u32-strcat: New file.
60633         * lib/unistr/u8-strcat.c: New file.
60634         * lib/unistr/u16-strcat.c: New file.
60635         * lib/unistr/u32-strcat.c: New file.
60636         * lib/unistr/u-strcat.h: New file.
60637
60638         * modules/unistr/u8-strchr: New file.
60639         * modules/unistr/u16-strchr: New file.
60640         * modules/unistr/u32-strchr: New file.
60641         * lib/unistr/u8-strchr.c: New file.
60642         * lib/unistr/u16-strchr.c: New file.
60643         * lib/unistr/u32-strchr.c: New file.
60644
60645         * modules/unistr/u8-strcmp: New file.
60646         * modules/unistr/u16-strcmp: New file.
60647         * modules/unistr/u32-strcmp: New file.
60648         * lib/unistr/u8-strcmp.c: New file.
60649         * lib/unistr/u16-strcmp.c: New file.
60650         * lib/unistr/u32-strcmp.c: New file.
60651
60652         * modules/unistr/u8-strcpy: New file.
60653         * modules/unistr/u16-strcpy: New file.
60654         * modules/unistr/u32-strcpy: New file.
60655         * lib/unistr/u8-strcpy.c: New file.
60656         * lib/unistr/u16-strcpy.c: New file.
60657         * lib/unistr/u32-strcpy.c: New file.
60658         * lib/unistr/u-strcpy.h: New file.
60659
60660         * modules/unistr/u8-strcspn: New file.
60661         * modules/unistr/u16-strcspn: New file.
60662         * modules/unistr/u32-strcspn: New file.
60663         * lib/unistr/u8-strcspn.c: New file.
60664         * lib/unistr/u16-strcspn.c: New file.
60665         * lib/unistr/u32-strcspn.c: New file.
60666         * lib/unistr/u-strcspn.h: New file.
60667
60668         * modules/unistr/u8-strdup: New file.
60669         * modules/unistr/u16-strdup: New file.
60670         * modules/unistr/u32-strdup: New file.
60671         * lib/unistr/u8-strdup.c: New file.
60672         * lib/unistr/u16-strdup.c: New file.
60673         * lib/unistr/u32-strdup.c: New file.
60674         * lib/unistr/u-strdup.h: New file.
60675
60676         * modules/unistr/u8-strlen: New file.
60677         * modules/unistr/u16-strlen: New file.
60678         * modules/unistr/u32-strlen: New file.
60679         * lib/unistr/u8-strlen.c: New file.
60680         * lib/unistr/u16-strlen.c: New file.
60681         * lib/unistr/u32-strlen.c: New file.
60682         * lib/unistr/u-strlen.h: New file.
60683
60684         * modules/unistr/u8-strmblen: New file.
60685         * modules/unistr/u16-strmblen: New file.
60686         * modules/unistr/u32-strmblen: New file.
60687         * lib/unistr/u8-strmblen.c: New file.
60688         * lib/unistr/u16-strmblen.c: New file.
60689         * lib/unistr/u32-strmblen.c: New file.
60690
60691         * modules/unistr/u8-strmbtouc: New file.
60692         * modules/unistr/u16-strmbtouc: New file.
60693         * modules/unistr/u32-strmbtouc: New file.
60694         * lib/unistr/u8-strmbtouc.c: New file.
60695         * lib/unistr/u16-strmbtouc.c: New file.
60696         * lib/unistr/u32-strmbtouc.c: New file.
60697
60698         * modules/unistr/u8-strncat: New file.
60699         * modules/unistr/u16-strncat: New file.
60700         * modules/unistr/u32-strncat: New file.
60701         * lib/unistr/u8-strncat.c: New file.
60702         * lib/unistr/u16-strncat.c: New file.
60703         * lib/unistr/u32-strncat.c: New file.
60704         * lib/unistr/u-strncat.h: New file.
60705
60706         * modules/unistr/u8-strncmp: New file.
60707         * modules/unistr/u16-strncmp: New file.
60708         * modules/unistr/u32-strncmp: New file.
60709         * lib/unistr/u8-strncmp.c: New file.
60710         * lib/unistr/u16-strncmp.c: New file.
60711         * lib/unistr/u32-strncmp.c: New file.
60712
60713         * modules/unistr/u8-strncpy: New file.
60714         * modules/unistr/u16-strncpy: New file.
60715         * modules/unistr/u32-strncpy: New file.
60716         * lib/unistr/u8-strncpy.c: New file.
60717         * lib/unistr/u16-strncpy.c: New file.
60718         * lib/unistr/u32-strncpy.c: New file.
60719         * lib/unistr/u-strncpy.h: New file.
60720
60721         * modules/unistr/u8-strnlen: New file.
60722         * modules/unistr/u16-strnlen: New file.
60723         * modules/unistr/u32-strnlen: New file.
60724         * lib/unistr/u8-strnlen.c: New file.
60725         * lib/unistr/u16-strnlen.c: New file.
60726         * lib/unistr/u32-strnlen.c: New file.
60727         * lib/unistr/u-strnlen.h: New file.
60728
60729         * modules/unistr/u8-strpbrk: New file.
60730         * modules/unistr/u16-strpbrk: New file.
60731         * modules/unistr/u32-strpbrk: New file.
60732         * lib/unistr/u8-strpbrk.c: New file.
60733         * lib/unistr/u16-strpbrk.c: New file.
60734         * lib/unistr/u32-strpbrk.c: New file.
60735         * lib/unistr/u-strpbrk.h: New file.
60736
60737         * modules/unistr/u8-strrchr: New file.
60738         * modules/unistr/u16-strrchr: New file.
60739         * modules/unistr/u32-strrchr: New file.
60740         * lib/unistr/u8-strrchr.c: New file.
60741         * lib/unistr/u16-strrchr.c: New file.
60742         * lib/unistr/u32-strrchr.c: New file.
60743
60744         * modules/unistr/u8-strspn: New file.
60745         * modules/unistr/u16-strspn: New file.
60746         * modules/unistr/u32-strspn: New file.
60747         * lib/unistr/u8-strspn.c: New file.
60748         * lib/unistr/u16-strspn.c: New file.
60749         * lib/unistr/u32-strspn.c: New file.
60750         * lib/unistr/u-strspn.h: New file.
60751
60752         * modules/unistr/u8-strstr: New file.
60753         * modules/unistr/u16-strstr: New file.
60754         * modules/unistr/u32-strstr: New file.
60755         * lib/unistr/u8-strstr.c: New file.
60756         * lib/unistr/u16-strstr.c: New file.
60757         * lib/unistr/u32-strstr.c: New file.
60758         * lib/unistr/u-strstr.h: New file.
60759
60760         * modules/unistr/u8-strtok: New file.
60761         * modules/unistr/u16-strtok: New file.
60762         * modules/unistr/u32-strtok: New file.
60763         * lib/unistr/u8-strtok.c: New file.
60764         * lib/unistr/u16-strtok.c: New file.
60765         * lib/unistr/u32-strtok.c: New file.
60766         * lib/unistr/u-strtok.h: New file.
60767
60768         * modules/unistr/u8-uctomb: New file.
60769         * modules/unistr/u16-uctomb: New file.
60770         * modules/unistr/u32-uctomb: New file.
60771         * lib/unistr/u8-uctomb.c: New file.
60772         * lib/unistr/u16-uctomb.c: New file.
60773         * lib/unistr/u32-uctomb.c: New file.
60774
60775         * MODULES.html.sh (Unicode string functions): Add the new modules.
60776
60777 2007-01-08  Bruno Haible  <bruno@clisp.org>
60778
60779         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60780         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60781         subdirectories.
60782
60783 2007-01-08  Karl Berry  <karl@gnu.org>
60784
60785         * doc/error.texi: mention that main() fns must set program_name
60786         when progname is used.
60787
60788 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60791         WCTYPE_H is empty, for the benefit of builds from non-distclean
60792         directories.  Problem reported by Eric Blake in
60793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60794
60795 2007-01-08  Bruno Haible  <bruno@clisp.org>
60796
60797         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60798         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60799         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60800         PROVIDE_CANONICALIZE_FILENAME_MODE.
60801         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60802
60803 2007-01-08  Bruno Haible  <bruno@clisp.org>
60804
60805         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60806         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60807         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60808         * lib/fts.c: Likewise.
60809         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60810
60811 2006-12-25  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/utf8-ucs4-safe: New file.
60814         * lib/utf8-ucs4-safe.h: New file.
60815         * lib/unistr/utf8-ucs4-safe.c: New file.
60816
60817         * modules/utf16-ucs4-safe: New file.
60818         * lib/utf16-ucs4-safe.h: New file.
60819         * lib/unistr/utf16-ucs4-safe.c: New file.
60820
60821         * MODULES.html.sh (Unicode string functions): Add the new modules.
60822
60823 2007-01-08  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60826         (Depends-on): Add unitypes.
60827         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60828         (u8_mbtouc_aux): Move out to separate file.
60829         (u8_mbtouc): Use ucs4_t, uint8_t types.
60830         * lib/unistr/utf8-ucs4.c: New file.
60831
60832         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60833         (Depends-on): Add unitypes.
60834         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60835         (u16_mbtouc_aux): Move out to separate file.
60836         (u16_mbtouc): Use ucs4_t, uint16_t types.
60837         * lib/unistr/utf16-ucs4.c: New file.
60838
60839         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60840         (Depends-on): Add unitypes.
60841         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60842         (u8_uctomb_aux): Move out to separate file.
60843         (u8_uctomb): Use ucs4_t, uint8_t types.
60844         * lib/unistr/ucs4-utf8.c: New file.
60845
60846         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60847         (Depends-on): Add unitypes.
60848         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60849         (u16_uctomb_aux): Move out to separate file.
60850         (u16_uctomb): Use ucs4_t, uint16_t types.
60851         * lib/unistr/ucs4-utf16.c: New file.
60852
60853 2006-12-25  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/unitypes: New file.
60856         * lib/unitypes.h: New file.
60857         * MODULES.html.sh (func_all_modules): New section "Unicode string
60858         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60859         this section. Add unitypes.
60860
60861 2007-01-08  Bruno Haible  <bruno@clisp.org>
60862
60863         Avoid variable names that conflict with those from libtool.
60864         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60865         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60866         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60867         library_names_spec to acl_library_names_spec, hardcode_* to
60868         acl_hardcode_*.
60869         Reported by Ralf Wildenhues.
60870
60871 2007-01-08  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60874         definition.
60875         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60876         definition.
60877         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60878         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60879         definition.
60880         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60881         definition.
60882         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60883         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60884         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60885         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60886         definition.
60887         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60888         definition.
60889         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60890         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60891         GC_USE_<algorithm>.
60892         * lib/gc-libgcrypt.c: Likewise.
60893         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60894         * modules/gc-arctwo (configure.ac): Likewise.
60895         * modules/gc-des (configure.ac): Likewise.
60896         * modules/gc-hmac-md5 (configure.ac): Likewise.
60897         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60898         * modules/gc-md2 (configure.ac): Likewise.
60899         * modules/gc-md4 (configure.ac): Likewise.
60900         * modules/gc-md5 (configure.ac): Likewise.
60901         * modules/gc-random (configure.ac): Likewise.
60902         * modules/gc-rijndael (configure.ac): Likewise.
60903         * modules/gc-sha1 (configure.ac): Likewise.
60904
60905 2007-01-08  Bruno Haible  <bruno@clisp.org>
60906
60907         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60908         macro definition.
60909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60910         definition.
60911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60912         definition.
60913         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60914         * modules/fcntl-safer (configure.ac): Likewise.
60915         * modules/fopen-safer (configure.ac): Likewise.
60916         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60917         GNULIB_FWRITEERROR macro definition.
60918
60919 2007-01-08  Bruno Haible  <bruno@clisp.org>
60920
60921         * m4/gnulib-common.m4: New file.
60922         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60923         (func_get_filelist): Add m4/gnulib-common.m4.
60924
60925 2007-01-08  Bruno Haible  <bruno@clisp.org>
60926
60927         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60928         command.
60929
60930 2007-01-08  Jim Meyering  <jim@meyering.net>
60931
60932         Use a more robust test for a "can't happen" condition.
60933         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60934         narrowed the st_size value.  Presuming the "can't happen" condition
60935         is true, that narrowing could conceivably convert an invalid st_size
60936         value into a valid one.  Instead, use a change based on Matthew
60937         Woehlke's original patch.
60938
60939         Slight readability improvement: use an assert-like macro
60940         in place of literal "abort ()" uses.
60941         * lib/fts.c (fts_assert): Define.
60942         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60943         Use this macro instead of a bare 'abort'.
60944
60945 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60948         simply work around them.
60949         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60950         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60951         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60952         declaring.
60953         Don't bother to define as macros, since the standard doesn't require it.
60954         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60955         longer worry about IRIX 5.3.
60956         (HAVE_WCTYPE_CTMP_BUG): Remove.
60957
60958 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60961         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60962         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60963         Problems reported by Georg Schwarz for IRIX 5.3.
60964
60965         * gnulib-tool (autoconf_minversion): Take the maximum version number
60966         found, not the minimum.  Problem reported by James Youngman.
60967
60968 2007-01-03  Karl Berry  <karl@gnu.org>
60969
60970         * doc/error.texi: new file, explaining interaction with progname.
60971         * doc/gnulib.texi: include it.  Update copyright.
60972
60973 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60974
60975         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60976         AC_CANONICAL_HOST, to improve autobuild outputs.
60977
60978 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60979             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60980
60981         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60982         sockets, server sockets, and other file descriptors.  Count errors
60983         to compute the return value.  Reorder the code a bit to be easier
60984         to follow.  Don't set event bits that were not requested (except
60985         POLLERR and POLLHUP).
60986
60987 2007-01-01  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60990
60991 2007-01-03  Jim Meyering  <jim@meyering.net>
60992
60993         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60994
60995 2007-01-02  Bruno Haible  <bruno@clisp.org>
60996
60997         * modules/settime (Include): Require timespec.h.
60998         * modules/nanosleep (Include): Likewise.
60999
61000 2007-01-01  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool (func_emit_copyright_notice): Bump year.
61003         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61004
61005 2007-01-01  Bruno Haible  <bruno@clisp.org>
61006
61007         Improve support for OpenBSD.
61008         * build-aux/config.rpath (libname_spec): Export.
61009         (library_names_spec): New variable. Export.
61010         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61011         library_names_spec from the config.rpath output. Locate shared library
61012         through the name pattern in library_names_spec.
61013
61014 2007-01-01  Eric Blake  <ebb9@byu.net>
61015
61016         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61017
61018 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61021         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61022         assume the C locale, and avoid an "eval" that could cause trouble.
61023         Problem with SORT reported by Bob Proulx.
61024
61025         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61026         Define.  Trivial patch from Henning Nielsen Lund, originally
61027         sent to bug-grep@gnu.org today.
61028
61029 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61032         struct stat.  Problem reported by Henning Nielsen Lund.
61033         * lib/acl.c: Include acl.h first, to check interface.  Don't
61034         bother to include sys/types.h and sys/stat.h again.
61035
61036 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         Import the following change from libc; problem reported by
61039         Sven Verdoolaege.
61040
61041         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61042
61043         [BZ #1373]
61044         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61045
61046 2006-12-28  Jim Meyering  <jim@meyering.net>
61047
61048         * build-aux/announce-gen: Do not assume that the package
61049         builds any of tar.gz, tar.bz2, and .xdelta files.
61050         Suggestion from Simon Josefsson.
61051
61052 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61053
61054         * modules/announce-gen: New file.
61055
61056 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61059         handles its gotchas now.
61060         * lib/mbswidth.c: Likewise.
61061         * lib/wcwidth.h: Likewise.
61062         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61063         and iswcntrl; the wctype module does this stuff now.
61064         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61066         * modules/mbchar (Depends-on): Add wctype.
61067         * modules/mbswidth (Depends-on): Likewise.
61068         * modules/wcwidth (Depends-on): Likewise.
61069
61070 2006-12-27  Eric Blake  <ebb9@byu.net>
61071
61072         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61073         module uses more than what <wctype.h> is required to provide.
61074
61075 2006-12-26  Eric Blake  <ebb9@byu.net>
61076
61077         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61078
61079 2006-12-26  Eric Blake  <ebb9@byu.net>
61080
61081         * modules/absolute-header: New module.
61082         * modules/fcntl (Depends-on): Depend on it.
61083         * modules/inttypes (Depends-on): Likewise.
61084         * modules/stdint (Depends-on): Likewise.
61085         * modules/sys_stat (Depends-on): Likewise.
61086         * modules/wctype (Depends-on): Likewise.
61087         * MODULES.html.sh (Support for building libraries and
61088         executables): Document it.
61089
61090 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61091
61092         * gnulib-tool (SED): Remove, undoing previous change.
61093         The problem was that it broke coreutils on Solaris, because
61094         "sed --posix" leaked into a makefile.
61095         (sed): New alias, if 'alias' and GNU sed.
61096
61097 2006-12-24  Jim Meyering  <jim@meyering.net>
61098
61099         Work around an fchownat bug in glibc-2.4:
61100         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61101         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61102         in spite of the -P option.
61103         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61104         New macros.
61105         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61106         * modules/openat (Files): Add lib/fchownat.c.
61107         * lib/openat.c (fchownat): Don't define here.  Move to...
61108         * lib/fchownat.c: ...this new file.
61109
61110 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         Fix bug reported by Bruno Haible in
61113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61114         where quotearg.c didn't compile on Mac OS X 10.2 because it
61115         lacks <wchar.h> and wint_t.
61116         * lib/wctype_.h (__wctype_wint_t): New type.
61117         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61118         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61119         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61120         Arg is now of type __wctype_wint_t, not wint_t.
61121         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61122         substitute HAVE_WINT_T.
61123         * modules/wctype (Files): Add m4/wint_t.m4.
61124         (wctype.h): Substitute HAVE_WINT_T.
61125
61126 2006-12-23  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61129
61130 2006-12-23  Bruno Haible  <bruno@clisp.org>
61131
61132         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61133         S_ISLNK.
61134         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61135         mingw.
61136
61137 2006-12-22  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/copy-file.c: Include acl.h.
61140         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61141         Close the file descriptors only after being done with copy_acl.
61142         * modules/copy-file (Depends-on): Add acl.
61143
61144 2006-12-22  Bruno Haible  <bruno@clisp.org>
61145
61146         * gnulib-tool (SED): New variable.
61147         Use $SED instead of sed everywhere.
61148
61149 2006-12-22  Bruno Haible  <bruno@clisp.org>
61150
61151         * modules/no-c++: New file.
61152         * m4/no-c++.m4: New file.
61153         * MODULES.html.sh (Support for building libraries and executables):
61154         Add no-c++.
61155
61156 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61157
61158         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61159         Include <limits.h>, and use its INT_MAX to rewrite the
61160         j loop so that it does not overflow 'int'.  Problem reported by
61161         Ralf Wildenhues in
61162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61163         Play it safe by shifting left by 1 rather than multiplying by 2,
61164         as GCC is less likely to optimize this away when the value
61165         is signed (when it assumes overflow leads to undefined behavior).
61166         Also, don't assume time_t uses two's complement.
61167
61168 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         * MODULES.html.sh: New module wctype.
61171         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61172         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61173         <wctype.h>, since the new wctype module should fix this.
61174         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61175         the wctype module should arrange for it.
61176         * lib/regex_internal.h: Likewise.
61177         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61178         since the wctype module should handle this now.
61179         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61180         * modules/fnmatch (Depends-on): Add wctype.
61181         * modules/quotearg (Depends-on): Likewise.
61182         * modules/regex (Depends-on): Likewise.
61183
61184 2006-12-19  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61187         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61188
61189 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61190
61191         * modules/savewd (Depends-on): Fix dependency on fcntl.
61192
61193 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61196         conforms to C99, rather than relying on the user's environment
61197         setting of STDINT_H.
61198
61199 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61200         and Eric Blake  <ebb9@byu.net>
61201
61202         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61203         This is more consistent with the other defines here.
61204         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61205         Port to z/OS.  Problem reported by Paul Gilmartin.
61206         Change local vars to use gl_ prefix rather than ac_.
61207         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61208         with other defines.
61209         * modules/double-slash-root: New module.
61210         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61211         (Depends-on): Add double-slash-root.
61212         * MODULES.html.sh (File system functions): Mention new module.
61213
61214 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61215
61216         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61217         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61218         This is for the benefit of gzip, which doesn't do i18n.
61219
61220 2006-12-12  Jim Meyering  <jim@meyering.net>
61221
61222         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61223         Reported by Andreas Schwab <schwab@suse.de>.
61224
61225 2006-12-12  Bruno Haible  <bruno@clisp.org>
61226
61227         Merge these changes.
61228         2006-09-05  Bruno Haible  <bruno@clisp.org>
61229         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61230         iconv_alloc succeeded.
61231         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61232         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61233         test for " && dest " at the end - dest is always != NULL there. Call
61234         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61235         with 2xNULL arguments, also to flush the state storage. Handle the
61236         IRIX iconv behaviour. Realloc the final result, to throw away unused
61237         memory.
61238
61239 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61242         and fchmodat unconditionally, since glibc 2.4 has them.
61243         Problem reported by Arkadiusz Miskiewicz.
61244
61245 2006-12-10  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_import): Show the include files only for those
61248         modules that are copied and specified.
61249         Reported by Karl Berry.
61250
61251 2006-12-08  Jim Meyering  <jim@meyering.net>
61252
61253         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61254         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61255
61256         * build-aux/announce-gen: Add two new options, both optional:
61257         --bootstrap-tools=TOOL_LIST
61258               a comma-separated list of tools, e.g.,
61259               autoconf,automake,bison,gnulib
61260         --gnulib-snapshot-date=DATE
61261               if gnulib is in the bootstrap tool list,
61262               then report this as the snapshot date.
61263               If not specified, use the current date/time.
61264               If you specify a date here, be sure it's UTC.
61265
61266 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61267
61268         * tests/test-argp-2.sh: Fix test to match actual output.
61269         (func_compare): Fix sed script to be portable.
61270
61271 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61272
61273         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61274         workaround for this case.  It is not autoconfigured now; offhand
61275         it's hard to see how to autoconfigure it.
61276
61277 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61280         a directory that is about to be chowned.  Such a directory's
61281         initial file permissions should permit the owner only and this
61282         should not be changed until after the chown, since the group and
61283         other bits would be incorrect if they granted permission before
61284         the chown.
61285
61286         Fix porting problem for iswctype reported by Georg Schwarz in:
61287         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61288         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61289         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61290         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61291         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61292
61293 2006-12-03  Jim Meyering  <jim@meyering.net>
61294
61295         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61296         p->fts_statp may not yet be defined.
61297         (fts_read): Instead, set it in the caller, once p->fts_statp is
61298         sure to be defined, and corresponds to a top-level directory.
61299         This bug made du -x fail.  Here's the coreutils test case:
61300         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61301         Reported by Mike Frysinger.
61302
61303 2006-12-01  Jim Meyering  <jim@meyering.net>
61304
61305         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61306         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61307         Reported by Simon Josefsson.
61308
61309 2006-11-30  Jim Meyering  <jim@meyering.net>
61310
61311         * m4/warning.m4: Use the all-permissive copyright notice
61312         recommended by RMS (rather than LGPL).
61313         * m4/vararrays.m4: Likewise.
61314         * m4/flexmember.m4: Likewise.
61315
61316 2006-11-29  Bruno Haible  <bruno@clisp.org>
61317
61318         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61319         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61320         using +=.
61321         Reported by Simon Josefsson <simon@josefsson.org>.
61322
61323 2006-11-28  James Youngman <jay@gnu.org>
61324
61325         * README: Advise users that they might find the bug-gnulib@gnu.org
61326         and autotools-announce@gnu.org mailing lists useful.
61327
61328 2006-11-28  Bruno Haible  <bruno@clisp.org>
61329
61330         * m4/ptrdiff_max.m4: Remove file.
61331
61332 2006-11-21  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61335         _AC_COMPUTE_INT.
61336         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61337         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61338         _AC_COMPUTE_INT.
61339         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61340         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61341         _AC_COMPUTE_INT.
61342         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61343
61344 2006-11-28  Jim Meyering  <jim@meyering.net>
61345
61346         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61347         warning from "gcc -Wshadow" about shadowing the builtin.
61348
61349 2006-11-27  Bruno Haible  <bruno@clisp.org>
61350
61351         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61352         _AC_COMPUTE_INT.
61353         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61354
61355 2006-11-27  Bruno Haible  <bruno@clisp.org>
61356             Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61359
61360 2006-11-26  Bruno Haible  <bruno@clisp.org>
61361
61362         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61363         noinst_LTLIBRARIES.
61364
61365 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61366             Bruno Haible  <bruno@clisp.org>
61367
61368         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61369         if compiling with "gcc -ansi".
61370
61371 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         Fix some incompatibilities with gcc -ansi -pedantic.
61374         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61375         if compiling pedantically with GCC, unless it's C99 or later.
61376         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61377         it mishandles gcc -ansi -pedantic as well.
61378         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61379         if gcc -pedantic.
61380         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61381         initializers for struct if -pedantic, unless it's C99 or later.
61382
61383 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61384
61385         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61386         Don't close an fd more than once. Identical atimes indicate
61387         success, not failure.
61388
61389 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61390
61391         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61392
61393 2006-11-23  Jim Meyering  <jim@meyering.net>
61394
61395         * build-aux/announce-gen: New file.  From coreutils.
61396
61397 2006-11-22  Jim Meyering  <jim@meyering.net>
61398
61399         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61400         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61401         (fts_read): Use a temporary to narrow the overused st_size member
61402         before using it in a switch statement.  Reported by Matthew Woehlke.
61403
61404         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61405         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61406
61407 2006-11-20  Bruno Haible  <bruno@clisp.org>
61408
61409         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61410         changequote instead of pairs of brackets.
61411         Reported by Andreas Schwab <schwab@suse.de>.
61412
61413 2006-11-21  Jim Meyering  <jim@meyering.net>
61414
61415         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61416         so as to remain compatible with older compilers.
61417         Patch from Michael Deutschmann.
61418
61419 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61420
61421         * MODULES.html.sh (File system functions): Add openat.
61422
61423         * lib/openat.h (rpl_fstatat): New macro, if
61424         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61425         (fstatat): Define to rpl_fstatat under the same conditions,
61426         unless COMPILING_FSTATAT.
61427         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61428         seems to have the bug.
61429         * lib/fstatat.c: New file.
61430         * modules/openat (Files): Add it.
61431
61432 2006-11-20  Bruno Haible  <bruno@clisp.org>
61433
61434         * Makefile: New file.
61435
61436 2006-11-20  Jim Meyering  <jim@meyering.net>
61437
61438         The beginnings of syntax-related checks for gnulib.
61439         * lib/Makefile: New file.
61440         * lib/t-idcache: New script.  Ensure that the two halves of
61441         idcache.c stay in sync.
61442
61443         * lib/idcache.c: Adjust comments in user- and group- portions to
61444         be more accurate, and to be consistent with one another.
61445
61446 2006-11-20  Jim Meyering  <jim@meyering.net>
61447
61448         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61449         continue using the flexible array member (thus, this module performs
61450         half as many malloc calls), with the addition that...
61451         (getgroup, getuser): Consistently record a non-match via an empty
61452         "name" string, and map an empty string match to a NULL return value.
61453         * modules/idcache (Depends-on): Re-add flexmember.
61454
61455         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61456         (getuidbyname, getgroup, getgidbyname): Likewise.
61457
61458         Use cleaner syntax: NULL rather than 0.
61459         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61460
61461 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61464         It mishandled the case where the group was missing.
61465         Problem reported by Greg Schafer.
61466         * modules/idcache: Likewise.
61467
61468 2006-11-18  Jim Meyering  <jim@meyering.net>
61469
61470         * check-module (%exempt_header): Add exception for some
61471         conditionally-included headers.
61472
61473         * modules/i-ring (Depends-on): Add verify.
61474         (License): Change to LGPL.
61475
61476 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61477
61478         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61479         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61480         and inttostr.h.  Use snprintf rather than uinttostr, so that
61481         LGPLed code doesn't depend on GPLed.
61482
61483 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61484
61485         * modules/inline (License): Change from GPL to LGPL.
61486
61487 2006-11-17  Jim Meyering  <jim@meyering.net>
61488
61489         * modules/d-type (License): Switch to LGPL.
61490
61491 2006-11-15  Bruno Haible  <bruno@clisp.org>
61492
61493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61494
61495 2006-11-15  Eric Blake  <ebb9@byu.net>
61496
61497         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61498         the module dependency.
61499
61500 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61501             Bruno Haible  <bruno@clisp.org>
61502
61503         * gnulib-tool (func_create_testdir): Add license consistency check.
61504
61505 2006-11-15  Eric Blake  <ebb9@byu.net>
61506
61507         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61508         random "(cached)" in configure output.
61509
61510 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61511
61512         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61513         test for conforming inttypes.h is both announced and cached.
61514
61515         * MODULES.html.sh (seen_modules, seen_files): New variables.
61516         (func_module): Rewrite to use a few less gnulib-tool and sed
61517         invocations.  Avoid a couple of quadratic algorithms for ...
61518         (missed_modules, missed_files): ... these, with ...
61519         (func_append, func_tmpdir): ... these new functions, from
61520         gnulib-tool.  Analogously, install traps for cleanup.
61521
61522         * tests/test-gc.c (main): Remove unused variables.
61523         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61524
61525 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61526
61527         * modules/inttostr (License): Change to LGPL.
61528
61529 2006-11-14  Eric Blake  <ebb9@byu.net>
61530
61531         * modules/tempname (License): Change to LGPL.
61532
61533 2006-11-14  Eric Blake  <ebb9@byu.net>
61534
61535         * doc/functions.texi (Function Portability): *printf functions on
61536         Cygwin now understand all POSIX size specifiers.
61537
61538 2006-11-14  Bruno Haible  <bruno@clisp.org>
61539
61540         * modules/c-ctype (License): Change to LGPL.
61541
61542 2006-11-12  Bruno Haible  <bruno@clisp.org>
61543
61544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61545         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61546         for GNOME libraries, for which the include files are installed in
61547         subdirectories of $prefix/include.
61548
61549 2006-11-12  Bruno Haible  <bruno@clisp.org>
61550
61551         * m4/lib-link.m4: Require at least autoconf-2.54.
61552         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61553         name to underscores for the --with option.
61554
61555 2006-11-13  Bruno Haible  <bruno@clisp.org>
61556
61557         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61558         the tests directory.
61559         Reported by Ralf Wildenhues.
61560
61561 2006-11-13  Bruno Haible  <bruno@clisp.org>
61562
61563         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61564         (func_emit_initmacro_end): Undo the override here.
61565         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61566         Works around the famous automake error in coreutils.
61567
61568 2006-11-13  Eric Blake  <ebb9@byu.net>
61569
61570         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61571         element, not its node.
61572
61573 2006-11-12  Bruno Haible  <bruno@clisp.org>
61574
61575         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61576         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61577
61578 2006-11-12  Bruno Haible  <bruno@clisp.org>
61579
61580         * gnulib-tool: New option --local-symlink.
61581         (func_usage): Document it.
61582         (lsymbolic): New variable.
61583         (func_import, func_create_testdir): If --symlink was not specified,
61584         test whether --local-symlink was specified and the file comes from
61585         the local_gnulib_dir.
61586
61587 2006-11-12  Bruno Haible  <bruno@clisp.org>
61588
61589         * gnulib-tool (func_ln): New function.
61590         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61591
61592 2006-11-12  Bruno Haible  <bruno@clisp.org>
61593
61594         Finish support for source files in subdirectories.
61595         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61596         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61597         AUTOMAKE_OPTIONS.
61598         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61599
61600 2006-11-12  Bruno Haible  <bruno@clisp.org>
61601
61602         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61603         EXTRA_lib_SOURCES augmentation.
61604         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61605
61606 2006-11-12  Jim Meyering  <jim@meyering.net>
61607
61608         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61609         file descriptors.  This also averts a failure on systems with
61610         native openat support when a traversed directory lacks "x" access.
61611         * lib/fts_.h: Include "i-ring.h"
61612         (struct FTS) [fts_fd_ring]: New member.
61613         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61614         (FCHDIR): Add parentheses.
61615         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61616         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61617         When descending, rather than simply closing the previous
61618         fts_cwd_fd value, push that file descriptor onto the ring.
61619         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61620         (fts_open): Initialize the new fd_ring member.
61621         (fts_close): Clear the ring.
61622         (fts_safe_changedir): When possible, use our new fd_ring to skip
61623         the diropen and fstat and dev/ino comparison that would normally
61624         accompany a virtual `chdir ("..")'.
61625
61626         * modules/fts (Depends-on): Add i-ring.
61627         * modules/i-ring: New module.
61628         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61629         * m4/i-ring.m4: New file.
61630
61631 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61632
61633         * gnulib-tool (func_create_testdir): Fix replacement of
61634         `build-aux' in configure.ac.  Run autotools in gltests
61635         subdirectory.
61636         (func_create_testdir, func_create_megatestdir, test): There is
61637         no need for '--force' in most autotool invocations in a new
61638         tree.  Actually fail the whole test if any of the tools, or the
61639         configure or make stages fail.
61640
61641         Sync from Automake.
61642         * build-aux/gnupload: Revert last change.  Add pointer to upload
61643         instructions of the GNU Maintenance Instructions.
61644         Suggestion by Karl Berry.
61645
61646 2006-11-10  Jim Meyering  <jim@meyering.net>
61647
61648         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61649
61650 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61653         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61654         (bind_textdomain_codeset) [! ENABLE_NLS]:
61655         Evaluate all the arguments.  That way, callers get compatible behavior
61656         if the arguments have side effects.  Also, it avoids some GCC
61657         diagnostics in some cases; Joel E. Denny reported problems when Bison
61658         was configured with --enable-gcc-warnigs.
61659
61660 2006-11-10  Jim Meyering  <jim@meyering.net>
61661
61662         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61663         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61664         account.
61665
61666 2006-11-10  Jim Meyering  <jim@meyering.net>
61667
61668         * modules/inline: New file/module.
61669         * modules/xalloc (Files): Remove m4/inline.m4.
61670         (Depends-on): Add inline, instead.
61671         * modules/oset: Likewise.
61672         * modules/list: Likewise.
61673
61674 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61675
61676         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61677         Problem reported by Matthew Woehlke.
61678
61679 2006-11-09  Bruno Haible  <bruno@clisp.org>
61680
61681         * lib/tempname.c (gen_tempname): Remove variant that invokes
61682         __gen_tempname.
61683         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61684         __gen_tempname.
61685
61686 2006-11-08  Bruno Haible  <bruno@clisp.org>
61687
61688         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61689         to 'yes' instead of 'cross-compiling'.
61690
61691 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * lib/quotearg.h (quotearg_free): New decl.
61694         * lib/quotearg.c (quotearg_free): New function.
61695         (slot0, nslots, slotvec0, slotvec):
61696         Now file-scope so that quotearg_free can get at them.
61697
61698 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61699
61700         Sync from Automake.
61701         * build-aux/gnupload: Add missing 'gnu' to example URL.
61702         Report by Karl Berry.
61703
61704 2006-11-08  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61707         Suggested by Paul Eggert.
61708
61709 2006-11-08  Jim Meyering  <jim@meyering.net>
61710
61711         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61712         It's already included if !_LIBC.
61713         (fts_safe_changedir): Add a comment.
61714
61715 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61718         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61719         Matthew Woehlke.
61720
61721         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61722         definitions up, to avoid colliding with change below.
61723         (static_inline) [HAVE_INLINE]: New macro.
61724         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61725         Provide extern decls when !HAVE_INLINE.  Do not define unless
61726         static_inline is defined, either by us or by xmalloc.c.  Use
61727         static_inline rather than static inline.
61728         (XCALLOC): Optimize sizeof(T) = 1 case.
61729         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61730
61731 2006-11-07  Bruno Haible  <bruno@clisp.org>
61732
61733         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61734         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61735         AC_C_INLINE.
61736         * modules/xalloc (Files): Add m4/inline.m4.
61737
61738 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61739
61740         * README: Fix typo.
61741         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61742         (Miscellanous Notes): ...from this.
61743
61744 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61747         Mention that offsetof should be used instead of sizeof.
61748         From Bruno Haible.
61749
61750 2006-11-07  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61753
61754 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61757         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61758         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61759         (gl_tree_add_before, gl_tree_add_after):
61760         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61761         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61762         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61763         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61764         (gl_linked_add_after, gl_linked_add_at): Likewise.
61765         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61766         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61767         (gl_tree_add_before, gl_tree_add_after): Likewise.
61768         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61769         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61770         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61771
61772 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61773
61774         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61775
61776 2006-11-06  Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/inline.m4: New file.
61779         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61780         * modules/list (Files): Add m4/inline.m4.
61781         * modules/oset (Files): Likewise.
61782
61783 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * lib/idcache.c: Include <stddef.h>, for offsetof.
61786         (struct userid.name): Change from char * to a flexible array member.
61787         All uses changed.
61788         * modules/idcache (Depends-on): Add flexmember.
61789
61790         * MODULES.html.sh (Core language properties): New module flexmember.
61791         * modules/flexmember, m4/flexmember.m4: New files.
61792
61793         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61794         inline functions that are identical with the old xnmalloc_inline,
61795         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61796         that we can avoid some unnecessary integer multiplications and
61797         divisions in the common case where the element size is known at
61798         compile time.
61799         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61800         needed.
61801         (xnboundedmalloc): Remove.
61802         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61803         arguments, for consistency with rest of this header.
61804         (xcharalloc): Rewrite using XNMALLOC.
61805         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61806         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61807         versions have been moved to lib/xalloc.h and renamed to be the
61808         non-*_inline versions.
61809         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61810         and xnrealloc functions, since those functions are now inline and
61811         now call us.
61812         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61813         renaming described above.
61814         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61815         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61816         captures the dependency in AC_C_INLINE.
61817
61818         New module canonicalize-lgpl, proposed by Charles Wilson in
61819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61820         with a few small changes afterwards.
61821         * MODULES.html.sh (File system functions): New module
61822         canonicalize-lgpl.
61823         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61824         and canonicalize_file_name.
61825         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61826         * modules/canonicalize-lgpl: New files.
61827
61828 2006-11-05  Bruno Haible  <bruno@clisp.org>
61829
61830         * gnulib-tool (func_import, func_create_testdir): Create directories
61831         also for files in subdirectories of lib/.
61832
61833 2006-11-05  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61836         ANSI C compliant.
61837
61838 2006-11-03  Bruno Haible  <bruno@clisp.org>
61839
61840         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61841         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61842         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61843         (xnboundedmalloc): New inline function.
61844         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61845         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61846         xmalloc.
61847         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61848         xmalloc.
61849         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61850         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61851         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61852         xmalloc.
61853         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61854         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61855         xmalloc.
61856         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61857         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61858         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61859         xmalloc.
61860         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61861         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61862         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61863         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61864         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61865         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61866         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61867
61868 2006-11-03  Bruno Haible  <bruno@clisp.org>
61869
61870         * lib/c-ctype.h [C++]: Define functions without name mangling.
61871         * lib/fwriteerror.h [C++]: Likewise.
61872         * lib/gcd.h [C++]: Likewise.
61873         * lib/linebreak.h [C++]: Likewise.
61874
61875 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61876
61877         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61878         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61879         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61880         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61881         Check for functions and headers just once.
61882         Check for declaration of canonicalize_file_name.
61883         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61884
61885 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61886
61887         * gnulib-tool (func_import): Fix typo in actioncmd.
61888
61889 2006-11-02  Bruno Haible  <bruno@clisp.org>
61890
61891         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61892         newline sequence in the Makefile.am snippet as a space, like "make"
61893         does.
61894         Reported by Roger Persson <perrog@gmail.com>.
61895
61896 2006-11-01  Bruno Haible  <bruno@clisp.org>
61897
61898         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61899         already declared in <string.h>.
61900         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61901
61902 2006-11-01  Bruno Haible  <bruno@clisp.org>
61903
61904         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61905         * lib/strcase.h: Include <string.h>.
61906         (strcasecmp): Define to rpl_strcasecmp here.
61907
61908 2006-11-01  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61911
61912 2006-11-01  Eric Blake  <ebb9@byu.net>
61913
61914         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61915
61916         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61917
61918 2006-10-29  Bruno Haible  <bruno@clisp.org>
61919
61920         Make it compile in C++ mode.
61921         * lib/full-write.c (full_rw): Add a cast.
61922
61923 2006-11-01  Bruno Haible  <bruno@clisp.org>
61924
61925         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61926         be POSIX compliant.
61927         Reported by Roger Persson <perrog@gmail.com>.
61928
61929 2006-11-01  Eric Blake  <ebb9@byu.net>
61930
61931         * lib/getopt_.h: Fix comments.
61932
61933 2006-10-31  Eric Blake  <ebb9@byu.net>
61934
61935         * modules/tmpdir (Depends-on): Add sys_stat.
61936         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61937         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61938         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61939         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61940         tempname.
61941
61942 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         Avoid some C++ diagnostics reported by Bruno Haible.
61945         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61946         xmalloc.
61947         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61948         (struct slotvec): Move to top level.
61949         (quotearg_n_options): Rewrite to avoid xmalloc.
61950         * lib/xalloc.h (xcharalloc): New function.
61951         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61952         [defined __cplusplus]: Add function template that provides result
61953         type propagation.  This part of the change is from Bruno Haible.
61954
61955 2006-10-29  Bruno Haible  <bruno@clisp.org>
61956
61957         Make it compile in C++ mode.
61958         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61959         * lib/strnlen1.c (strnlen1): Cast memchr result.
61960         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61961         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61962         (create_temp_dir): Rename local variable 'template'.
61963         (compile_csharp_using_sscli): Add cast.
61964         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61965         * lib/findprog.c (find_in_path): Likewise.
61966         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61967         * lib/wait-process.c (register_slave_subprocess): Likewise.
61968
61969 2006-10-22  Bruno Haible  <bruno@clisp.org>
61970
61971         * modules/tsearch: New file.
61972         * lib/tsearch.h: New file.
61973         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61974         * m4/tsearch.m4: New file.
61975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61976
61977 2006-10-29  Eric Blake  <ebb9@byu.net>
61978
61979         * lib/arcfour.c: Assume config.h.
61980         * lib/arctwo.c: Likewise.
61981         * lib/base64.c: Likewise.
61982         * lib/check-version.c: Likewise.
61983         * lib/crc.c: Likewise.
61984         * lib/des.c: Likewise.
61985         * lib/gc-gnulib.c: Likewise.
61986         * lib/gc-libgcrypt.c: Likewise.
61987         * lib/gc-pbkdf2-sha1.c: Likewise.
61988         * lib/getaddrinfo.c: Likewise.
61989         * lib/getdelim.c: Likewise.
61990         * lib/getline.c: Likewise.
61991         * lib/hmac-md5.c: Likewise.
61992         * lib/hmac-sha1.c: Likewise.
61993         * lib/iconvme.c: Likewise.
61994         * lib/md2.c: Likewise.
61995         * lib/md4.c: Likewise.
61996         * lib/memxor.c: Likewise.
61997         * lib/read-file.c: Likewise.
61998         * lib/readline.c: Likewise.
61999         * lib/rijndael-alg-fst.c: Likewise.
62000         * lib/rijndael-api-fst.c: Likewise.
62001         * lib/xgetdomainname.c: Likewise.
62002
62003 2006-10-28  Eric Blake  <ebb9@byu.net>
62004
62005         * lib/xstrndup.c: Assume config.h.
62006
62007 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62010         stat-macros.h is now for our own macros, whereas stat_h is for
62011         macros in the <sys/stat.h> name space.
62012         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62013         (STAT_MACROS_H): Remove.
62014         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62015         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62016         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62017         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62018         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62019         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62020         Move these macros to ...
62021         * lib/stat_.h: here.  Don't include stat-macros.h.
62022         * lib/canonicalize.c: Don't include stat-macros.h.
62023         * lib/chown.c: Likewise.
62024         * lib/euidaccess.c: Likewise.
62025         * lib/file-type.c: Likewise.
62026         * lib/filemode.c: Likewise.
62027         * lib/glob.c: Likewise.
62028         * lib/isapipe.c: Likewise.
62029         * lib/lchown.c: Likewise.
62030         * lib/lstat.c: Likewise.
62031         * lib/mkdir-p.c: Likewise.
62032         * lib/rmdir.c: Likewise.
62033         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62035         unless mkdir isn't declared, to speed up 'configure'.
62036         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62037         would define all the S_* symbols.
62038         * modules/canonicalize (Depends-on):
62039         Depend on sys_stat, not stat-macros.
62040         * modules/chown: Likewise.
62041         * modules/euidaccess: Likewise.
62042         * modules/filemode: Likewise.
62043         * modules/file-type: Likewise.
62044         * modules/glob: Likewise.
62045         * modules/isapipe: Likewise.
62046         * modules/lchown: Likewise.
62047         * modules/lstat: Likewise.
62048         * modules/mkancesdirs: Likewise.
62049         * modules/rmdir: Likewise.
62050         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62051         * modules/modechange: Likewise.
62052         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62053         (configure.ac): Remove gl_STAT_MACROS.
62054         * modules/sys_stat (Depends-on): Remove stat-macros.
62055
62056 2006-10-27  Bruno Haible  <bruno@clisp.org>
62057
62058         * m4/signed.m4: Remove file.
62059         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62060         invocation.
62061         * modules/vasnprintf (Files): Remove m4/signed.m4.
62062
62063 2006-10-27  Bruno Haible  <bruno@clisp.org>
62064
62065         Update to GNU gettext 0.16.
62066         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62067         m4/inttypes-h.m4, m4/signed.m4.
62068         * m4/gettext.m4: Update to GNU gettext 0.16.
62069         * m4/intl.m4: New file, from GNU gettext.
62070         * m4/intldir.m4: New file, from GNU gettext.
62071         * config/srclist.txt: Update
62072
62073 2006-10-27  Eric Blake  <ebb9@byu.net>
62074
62075         * MODULES.html.sh: Document tempname.
62076         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62077         dependencies.
62078         (Files): Move lib/tempname.c...
62079         * modules/tempname: ...to this new module.
62080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62081         (gl_PREREQ_TEMPNAME): Move...
62082         * m4/tempname.m4: ...to this new file.
62083         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62084         * modules/sys_stat (Depends-on): Add stat-macros.
62085         * lib/stat_.h (includes): Pick up stat macros.
62086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62087         if stat macros are broken.
62088         * lib/tempname.c (includes): No need to include "stat-macros.h".
62089         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62090         (direxists, __path_search) [!_LIBC]: Don't compile these in
62091         gnulib; the tmpdir module covers that.
62092         * lib/tempname.h: New file.
62093
62094 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * COPYING: Explain how gnulib-tool converts licence headers.
62097         Almost all wording by Eric Blake.
62098
62099 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/mbchar.h (is_basic_table): Make read-only.
62102         * lib/mbchar.c (is_basic_table): Likewise.
62103         Reported by John Darrington.
62104
62105 2006-10-25  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/progname.h (set_program_name): Undefine before defining.
62108
62109 2006-10-25  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62112         false for non-gcc C++ compilers.
62113         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62114
62115 2006-10-24  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62118         iconv implementations like Irix iconv.
62119
62120 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * modules/vararrays: New file.
62123         * m4/vararrays.m4: New file, taken from diffutils.
62124         * MODULES.html.sh: New module vararrays.
62125
62126 2006-10-24  Karl Berry  <karl@gnu.org>
62127
62128         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62129         Don't call GNU Unix.
62130
62131 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62132
62133         * users.txt: Add Libtool.
62134
62135         Sync from Libtool:
62136
62137         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62140         to gnulib's policy of including config.h unconditionally.
62141
62142 2006-10-24  Bruno Haible  <bruno@clisp.org>
62143
62144         * modules/wcwidth (Files): Add m4/wint_t.m4.
62145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62146         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62147
62148 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62151         to pacify GCC with some -W flags enabled.  Problem reported by
62152         Bruno Haible.
62153
62154 2006-10-24  Jim Meyering  <jim@meyering.net>
62155
62156         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62157         Reported by Karl Berry.
62158
62159 2006-10-23  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62162
62163 2006-10-24  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/gl_list.h: Use C comment style, not C++ comment style.
62166
62167 2006-10-23  Eric Blake  <ebb9@byu.net>
62168
62169         * lib/getaddrinfo.c (includes): Add missing include.
62170
62171 2006-10-23  Bruno Haible  <bruno@clisp.org>
62172             Paul Eggert  <eggert@cs.ucla.edu>
62173
62174         Ability to rename obstack_free.
62175         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62176         obstack_free.
62177         (obstack_free): Invoke the __obstack_free macro.
62178         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62179
62180 2006-10-23  Bruno Haible  <bruno@clisp.org>
62181             Paul Eggert  <eggert@cs.ucla.edu>
62182
62183         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62184         __argc, __argv from the declaration. (They are defined as macros on
62185         mingw.)
62186
62187 2006-10-22  Bruno Haible  <bruno@clisp.org>
62188
62189         * doc/gnulib-intro.texi: New file.
62190         * doc/gnulib.texi: Include it.
62191
62192 2006-10-21  Bruno Haible  <bruno@clisp.org>
62193
62194         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62195         "Introduction", "Miscellanous Notes", "Particular Modules".
62196
62197 2006-10-21  Bruno Haible  <bruno@clisp.org>
62198
62199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62200         Change mostlyclean-local rule to avoid sh syntax error from bash
62201         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62202
62203 2006-10-23  Jim Meyering  <jim@meyering.net>
62204
62205         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62206         in place of snprintf.
62207
62208         * modules/inttostr (Files): Add lib/uinttostr.c.
62209         * lib/uinttostr.c (inttostr): New file/function.
62210         * lib/inttostr.h (uinttostr): Declare.
62211         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62212         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62213         Add uinttostr.
62214         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62215
62216 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * lib/canonicalize.c (ELOOP): Define if not already defined.
62219         Problem reported by Bruno Haible in
62220         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62221
62222 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62223
62224         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62225         Problem reported by Perry Smith and Ville Laurikari.
62226
62227         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62228         uses.
62229
62230 2006-10-19  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62233         for mingw.
62234
62235 2006-10-19  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62238         Needed for mingw.
62239
62240 2006-10-19  Bruno Haible  <bruno@clisp.org>
62241
62242         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62243
62244 2006-10-19  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62247         it.
62248
62249 2006-10-19  Bruno Haible  <bruno@clisp.org>
62250
62251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62252         invocation.
62253
62254 2006-10-19  Bruno Haible  <bruno@clisp.org>
62255
62256         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62257         mountlist by default.
62258
62259 2006-10-16  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/c-strstr.c: Include c-strstr.h.
62262
62263 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62264
62265         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62266         in a slash.
62267
62268 2006-10-18  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/lock.h [C++]: Wrap definitions in extern "C".
62271
62272 2006-10-18  Bruno Haible  <bruno@clisp.org>
62273
62274         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62275         gl_LIBOBJS list.
62276
62277 2006-10-18  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62280
62281 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * lib/xstrtol.h: Include gettext.h.
62284         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62285         Problem reported by Eric Blake.
62286         * modules/xstrtol (Depends-on): Add gettext-h.
62287
62288 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62289
62290         * lib/strftime.c (advance): New macro.
62291         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62292         incomplete type, so you can't add 0 to it.  Problem and patch
62293         reported by Eelco Dolstra for dietlibc.
62294
62295 2006-10-18  Jim Meyering  <jim@meyering.net>
62296
62297         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62298         type for a local, and rename it: s/up/user_proc/.
62299
62300 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62301
62302         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62303         READ_UTMP_USER_PROCESS.
62304         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62305
62306 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62309         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62310
62311 2006-10-17  Eric Blake  <ebb9@byu.net>
62312
62313         * lib/sigprocmask.c (sigprocmask): Fix typo.
62314
62315         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62316
62317         * modules/clean-temp (Makefile.am): Don't add to make output...
62318         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62319         config.h.
62320
62321 2006-10-17  Bruno Haible  <bruno@clisp.org>
62322
62323         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62324         differently if DEFAULT_TEXT_DOMAIN is set.
62325
62326 2006-10-16  Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/clean-temp.c: Include fwriteerror.h.
62329
62330 2006-10-16  Bruno Haible  <bruno@clisp.org>
62331
62332         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62333
62334 2006-10-16  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62337         * lib/sigprocmask.h: Include <sys/types.h>.
62338         (sigset_t): Use the system's definition if present.
62339
62340 2006-10-17  Eric Blake  <ebb9@byu.net>
62341
62342         * lib/xvasprintf.c (includes): Assume config.h.
62343         * lib/xasprintf.c (includes): Likewise.
62344
62345 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62346
62347         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62348         at least as wide as intmax_t.
62349
62350 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62351
62352         (Imported from Automake.)
62353         * build-aux/gnupload: Update to version 1.1 of directive file.
62354
62355 2006-10-16  Eric Blake  <ebb9@byu.net>
62356
62357         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62358         match Automake 1.10a.
62359
62360 2006-10-14  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/sigprocmask: New file.
62363         * lib/sigprocmask.h: New file.
62364         * lib/sigprocmask.c: New file.
62365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62366         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62367         request sigprocmask.o.
62368         (gl_PREREQ_SIGPROCMASK): New macro.
62369         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62370         (Depends-on): Add sigprocmask.
62371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62372         gt_SIGNALBLOCKING. Test for 'raise' only once.
62373         * lib/fatal-signal.c: Include sigprocmask.h.
62374         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62375         unblock_fatal_signals): Define always.
62376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62377         sigprocmask.
62378
62379 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         Sync from Automake.
62382         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62383         which incorrectly sets the mode of an existing destination
62384         directory.  In some cases the unpatched install-sh could do the
62385         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62386         system.  We hope this is rare in practice, but it's clearly worth
62387         fixing.  Problem reported by Alex Unleashed in
62388         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62389         Also, don't bother to check for -m bugs unless we're using -m;
62390         suggested by Stepan Kasal.
62391
62392 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62393
62394         Sync from Automake.
62395         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62396         `-c' flag, so they appear at the same position as in %FASTDEP%
62397         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62398         which ignores unknown options only after the first non-option.
62399         Bug report against M4 by Nelson H. F. Beebe.
62400
62401 2006-10-13  Jim Meyering  <jim@meyering.net>
62402
62403         Fix a bug in yesterday's change.
62404         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62405         p->fts_statp->st_dev would be used uninitialized.
62406         Ensures that we always call fts_stat on the very first entry.
62407         Miklos Szeredi reported that find -xdev stopped working.
62408
62409 2006-10-12  Bruno Haible  <bruno@clisp.org>
62410
62411         * gnulib-tool (func_get_automake_snippet): Append an automatically
62412         computed EXTRA_DIST augmentation.
62413         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62414         * modules/alloca-opt (Makefile.am): Likewise.
62415         * modules/allocsa (Makefile.am): Likewise.
62416         * modules/arcfour (Makefile.am): Likewise.
62417         * modules/arctwo (Makefile.am): Likewise.
62418         * modules/argmatch (Makefile.am): Likewise.
62419         * modules/argz (Makefile.am): Likewise.
62420         * modules/atexit (Makefile.am): Likewise.
62421         * modules/backupfile (Makefile.am): Likewise.
62422         * modules/byteswap (Makefile.am): Likewise.
62423         * modules/c-strtod (Makefile.am): Likewise.
62424         * modules/c-strtold (Makefile.am): Likewise.
62425         * modules/calloc (Makefile.am): Likewise.
62426         * modules/canon-host (Makefile.am): Likewise.
62427         * modules/canonicalize (Makefile.am): Likewise.
62428         * modules/chdir-long (Makefile.am): Likewise.
62429         * modules/chdir-safer (Makefile.am): Likewise.
62430         * modules/check-version (Makefile.am): Likewise.
62431         * modules/chown (Makefile.am): Likewise.
62432         * modules/cloexec (Makefile.am): Likewise.
62433         * modules/close-stream (Makefile.am): Likewise.
62434         * modules/closeout (Makefile.am): Likewise.
62435         * modules/crc (Makefile.am): Likewise.
62436         * modules/csharpexec (Makefile.am): Likewise.
62437         * modules/cycle-check (Makefile.am): Likewise.
62438         * modules/des (Makefile.am): Likewise.
62439         * modules/dev-ino (Makefile.am): Likewise.
62440         * modules/dirfd (Makefile.am): Likewise.
62441         * modules/dirname (Makefile.am): Likewise.
62442         * modules/dup2 (Makefile.am): Likewise.
62443         * modules/eealloc (Makefile.am): Likewise.
62444         * modules/error (Makefile.am): Likewise.
62445         * modules/euidaccess (Makefile.am): Likewise.
62446         * modules/exclude (Makefile.am): Likewise.
62447         * modules/exitfail (Makefile.am): Likewise.
62448         * modules/fcntl-safer (Makefile.am): Likewise.
62449         * modules/fcntl (Makefile.am): Likewise.
62450         * modules/file-type (Makefile.am): Likewise.
62451         * modules/fileblocks (Makefile.am): Likewise.
62452         * modules/filemode (Makefile.am): Likewise.
62453         * modules/filenamecat (Makefile.am): Likewise.
62454         * modules/fnmatch (Makefile.am): Likewise.
62455         * modules/fopen-safer (Makefile.am): Likewise.
62456         * modules/fpending (Makefile.am): Likewise.
62457         * modules/fprintftime (Makefile.am): Likewise.
62458         * modules/free (Makefile.am): Likewise.
62459         * modules/fsusage (Makefile.am): Likewise.
62460         * modules/ftruncate (Makefile.am): Likewise.
62461         * modules/fts (Makefile.am): Likewise.
62462         * modules/gc-arcfour (Makefile.am): Likewise.
62463         * modules/gc-des (Makefile.am): Likewise.
62464         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62465         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62466         * modules/gc-md4 (Makefile.am): Likewise.
62467         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62468         * modules/gc-sha1 (Makefile.am): Likewise.
62469         * modules/gc (Makefile.am): Likewise.
62470         * modules/getaddrinfo (Makefile.am): Likewise.
62471         * modules/getcwd (Makefile.am): Likewise.
62472         * modules/getdelim (Makefile.am): Likewise.
62473         * modules/getdomainname (Makefile.am): Likewise.
62474         * modules/getgroups (Makefile.am): Likewise.
62475         * modules/gethostname (Makefile.am): Likewise.
62476         * modules/gethrxtime (Makefile.am): Likewise.
62477         * modules/getline (Makefile.am): Likewise.
62478         * modules/getloadavg (Makefile.am): Likewise.
62479         * modules/getlogin_r (Makefile.am): Likewise.
62480         * modules/getndelim2 (Makefile.am): Likewise.
62481         * modules/getopt (Makefile.am): Likewise.
62482         * modules/getpagesize (Makefile.am): Likewise.
62483         * modules/getpass-gnu (Makefile.am): Likewise.
62484         * modules/getpass (Makefile.am): Likewise.
62485         * modules/getsubopt (Makefile.am): Likewise.
62486         * modules/gettime (Makefile.am): Likewise.
62487         * modules/gettimeofday (Makefile.am): Likewise.
62488         * modules/getugroups (Makefile.am): Likewise.
62489         * modules/getusershell (Makefile.am): Likewise.
62490         * modules/glob (Makefile.am): Likewise.
62491         * modules/group-member (Makefile.am): Likewise.
62492         * modules/hard-locale (Makefile.am): Likewise.
62493         * modules/hash (Makefile.am): Likewise.
62494         * modules/hmac-md5 (Makefile.am): Likewise.
62495         * modules/hmac-sha1 (Makefile.am): Likewise.
62496         * modules/human (Makefile.am): Likewise.
62497         * modules/idcache (Makefile.am): Likewise.
62498         * modules/imaxabs (Makefile.am): Likewise.
62499         * modules/imaxdiv (Makefile.am): Likewise.
62500         * modules/inet_ntop (Makefile.am): Likewise.
62501         * modules/inet_pton (Makefile.am): Likewise.
62502         * modules/intprops (Makefile.am): Likewise.
62503         * modules/inttostr (Makefile.am): Likewise.
62504         * modules/inttypes (Makefile.am): Likewise.
62505         * modules/isapipe (Makefile.am): Likewise.
62506         * modules/javaversion (Makefile.am): Likewise.
62507         * modules/lchmod (Makefile.am): Likewise.
62508         * modules/lchown (Makefile.am): Likewise.
62509         * modules/localcharset (Makefile.am): Likewise.
62510         * modules/long-options (Makefile.am): Likewise.
62511         * modules/lstat (Makefile.am): Likewise.
62512         * modules/malloc (Makefile.am): Likewise.
62513         * modules/mathl (Makefile.am): Likewise.
62514         * modules/mbchar (Makefile.am): Likewise.
62515         * modules/md2 (Makefile.am): Likewise.
62516         * modules/md4 (Makefile.am): Likewise.
62517         * modules/md5 (Makefile.am): Likewise.
62518         * modules/memcasecmp (Makefile.am): Likewise.
62519         * modules/memchr (Makefile.am): Likewise.
62520         * modules/memcmp (Makefile.am): Likewise.
62521         * modules/memcoll (Makefile.am): Likewise.
62522         * modules/memcpy (Makefile.am): Likewise.
62523         * modules/memmem (Makefile.am): Likewise.
62524         * modules/memmove (Makefile.am): Likewise.
62525         * modules/mempcpy (Makefile.am): Likewise.
62526         * modules/memrchr (Makefile.am): Likewise.
62527         * modules/memset (Makefile.am): Likewise.
62528         * modules/memxor (Makefile.am): Likewise.
62529         * modules/mkancesdirs (Makefile.am): Likewise.
62530         * modules/mkdir-p (Makefile.am): Likewise.
62531         * modules/mkdir (Makefile.am): Likewise.
62532         * modules/mkdtemp (Makefile.am): Likewise.
62533         * modules/mkstemp (Makefile.am): Likewise.
62534         * modules/mktime (Makefile.am): Likewise.
62535         * modules/modechange (Makefile.am): Likewise.
62536         * modules/mountlist (Makefile.am): Likewise.
62537         * modules/nanosleep (Makefile.am): Likewise.
62538         * modules/obstack (Makefile.am): Likewise.
62539         * modules/openat (Makefile.am): Likewise.
62540         * modules/pagealign_alloc (Makefile.am): Likewise.
62541         * modules/pathmax (Makefile.am): Likewise.
62542         * modules/physmem (Makefile.am): Likewise.
62543         * modules/poll (Makefile.am): Likewise.
62544         * modules/posixtm (Makefile.am): Likewise.
62545         * modules/posixver (Makefile.am): Likewise.
62546         * modules/putenv (Makefile.am): Likewise.
62547         * modules/quote (Makefile.am): Likewise.
62548         * modules/quotearg (Makefile.am): Likewise.
62549         * modules/raise (Makefile.am): Likewise.
62550         * modules/read-file (Makefile.am): Likewise.
62551         * modules/readline (Makefile.am): Likewise.
62552         * modules/readlink (Makefile.am): Likewise.
62553         * modules/readtokens (Makefile.am): Likewise.
62554         * modules/readutmp (Makefile.am): Likewise.
62555         * modules/realloc (Makefile.am): Likewise.
62556         * modules/regex (Makefile.am): Likewise.
62557         * modules/rename-dest-slash (Makefile.am): Likewise.
62558         * modules/rename (Makefile.am): Likewise.
62559         * modules/rijndael (Makefile.am): Likewise.
62560         * modules/rmdir (Makefile.am): Likewise.
62561         * modules/rpmatch (Makefile.am): Likewise.
62562         * modules/safe-read (Makefile.am): Likewise.
62563         * modules/safe-write (Makefile.am): Likewise.
62564         * modules/same-inode (Makefile.am): Likewise.
62565         * modules/same (Makefile.am): Likewise.
62566         * modules/save-cwd (Makefile.am): Likewise.
62567         * modules/savedir (Makefile.am): Likewise.
62568         * modules/setenv (Makefile.am): Likewise.
62569         * modules/settime (Makefile.am): Likewise.
62570         * modules/sha1 (Makefile.am): Likewise.
62571         * modules/sig2str (Makefile.am): Likewise.
62572         * modules/snprintf (Makefile.am): Likewise.
62573         * modules/stat-macros (Makefile.am): Likewise.
62574         * modules/stat-time (Makefile.am): Likewise.
62575         * modules/stdbool (Makefile.am): Likewise.
62576         * modules/stdint (Makefile.am): Likewise.
62577         * modules/stdlib-safer (Makefile.am): Likewise.
62578         * modules/stpcpy (Makefile.am): Likewise.
62579         * modules/stpncpy (Makefile.am): Likewise.
62580         * modules/strcase (Makefile.am): Likewise.
62581         * modules/strcasestr (Makefile.am): Likewise.
62582         * modules/strchrnul (Makefile.am): Likewise.
62583         * modules/strcspn (Makefile.am): Likewise.
62584         * modules/strdup (Makefile.am): Likewise.
62585         * modules/strerror (Makefile.am): Likewise.
62586         * modules/strftime (Makefile.am): Likewise.
62587         * modules/strndup (Makefile.am): Likewise.
62588         * modules/strnlen (Makefile.am): Likewise.
62589         * modules/strpbrk (Makefile.am): Likewise.
62590         * modules/strsep (Makefile.am): Likewise.
62591         * modules/strstr (Makefile.am): Likewise.
62592         * modules/strtod (Makefile.am): Likewise.
62593         * modules/strtoimax (Makefile.am): Likewise.
62594         * modules/strtok_r (Makefile.am): Likewise.
62595         * modules/strtol (Makefile.am): Likewise.
62596         * modules/strtoll (Makefile.am): Likewise.
62597         * modules/strtoul (Makefile.am): Likewise.
62598         * modules/strtoull (Makefile.am): Likewise.
62599         * modules/strtoumax (Makefile.am): Likewise.
62600         * modules/strverscmp (Makefile.am): Likewise.
62601         * modules/sys_socket (Makefile.am): Likewise.
62602         * modules/sys_stat (Makefile.am): Likewise.
62603         * modules/sysexits (Makefile.am): Likewise.
62604         * modules/time_r (Makefile.am): Likewise.
62605         * modules/timegm (Makefile.am): Likewise.
62606         * modules/timespec (Makefile.am): Likewise.
62607         * modules/tmpfile-safer (Makefile.am): Likewise.
62608         * modules/trim (Makefile.am): Likewise.
62609         * modules/unistd-safer (Makefile.am): Likewise.
62610         * modules/unlinkdir (Makefile.am): Likewise.
62611         * modules/unlocked-io (Makefile.am): Likewise.
62612         * modules/userspec (Makefile.am): Likewise.
62613         * modules/utime (Makefile.am): Likewise.
62614         * modules/utimecmp (Makefile.am): Likewise.
62615         * modules/utimens (Makefile.am): Likewise.
62616         * modules/vasnprintf (Makefile.am): Likewise.
62617         * modules/vasprintf (Makefile.am): Likewise.
62618         * modules/vsnprintf (Makefile.am): Likewise.
62619         * modules/xalloc (Makefile.am): Likewise.
62620         * modules/xgetcwd (Makefile.am): Likewise.
62621         * modules/xnanosleep (Makefile.am): Likewise.
62622         * modules/xreadlink (Makefile.am): Likewise.
62623         * modules/xstrtod (Makefile.am): Likewise.
62624         * modules/xstrtol (Makefile.am): Likewise.
62625         * modules/xstrtold (Makefile.am): Likewise.
62626         * modules/yesno (Makefile.am): Likewise.
62627         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62628
62629 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * modules/error (Makefile.am): Distribute files through
62632         EXTRA_DIST, not lib_SOURCES.
62633
62634 2006-10-12  Eric Blake  <ebb9@byu.net>
62635
62636         * modules/error (Makefile.am): Distribute files in /lib.
62637         * modules/obstack (Makefile.am): Likewise.
62638
62639 2006-10-12  Bruno Haible  <bruno@clisp.org>
62640
62641         * modules/acl (Makefile.am): Distribute all files in lib/ through
62642         EXTRA_DIST.
62643         * modules/arcfour (Makefile.am): Likewise.
62644         * modules/arctwo (Makefile.am): Likewise.
62645         * modules/argmatch (Makefile.am): Likewise.
62646         * modules/argz (Makefile.am): Likewise.
62647         * modules/atexit (Makefile.am): Likewise.
62648         * modules/backupfile (Makefile.am): Likewise.
62649         * modules/c-strtod (Makefile.am): Likewise.
62650         * modules/c-strtold (Makefile.am): Likewise.
62651         * modules/calloc (Makefile.am): Likewise.
62652         * modules/canon-host (Makefile.am): Likewise.
62653         * modules/canonicalize (Makefile.am): Likewise.
62654         * modules/chdir-long (Makefile.am): Likewise.
62655         * modules/chdir-safer (Makefile.am): Likewise.
62656         * modules/check-version (Makefile.am): Likewise.
62657         * modules/chown (Makefile.am): Likewise.
62658         * modules/cloexec (Makefile.am): Likewise.
62659         * modules/close-stream (Makefile.am): Likewise.
62660         * modules/closeout (Makefile.am): Likewise.
62661         * modules/crc (Makefile.am): Likewise.
62662         * modules/cycle-check (Makefile.am): Likewise.
62663         * modules/des (Makefile.am): Likewise.
62664         * modules/dirfd (Makefile.am): Likewise.
62665         * modules/dirname (Makefile.am): Likewise.
62666         * modules/dup2 (Makefile.am): Likewise.
62667         * modules/euidaccess (Makefile.am): Likewise.
62668         * modules/exclude (Makefile.am): Likewise.
62669         * modules/exitfail (Makefile.am): Likewise.
62670         * modules/fcntl-safer (Makefile.am): Likewise.
62671         * modules/file-type (Makefile.am): Likewise.
62672         * modules/fileblocks (Makefile.am): Likewise.
62673         * modules/filemode (Makefile.am): Likewise.
62674         * modules/filenamecat (Makefile.am): Likewise.
62675         * modules/fnmatch (Makefile.am): Likewise.
62676         * modules/fopen-safer (Makefile.am): Likewise.
62677         * modules/fpending (Makefile.am): Likewise.
62678         * modules/fprintftime (Makefile.am): Likewise.
62679         * modules/free (Makefile.am): Likewise.
62680         * modules/fsusage (Makefile.am): Likewise.
62681         * modules/ftruncate (Makefile.am): Likewise.
62682         * modules/fts (Makefile.am): Likewise.
62683         * modules/gc (Makefile.am): Likewise.
62684         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62685         * modules/getaddrinfo (Makefile.am): Likewise.
62686         * modules/getcwd (Makefile.am): Likewise.
62687         * modules/getdelim (Makefile.am): Likewise.
62688         * modules/getdomainname (Makefile.am): Likewise.
62689         * modules/getgroups (Makefile.am): Likewise.
62690         * modules/gethostname (Makefile.am): Likewise.
62691         * modules/gethrxtime (Makefile.am): Likewise.
62692         * modules/getline (Makefile.am): Likewise.
62693         * modules/getloadavg (Makefile.am): Likewise.
62694         * modules/getlogin_r (Makefile.am): Likewise.
62695         * modules/getopt (Makefile.am): Likewise.
62696         * modules/getpass (Makefile.am): Likewise.
62697         * modules/getpass-gnu (Makefile.am): Likewise.
62698         * modules/getsubopt (Makefile.am): Likewise.
62699         * modules/gettime (Makefile.am): Likewise.
62700         * modules/gettimeofday (Makefile.am): Likewise.
62701         * modules/getugroups (Makefile.am): Likewise.
62702         * modules/getusershell (Makefile.am): Likewise.
62703         * modules/glob (Makefile.am): Likewise.
62704         * modules/group-member (Makefile.am): Likewise.
62705         * modules/hard-locale (Makefile.am): Likewise.
62706         * modules/hash (Makefile.am): Likewise.
62707         * modules/hmac-md5 (Makefile.am): Likewise.
62708         * modules/hmac-sha1 (Makefile.am): Likewise.
62709         * modules/human (Makefile.am): Likewise.
62710         * modules/idcache (Makefile.am): Likewise.
62711         * modules/imaxabs (Makefile.am): Likewise.
62712         * modules/imaxdiv (Makefile.am): Likewise.
62713         * modules/inet_ntop (Makefile.am): Likewise.
62714         * modules/inet_pton (Makefile.am): Likewise.
62715         * modules/inttostr (Makefile.am): Likewise.
62716         * modules/isapipe (Makefile.am): Likewise.
62717         * modules/lchown (Makefile.am): Likewise.
62718         * modules/long-options (Makefile.am): Likewise.
62719         * modules/lstat (Makefile.am): Likewise.
62720         * modules/malloc (Makefile.am): Likewise.
62721         * modules/mathl (Makefile.am): Likewise.
62722         * modules/mbchar (Makefile.am): Likewise.
62723         * modules/md2 (Makefile.am): Likewise.
62724         * modules/md4 (Makefile.am): Likewise.
62725         * modules/md5 (Makefile.am): Likewise.
62726         * modules/memcasecmp (Makefile.am): Likewise.
62727         * modules/memchr (Makefile.am): Likewise.
62728         * modules/memcmp (Makefile.am): Likewise.
62729         * modules/memcoll (Makefile.am): Likewise.
62730         * modules/memcpy (Makefile.am): Likewise.
62731         * modules/memmem (Makefile.am): Likewise.
62732         * modules/memmove (Makefile.am): Likewise.
62733         * modules/mempcpy (Makefile.am): Likewise.
62734         * modules/memrchr (Makefile.am): Likewise.
62735         * modules/memset (Makefile.am): Likewise.
62736         * modules/memxor (Makefile.am): Likewise.
62737         * modules/mkancesdirs (Makefile.am): Likewise.
62738         * modules/mkdir (Makefile.am): Likewise.
62739         * modules/mkdir-p (Makefile.am): Likewise.
62740         * modules/mkdtemp (Makefile.am): Likewise.
62741         * modules/mkstemp (Makefile.am): Likewise.
62742         * modules/mktime (Makefile.am): Likewise.
62743         * modules/modechange (Makefile.am): Likewise.
62744         * modules/mountlist (Makefile.am): Likewise.
62745         * modules/nanosleep (Makefile.am): Likewise.
62746         * modules/openat (Makefile.am): Likewise.
62747         * modules/pagealign_alloc (Makefile.am): Likewise.
62748         * modules/physmem (Makefile.am): Likewise.
62749         * modules/poll (Makefile.am): Likewise.
62750         * modules/posixtm (Makefile.am): Likewise.
62751         * modules/posixver (Makefile.am): Likewise.
62752         * modules/putenv (Makefile.am): Likewise.
62753         * modules/quote (Makefile.am): Likewise.
62754         * modules/quotearg (Makefile.am): Likewise.
62755         * modules/raise (Makefile.am): Likewise.
62756         * modules/read-file (Makefile.am): Likewise.
62757         * modules/readline (Makefile.am): Likewise.
62758         * modules/readlink (Makefile.am): Likewise.
62759         * modules/readtokens (Makefile.am): Likewise.
62760         * modules/readutmp (Makefile.am): Likewise.
62761         * modules/realloc (Makefile.am): Likewise.
62762         * modules/regex (Makefile.am): Likewise.
62763         * modules/rename (Makefile.am): Likewise.
62764         * modules/rename-dest-slash (Makefile.am): Likewise.
62765         * modules/rijndael (Makefile.am): Likewise.
62766         * modules/rmdir (Makefile.am): Likewise.
62767         * modules/rpmatch (Makefile.am): Likewise.
62768         * modules/safe-read (Makefile.am): Likewise.
62769         * modules/safe-write (Makefile.am): Likewise.
62770         * modules/same (Makefile.am): Likewise.
62771         * modules/save-cwd (Makefile.am): Likewise.
62772         * modules/savedir (Makefile.am): Likewise.
62773         * modules/setenv (Makefile.am): Likewise.
62774         * modules/settime (Makefile.am): Likewise.
62775         * modules/sha1 (Makefile.am): Likewise.
62776         * modules/sig2str (Makefile.am): Likewise.
62777         * modules/snprintf (Makefile.am): Likewise.
62778         * modules/stdlib-safer (Makefile.am): Likewise.
62779         * modules/stpcpy (Makefile.am): Likewise.
62780         * modules/stpncpy (Makefile.am): Likewise.
62781         * modules/strcase (Makefile.am): Likewise.
62782         * modules/strcasestr (Makefile.am): Likewise.
62783         * modules/strchrnul (Makefile.am): Likewise.
62784         * modules/strcspn (Makefile.am): Likewise.
62785         * modules/strdup (Makefile.am): Likewise.
62786         * modules/strerror (Makefile.am): Likewise.
62787         * modules/strftime (Makefile.am): Likewise.
62788         * modules/strndup (Makefile.am): Likewise.
62789         * modules/strnlen (Makefile.am): Likewise.
62790         * modules/strpbrk (Makefile.am): Likewise.
62791         * modules/strsep (Makefile.am): Likewise.
62792         * modules/strstr (Makefile.am): Likewise.
62793         * modules/strtod (Makefile.am): Likewise.
62794         * modules/strtoimax (Makefile.am): Likewise.
62795         * modules/strtok_r (Makefile.am): Likewise.
62796         * modules/strtol (Makefile.am): Likewise.
62797         * modules/strtoll (Makefile.am): Likewise.
62798         * modules/strtoul (Makefile.am): Likewise.
62799         * modules/strtoull (Makefile.am): Likewise.
62800         * modules/strtoumax (Makefile.am): Likewise.
62801         * modules/strverscmp (Makefile.am): Likewise.
62802         * modules/time_r (Makefile.am): Likewise.
62803         * modules/timegm (Makefile.am): Likewise.
62804         * modules/tmpfile-safer (Makefile.am): Likewise.
62805         * modules/unistd-safer (Makefile.am): Likewise.
62806         * modules/unlinkdir (Makefile.am): Likewise.
62807         * modules/userspec (Makefile.am): Likewise.
62808         * modules/utime (Makefile.am): Likewise.
62809         * modules/utimecmp (Makefile.am): Likewise.
62810         * modules/utimens (Makefile.am): Likewise.
62811         * modules/vasnprintf (Makefile.am): Likewise.
62812         * modules/vasprintf (Makefile.am): Likewise.
62813         * modules/vsnprintf (Makefile.am): Likewise.
62814         * modules/xalloc (Makefile.am): Likewise.
62815         * modules/xgetcwd (Makefile.am): Likewise.
62816         * modules/xnanosleep (Makefile.am): Likewise.
62817         * modules/xreadlink (Makefile.am): Likewise.
62818         * modules/xstrtod (Makefile.am): Likewise.
62819         * modules/xstrtol (Makefile.am): Likewise.
62820         * modules/xstrtold (Makefile.am): Likewise.
62821         * modules/yesno (Makefile.am): Likewise.
62822
62823 2006-10-12  Jim Meyering  <jim@meyering.net>
62824
62825         * m4/getloadavg.m4: Revert the change below.
62826
62827         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62828         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62829         fail with a symlink, which is what coreutils' ./bootstrap now
62830         creates by default.
62831
62832 2006-10-12  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62835         mingw.
62836         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62837         MSVC and mingw explicitly.
62838
62839 2006-10-11  Simon Josefsson  <jas@extundo.com>
62840             Bruno Haible  <bruno@clisp.org>
62841
62842         Add support for multiple gnulib-tool invocations in the scope of a
62843         single configure.ac file.
62844         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62845         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62846         with the same contents as the _LIBADD variable.
62847         (func_emit_initmacro_start, func_emit_initmacro_end,
62848         func_emit_initmacro_done): New functions.
62849         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62850         gl_LIBOBJS and gl_LTLIBOBJS.
62851
62852 2006-10-11  Bruno Haible  <bruno@clisp.org>
62853
62854         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62855         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62856         autoreconf. Instead, invoke autopoint explicitly but move back the
62857         *.m4 files from gnulib.
62858
62859 2006-10-11  Bruno Haible  <bruno@clisp.org>
62860
62861         * gnulib-tool (func_usage): Make module names after --create-testdir
62862         optional.
62863         (func_create_testdir): If no module was specified, use nearly all
62864         modules.
62865
62866 2006-10-12  Jim Meyering  <jim@meyering.net>
62867
62868         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62869         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62870         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62871         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62872         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62873         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62874         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62875         (fts_set_stat_required): New function.
62876         (fts_open): Defer the calls to fts_stat, if possible or requested.
62877         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62878         into fts_stat itself.
62879         (fts_read): Perform any required (deferred) fts_stat call.
62880         (fts_build): Likewise, for the directory we're about to open and read.
62881         In the readdir loop, carefully decide whether each entry will require
62882         an eventual call to fts_stat, using dirent.d_type info if available.
62883         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62884         a command line argument into this function.  Update all callers.
62885         Map a return value of FTS_DOT to FTS_D for a command line argument.
62886         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62887         Thanks to Miklos Szeredi for his tenacity and for the initial
62888         bug report about "find" failing on a FUSE-based file system.
62889
62890         * lib/fts.c (fts_open): Use consistent indentation.
62891
62892 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62895         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62896         reported by Jim Meyering.  All uses of cache variables renamed
62897         to match Autoconf's.
62898         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62899         the other one.
62900
62901         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62902         Fix misspelling in diagnostic.
62903
62904 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62907         defined.  Problem reported by Matthew Woehlke.
62908
62909         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62910         Add support for Tandem NonStop R series.
62911         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62912         Use new macro.
62913
62914         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62915         (has_trailing_slash): Omit size arg; all callers changed.
62916         Omit 'inline', since it doesn't help performance and we'd
62917         need to configure it.
62918         Don't count //, ///, etc. as having a trailing slash.
62919         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62920         (rpl_rename_dest_slash): On failure, use rename's errno rather
62921         than (in some cases) an incorrect or junk errno.
62922         Simplify code by removing need to compute length; this does
62923         cause it to make two passes instead of one over the file name,
62924         but it's worth it.
62925
62926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62927         change, since Autoconf's version may no longer be appropriate now
62928         that we are using CVS Autoconf's version.  Add support for Tandem.
62929
62930 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62931             Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62934         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62935         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62936         gl_AC_TYPE_LONG_LONG.
62937
62938         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62939         instead of HAVE_LONG_LONG.
62940         * lib/printf-args.c (printf_fetchargs): Likewise.
62941         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62942         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62943         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62944         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62945         gl_AC_TYPE_LONG_LONG.
62946
62947 2006-10-11  Bruno Haible  <bruno@clisp.org>
62948
62949         * m4/longlong.m4: Add comments.
62950         * m4/ulonglong.m4: Likewise.
62951
62952 2006-10-10  Bruno Haible  <bruno@clisp.org>
62953
62954         Make it possible to #define stpcpy, strdup to aliases.
62955         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62956         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62957
62958 2006-10-10  Bruno Haible  <bruno@clisp.org>
62959
62960         Make it possible to #define gcd to an alias.
62961         * lib/gcd.c: Include config.h.
62962
62963 2006-10-10  Bruno Haible  <bruno@clisp.org>
62964
62965         Make it possible to #define c_isascii to an alias.
62966         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62967         defined. Undefine the macros before defining them, to avoid gcc
62968         warnings.
62969         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62970         define NO_C_CTYPE_MACROS early.
62971
62972 2006-10-10  Bruno Haible  <bruno@clisp.org>
62973
62974         Make it possible to #define set_program_name to an alias.
62975         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62976         ENABLE_RELOCATABLE early.
62977
62978 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62981         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62982         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62983         More generally, don't assume that 64-bit signed int is available
62984         if unsigned int is, and vice versa.
62985         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62986         unsigned symbols, not on their signed counterparts.
62987         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62988         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62989         (UINT64_C, UINTMAX_C):
62990         Likewise.
62991         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62992         unsigned counterparts.
62993         (Have_long_long, Unsigned): New macros.
62994         (Int): Renamed from INT.
62995         (strtoimax): Use the new macros.
62996         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62997         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62998         * modules/inttypes (inttypes.h): Substitute
62999         HAVE_UNSIGNED_LONG_LONG_INT.
63000         * modules/stdint (stdint.h): Likewise.
63001         (Files): Add m4/ulonglong.m4.
63002
63003 2006-10-10  Bruno Haible  <bruno@clisp.org>
63004
63005         Fix a gcc -Wshadow warning.
63006         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63007         to 'bucket'.
63008         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63009         gl_linked_indexof_from_to): Likewise.
63010         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63011         Likewise.
63012         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63013         Likewise.
63014         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63015         Reported by Eric Blake.
63016
63017 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63020         for NetBSD.  Problem reported by Bruno Haible.
63021
63022 2006-10-09  Jim Meyering  <jim@meyering.net>
63023
63024         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63025         Patch from Bruno Haible.
63026
63027 2006-10-09  Jim Meyering  <jim@meyering.net>
63028
63029         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63030         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63031         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63032
63033 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         Don't include <config.h> twice; this doesn't work in some cases,
63036         e.g., when config.h has "#define intmax_t long long int" and
63037         we include <config.h>, <inttypes.h>, <config.h> in that order.
63038         Problem reported by Matthew Woehlke in:
63039         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63040         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63041         * lib/fts-cycle.c: Don't include config.h.
63042         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63043         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63044         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63045         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63046         inttypes.h.
63047         * lib/xstrtoumax.c: Likewise.
63048         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63049         __strtol and the like, so that this module is more like its siblings.
63050         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63051         Remove; no longer needed now that we assume gnulib inttypes.h.
63052
63053 2006-10-08  Bruno Haible  <bruno@clisp.org>
63054
63055         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63056         option.
63057
63058 2006-10-07  Jim Meyering  <jim@meyering.net>
63059
63060         * modules/inttypes (inttypes.h): Revert what seems to have been
63061         an inadvertent part of today's change: use "|", not "/" in the
63062         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63063
63064 2006-10-07  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/sublist: New file.
63067
63068 2006-10-07  Bruno Haible  <bruno@clisp.org>
63069
63070         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63071         * modules/argz (argz.h): Likewise.
63072         * modules/arpa_inet (arpa/inet.h): Likewise.
63073         * modules/byteswap (byteswap.h): Likewise.
63074         * modules/configmake (configmake.h): Likewise.
63075         * modules/fcntl (fcntl.h): Likewise.
63076         * modules/fnmatch (fnmatch.h): Likewise.
63077         * modules/getopt (getopt.h): Likewise.
63078         * modules/glob (glob.h): Likewise.
63079         * modules/inttypes (inttypes.h): Likewise.
63080         * modules/netinet_in (netinet/in.h): Likewise.
63081         * modules/poll (poll.h): Likewise.
63082         * modules/stdbool (stdbool.h): Likewise.
63083         * modules/stdint (stdint.h): Likewise.
63084         * modules/sys_select (sys/select.h): Likewise.
63085         * modules/sys_socket (sys/socket.h): Likewise.
63086         * modules/sys_stat (sys/stat.h): Likewise.
63087         * modules/sysexits (sysexits.h): Likewise.
63088         * modules/unistd (unistd.h): Likewise.
63089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63090         Add a "DO NOT EDIT" comment to the generated file.
63091         (func_import): Likewise for gnulib-comp.m4.
63092
63093 2006-10-07  Bruno Haible  <bruno@clisp.org>
63094
63095         * lib/gl_sublist.h: New file.
63096         * lib/gl_sublist.c: New file.
63097
63098 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63101         name (relative to the original working directory) and the file
63102         name component (relative to the temporary working directory).  All
63103         callers changed.
63104         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63105         * lib/mkdir-p.c (make_dir_parents): Likewise.
63106         * lib/mkdir-p.h (make_dir_parents): Likewise.
63107
63108 2006-10-06  Eric Blake  <ebb9@byu.net>
63109
63110         Define several macros for use by the clean-temp module.
63111         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63114
63115         * lib/clean-temp.h (close_stream_temp): New declaration.
63116         * lib/clean-temp.c (includes): Pull in headers according to what
63117         other modules are in use.
63118         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63119
63120 2006-10-06  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63123         instead of fopen, fwriteerror.
63124
63125 2006-10-06  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63128         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63129         int.
63130         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63131         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63132         Return an error indicator.
63133         Suggested by Eric Blake.
63134
63135 2006-10-06  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63138         Reported by Eric Blake.
63139
63140 2006-10-06  Bruno Haible  <bruno@clisp.org>
63141
63142         * modules/closeout (Description): Mention stderr too.
63143
63144 2006-10-06  Bruno Haible  <bruno@clisp.org>
63145         and Paul Eggert  <eggert@cs.ucla.edu>
63146
63147         * lib/closeout.c (close_stdout): Also close stderr.
63148         * lib/closeout.h: Update comment.
63149
63150 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63154         * lib/dirchownmod.c: Include lchown.h.
63155         * lib/lchown.c: Don't include files that lchown.h now includes.
63156         Don't declare chown, since lchown.h now does that.
63157         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63158         (lchown): Define to rpl_chown if lchown is declared but
63159         does not exist.  Declare using a prototype if lchown is not
63160         declared.  Add a copyright notice.
63161         * lib/mkstemp.h: Include <unistd.h>.
63162         * lib/openat.c: Include lchown.h.
63163
63164         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63165         we now test for that separately.
63166         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63167         rather than O_NOFOLLOW, when testing whether it's possible to
63168         avoid a race condition reliably.
63169         * lib/savewd.c (savewd_chdir): Likewise.
63170
63171         Remove macros that are no longer needed now that stdint.h is
63172         reliable.
63173         * lib/fsusage.c (UINTMAX_MAX): Remove.
63174         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63175         * lib/utimecmp.c (SIZE_MAX): Remove.
63176
63177         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63178
63179         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63180         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63181         O_NOATIME works.
63182
63183 2006-10-05  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/gl_list.h (gl_sortedlist_search_from_to,
63186         gl_sortedlist_indexof_from_to): New declarations.
63187         (gl_list_implementation): New fields sortedlist_search_from_to,
63188         sortedlist_indexof_from_to.
63189         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63190         inline functions.
63191         * lib/gl_list.c (gl_sortedlist_search_from_to,
63192         gl_sortedlist_indexof_from_to): New functions.
63193         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63194         function.
63195         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63196         (gl_array_sortedlist_search_from_to): New function.
63197         (gl_array_list_implementation): Update.
63198         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63199         function.
63200         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63201         (gl_carray_sortedlist_search_from_to): New function.
63202         (gl_carray_list_implementation): Update.
63203         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63204         gl_linked_sortedlist_indexof_from_to): New functions.
63205         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63206         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63207         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63208         gl_tree_sortedlist_indexof_from_to): New functions.
63209         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63210         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63211         Update.
63212         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63213         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63214         Update.
63215
63216 2006-10-05  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63219         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63220         (struct gl_list_implementation): Add fields search_from_to,
63221         indexof_from_to. Remove fields search, indexof.
63222         (gl_list_search): Use the search_from_to method.
63223         (gl_list_search_from, gl_list_search_from_to): New functions.
63224         (gl_list_indexof): Use the indexof_from_to method.
63225         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63226         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63227         (gl_list_search_from, gl_list_search_from_to): New functions.
63228         (gl_list_indexof): Use the indexof_from_to method.
63229         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63230         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63231         gl_array_indexof. Add start_index, end_index arguments.
63232         (gl_array_search_from_to): Renamed from gl_array_search. Add
63233         start_index, end_index arguments.
63234         (gl_array_remove, gl_array_list_implementation): Update.
63235         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63236         gl_carray_indexof. Add start_index, end_index arguments.
63237         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63238         start_index, end_index arguments.
63239         (gl_carray_remove, gl_carray_list_implementation): Update.
63240         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63241         gl_linked_search. Add start_index, end_index arguments.
63242         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63243         start_index, end_index arguments.
63244         (gl_linked_remove): Update.
63245         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63246         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63247         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63248         field to 'size_t'.
63249         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63250         gl_tree_search. Add start_index, end_index arguments.
63251         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63252         start_index, end_index arguments.
63253         (gl_tree_remove): Update.
63254         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63255         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63256         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63257         function.
63258         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63259         gl_tree_search. Add start_index, end_index arguments.
63260         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63261         start_index, end_index arguments.
63262         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63263         Update.
63264         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63265
63266 2006-10-05  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63269
63270         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63271         fwriteerror_temp): New declarations.
63272         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63273         (descriptors): New variable.
63274         (cleanup): First, close the descriptors.
63275         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63276         fclose_temp, fwriteerror_temp): New functions.
63277
63278 2006-10-04  Jim Meyering  <jim@meyering.net>
63279
63280         * lib/fts.c (fts_open): Tiny comment change.
63281
63282 2006-10-04  Bruno Haible  <bruno@clisp.org>
63283
63284         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63285         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63286         gl_LOCK_BODY.
63287         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63288         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63289         gl_LOCK_EARLY_BODY.
63290         (gl_LOCK): Require gl_LOCK_BODY.
63291
63292 2006-10-04  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63295         (gl_oset_search_atleast): New declaration.
63296         (struct gl_oset_implementation): Add field 'search_atleast'.
63297         (gl_oset_search_atleast): New inline function.
63298         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63299         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63300         (gl_array_oset_implementation): Update.
63301         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63302         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63303         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63304
63305 2006-10-04  Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63308
63309 2006-10-03  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63312         from gl_avltreehash_list_implementation.
63313
63314 2006-10-03  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/gl_oset.c (gl_oset_add): Fix return type.
63317
63318 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63319
63320         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63321
63322 2006-10-02  Eric Blake  <ebb9@byu.net>
63323
63324         * modules/strnlen (Depends-on): Add extensions.
63325
63326 2006-10-02  Eric Blake  <ebb9@byu.net>
63327
63328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63329         definition in 2.60+.
63330
63331 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63332
63333         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63334         checks.
63335
63336 2006-10-02  Bruno Haible  <bruno@clisp.org>
63337
63338         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63339         to the AUTOMAKE_OPTIONS.
63340         Reported by Jim Meyering.
63341
63342 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         Work around bug in Solaris 10 /proc file system:
63345         /proc/self/fd/NNN/.. isn't the parent directory of
63346         the directory whose file descriptor is NNN.  This needs to
63347         be worked around at run time, not compile time, since a
63348         program might be built on Solaris 8, where things work, and
63349         run on Solaris 10.
63350         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63351         to use the following interface instead:
63352         (OPENAT_BUFFER_SIZE): New macro.
63353         (openat_proc_name): New function.
63354         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63355         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63356         Likewise.
63357         * lib/openat-proc.c: New file.
63358         * modules/openat (Files): Add lib/openat-proc.c.
63359         (Depends-on): Add same-inode, stdbool.
63360         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63361
63362 2006-09-29  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63365         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63366         argument. Set stdout_closed before testing for ferror, not after.
63367         (fwriteerror, fwriteerror_no_ebadf): New functions.
63368
63369 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63370
63371         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63372
63373 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63374
63375         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63376         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63377
63378 2006-09-28  Jim Meyering  <jim@meyering.net>
63379
63380         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63381         Include <unistd.h>.
63382
63383 2006-09-28  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63386         * modules/linkedhash-list (Depends-on): Likewise.
63387         * modules/rbtreehash-list (Depends-on): Likewise.
63388
63389 2006-09-28  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/strndup.h: Simplify the redefinition of strndup.
63392         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63394
63395 2006-09-28  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63398         * lib/gl_linkedhash_list.c: Likewise.
63399         * lib/gl_rbtreehash_list.c: Likewise.
63400
63401 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63404         getaddrinfo.
63405
63406         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63407         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63408         it causes <stdio_ext.h> to cause a compile-time error.
63409         Problem reported by Nelson H. F. Beebe.
63410         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63411         of HAVE_DECL___PENDING.
63412
63413         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63414         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63415         declaration.
63416
63417 2006-09-27  Jim Meyering  <jim@meyering.net>
63418
63419         This file could end up with a definition for a function
63420         named __strndup, rather than rpl_strndup on a system with
63421         incomplete weak_alias support.
63422         * lib/strndup.c (strndup): Rename from __strndup.
63423         Remove #defines that used to map __strndup to strndup.
63424         Don't use K&R prototypes.
63425         Remove LIBC-related code, since this file is not sync'd with glibc.
63426         * lib/strndup.h: Revamp, accordingly.
63427         * m4/strndup.m4: Modernize.
63428
63429 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * modules/savewd (Depends-on): Add 'raise'.
63432         * lib/savewd.c: Include <signal.h>, for 'raise'.
63433
63434 2006-09-26  Jim Meyering  <jim@meyering.net>
63435
63436         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63437         when we detect Darwin 8.7.0's acl_get_file bug.
63438         Rearrange to perform the new (below) run-test while $LIBS
63439         contains any acl-related library.  Set USE_ACL at the end.
63440         (gl_ACL_GET_FILE): New function.
63441
63442 2006-09-26  Eric Blake  <ebb9@byu.net>
63443
63444         * lib/verror.c: Include <config.h> unconditionally.
63445
63446 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * modules/clock-time (Maintainer): Add self.
63449         * modules/getlogin_r (Depends-on): Add extensions.
63450
63451 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63452
63453         * modules/clock-time: New module.
63454         * modules/nanosleep (Depends-on): Add clock-time.
63455         * modules/gethrxtime (Depends-on): Likewise.
63456         * modules/gettime (Depends-on): Likewise.
63457         * modules/settime (Depends-on): Likewise.
63458
63459         * modules/fts-lgpl: Depend on openat.
63460         * modules/mkancesdirs: Depend on savewd.
63461         * modules/mkdir-p: Likewise.
63462
63463 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63464
63465         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63466
63467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63468         `gl_have_arbitrary_file_name_length_limit' to
63469         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63470         actually works between configure runs.
63471
63472 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63473             Bruno Haible  <bruno@clisp.org>
63474
63475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63476
63477 2006-09-25  Jim Meyering  <jim@meyering.net>
63478
63479         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63480         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63481
63482 2006-09-25  Eric Blake  <ebb9@byu.net>
63483
63484         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63485         exec's in 2006-09-18 patch when shuffling fds.
63486
63487 2006-09-25  Bruno Haible  <bruno@clisp.org>
63488
63489         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63490         Reported by Jim Meyering.
63491
63492 2006-09-24  Jim Meyering  <jim@meyering.net>
63493
63494         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63495         compare a pointer against a literal "0".  That caused failures with
63496         at least HP-UX's hpcc.
63497
63498 2006-09-22  Simon Josefsson  <jas@extundo.com>
63499
63500         * modules/gc-sha1:
63501         * modules/gc-md4:
63502         * modules/gc-hmac-sha1:
63503         * modules/gc-hmac-md5:
63504         * modules/gc-des:
63505         * modules/gc-arcfour: Distribute more files.
63506
63507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63508
63509         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63510         (gl_linked_iterator_from_to): Initialize struct completely.
63511         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63512         (gl_tree_iterator_from_to): Likewise
63513         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63514         * lib/gl_array_list.c [lint] (gl_array_iterator)
63515         (gl_array_iterator_from_to): Likewise.
63516         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63517         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63518         (gl_carray_iterator_from_to): Likewise.
63519
63520         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63521         * lib/md4.c (md4_process_block): Remove unused variable.
63522         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63523         parentheses for clarity.
63524
63525 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63526
63527         * modules/bison-i18n (Depends-on): Add gettext.
63528
63529 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63530
63531         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63532         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63533         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63534         also add missing comma that caused broken test.
63535         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63536         stdlib.h, for `abort'.
63537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63538         variables.
63539         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63540         include unistd.h if present, for `rmdir'.
63541         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63542         variables.
63543         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63544         in the process include standard headers for prototypes.
63545         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63546         gets declared on GNU/Linux.
63547         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63548         unistd.h, for `rmdir'.
63549         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63550
63551         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63552         always true.
63553         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63554
63555         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63556
63557 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63558
63559         * gnulib-tool (func_version): Create output all at once.  This
63560         may help avoid triggering unnecessary SIGPIPEs, and at any
63561         rate it doesn't hurt.
63562
63563 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63564             Bruno Haible  <bruno@clisp.org>
63565
63566         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63567         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63568         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63569
63570         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63571         (gl_FUNC_VASPRINTF): Invoke it.
63572
63573 2006-09-22  Bruno Haible  <bruno@clisp.org>
63574
63575         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63576         getloadavg.c as first argument.
63577
63578 2006-09-22  Bruno Haible  <bruno@clisp.org>
63579
63580         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63581         at the beginning of the gl_INIT macro.
63582         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63583         gl_GETLOADAVG.
63584
63585 2006-09-22  Bruno Haible  <bruno@clisp.org>
63586
63587         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63588         module.
63589         Suggested by Ralf Wildenhues.
63590
63591 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         Import this patch from libc:
63594
63595         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63596
63597         * lib/regex_internal.c (re_string_reconstruct): Handle
63598         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63599         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63600         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63601         re_string_context_at.
63602
63603         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63604         now requires it.
63605         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63606         gl_REGEX now does it for us.
63607         (gl_REGEX): Add test taken from
63608         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63609
63610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63611         Check that large offsets work.  Modernize Autoconf usages.
63612         Prefer "yes" to mean a good thing rather than a bad.
63613         Don't put "#define mkstemp" in config.h, as this might interfere
63614         with standard system headers that "#define mkstemp mkstemp64".
63615
63616         * modules/mkstemp (Depends-on): Add extensions, so that
63617         mkstemp is visible on some platforms.
63618         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63619         (Include): Change to "mkstemp.h" from <stdlib.h>.
63620         (Files): Add mkstemp.h.
63621
63622         * lib/mkstemp.h: New file, since some standard headers
63623         #define mkstemp.
63624         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63625         Include "mkstemp.h".
63626         Make the _LIBC code resemble glibc original more,
63627         e.g., use K&R style.
63628         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63629         (mkstemp): Remove, since mkstemp.h does this for us.
63630         * lib/stdlib--.h: Include mkstemp.h.
63631
63632         Import this patch from libc:
63633
63634         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63635
63636         * lib/tempname.c (__gen_tempname): Change attempts_min
63637         into a macro.  Use preprocessor to decide how to initialize
63638         attempts [Coverity CID 67].
63639
63640 2006-09-20  Bruno Haible  <bruno@clisp.org>
63641
63642         * lib/mkdtemp.c: Import from libc.
63643         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63644                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63645                 attempts_min into a macro.  Use preprocessor to decide how to
63646                 initialize attempts [Coverity CID 67].
63647         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63648                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63649                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63650
63651 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63652
63653         * gnulib-tool (func_exit): New function, to allow to pass the
63654         exit status portably through the trap.  Use everywhere.
63655         (--help, --version): Signal a write error.
63656         (trap): catch SIGPIPE, for write errors.
63657         Exit at the end of the trap, with the correct exit status.
63658
63659 2006-09-19  Karl Berry  <karl@gnu.org>
63660
63661         * doc/gnulib.texi: note about the license texinfo files.
63662
63663 2006-09-19  Eric Blake  <ebb9@byu.net>
63664
63665         * gnulib-tool: Avoid space-tab.
63666
63667 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63668
63669         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63670         that prevented coreutils 6.1 from building.  Problem reported
63671         by Petter Reinholdtsen.
63672
63673 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         * gnulib-tool (avoidlist): Fix typo that broke options like
63676         --avoid=lock that are used by coreutils bootstrap.
63677
63678 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63679
63680         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63681         more systematically.
63682
63683 2006-09-18  Jim Meyering  <jim@meyering.net>
63684
63685         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63686
63687 2006-09-18  Bruno Haible  <bruno@clisp.org>
63688
63689         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63690
63691 2006-09-18  Bruno Haible  <bruno@clisp.org>
63692
63693         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63694         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63695         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63696         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63697         * m4/gettext.m4: Require autoconf >= 2.52.
63698         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63699         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63700         of gl_cv_header_inttypes_h.
63701
63702 2006-09-18  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/javaversion.c: Include configmake.h.
63705
63706 2006-09-18  Bruno Haible  <bruno@clisp.org>
63707
63708         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63709         avoid that the while loops be executed in a subshell.
63710
63711 2006-09-18  Bruno Haible  <bruno@clisp.org>
63712
63713         * MODULES.html.sh (func_module): Break long lines.
63714         Suggested by Bruce Korb <bkorb@gnu.org>.
63715
63716 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63717
63718         Speed up by a factor of 1.12.
63719         * gnulib-tool (nl): New variable.
63720         (func_import): Rewrite include directive extraction to only read each
63721         directive once.
63722
63723 2006-09-17  Bruno Haible  <bruno@clisp.org>
63724
63725         * modules/javaversion (Makefile.am): Remove DEFS setting.
63726         (Depends-on): Add configmake, for PKGDATADIR definition.
63727
63728 2006-09-17  Bruno Haible  <bruno@clisp.org>
63729
63730         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63731
63732 2006-09-17  Bruno Haible  <bruno@clisp.org>
63733
63734         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63735         (func_modules_transitive_closure, func_modules_add_dummy,
63736         func_modules_to_filelist, func_import, func_create_testdir,
63737         func_create_megatestdir, ...): Use it wherever possible.
63738         Suggested by Ralf Wildenhues.
63739
63740 2006-09-16  Karl Berry  <karl@gnu.org>
63741
63742         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63743         to avoid sectioning errors.
63744         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63745         [ifinfo]: blank line after @center-ed titles.
63746         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63747         Spell FSF address consistently with others.
63748         (These changes approved by rms.)
63749
63750 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63751
63752         Speed up by a factor of 1.61.
63753         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63754         already checked module names again.
63755
63756 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63757
63758         Speed up by a factor of 1.13.
63759         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63760         for new_files, and the input to func_add_or_update.
63761
63762 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63763
63764         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63765         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63766
63767 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63768
63769         * modules/mkancesdirs (Depends-on): Add fcntl.
63770         * modules/savewd: New file.
63771         * MODULES.html.sh (File system functions): Add savewd.
63772
63773         * modules/configmake (Makefile.am): Add support for the
63774         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63775
63776 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         * m4/savewd.m4: New file.
63779
63780 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63783         (dirchownmod): New arg FD.  All callers changed.
63784         Use FD rather than opening the directory ourself, as opening is
63785         now the caller's responsibility.
63786         * lib/dirchownmod.h: Likewise.
63787         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63788         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63789         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63790         (test_dir): Remove.
63791         (mkancesdirs): Return length of prefix of FILE that has already
63792         been made, or -2 if there is a child doing the work.  Redo
63793         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63794         ".", and treat ".." specially since it might stray back into
63795         already-created areas.  Use a subprocess if necessary.  New arg
63796         WD; all users changed.  MAKE_DIR function should now return 1
63797         if it creates a directory that is not readable.  Return -2 if
63798         a child process is spun off.
63799         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63800         Adjust signature to match code.
63801         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63802         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63803         all users changed.
63804         * lib/savewd.c, lib/savewd.h: New files.
63805
63806 2006-09-15  Jim Meyering  <jim@meyering.net>
63807
63808         * modules/rename-dest-slash: New module.
63809         * MODULES.html.sh (posix_compat): Add it here.
63810
63811         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63812
63813 2006-09-15  Jim Meyering  <jim@meyering.net>
63814
63815         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63816         file.
63817
63818         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63819
63820 2006-09-15  Jim Meyering  <jim@meyering.net>
63821
63822         * lib/rename-dest-slash.c (has_trailing_slash): Use
63823         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63824         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63825         test before testing whether SRC is a directory.
63826         Suggestions from Bruno Haible.
63827
63828         Avoid a warning about an unused variable.
63829         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63830         into the #ifdef block where it's used.
63831
63832         * lib/rename-dest-slash.c: New file.
63833
63834 2006-09-14  Bruno Haible  <bruno@clisp.org>
63835
63836         * lib/allocsa.c: Include <config.h> unconditionally.
63837         * lib/asnprintf.c: Likewise.
63838         * lib/asprintf.c: Likewise.
63839         * lib/c-strcasecmp.c: Likewise.
63840         * lib/c-strcasestr.c: Likewise.
63841         * lib/c-strncasecmp.c: Likewise.
63842         * lib/c-strstr.c: Likewise.
63843         * lib/classpath.c: Likewise.
63844         * lib/clean-temp.c: Likewise.
63845         * lib/concatpath.c: Likewise.
63846         * lib/copy-file.c: Likewise.
63847         * lib/csharpcomp.c: Likewise.
63848         * lib/csharpexec.c: Likewise.
63849         * lib/execute.c: Likewise.
63850         * lib/fatal-signal.c: Likewise.
63851         * lib/findprog.c: Likewise.
63852         * lib/fwriteerror.c: Likewise.
63853         * lib/gl_array_list.c: Likewise.
63854         * lib/gl_array_oset.c: Likewise.
63855         * lib/gl_avltree_list.c: Likewise.
63856         * lib/gl_avltree_oset.c: Likewise.
63857         * lib/gl_avltreehash_list.c: Likewise.
63858         * lib/gl_carray_list.c: Likewise.
63859         * lib/gl_linked_list.c: Likewise.
63860         * lib/gl_linkedhash_list.c: Likewise.
63861         * lib/gl_list.c: Likewise.
63862         * lib/gl_oset.c: Likewise.
63863         * lib/gl_rbtree_list.c: Likewise.
63864         * lib/gl_rbtree_oset.c: Likewise.
63865         * lib/gl_rbtreehash_list.c: Likewise.
63866         * lib/imaxabs.c: Likewise.
63867         * lib/imaxdiv.c: Likewise.
63868         * lib/javacomp.c: Likewise.
63869         * lib/javaexec.c: Likewise.
63870         * lib/javaversion.c: Likewise.
63871         * lib/linebreak.c: Likewise.
63872         * lib/localcharset.c: Likewise.
63873         * lib/lock.c: Likewise.
63874         * lib/mbchar.c: Likewise.
63875         * lib/mbswidth.c: Likewise.
63876         * lib/mkdtemp.c: Likewise.
63877         * lib/pipe.c: Likewise.
63878         * lib/printf-args.c: Likewise.
63879         * lib/printf-parse.c: Likewise.
63880         * lib/progname.c: Likewise.
63881         * lib/progreloc.c: Likewise.
63882         * lib/readlink.c: Likewise.
63883         * lib/sh-quote.c: Likewise.
63884         * lib/stpcpy.c: Likewise.
63885         * lib/stpncpy.c: Likewise.
63886         * lib/strcasecmp.c: Likewise.
63887         * lib/strcasestr.c: Likewise.
63888         * lib/strcspn.c: Likewise.
63889         * lib/striconv.c: Likewise.
63890         * lib/strncasecmp.c: Likewise.
63891         * lib/strnlen1.c: Likewise.
63892         * lib/strstr.c: Likewise.
63893         * lib/strtok_r.c: Likewise.
63894         * lib/tls.c: Likewise.
63895         * lib/tmpdir.c: Likewise.
63896         * lib/unicodeio.c: Likewise.
63897         * lib/unsetenv.c: Likewise.
63898         * lib/vasnprintf.c: Likewise.
63899         * lib/vasprintf.c: Likewise.
63900         * lib/wait-process.c: Likewise.
63901         * lib/xallocsa.c: Likewise.
63902         * lib/xsetenv.c: Likewise.
63903         * lib/xstriconv.c: Likewise.
63904
63905 2006-09-13  Simon Josefsson  <jas@extundo.com>
63906
63907         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63908         that internally, suggested by Ralf Wildenhues
63909         <Ralf.Wildenhues@gmx.de>.
63910
63911 2006-09-13  Simon Josefsson  <jas@extundo.com>
63912
63913         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63914         @LIBOBJS@.
63915         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63916
63917 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63920         longer worry about uses that don't define HAVE_CONFIG_H.
63921         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63922         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63923         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63924         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63925         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63926         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63927         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63928         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63929         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63930         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63931         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63932         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63933         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63934         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63935         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63936         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63937         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63938         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63939         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63940         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63941         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63942         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63943         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63944         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63945         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63946         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63947         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63948         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63949         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63950         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63951         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63952         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63953         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63954         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63955         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63956         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63957         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63958         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63959         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63960         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63961         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63962         Likewise.
63963
63964 2006-09-13  Eric Blake  <ebb9@byu.net>
63965
63966         * lib/getopt.c: Fix typo in last commit.
63967
63968 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63969
63970         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63971         dgettext.
63972
63973 2006-09-12  Jim Meyering  <jim@meyering.net>
63974
63975         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63976         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63977         Reported by Nelson H. F. Beebe.
63978
63979 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63980
63981         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63982         program_invocation_name and program_invocation_short_name are
63983         initialized.
63984         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63985         and program_invocation_short_name to argp.h, so they are visible
63986         to user programs.
63987         * lib/argp.h: Likewise
63988
63989 2006-09-10  Bruno Haible  <bruno@clisp.org>
63990
63991         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63992         m4/inttypes_h.m4, m4/uintmax_t.m4.
63993
63994 2006-09-10  Bruno Haible  <bruno@clisp.org>
63995
63996         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63997         gl_AC_TYPE_UINTMAX_T.
63998
63999 2006-09-10  Bruno Haible  <bruno@clisp.org>
64000
64001         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64002
64003 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64004
64005         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64006         convention.  Text proposed by Bruno Haible.
64007         (struct argp_option): Document the use of N_() wrappers.
64008
64009         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64010         '\v', and translate the two parts separately, instead of feeding
64011         the whole string to gettext.  This allows to exclude
64012         '\v' from the strings visible to the translator by writing doc
64013         strings as N_("..") "\v" N_("..").
64014
64015 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64016
64017         * config/srclist.txt: Undo latest change; the bug was fixed.
64018
64019 2006-09-09  Bruno Haible  <bruno@clisp.org>
64020
64021         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64022         assignments if building a library without libtool.
64023         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64024         in func_emit_lib_Makefile_am.
64025         (func_import): When building a static library libfoo.a, arrange to
64026         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64027         (func_create_testdir): Likewise.
64028         * modules/gc (configure.ac, Makefile.am): If building statically,
64029         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64030         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64031         * modules/striconv (configure.ac, Makefile.am): Likewise.
64032         Based on a suggestion by Ralf Wildenhues.
64033
64034 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64037         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64038         Also:
64039
64040         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64041         Add year_2050_test to catch glibc bug 2821
64042         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64043
64044         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64045         Prefer #ifdef to #if.
64046
64047         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64048         Return from 'main' instead of calling 'exit'.
64049
64050 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64053         returned the maximum time_t value rather than (time_t) -1.
64054         Problem originally reported by William Bardwell
64055         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64056
64057         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64058         Moved to here ...
64059         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64060         ... from here.
64061
64062 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64065         2821 is fixed.
64066
64067 2006-09-08  Jim Meyering  <jim@meyering.net>
64068
64069         Don't make generated files read-only.  That would bother too many
64070         people.  However, do retain the ability to work when targets are
64071         read-only: remove the destination and temporary files before writing
64072         them (when generated via sed or echo), or by using the -f option for
64073         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64074         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64075         * modules/byteswap, modules/configmake, modules/fcntl:
64076         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64077         * modules/localcharset, modules/netinet_in, modules/poll:
64078         * modules/stdbool, modules/stdint, modules/sys_select:
64079         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64080
64081 2006-09-08  Jim Meyering  <jim@meyering.net>
64082
64083         Avoid new build failure on FreeBSD 6.0.
64084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64085         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64086         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64087
64088 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64089
64090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64091
64092 2006-09-07  Jim Meyering  <jim@meyering.net>
64093
64094         Fix global typo in last change: use chmod u-w, not chmod u-x.
64095         Spotted by Paul Eggert and Bruce Korb.
64096         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64097         * modules/byteswap, modules/configmake, modules/fcntl:
64098         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64099         * modules/localcharset, modules/netinet_in, modules/poll:
64100         * modules/stdbool, modules/stdint, modules/sys_select:
64101         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64102
64103 2006-09-06  Jim Meyering  <jim@meyering.net>
64104
64105         Make generated files be read-only.
64106         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64107         Ensure that each generated file is now read-only.
64108         * modules/argz: Likewise.
64109         * modules/arpa_inet: Likewise.
64110         * modules/byteswap: Likewise.
64111         * modules/configmake: Likewise.
64112         * modules/fcntl: Likewise.
64113         * modules/fnmatch: Likewise.
64114         * modules/getopt: Likewise.
64115         * modules/glob: Likewise.
64116         * modules/inttypes: Likewise.
64117         * modules/netinet_in: Likewise.
64118         * modules/poll: Likewise.
64119         * modules/stdbool: Likewise.
64120         * modules/stdint: Likewise.
64121         * modules/sys_select: Likewise.
64122         * modules/sys_socket: Likewise.
64123         * modules/sys_stat: Likewise.
64124         * modules/sysexits: Likewise.
64125         * modules/localcharset: Same as above, but continue using temporary
64126         file named "t-$@" (why different?) rather than the "$@-t" used
64127         everywhere else.
64128
64129         * modules/sysexits (Makefile.am): Replace literal occurrences
64130         of "sysexit.h" more readable, and more consistent, "$@".
64131
64132 2006-09-06  Bruno Haible  <bruno@clisp.org>
64133
64134         * modules/striconv: New file.
64135         * modules/xstriconv: New file.
64136         * MODULES.html.sh (Internationalization functions): Add striconv,
64137         xstriconv.
64138
64139 2006-09-06  Bruno Haible  <bruno@clisp.org>
64140
64141         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64142         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64143         not using libtool correctly.
64144
64145 2006-09-06  Bruno Haible  <bruno@clisp.org>
64146
64147         * lib/striconv.h: New file.
64148         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64149         iconvstring.c.
64150         * lib/xstriconv.h: New file.
64151         * lib/xstriconv.c: New file.
64152
64153 2006-09-06  Bruno Haible  <bruno@clisp.org>
64154
64155         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64156         lib_..._LDFLAGS.
64157
64158 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64159
64160         * lib/argz_.h: Sync from Libtool.
64161
64162         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64163                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64164
64165         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64166
64167 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64168
64169         * modules/trim: New file.
64170
64171 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64172
64173         * lib/trim.h: New file.
64174         * lib/trim.c: New file.
64175
64176 2006-09-05  Bruno Haible  <bruno@clisp.org>
64177
64178         * MODULES.html.sh (String handling): Add trim.
64179
64180 2006-09-04  Karl Berry  <karl@gnu.org>
64181
64182         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64183         until next release.
64184
64185 2006-09-03  Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64188         correctly.
64189
64190 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64193         not gl_GETLOADAVG.  Omit unneeded semicolons.
64194         Problems reported by Ralf Wildenhues in
64195         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64196         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64197         at the end, which is the usual gnulib style.
64198
64199         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64200         of doing all the work ourselves.
64201         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64202         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64203
64204 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64207         Problem reported by Ralf Wildenhues in
64208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64209
64210         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64211         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64212
64213 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64214
64215         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64216         yesterday's patch by changing test -n to test -z.
64217
64218 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64221         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64222         the former is now obsolescent.
64223
64224         * modules/chdir-long (Depends-on): Add fcntl.
64225
64226 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64229         obsolescent, and programs should use gnulib instead.
64230         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64231         but with prefixes changed.
64232
64233 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64236         or stdbool.h, because they might not exist while configuring.
64237
64238         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64239         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64240         does that for us.
64241         (O_DIRECTORY): Remove.
64242
64243 2006-08-31  Eric Blake  <ebb9@byu.net>
64244
64245         * gnulib-tool: Don't let emacs change spaces to TAB.
64246
64247 2006-08-31  Bruno Haible  <bruno@clisp.org>
64248
64249         * gnulib-tool: When calling func_import more than once, do it in a
64250         subshell.
64251         Reported by Eric Blake <ebb9@byu.net>.
64252
64253 2006-08-31  Bruno Haible  <bruno@clisp.org>
64254
64255         * gnulib-tool (nl): Remove variable.
64256         (sed_transform_lib_file): Use more robust test for config-h module.
64257         (func_import): Fix typo in 2006-08-25 patch.
64258
64259 2006-08-31  Bruno Haible  <bruno@clisp.org>
64260
64261         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64262         specified, augment Makefile.am variables instead of assigning them.
64263
64264 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         Work around a bug in both the Linux and SunOS 64-bit kernels:
64267         nanosleep mishandles sleeps for longer than 2**31 seconds.
64268         Problem reported by Frank v Waveren in
64269         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64271         Check for nanosleep bug.
64272         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64273
64274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         Work around a bug in both the Linux and SunOS 64-bit kernels:
64277         nanosleep mishandles sleeps for longer than 2**31 seconds.
64278         Problem reported by Frank v Waveren in
64279         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64280         * lib/nanosleep.c (BILLION): New constant.
64281         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64282         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64283         implementation.
64284
64285 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         * modules/nanosleep (Depends-on): Add gettime.
64288
64289 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64290         and Simon Josefsson  <jas@extundo.com>
64291         and Oskar Liljeblad  <oskar@osk.mine.nu>
64292
64293         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64294         * gnulib-tool (func_import): New license type 'unmodifiable license
64295         text'.
64296         * modules/fdl: Use it.  Longer description.
64297         * module/gpl, module/lgpl: New files.
64298
64299 2006-08-30  Jim Meyering  <jim@meyering.net>
64300
64301         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64302         shadowing the parameter.
64303
64304 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64305
64306         Sync from Libtool:
64307
64308         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64309
64310         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64311         sharing with gnulib.  Report by Eric Blake.
64312
64313 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * modules/isapipe: New file.
64316         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64317
64318 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * modules/configmake (Makefile.am): Add a comment, and omit
64321         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64322         by Bruno Haible.
64323
64324 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * m4/isapipe.m4: New file.
64327
64328 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * lib/isapipe.c, lib/isapipe.h: New files.
64331
64332 2006-08-29  Jim Meyering  <jim@meyering.net>
64333
64334         * modules/configmake (Makefile.am): Make configmake.h depend on
64335         Makefile.  Otherwise, a stale configmake.h could hang around.
64336
64337 2006-08-29  Eric Blake  <ebb9@byu.net>
64338
64339         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64340         resolution of upstream bug 3044.
64341
64342 2006-08-29  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/localcharset (Depends-on): Add configmake.
64345         (Makefile.am): Remove setting of LIBDIR through DEFS.
64346
64347 2006-08-29  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64350         defined.
64351
64352 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64353
64354         * modules/fcntl: New file.
64355         * modules/chdir-safer (Depends-on): Add fcntl.
64356         * modules/fts: Likewise.
64357         * modules/mkdir-p: Likewise.
64358
64359         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64360         This undoes the most recent change, since we're now addressing the
64361         problem in a different way.
64362
64363         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64364         into output, since the output might be called Makefile.am even
64365         if $makefile_name is something different.
64366         (func_import): Use $makefile_am rather than
64367         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64368         empty.
64369
64370         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64371
64372 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64375         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64376         recent change to stdint.m4, since we're now addressing the problem in a
64377         different way.
64378
64379 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * m4/fcntl_h.m4: New file.
64382
64383 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         * lib/fcntl_.h: New file.
64386         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64387         the fcntl module.
64388         * lib/dirchownmod.c: Likewise.
64389         * lib/fts.c: Likewise.
64390
64391         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64392         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64393         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64394         just before including <inttypes.h>, to avoid circular inclusion.
64395
64396 2006-08-28  Jim Meyering  <jim@meyering.net>
64397
64398         * doc/visibility.texi: Actually read and correct the grammar of the
64399         sentence affected by yesterday's change.
64400
64401 2006-08-28  Eric Blake  <ebb9@byu.net>
64402
64403         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64404         needs wrapper.
64405
64406 2006-08-28  Eric Blake  <ebb9@byu.net>
64407
64408         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64409
64410 2006-08-28  Eric Blake  <ebb9@byu.net>
64411
64412         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64413
64414 2006-08-28  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/c-strstr: New file, from GNU gettext.
64417         * MODULES.html.sh (String handling): Add c-strstr.
64418
64419 2006-08-28  Bruno Haible  <bruno@clisp.org>
64420
64421         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64422         macros.
64423         Reported by Eric Blake.
64424
64425 2006-08-28  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64428         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64429         * lib/vasprintf.c: Include errno.h, limits.h.
64430         (EOVERFLOW): New fallback definition.
64431         (vasprintf): Test here whether the string length is > INT_MAX.
64432         * lib/vsnprintf.c: Include errno.h, limits.h.
64433         (EOVERFLOW): New fallback definition.
64434         (vsnprintf): Fix bug when generated string was too long for the buffer.
64435         Test here whether the string length is > INT_MAX.
64436
64437 2006-08-28  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/inttypes_.h (SCNX*): Remove definitions.
64440         Reported by Eric Blake.
64441
64442 2006-08-28  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/c-strstr.h: New file, from GNU gettext.
64445         * lib/c-strstr.c: New file, from GNU gettext.
64446
64447 2006-08-28  Bruno Haible  <bruno@clisp.org>
64448
64449         * gnulib-tool: Reorder some statements.
64450
64451 2006-08-28  Bruno Haible  <bruno@clisp.org>
64452
64453         * gnulib-tool: New option --makefile-name.
64454         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64455         $makefile_name.
64456         (func_import): Write $makefile_name to the cache file, and read it from
64457         there unless explicitly specified. Use $makefile_name as file name
64458         instead of Makefile.am. Adjust the recommendations accordingly.
64459
64460 2006-08-28  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_verify_module): Check against misapplying patch.
64463
64464 2006-08-28  Bruno Haible  <bruno@clisp.org>
64465
64466         * gnulib-tool (func_relativize, func_relconcat): New functions.
64467         Give an error if --local-dir is given with --update.
64468         Remove trailing slashes from $local_gnulib_dir.
64469         (func_import): Store the relativized $local_gnulib_dir in
64470         gnulib-cache.m4, and read it from there if not specified explicitly.
64471
64472 2006-08-28  Bruno Haible  <bruno@clisp.org>
64473
64474         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64475         is the current directory. Respect also $local_gnulib_dir.
64476
64477 2006-08-28  Bruno Haible  <bruno@clisp.org>
64478             Simon Josefsson  <jas@extundo.com>
64479
64480         BeOS portability.
64481         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64482
64483 2006-08-27  Jim Meyering  <jim@meyering.net>
64484
64485         * doc/visibility.texi: Remove duplicate word: "pointer".
64486
64487 2006-08-26  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64490         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64491         (Makefile.am): Create inttypes.h from inttypes_.h.
64492         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64493
64494         * modules/imaxabs: New file.
64495
64496         * modules/imaxdiv: New file.
64497
64498 2006-08-26  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/inttypes.m4: New file.
64501         * m4/_inttypes_h.m4: Remove file.
64502         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64503         PRI_MACROS_BROKEN.
64504         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64505
64506         * m4/imaxabs.m4: New file.
64507
64508         * m4/imaxdiv.m4: New file.
64509
64510 2006-08-26  Bruno Haible  <bruno@clisp.org>
64511
64512         * lib/inttypes_.h: New file.
64513         * lib/inttypes.h: Remove file.
64514         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64515
64516         * lib/imaxabs.c: New file.
64517
64518         * lib/imaxdiv.c: New file.
64519
64520 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         New config-h module, so that "make" output needn't be cluttered
64523         by -DHAVE_CONFIG_H.
64524         * MODULES.html.sh (Support for building libraries and executables):
64525         Add config-h.
64526         * modules/config-h: New file.
64527         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64528         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64529         the config-h module is used.
64530
64531         New configmake module, so that "make" output needn't be cluttered
64532         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64533         * MODULES.html.sh (Support for building libraries and executables):
64534         Add configmake.
64535         * modules/configmake: New file.
64536
64537 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * m4/config-h.m4: New file.
64540
64541 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * config/srclist.txt: Add elisp-comp.
64544
64545 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         * MODULES.html.sh (Support for building libraries and executables):
64548         Add elisp-comp.
64549         * build-aux/elisp-comp: New file.
64550         * modules/elisp-comp: New file.
64551
64552 2006-08-24  Bruno Haible  <bruno@clisp.org>
64553
64554         * gnulib-tool (func_create_testdir): Use non-default values of
64555         sourcebase and m4base.
64556
64557 2006-08-24  Bruno Haible  <bruno@clisp.org>
64558
64559         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64560         HTML structure.
64561
64562 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * modules/openat (Depends-on): Add lchown.
64565
64566 2006-08-23  Bruno Haible  <bruno@clisp.org>
64567
64568         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64569         of gl_LOCK_EARLY instead of gl_LOCK.
64570
64571 2006-08-23  Bruno Haible  <bruno@clisp.org>
64572
64573         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64574         on OSF/1 to no.
64575         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64576
64577 2006-08-23  Bruno Haible  <bruno@clisp.org>
64578
64579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64580         as unusable.
64581
64582         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64583         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64584         (gl_LOCK): New macro.
64585
64586 2006-08-22  Simon Josefsson  <jas@extundo.com>
64587
64588         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64589         to md5 module.
64590
64591 2006-08-22  Simon Josefsson  <jas@extundo.com>
64592
64593         * MODULES.html.sh: Add "Support for maintaining and release
64594         projects".
64595
64596         * build-aux/gnupload: New file, from coreutils.
64597
64598 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         Avoid the need for AC_LIBSOURCES in m4 macros.
64601         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64602         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64603         * modules/check-version (EXTRA_DIST): Add check-version.h.
64604         * modules/crc (EXTRA_DIST): Add crc.h.
64605         * modules/des (EXTRA_DIST): Add des.h.
64606         * modules/gc (EXTRA_DIST): Add gc.h.
64607         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64608         * modules/getline (EXTRA_DIST): Add getline.h.
64609         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64610         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64611         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64612         * modules/md2 (EXTRA_DIST): Add md2.h.
64613         * modules/md4 (EXTRA_DIST): Add md4.h.
64614         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64615         * modules/read-file (EXTRA_DIST): Add read-file.h.
64616         * modules/readline (EXTRA_DIST): Add readline.h.
64617         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64618         rijndael-api-fst.h.
64619
64620 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * m4/rijndael.m4 (gl_ARCFOUR):
64623         * m4/arctwo.m4 (gl_ARCTWO):
64624         * m4/check-version.m4 (gl_CHECK_VERSION):
64625         * m4/crc.m4 (gl_CRC):
64626         * m4/des.m4 (gl_DES):
64627         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64628         * m4/gc.m4 (gl_GC):
64629         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64630         * m4/getline.m4 (gl_FUNC_GETLINE):
64631         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64632         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64633         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64634         * m4/md2.m4 (gl_MD2):
64635         * m4/md4.m4 (gl_MD4):
64636         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64637         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64638         * m4/readline.m4 (gl_FUNC_READLINE):
64639         * m4/rijndael.m4 (gl_RIJNDAEL):
64640         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64641         to get the necessary .h files and whatnot.
64642
64643 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64646         gnulib rather than the other way around.
64647         * config/srclistvars.sh (COREUTILS): Remove.
64648
64649 2006-08-22  Jim Meyering  <jim@meyering.net>
64650
64651         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64652
64653         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64654
64655 2006-08-22  Eric Blake  <ebb9@byu.net>
64656
64657         * modules/regexprops-generic: New file.
64658         * MODULES.html.sh (Support for building documentation): List it.
64659
64660 2006-08-22  Eric Blake  <ebb9@byu.net>
64661
64662         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64663         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64664         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64665         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64666
64667 2006-08-22  Bruno Haible  <bruno@clisp.org>
64668
64669         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64670         and lib_LTLIBRARIES like the other lib_* variables.
64671
64672 2006-08-22  Bruno Haible  <bruno@clisp.org>
64673
64674         * build-aux/x-to-1.in: New file, from GNU gettext.
64675
64676 2006-08-22  Bruno Haible  <bruno@clisp.org>
64677
64678         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64679         <utmpx.h> exists.
64680
64681 2006-08-22  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64684         <utmpx.h> exists.
64685
64686 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64687
64688         BeOS portability.
64689         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64690         exist.
64691         Problem reported by Bruno Haible.
64692
64693 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64694
64695         Avoid the need for AC_LIBSOURCES in m4 macros.
64696         * modules/acl (EXTRA_DIST): Add acl.h.
64697         * modules/argmatch (Files): Add m4/argmatch.m4.
64698         (configure.ac): Add gl_ARGMATCH.
64699         (EXTRA_DIST): Renamed from lib_SOURCES, for
64700         consistency with the other modules.  Remove argmatch.c.
64701         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64702         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64703         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64704         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64705         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64706         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64707         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64708         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64709         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64710         * modules/closeout (EXTRA_DIST): Add closeout.h.
64711         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64712         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64713         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64714         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64715         dirname.h; remove basename.c and stripslash.c.
64716         * modules/exclude (EXTRA_DIST): Add exclude.h.
64717         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64718         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64719         * modules/file-type (EXTRA_DIST): Add file-type.h.
64720         * modules/filemode (EXTRA_DIST): Add filemode.h.
64721         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64722         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64723         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64724         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64725         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64726         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64727         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64728         * modules/getdate (EXTRA_DIST): Add getdate.c.
64729         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64730         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64731         * modules/getpass (EXTRA_DIST): Add getpass.h.
64732         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64733         * modules/group-member (EXTRA_DIST): Add group-member.h.
64734         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64735         * modules/hash (EXTRA_DIST): Add hash.h.
64736         * modules/human (EXTRA_DIST): Add human.h.
64737         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64738         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64739         * modules/lchown (EXTRA_DIST): Add lchown.h.
64740         * modules/long-options (EXTRA_DIST): Add long-options.h.
64741         * modules/lstat (EXTRA_DIST): Add lstat.h.
64742         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64743         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64744         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64745         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64746         * modules/memxor (EXTRA_DIST): Add memxor.h.
64747         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64748         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64749         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64750         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64751         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64752         * modules/physmem (EXTRA_DIST): Add physmem.h.
64753         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64754         * modules/posixver (EXTRA_DIST): Add posixver.h.
64755         * modules/quote (EXTRA_DIST): Add quote.h.
64756         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64757         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64758         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64759         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64760         regex_internal.h regexec.c.
64761         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64762         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64763         * modules/same (EXTRA_DIST): Add same.h.
64764         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64765         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64766         * modules/savedir (EXTRA_DIST): Add savedir.h.
64767         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64768         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64769         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64770         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64771         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64772         * modules/strdup (EXTRA_DIST): Add strdup.h.
64773         * modules/strftime (EXTRA_DIST): Add strftime.h.
64774         * modules/strndup (EXTRA_DIST): Add strndup.h.
64775         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64776         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64777         * modules/time_r (EXTRA_DIST): Add time_r.h.
64778         * modules/timespec (EXTRA_DIST): Add timespec.h.
64779         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64780         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64781         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64782         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64783         * modules/userspec (EXTRA_DIST): Add userspec.h.
64784         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64785         * modules/utimens (EXTRA_DIST): Add utimens.h.
64786         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64787         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64788         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64789         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64790         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64791         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64792         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64793         * modules/yesno (EXTRA_DIST): Add yesno.h.
64794
64795 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64798
64799         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64800         * m4/dev-ino.m4, same-inode.m4: Remove.
64801
64802         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64803         * m4/acl.m4 (AC_FUNC_ACL):
64804         * m4/backupfile.m4 (gl_BACKUPFILE):
64805         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64806         * m4/canon-host.m4 (gl_CANON_HOST):
64807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64808         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64809         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64810         * m4/cloexec.m4 (gl_CLOEXEC):
64811         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64812         * m4/closeout.m4 (gl_CLOSEOUT):
64813         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64814         * m4/dirname.m4 (gl_DIRNAME):
64815         * m4/exclude.m4 (gl_EXCLUDE):
64816         * m4/exitfail.m4 (gl_EXITFAIL):
64817         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64818         * m4/file-type.m4 (gl_FILE_TYPE):
64819         * m4/filemode.m4 (gl_FILEMODE):
64820         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64821         * m4/fpending.m4 (gl_FUNC_FPENDING):
64822         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64823         * m4/fts.m4 (gl_FUNC_FTS):
64824         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64825         * m4/getdate.m4 (gl_GETDATE):
64826         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64827         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64828         * m4/getpass.m4 (gl_FUNC_GETPASS):
64829         * m4/gettime.m4 (gl_GETTIME):
64830         * m4/getugroups.m4 (gl_GETUGROUPS):
64831         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64832         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64833         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64834         * m4/hash.m4 (gl_HASH):
64835         * m4/idcache.m4 (gl_IDCACHE):
64836         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64837         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64838         * m4/long-options.m4 (gl_LONG_OPTIONS):
64839         * m4/lstat.m4 (gl_FUNC_LSTAT):
64840         * m4/md5.m4 (gl_MD5):
64841         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64842         * m4/memcoll.m4 (gl_MEMCOLL):
64843         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64844         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64845         * m4/memxor.m4 (gl_MEMXOR):
64846         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64847         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64848         * m4/modechange.m4 (gl_MODECHANGE):
64849         * m4/mountlist.m4 (gl_MOUNTLIST):
64850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64851         * m4/openat.m4 (gl_FUNC_OPENAT):
64852         * m4/pathmax.m4 (gl_PATHMAX):
64853         * m4/physmem.m4 (gl_PHYSMEM):
64854         * m4/posixtm.m4 (gl_POSIXTM):
64855         * m4/posixver.m4 (gl_POSIXVER):
64856         * m4/quote.m4 (gl_QUOTE):
64857         * m4/quotearg.m4 (gl_QUOTEARG):
64858         * m4/readtokens.m4 (gl_READTOKENS):
64859         * m4/readutmp.m4 (gl_READUTMP):
64860         * m4/regex.m4 (gl_REGEX):
64861         * m4/safe-read.m4 (gl_SAFE_READ):
64862         * m4/safe-write.m4 (gl_SAFE_WRITE):
64863         * m4/same.m4 (gl_SAME):
64864         * m4/save-cwd.m4 (gl_SAVE_CWD):
64865         * m4/savedir.m4 (gl_SAVEDIR):
64866         * m4/settime.m4 (gl_SETTIME):
64867         * m4/sha1.m4 (gl_SHA1):
64868         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64869         * m4/stat-macros.m4 (gl_STAT_MACROS):
64870         * m4/stat-time.m4 (gl_STAT_TIME):
64871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64872         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64873         * m4/strdup.m4 (gl_FUNC_STRDUP):
64874         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64875         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64876         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64877         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64878         * m4/time_r.m4 (gl_TIME_R):
64879         * m4/timespec.m4 (gl_TIMESPEC):
64880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64881         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64882         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64883         * m4/userspec.m4 (gl_USERSPEC):
64884         * m4/utimecmp.m4 (gl_UTIMECMP):
64885         * m4/utimens.m4 (gl_UTIMENS):
64886         * m4/xalloc.m4 (gl_XALLOC):
64887         * m4/xgetcwd.m4 (gl_XGETCWD):
64888         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64889         * m4/xreadlink.m4 (gl_XREADLINK):
64890         * m4/xstrtod.m4 (gl_XSTRTOD):
64891         * m4/yesno.m4 (gl_YESNO):
64892         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64893         to get the necessary .h files and whatnot.
64894
64895 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64896             Bruno Haible  <bruno@clisp.org>
64897
64898         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64899         /bin/sh understanding of '!' conditional negation.
64900
64901 2006-08-21  Jim Meyering  <jim@meyering.net>
64902
64903         * modules/openat (Depends-on): Really alphabetize.
64904
64905         * modules/acl (Depends-on): Add error and quote.
64906
64907         * check-module (find_included_lib_files): Add at-func.c to the
64908         ok-to-include-more-than-once white list.
64909
64910         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64911
64912 2006-08-21  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64915         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64916         Reported by Martin Lambers <marlam@marlam.de>.
64917
64918 2006-08-21  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64921         specify an installation location, don't emit a noinst_LIBRARIES or
64922         noinst_LTLIBRARIES assignment.
64923
64924 2006-08-21  Bruno Haible  <bruno@clisp.org>
64925
64926         BeOS portability.
64927         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64928         BeOS has mbrtowc() but no <wctype.h>.
64929
64930 2006-08-21  Bruno Haible  <bruno@clisp.org>
64931
64932         BeOS portability.
64933         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64934         exist.
64935
64936 2006-08-21  Bruno Haible  <bruno@clisp.org>
64937
64938         BeOS portability.
64939         * lib/mbchar.h: Include <wctype.h> only if it exists.
64940
64941 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         Remove files that are no longer needed by their respective modules.
64944         * m4/obstack.m4: Remove.
64945         * m4/strerror_r.m4: Remove.
64946         * m4/uint32_t.m4: Remove.
64947         * m4/uintptr_t.m4: Remove.
64948         * m4/ullong_max.m4: Remove.
64949         * m4/xstrtoimax.m4: Remove.
64950         * m4/xstrtoumax.m4: Remove.
64951
64952         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64953         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64954         dependencies now capture this.
64955
64956         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64957         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64958         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64959         * m4/human.m4 (gl_HUMAN): Likewise.
64960         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64961         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64962
64963         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64964
64965         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64966         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64967         stdint.
64968         * m4/human.m4 (gl_HUMAN): Likewise.
64969         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64970         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64971         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64972         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64973         * m4/xstrtol (gl_XSTRTOL): Likewise.
64974
64975         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64976         AC_TYPE_LONG_LONG_INT.
64977         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64978         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64979         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64980         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64981
64982         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64983         on stdbool.
64984
64985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64986         (gl_PREREQ_XSTRTOUL): Remove.
64987
64988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64989
64990         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64991         mode.
64992
64993 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         Add and change modules to make it easier for coreutils to use
64996         gnulib-tool.
64997         * modules/backupfile (Files): Remove m4/d-ino.m4.
64998         (Depends-on): Add d-ino.
64999         * modules/cycle-check (Depends-on): Add stdint.
65000         (lib_SOURCES): Add cycle-check.h.
65001         * modules/d-ino: New module.
65002         * modules/d-type: New module.
65003         * modules/error (Files): Remove m4/strerror_r.m4.
65004         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65005         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65006         m4/inttypes_h.m4, m4/uintmax_t.m4.
65007         (Depends-on): Add stdint.
65008         (lib_SOURCES): Add fsusage.h.
65009         * modules/getcwd (Files): Remove d-ino.m4.
65010         (Depends-on): Add d-ino.
65011         * modules/getndelim2 (Depends-on): Add stdint.
65012         * modules/glob (Files): Remove m4/d-type.m4.
65013         (Depends-on): Add d-type.
65014         * modules/host-os: New module.
65015         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65016         m4/inttypes_h.m4, m4/uintmax_t.m4.
65017         * Depends-on: Add stdint.
65018         (lib_SOURCES): Add human.h.
65019         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65020         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65021         m4/uintmax_t.m4, m4/ulonglong.m4.
65022         (Depends-on): Add stdint.
65023         (EXTRA_DIST): Add inttostr.h.
65024         * modules/lchmod: New module.
65025         * modules/link-follow: New module.
65026         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65027         (Depends-on): Add lchmod.
65028         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65029         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65030         (Depends-on): Add stdint.
65031         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65032         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65033         (Depends-on): Add stdint.
65034         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65035         * modules/perl: New module.
65036         * modules/regex (Depends-on): Add stdint.
65037         * modules/rmdir-errno: New module.
65038         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65039         m4/intmax_t.m4.
65040         (Depends-on): Add stdint.
65041         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65042         m4/uintmax_t.m4.
65043         (Depends-on): Add stdint.
65044         * modules/unlink-busy: New module.
65045         * modules/utimecmp (Depends-on): Add stdint.
65046         * modules/uptime: New module.
65047         * modules/winsz-ioctl: New module.
65048         * modules/winsz-termios: New module.
65049         * modules/xnanosleep (Depends-on): Add nanosleep.
65050         * modules/ullong_max: Remove.
65051         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65052         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65053         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65054         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65055         (Depends-on): Add inttypes.
65056         (lib_SOURCES): Add xstrtol.h.
65057         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65058         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65059         * MODULES.html.sh: Move 'assert' into the assert section.
65060         Move 'dummy' into the linking section.
65061         Remove ullong_max.
65062         Add section for compatibility checks for POSIX:2001 functions,
65063         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65064         winsz-ioctl, and winsz-termios into it.
65065         Add lchmod.
65066         Add top-level Misc section and put host-os, perl, and uptime
65067         into it.
65068
65069 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65072         now assume the stdint module.  Do not include inttypes.h.
65073         * lib/fsusage.h: Likewise.
65074         * lib/getndelim2.c: Likewise.
65075         * lib/human.h: Likewise.
65076         * lib/inttostr.h: Likewise.
65077         * lib/obstack.c: Likewise.
65078         * lib/regex_internal.h: Likewise.
65079         * lib/tempname.c: Likewise.
65080         * lib/utimecmp.c: Likewise.
65081         * lib/xstrtol.h: Likewise.
65082
65083         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65084
65085         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65086         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65087         * lib/xtime.h: Likewise.
65088
65089 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * modules/openat (Files): Add lib/fchmodat.c.
65092         Fixes problem reported by Jay Youngman.
65093
65094 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65097         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65098
65099 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65100             Bruno Haible  <bruno@clisp.org>
65101
65102         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65103         and is a script that invokes bison. Tighten the code. Add comments.
65104
65105 2006-08-18  Jim Meyering  <jim@meyering.net>
65106
65107         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65108         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65109         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65110         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65111
65112 2006-08-18  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/bison-i18n: New file.
65115         * MODULES.html.sh (Internationalization functions): Add it.
65116
65117 2006-08-18  Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65120         sys/statvfs.h. When getmntinfo was found, check its declaration and
65121         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65122
65123 2006-08-18  Bruno Haible  <bruno@clisp.org>
65124
65125         * m4/bison-i18n.m4: New file, from bison.
65126
65127 2006-08-18  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65130         (ME_DUMMY): Treat "kernfs" as a dummy.
65131         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65132
65133 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         Update from coreutils.
65136
65137         2006-08-15  Jim Meyering  <jim@meyering.net>
65138
65139         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65140
65141         2006-01-17  Jim Meyering  <jim@meyering.net>
65142
65143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65144
65145         2006-01-11  Jim Meyering  <jim@meyering.net>
65146
65147         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65148         Check for the lchmod function.
65149
65150 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         Update from coreutils.
65153
65154         * lib/__fpending.h: Add copyright notice.
65155         * lib/fprintftime.h: Likewise.
65156         * lib/savedir.c: Use (C) in copyright notice.
65157         * lib/savedir.h: Likewise.
65158
65159         2006-08-15  Jim Meyering  <jim@meyering.net>
65160
65161         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65162         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65163         in support of the EXPECTED_ERRNO macro.
65164         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65165         definitions.  Instead, define the appropriate symbols and include
65166         "at-func.c".
65167         * lib/mkdirat.c (mkdirat): Likewise.
65168         * lib/fchmodat.c (fchmodat): Likewise.
65169         (ENOSYS): Remove definition.
65170         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65171         it.  Don't include "unistd--.h" -- it wasn't ever used.
65172
65173         2006-01-17  Jim Meyering  <jim@meyering.net>
65174
65175         Rewrite fts.c not to change the current working directory,
65176         by using openat, fstatat, fdopendir, etc..
65177
65178         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65179         (HAVE_OPENAT_SUPPORT): Define.
65180         [_LIBC] (fchdir): Don't undef or define; no longer used.
65181         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65182         Now, this `function' always succeeds, and consumes its file descriptor
65183         parameter -- so callers must not close such FDs.  Update callers.
65184         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65185         (diropen): Add parameter, SP.  Adjust all callers.
65186         Implement using diropen_fd, rather than open.
65187         (fts_open): Initialize new member, fts_cwd_fd.
65188         Remove fts_rft-setting code.
65189         (fts_close): Close fts_cwd_fd, if necessary.
65190         (__opendir2): Define in terms of opendir or opendirat,
65191         depending on whether the FST_NOCHDIR flag is set.
65192         (fts_build): Since fts_safe_changedir consumes its FD, and since
65193         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65194         and close the dup'd file descriptor upon failure.
65195         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65196         (fts_safe_changedir): Tweak semantics to reflect that this function
65197         now calls cwd_advance_fd and hence consumes its FD argument.
65198         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65199         [struct FTS] (fts_rft): Remove now-unused member.
65200         [struct FTS] (fts_cycle.state): Improve comment.
65201
65202         * lib/openat.c (openat_needs_fchdir): New function.
65203         * lib/openat.h (openat_needs_fchdir): Declare it.
65204
65205 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65208         Problem and fix reported by Pádraig Brady in
65209         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65210
65211 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65214
65215 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         * lib/memcoll.c (memcoll): Optimize for the common case where the
65218         arguments are bytewise equal.
65219
65220 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * doc/regexprops-generic.texi: Add a copyright notice.
65223
65224 2006-08-15  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/tmpdir (License): Change to LGPL.
65227
65228 2006-08-15  Bruno Haible  <bruno@clisp.org>
65229
65230         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65231         module.
65232
65233 2006-08-14  Simon Josefsson  <jas@extundo.com>
65234
65235         * config/srclist.txt: Add gnupload.
65236
65237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         Change copyright notice from LGPL 2 to GPL 2, since that's the
65240         standard form used in the gnulib repository.
65241         * tests/test-lock.c: Likewise.
65242         * tests/test-stdint.c: Likewise.
65243         * tests/test-tls.c: Likewise.
65244
65245         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65246         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65247         Add copyright notice.
65248
65249         * check-module: Add copyright notice.  Output a copyright
65250         notice if "--version" is specified.
65251         * modules/COPYING: New file.
65252         * tests/test-getaddrinfo.c: Add copyright notice.
65253         * tests/test-verify.c: Likewise.
65254
65255 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         Change copyright notice from LGPL 2 to GPL 2, since that's the
65258         standard form used in the gnulib repository.
65259         * lib/lock.c: LGPL -> GPL.
65260         * lib/lock.h: Likewise.
65261         * lib/strnlen1.c: Likewise.
65262         * lib/strnlen1.h: Likewise.
65263         * lib/tls.c: Likewise.
65264         * lib/tls.h: Likewise.
65265         * lib/tmpdir.c: Likewise.
65266
65267         * lib/TODO: Remove; this belongs only in coreutils.
65268
65269 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         Add copyright notices to long-enough files that lack them, since
65272         otherwise the files aren't clearly free.  Use the same notice that
65273         getdate.texi already uses.
65274         * doc/alloca-opt.texi: Add copyright notice.
65275         * doc/alloca.texi: Likewise.
65276         * doc/ctime.texi: Likewise.
65277         * doc/functions.texi: Likewise.
65278         * doc/gcd.texi: Likewise.
65279         * doc/gnulib-tool.texi: Likewise.
65280         * doc/inet_ntoa.texi: Likewise.
65281         * doc/visibility.texi: Likewise.
65282
65283         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65284         * doc/quote.texi: Add copyright notice.
65285
65286         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65287         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65288         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65289         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65290         is now obsolete, and give a pointer to the Sun list.
65291         Add copyright notice.
65292
65293 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65294
65295         * config/srclistvars.sh: Add copyright notice.
65296
65297 2006-08-14  Eric Blake  <ebb9@byu.net>
65298
65299         Import the following change from libc:
65300
65301         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65302
65303         Upstream bug 2997.
65304         * lib/misc/error.c: Add space between program name and message if file
65305         name is missing.
65306
65307 2006-08-12  Karl Berry  <karl@gnu.org>
65308
65309         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65310         remove, these originate in gnulib now.
65311
65312 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65313
65314         * doc/Makefile (standards.info standards.html standards.dvi):
65315         Also depend on make-stds.texi.
65316
65317 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65320         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65321
65322         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65323         in wchar_t.  Problem reported by Eric Blake.
65324
65325         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65326         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65327         Also, help the compiler to keep LEN in a register.
65328
65329 2006-08-11  Eric Blake  <ebb9@byu.net>
65330
65331         * users.txt: Sort.  Add tar.
65332
65333 2006-08-11  Bruno Haible  <bruno@clisp.org>
65334
65335         * users.txt: New file.
65336
65337 2006-08-11  Bruno Haible  <bruno@clisp.org>
65338
65339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65340         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65341
65342 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * modules/snprintf (Depends-on): Remove minmax.
65345         (Maintainer): Add self and Bruno.
65346
65347 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65350         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65351         (EOVERFLOW): Define if the system does not.
65352         Do not include "minmax.h"; it wasn't used.
65353         (snprintf): Don't assume size_t promotes to an unsigned type.
65354         Fix bug when generated string was too long for the buffer: the
65355         buffer's contents are supposed to be the initial prefix of the
65356         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65357         exceeds INT_MAX; do the check ourselves.
65358
65359         Import the following changes from libc:
65360
65361         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65362
65363         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65364         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65365         set wc to the byte which couldn't be converted.
65366         (re_string_reconstruct): Don't clear valid_raw_len before calling
65367         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65368         tip_context using re_string_context_at.
65369
65370         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65371
65372         * lib/posix/regex.h: g++ still cannot handled [restrict].
65373
65374         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65375
65376         * lib/posix/regex.h: Remove special handling for VMS.
65377
65378 2006-08-10  Jim Meyering  <jim@meyering.net>
65379
65380         * modules/same-inode: New module.
65381         * modules/dev-ino: New module.
65382         * modules/cycle-check: Depend on these modules, rather than simply
65383         including their .h files.
65384         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65385         required via m4/cycle-check.m4.
65386         * modules/same: Depend on new same-inode module, rather than
65387         including same-inode.h.
65388         * modules/chdir-safer: New file.
65389
65390         * modules/chown (Depends-on): Add stat-macros.
65391
65392 2006-08-10  Jim Meyering  <jim@meyering.net>
65393
65394         * m4/cycle-check.m4: New file.
65395         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65396         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65397
65398 2006-08-10  Eric Blake  <ebb9@byu.net>
65399
65400         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65401         in from original proposal.
65402
65403 2006-08-10  Eric Blake  <ebb9@byu.net>
65404         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65405
65406         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65407         namespace.
65408
65409 2006-08-10  Bruno Haible  <bruno@clisp.org>
65410
65411         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65412         as well.
65413
65414 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         Sync from coreutils.
65417
65418         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65419
65420         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65421         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65422
65423 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * modules/restrict: Remove; no longer needed now that we assume
65426         Autoconf 2.59 or later.
65427         * MODULES.html.sh: Remove 'restrict'.
65428         * modules/argp (Depends-on): Remove 'restrict'.
65429         * modules/base64 (Depends-on): Likewise.
65430         * modules/gc (Depends-on): Likewise.
65431         * modules/getaddrinfo (Depends-on): Likewise.
65432         * modules/glob (Depends-on): Likewise.
65433         * modules/inet_ntop (Depends-on): Likewise.
65434         * modules/inet_pton (Depends-on): Likewise.
65435         * modules/memxor (Depends-on): Likewise.
65436         * modules/regex (Depends-on): Likewise.
65437         * modules/strtok_r (Depends-on): Likewise.
65438         * modules/time_r (Depends-on): Likewise.
65439
65440 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65443         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65444         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65445         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65446         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65447         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65448         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65449         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65450
65451         Merge from coreutils.
65452         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65453         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65455         * m4/time_r.m4 (gl_TIME_R): Likewise.
65456
65457 2006-08-09  Karl Berry  <karl@gnu.org>
65458
65459         * config/srclist.txt: no more gettext-tools, per Bruno.
65460
65461 2006-08-08  Eric Blake  <ebb9@byu.net>
65462
65463         * modules/verror: New module.
65464         * MODULES.html.sh: Document it.
65465
65466 2006-08-08  Eric Blake  <ebb9@byu.net>
65467
65468         * lib/verror.h, lib/verror.c: New files.
65469
65470 2006-08-08  Eric Blake  <ebb9@byu.net>
65471
65472         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65473         verror_at_line output complies with GNU Coding Standards even when
65474         file is NULL.
65475
65476 2006-08-07  Bruno Haible  <bruno@clisp.org>
65477
65478         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65479         versions of AIX.
65480         Reported by Ralf Wildenhues.
65481
65482 2006-08-07  Bruno Haible  <bruno@clisp.org>
65483
65484         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65485         in an AC_DEFUN. Needed so that the autoconf snippets can use
65486         AC_REQUIRE.
65487
65488 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65489
65490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65491         Initialize pkgdata_DATA.
65492         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65493         overriding it.
65494
65495 2006-08-06  Eric Blake  <ebb9@byu.net>
65496
65497         * lib/error.h: Fold in some upstream changes from glibc.
65498         * lib/error.c: Likewise.
65499
65500 2006-08-04  Bruno Haible  <bruno@clisp.org>
65501
65502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65503         Make the mostlyclean-local rule depend on mostlyclean-generic.
65504         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65505
65506 2006-07-31  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65509         <stdlib.h>, <string.h>.
65510
65511 2006-07-30  Bruno Haible  <bruno@clisp.org>
65512
65513         * modules/readlink (License): Change to LGPL.
65514
65515 2006-07-30  Bruno Haible  <bruno@clisp.org>
65516
65517         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65518         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65519         set PKGDATADIR to point to it.
65520
65521 2006-07-30  Bruno Haible  <bruno@clisp.org>
65522
65523         * modules/csharpexec (configure.ac): Comment out macro invocation.
65524         * modules/javaexec (configure.ac): Likewise.
65525         * modules/javacomp-script (configure.ac): Likewise.
65526
65527         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65528
65529 2006-07-30  Bruno Haible  <bruno@clisp.org>
65530
65531         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65532         linked-list.
65533
65534 2006-07-30  Bruno Haible  <bruno@clisp.org>
65535
65536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65537
65538 2006-07-30  Bruno Haible  <bruno@clisp.org>
65539
65540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65541         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65542         get removed.
65543
65544 2006-07-29  Bruno Haible  <bruno@clisp.org>
65545
65546         Make it possible for gnulib-tool to work with locally modified or
65547         augmented gnulib repositories.
65548         * gnulib-tool (func_usage): Document --local-dir option.
65549         (local_gnulib_dir): New variable.
65550         Handle --local-dir option.
65551         (func_lookup_file): New function.
65552         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65553         (func_get_description, func_get_filelist, func_get_description,
65554         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65555         func_get_automake_snippet, func_get_include_directive,
65556         func_get_license, func_get_maintainer): Use func_lookup_file.
65557         (func_import, func_create_testdir): Use func_lookup_file.
65558
65559 2006-07-29  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/setenv (Depends-on): Add unistd.
65562
65563 2006-07-29  Bruno Haible  <bruno@clisp.org>
65564
65565         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65566
65567 2006-07-29  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65570
65571 2006-07-29  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool (import, update): If there is no Makefile.am, look at
65574         aclocal.m4, instead of bailing out.
65575
65576 2006-07-29  Bruno Haible  <bruno@clisp.org>
65577
65578         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65579         Categorize the options by when they are useful.
65580
65581 2006-07-29  Bruno Haible  <bruno@clisp.org>
65582
65583         * gnulib-tool (func_usage): Document option --no-libtool.
65584         Handle option --no-libtool.
65585         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65586         for changed semantics of $libtool variable.
65587         (func_import): Likewise. If libtool is not used, show this through
65588         an option --no-libtool.
65589         (func_create_testdir): Update.
65590
65591 2006-07-29  Bruno Haible  <bruno@clisp.org>
65592
65593         * gnulib-tool (func_import): Extend error message about missing
65594         --doc-base.
65595
65596 2006-07-29  Bruno Haible  <bruno@clisp.org>
65597
65598         * gnulib-tool (func_import): Don't create the $docbase directory if
65599         there is no file to store there.
65600
65601 2006-07-29  Bruno Haible  <bruno@clisp.org>
65602
65603         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65604         relevant, look for configure.ac there, not in the current directory.
65605         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65606
65607 2006-07-29  Bruno Haible  <bruno@clisp.org>
65608
65609         * gnulib-tool (SORT): New variable.
65610         (func_usage): Undocument --assume-autoconf option.
65611         Remove --assume-autoconf option handling.
65612         (autoconf_minversion): Determine from the contents of configure.ac.
65613         (func_import): Remove autoconf_minversion handling.
65614         Suggested by Eric Blake.
65615
65616 2006-07-29  Bruno Haible  <bruno@clisp.org>
65617
65618         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65619
65620 2006-07-29  Bruno Haible  <bruno@clisp.org>
65621
65622         * config/srclist.txt (*setenv.[ch]): Remove rules.
65623
65624 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65625
65626         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65627
65628 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65629
65630         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65631         arpa/inet.h.
65632
65633 2006-07-28  Simon Josefsson  <jas@extundo.com>
65634
65635         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65636         * modules/inet_pton (Depends-on): Likewise.
65637
65638 2006-07-28  Simon Josefsson  <jas@extundo.com>
65639
65640         * m4/netinet_in_h.m4: New file.
65641
65642 2006-07-28  Simon Josefsson  <jas@extundo.com>
65643
65644         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65645         #include's.
65646
65647 2006-07-28  Simon Josefsson  <jas@extundo.com>
65648
65649         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65650         #include's.
65651
65652 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65655         setgid on directories only if they set these bits.
65656         * lib/modechange.h: Remove obsolete comment about masks.
65657
65658 2006-07-28  Eric Blake  <ebb9@byu.net>
65659
65660         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65661         macro expansion.
65662
65663 2006-07-28  Bruno Haible  <bruno@clisp.org>
65664
65665         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65666
65667 2006-07-28  Bruno Haible  <bruno@clisp.org>
65668
65669         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65670
65671 2006-07-28  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65674         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65675         Define fallbacks.
65676         Avoids link error on FreeBSD 4.x.
65677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65678
65679         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65680         encoding.
65681         * lib/mbswidth.c (iswcntrl): Likewise.
65682
65683 2006-07-27  Bruno Haible  <bruno@clisp.org>
65684
65685         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65686         test.
65687
65688 2006-07-27  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65691         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65692         defined.
65693
65694 2006-07-26  Eric Blake  <ebb9@byu.net>
65695
65696         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65697
65698 2006-07-26  Eric Blake  <ebb9@byu.net>
65699
65700         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65701         like mingw that lack mkstemp.
65702         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65703         avoid compilation warning on mingw.
65704
65705 2006-07-26  Bruno Haible  <bruno@clisp.org>
65706
65707         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65708         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65709         INT_FAST*_MIN, INTPTR_MIN.
65710
65711 2006-07-25  Bruno Haible  <bruno@clisp.org>
65712
65713         * modules/version-etc (Depends-on): Add stdarg.
65714
65715 2006-07-25  Bruno Haible  <bruno@clisp.org>
65716
65717         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65718         complex commands.
65719
65720 2006-07-25  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65723         defined in <stdarg.h> or config.h.
65724
65725 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65726
65727         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65728         (gl_STDIO_SAFER): Remove.
65729
65730 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * MODULES.html.sh (File stream based Input/Output):
65733         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65734         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65735         * modules/fopen-safer, modules/tmpfile-safer: New files.
65736         * modules/stdio-safer: Remove.
65737
65738 2006-07-24  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/tmpdir: New file.
65741         * MODULES.html.sh (File system functions): Add it.
65742
65743 2006-07-24  Bruno Haible  <bruno@clisp.org>
65744
65745         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65746         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65747
65748 2006-07-24  Bruno Haible  <bruno@clisp.org>
65749
65750         * modules/clean-temp: New file.
65751
65752 2006-07-24  Bruno Haible  <bruno@clisp.org>
65753
65754         * m4/tmpdir.m4: New file, from GNU gettext.
65755
65756 2006-07-24  Bruno Haible  <bruno@clisp.org>
65757
65758         * lib/tmpdir.h: New file, from GNU gettext.
65759         * lib/tmpdir.c: New file, from GNU gettext.
65760
65761 2006-07-24  Bruno Haible  <bruno@clisp.org>
65762
65763         * lib/clean-temp.h: New file, from GNU gettext.
65764         * lib/clean-temp.c: New file, from GNU gettext.
65765
65766 2006-07-23  Eric Blake  <ebb9@byu.net>
65767
65768         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65769         (Depends-on): Add binary-io.
65770
65771 2006-07-23  Eric Blake  <ebb9@byu.net>
65772
65773         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65774
65775 2006-07-23  Eric Blake  <ebb9@byu.net>
65776
65777         * lib/tmpfile-safer.c: New file.
65778         * lib/stdio-safer.h (fopen_safer): Add prototype.
65779         * lib/stdio--.h (tmpfile): Make safer.
65780
65781 2006-07-23  Bruno Haible  <bruno@clisp.org>
65782
65783         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65784         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65785         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65786         gl_linked_remove_at): Use it.
65787
65788 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65789         and Simon Josefsson <jas@extundo.com>
65790
65791         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65792
65793         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65794
65795 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * modules/close-stream: New file.
65798         * modules/closeout (Description): Make it clear that it exits
65799         with a diagnostic on error.
65800         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65801         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65802
65803 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         * m4/close-stream.m4: New file.
65806
65807 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * lib/close-stream.c, lib/close-stream.h: New files.
65810
65811 2006-07-22  Bruno Haible  <bruno@clisp.org>
65812
65813         Merge from GNU gettext 0.15.
65814
65815         2006-05-01  Bruno Haible  <bruno@clisp.org>
65816
65817                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65818
65819         2006-07-22  Bruno Haible  <bruno@clisp.org>
65820
65821                 * modules/javaversion: New file.
65822                 * MODULES.html.sh (Java): Add javaversion.
65823
65824         2006-03-12  Bruno Haible  <bruno@clisp.org>
65825
65826                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65827
65828         2005-12-04  Bruno Haible  <bruno@clisp.org>
65829
65830                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65831                 (untested).
65832
65833         2006-06-21  Bruno Haible  <bruno@clisp.org>
65834
65835                 Avoid warnings from recent versions of mcs.
65836                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65837                 -o, -L, -r any more. Use options documented since mcs-1.0
65838                 instead. Similarly for -g.
65839
65840         2005-12-04  Bruno Haible  <bruno@clisp.org>
65841
65842                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65843                 .resources, not .resource.
65844
65845         2005-07-09  Bruno Haible  <bruno@clisp.org>
65846
65847                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65848                 add a .dll suffix.
65849                 Reported by Mark Junker <mjscod@gmx.de>.
65850
65851         2006-07-22  Bruno Haible  <bruno@clisp.org>
65852
65853                 * modules/gettext: Upgrade to gettext-0.15.
65854                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65855                 m4/visibility.m4.
65856                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65857
65858 2006-07-22  Bruno Haible  <bruno@clisp.org>
65859
65860         Merge from GNU gettext 0.15.
65861
65862         2006-03-25  Bruno Haible  <bruno@clisp.org>
65863
65864                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65865
65866         2006-07-21  Bruno Haible  <bruno@clisp.org>
65867
65868                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65869                 "1.1".
65870
65871         2006-05-09  Bruno Haible  <bruno@clisp.org>
65872
65873                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65874                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65875                 for the conftestver execution.
65876
65877         2006-05-01  Bruno Haible  <bruno@clisp.org>
65878
65879                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65880                 optional target-version argument. Verify that the compiler
65881                 groks source of the specified source-version, or add -source
65882                 option as necessary. Verify that the compiler produces
65883                 bytecode in the specified target-version, or add -target and
65884                 -source options as necessary. Make the result of the test
65885                 available as variable CONF_JAVAC. Also log error output in
65886                 config.log.
65887
65888         2006-03-11  Bruno Haible  <bruno@clisp.org>
65889
65890                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65891
65892         2006-05-09  Bruno Haible  <bruno@clisp.org>
65893
65894                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65895                 CLASSPATH_SEPARATOR to a semicolon.
65896
65897         2006-03-12  Bruno Haible  <bruno@clisp.org>
65898
65899                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65900                 available as variable CONF_JAVA, for subsequent autoconf
65901                 tests. Also log error output in config.log.
65902
65903         2006-07-19  Bruno Haible  <bruno@clisp.org>
65904
65905                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65906                 that getline works on glibc2 systems. Needed to avoid trouble
65907                 in relocatable.c.
65908                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65909
65910         2005-12-04  Bruno Haible  <bruno@clisp.org>
65911
65912                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65913                 launcher (untested).
65914
65915         2005-12-04  Bruno Haible  <bruno@clisp.org>
65916
65917                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65918
65919         2006-07-22  Bruno Haible  <bruno@clisp.org>
65920
65921                 * gettext.m4: Update from GNU gettext-0.15.
65922                 * nls.m4: Likewise.
65923                 * po.m4: Likewise.
65924                 * inttypes-pri.m4: Likewise.
65925                 * inttypes-h.m4: Renamed from inttypes.m4.
65926                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65927
65928 2006-07-22  Bruno Haible  <bruno@clisp.org>
65929
65930         Merge from GNU gettext 0.15.
65931
65932         2005-07-05  Bruno Haible  <bruno@clisp.org>
65933
65934                 * printf-args.c (printf_fetchargs): Work around broken
65935                 definition of wint_t on mingw.
65936
65937         2005-02-12  Bruno Haible  <bruno@clisp.org>
65938
65939                 * xallocsa.h: Add extern "C" for C++.
65940
65941         2006-05-17  Bruno Haible  <bruno@clisp.org>
65942
65943                 Cygwin portability.
65944                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65945
65946         2006-04-30  Bruno Haible  <bruno@clisp.org>
65947
65948                 * progreloc.c: Include <mach-o/dyld.h> if available.
65949                 (find_executable): Use _NSGetExecutablePath when possible.
65950
65951         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65952
65953                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65954                 function.
65955
65956         2005-12-29  Bruno Haible  <bruno@clisp.org>
65957
65958                 * progreloc.c (set_program_name_and_installdir): Fix
65959                 compilation error.
65960
65961         2005-12-04  Bruno Haible  <bruno@clisp.org>
65962
65963                 Cygwin portability.
65964                 * progreloc.c: Include <windows.h> also on Cygwin.
65965                 (find_executable): Add support for Cygwin.
65966                 (set_program_name_and_installdir): Handle also platforms with
65967                 nonempty EXEEXT.
65968
65969         2006-07-11  Bruno Haible  <bruno@clisp.org>
65970
65971                 * javacomp.c: Fix a comment.
65972                 Reported by Jim Meyering.
65973
65974         2006-04-30  Bruno Haible  <bruno@clisp.org>
65975
65976                 * javacomp.h (compile_java_class): Add source_version,
65977                 target_version arguments.
65978                 * javacomp.c: Rewritten to choose only a compiler that
65979                 respects the specified source_version and target_version.
65980
65981         2006-06-27  Bruno Haible  <bruno@clisp.org>
65982
65983                 Assume correct S_ISDIR macro.
65984                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65985
65986         2006-07-22  Bruno Haible  <bruno@clisp.org>
65987
65988                 * javaversion.h: New file, from GNU gettext.
65989                 * javaversion.c: New file, from GNU gettext.
65990                 * javaversion.java: New file, from GNU gettext.
65991                 * javaversion.class: New file, from GNU gettext.
65992
65993         2006-05-17  Bruno Haible  <bruno@clisp.org>
65994
65995                 Cygwin portability.
65996                 * javaexec.c (execute_java_class): Test for jview program
65997                 also on Cygwin.
65998
65999         2006-04-09  Bruno Haible  <bruno@clisp.org>
66000
66001                 * fatal-signal.c: Don't include string.h.
66002                 (at_fatal_signal): Use a copying loop instead of memcpy.
66003
66004         2005-12-04  Bruno Haible  <bruno@clisp.org>
66005
66006                 * csharpexec.c: Add support for 'clix' launcher (untested).
66007                 (execute_csharp_using_sscli): New function.
66008                 (execute_csharp_program): Call it.
66009
66010         2006-06-21  Bruno Haible  <bruno@clisp.org>
66011
66012                 Avoid warnings from recent versions of mcs.
66013                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66014                 -o, -L, -r any more. Use options documented since mcs-1.0
66015                 instead. Similarly for -g.
66016
66017         2005-07-09  Bruno Haible  <bruno@clisp.org>
66018
66019                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66020                 add a .dll suffix.
66021                 Reported by Mark Junker <mjscod@gmx.de>.
66022
66023         2006-06-17  Bruno Haible  <bruno@clisp.org>
66024
66025                 * config.charset: Update for NetBSD 3.0.
66026
66027         2006-05-17  Bruno Haible  <bruno@clisp.org>
66028
66029                 Cygwin portability.
66030                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66031
66032         2006-05-16  Bruno Haible  <bruno@clisp.org>
66033
66034                 * localcharset.c [CYGWIN]: Include <windows.h>.
66035                 (get_charset_aliases): For Cygwin, return the same CPxxx
66036                 aliases list as under WIN32.
66037                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66038                 the environment variables. Fall back to GetACP().
66039
66040         2006-04-05  Bruno Haible  <bruno@clisp.org>
66041
66042                 * config.charset: Update Juan Manuel Guerrero's address.
66043
66044         2005-02-12  Bruno Haible  <bruno@clisp.org>
66045
66046                 * allocsa.h: Add extern "C" for C++.
66047
66048         2005-02-10  Bruno Haible  <bruno@clisp.org>
66049
66050                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66051                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66052
66053         2006-07-22  Bruno Haible  <bruno@clisp.org>
66054
66055                 * gettext.h: Update to GNU gettext-0.15.
66056
66057 2006-07-22  Bruno Haible  <bruno@clisp.org>
66058
66059         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66060         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66061         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66062
66063 2006-07-21  Eric Blake  <ebb9@byu.net>
66064
66065         * modules/stdlib-safer: New file.
66066         * MODULES.html.sh (File stream based Input/Output): Add
66067         stdlib-safer.
66068
66069 2006-07-21  Eric Blake  <ebb9@byu.net>
66070
66071         * lib/stdlib-safer.h: New file from coreutils, required by
66072         stdlib--.h.
66073
66074 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66077
66078 2006-07-20  Bruno Haible  <bruno@clisp.org>
66079
66080         * gnulib-tool: Recognize new option --assume-autoconf.
66081         (autoconf_minversion): New variable.
66082         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66083
66084 2006-07-20  Bruno Haible  <bruno@clisp.org>
66085
66086         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66087
66088 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66089
66090         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66091         Reindent and repaginate.
66092
66093 2006-07-19  Derek Price  <derek@ximbiot.com>
66094
66095         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66096         Correct grammar.
66097
66098 2006-07-17  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/list: New file.
66101         * modules/array-list: New file.
66102         * modules/carray-list, modules/carray-list-tests: New files.
66103         * modules/linked-list, modules/linked-list-tests: New files.
66104         * modules/avltree-list, modules/avltree-list-tests: New files.
66105         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66106         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66107         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66108         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66109         * modules/oset: New file.
66110         * modules/array-oset: New file.
66111         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66112         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66113         * tests/test-carray_list.c: New file.
66114         * tests/test-linked_list.c: New file.
66115         * tests/test-avltree_list.c: New file.
66116         * tests/test-rbtree_list.c: New file.
66117         * tests/test-linkedhash_list.c: New file.
66118         * tests/test-avltreehash_list.c: New file.
66119         * tests/test-rbtreehash_list.c: New file.
66120         * tests/test-avltree_oset.c: New file.
66121         * tests/test-rbtree_oset.c: New file.
66122         * MODULES.html.sh (Container data structures): New section.
66123
66124 2006-07-17  Bruno Haible  <bruno@clisp.org>
66125
66126         * m4/gl_list.m4: New file.
66127
66128 2006-07-17  Bruno Haible  <bruno@clisp.org>
66129
66130         * lib/gl_list.h: New file.
66131         * lib/gl_list.c: New file.
66132         * lib/gl_array_list.h: New file.
66133         * lib/gl_array_list.c: New file.
66134         * lib/gl_carray_list.h: New file.
66135         * lib/gl_carray_list.c: New file.
66136         * lib/gl_linked_list.h: New file.
66137         * lib/gl_linked_list.c: New file.
66138         * lib/gl_anylinked_list1.h: New file.
66139         * lib/gl_anylinked_list2.h: New file.
66140         * lib/gl_avltree_list.h: New file.
66141         * lib/gl_avltree_list.c: New file.
66142         * lib/gl_anyavltree_list1.h: New file.
66143         * lib/gl_anyavltree_list2.h: New file.
66144         * lib/gl_rbtree_list.h: New file.
66145         * lib/gl_rbtree_list.c: New file.
66146         * lib/gl_anyrbtree_list1.h: New file.
66147         * lib/gl_anyrbtree_list2.h: New file.
66148         * lib/gl_anytree_list1.h: New file.
66149         * lib/gl_anytree_list2.h: New file.
66150         * lib/gl_linkedhash_list.h: New file.
66151         * lib/gl_linkedhash_list.c: New file.
66152         * lib/gl_anyhash_list1.h: New file.
66153         * lib/gl_anyhash_list2.h: New file.
66154         * lib/gl_avltreehash_list.h: New file.
66155         * lib/gl_avltreehash_list.c: New file.
66156         * lib/gl_rbtreehash_list.h: New file.
66157         * lib/gl_rbtreehash_list.c: New file.
66158         * lib/gl_anytreehash_list1.h: New file.
66159         * lib/gl_anytreehash_list2.h: New file.
66160
66161         * lib/gl_oset.h: New file.
66162         * lib/gl_oset.c: New file.
66163         * lib/gl_array_oset.h: New file.
66164         * lib/gl_array_oset.c: New file.
66165         * lib/gl_avltree_oset.h: New file.
66166         * lib/gl_avltree_oset.c: New file.
66167         * lib/gl_rbtree_oset.h: New file.
66168         * lib/gl_rbtree_oset.c: New file.
66169         * lib/gl_anytree_oset.h: New file.
66170
66171 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * m4/mkancesdirs.m4: New file.
66174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66175         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66176         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66177         it.
66178
66179 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66182         * lib/mkancesdirs.h: New files.
66183         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66184         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66185         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66186         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66187         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66188         callers changed.  Revamp internals significantly, by not
66189         attempting to create directories that are temporarily more
66190         permissive than the final results.  Do not attempt to use
66191         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66192         This removes some race conditions, fixes some bugs, and simplifies
66193         things.  Use new dirchownmod function to do owner and mode changes.
66194         * lib/mkdir-p.h: Likewise.
66195         * lib/modechange.c (octal_to_mode): New function.
66196         (struct mode_change): New member mentioned.
66197         (make_node_op_equals): New arg mentioned.  All callers changed.
66198         (mode_compile): Keep track of which mode bits the user has explicitly
66199         mentioned.
66200         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66201         New arg PMODE_BITS, to keep track of which mode bits the user
66202         mentioned; it treats S_ISUID and S_ISGID speciall.
66203         All callers changed.
66204         * lib/modechange.h: Likewise.
66205
66206 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * MODULES.html.sh: Add mkancestors.
66209         * modules/mkancesdirs: New module.
66210         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66211         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66212         The chdir-safer and afs files are now orphans; I'll remove them
66213         unless someone speaks up.
66214         Add lib/dirchownmod.c, lib/dirchownmod.h.
66215         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66216         Add lchown, mkancesdirs.
66217         (Maintainer): Add self.
66218
66219 2006-07-15  Karl Berry  <karl@gnu.org>
66220
66221         * gnulib-tool: help message wording/arrangement.
66222
66223 2006-07-14  Simon Josefsson  <jas@extundo.com>
66224
66225         * doc/gnulib.texi (Libtool and Windows): New section.
66226
66227 2006-07-12  Simon Josefsson  <jas@extundo.com>
66228
66229         * modules/gendocs (License): Fix license, approved by Karl.
66230
66231 2006-07-12  Eric Blake  <ebb9@byu.net>
66232
66233         * MODULES.html.sh: Add gendocs.
66234
66235 2006-07-11  Eric Blake  <ebb9@byu.net>
66236
66237         * modules/fdl: New module, to install doc/fdl.texi.
66238         * MODULES.html.sh: Add new section for documentation modules.
66239         * gnulib-tool: Avoid space-tab.
66240         (--doc-base): New option, to manage files from doc.
66241
66242 2006-07-11  Eric Blake  <ebb9@byu.net>
66243
66244         * m4/absolute-header.m4: Fix comments to match recent change.
66245
66246 2006-07-11  Eric Blake  <ebb9@byu.net>
66247
66248         * gnulib-tool: List --doc-base before --tests-base.
66249
66250 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66251
66252         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66253
66254 2006-07-11  Bruno Haible  <bruno@clisp.org>
66255
66256         * README: Mention where to put documentation.
66257
66258 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66259
66260         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66261
66262 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66263
66264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66265         to stdint.m4.
66266
66267 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66270         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66271         "no/such/file/stdint.h" when there is no such file, so that
66272         the resulting C code can be parsed by dodgy compilers.
66273         Problems reported by Bob Proulx.
66274
66275 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66276
66277         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66278         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66279         macros into the GNU _D_EXACT_NAMLEN.
66280         * lib/savedir.c:  Likewise.
66281         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66282
66283 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66284         and Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66287         * m4/savedir.m4:
66288         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66289         macros into the GNU _D_EXACT_NAMLEN.
66290
66291 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66294         around the absolute name, to work around a problem with the HP-UX
66295         11.23 native C compiler, reported by Bob Proulx.
66296
66297 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * doc/maintain.texi, make-stds.texi: Sync from
66300         <http://savannah.gnu.org/projects/gnustandards>.
66301
66302 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66305
66306 2006-07-09  Jim Meyering  <jim@meyering.net>
66307
66308         * m4/glob.m4: Remove a doubled word in a comment.
66309
66310 2006-07-09  Jim Meyering  <jim@meyering.net>
66311
66312         * lib/argp-pv.c: Remove a doubled word in a comment.
66313         * lib/check-version.c (check_version): Likewise.
66314         * lib/javacomp.c (compile_java_class): Likewise.
66315
66316 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66319         for the benefit of people using Autoconf 2.60.  If you want to
66320         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66321         (or m4/onceonly.m4, if pre-2.57) manually.
66322
66323 2006-07-08  Jim Meyering  <jim@meyering.net>
66324
66325         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66326         comment.
66327         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66328         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66329         comment.
66330
66331 2006-07-08  Jim Meyering  <jim@meyering.net>
66332
66333         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66334
66335 2006-07-07  Simon Josefsson  <jas@extundo.com>
66336
66337         * tests/test-crc.c: Change expected crc value, the test vector
66338         were probably computed using the old broken crc.c?
66339
66340 2006-07-06  Simon Josefsson  <jas@extundo.com>
66341
66342         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66343         now the canonical place for the M4 file).
66344
66345         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66346         from the sys_socket dependency now.
66347
66348         * modules/inet_pton (Files): Ditto.
66349
66350         * modules/inet_ntop (Files): Ditto.
66351
66352 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66353
66354         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66355         not gl_PREREQ_GETUSERSHELL.
66356
66357 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66358
66359         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66360         with only one argument, for Autoconf 2.60.
66361         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66362         expand to nothing, so add a shell command to avoid syntax error.
66363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66364
66365 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66366
66367         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66368
66369 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66370
66371         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66372         no longer needed.  Check for isblank decl.
66373         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66374         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66375         of existence.
66376
66377 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * lib/getloadavg.c: Use __VMS, not VMS.
66380         * lib/getopt.c: Likewise.
66381         * lib/getpagesize.h: Likewise.
66382         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66383         and probably does not work.
66384
66385 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         * lib/.cppi-disable: Add wcwidth.
66388         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66389         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66390         (ISGRAPH): Remove.  All uses changed to isgraph.
66391         (FOLD) [!defined _LIBC]: Remove special case.
66392         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66393         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66394         HAVE_ISBLANK.
66395         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66396         case.
66397
66398 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66399
66400         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66401         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66402         brackets.  Other minor changes to suppress some compiler
66403         warnings.
66404
66405 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66406         and Paul Eggert  <eggert@cs.ucla.edu>
66407
66408         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66409         of invoking obsolescent AC_HEADER_DIRENT macro.
66410         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66411         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66412         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66414         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66415         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66416         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66417         * m4/readdir.m4: Remove; no longer needed.
66418
66419 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66420         and Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66423         Don't worry about this obsolete case any more.
66424         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66425         directories.
66426         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66427         worry about this obsolete case any more.
66428         * lib/fts.c: Likewise.
66429         * lib/getcwd.c: Likewise.
66430         * lib/glob.h: Likewise.
66431         * lib/savedir.c: Likewise.
66432
66433 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66436         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66437         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66438         needed.
66439         All uses removed.
66440         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66441         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66442         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66443         needed.
66444         * m4/getdate.m4 (gl_GETDATE): Likewise.
66445         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66446         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66447         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66448         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66449         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66451         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66452         needed.
66453
66454 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * lib/memcasecmp.c: Include <limits.h>.
66457         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66458         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66459         Don't assume isdigit succeeds only on '0' through '9'.
66460
66461 2006-07-05  Eric Blake  <ebb9@byu.net>
66462
66463         * modules/getaddrinfo (Depends-on): Add snprintf.
66464
66465 2006-07-05  Eric Blake  <ebb9@byu.net>
66466
66467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66468         to avoid 'header present but could not be compiled' on cygwin.
66469
66470 2006-07-05  Eric Blake  <ebb9@byu.net>
66471
66472         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66473         missing from netdb.h.
66474         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66475
66476 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66477
66478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66479         no longer needed.
66480         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66481         * m4/getdate.m4 (gl_GETDATE): Likewise.
66482         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66483         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66484         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66485         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66486         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66487
66488 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66489
66490         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66491         All uses of is_space replaced by isspace.
66492         * lib/exit.h: Don't talk about STDC_HEADERS.
66493         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66494         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66495         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66496         replaced by isprint etc.
66497         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66498         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66499         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66500         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66501         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66502         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66503
66504 2006-07-05  Bruno Haible  <bruno@clisp.org>
66505
66506         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66507         the function exists, before testing against AIX.
66508         Reported by Martin Lambers <marlam@marlam.de>.
66509
66510 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66511
66512         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66513         From Mark D. Baushke.
66514
66515 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66518         to the absolute name, not just one, to bypass Sun C 5.8's
66519         "warning: #include of /usr/include/... may be non-portable".
66520
66521 2006-07-04  Eric Blake  <ebb9@byu.net>
66522
66523         * modules/dirname-tests: New test module.
66524         * tests/test-dirname.c: New file, replacing dirname.c
66525         TEST_DIRNAME section that was recently deleted.
66526
66527 2006-07-04  Bruno Haible  <bruno@clisp.org>
66528
66529         Assume ANSI C header files and <ctype.h> functions.
66530         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66531         (mbsnwidth): Use isprint, iscntrl instead.
66532
66533 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         Merge from coreutils.
66536         * MODULES.html.sh: Add xstrtold.
66537         * modules/xstrtold: New file.
66538         * modules/cycle-check (Files): Add lib/same-inode.h.
66539         * modules/dirname (Files): Add m4/double-slash-root.m4.
66540         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66541         * modules/mkdir-p (Files): Add lib/same-inode.h.
66542         * modules/same (Files): Add lib/same-inode.h.
66543
66544 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66547         This is to keep the terminology clean; POSIX talks about
66548         "absolute pathnames", not "full pathnames", but the GNU
66549         Coding Standards say to use "path" for something else;
66550         so use "absolute" to keep both sides happy.
66551         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66552         Set gl_absolute_header, not gl_full_header_path.
66553         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66554         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66555         All uses changed.
66556
66557         Merge from coreutils.
66558
66559         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66562         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66563         want to require the building of c-strtod.o.
66564         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66565         needs -lm directly.
66566         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66567
66568         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66571         --as-needed option if available.  Problem reported by Albert Chin in
66572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66573         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66574         cc merely issues a bunch of annoying warnings for --as-needed
66575         (this problem was reported by Bob Proulx).  Also, try linking with
66576         -lm to detect a bug in binutils 2.16 (this problem was reported
66577         by Ralf Wildenhues).
66578
66579         2006-06-18  Jim Meyering  <jim@meyering.net>
66580
66581         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66582         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66583         macro.
66584         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66585         also check for glibc-2.4's abort-inducing bug.
66586
66587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66588         Low-probability clean-up should be to use rmdir to get rid of
66589         the just-created directory, not unlink.
66590
66591         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66592         configure fail, and request a bug report to inform us about it.
66593         Add a comment that, barring reports to the contrary, in 2007 we'll
66594         assume ftruncate is universally available.
66595
66596         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66599
66600         2006-03-12  Jim Meyering  <jim@meyering.net>
66601
66602         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66603         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66604         * m4/same.m4 (gl_SAME): Likewise.
66605         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66606
66607         2006-03-11  Eric Blake  <ebb9@byu.net>
66608
66609         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66610         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66611         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66612         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66613
66614 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66615
66616         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66617         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66618         reported by Mark D. Baushke, one in
66619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66620
66621         Merge from coreutils.
66622
66623         * lib/.cppi-disable: Add stdint_.h.
66624         * lib/.cvsignore: Add stdint.h.
66625
66626         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66629         both double and long double versions.
66630         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66631         * lib/xstrtold.c: New file.
66632         * lib/xstrtod.h (xstrtold): New decl.
66633
66634         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * lib/filemode.c (setst): Remove.
66637         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66638         (arguably) clearer, and the generated code is a bit smaller on my
66639         Debian GNU/Linux stable x86 host.
66640
66641         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66644         Assume that filemode.h includes sys/types.h and sys/stat.h.
66645         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66646         (ftypelet): Reorder to put common cases first, for efficiency.
66647         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66648         to do 'M'.
66649         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66650         of 10, for compatibility with FreeBSD.  All callers changed.
66651         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66652         types that can't be deduced solely from st_mode.  First arg is now a
66653         const pointer.
66654         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66655         (strmode): Renamed from mode_string.
66656         (filemodestring): New decl.
66657         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66658         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66659         needed.
66660         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66661
66662         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66665         fsusage.h now does that.  Include fsusage.h first, to test interface.
66666         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66667         at most one method (the old code could have generated decls that
66668         didn't conform to C89, not that this was ever exercised).
66669         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66670
66671         2006-03-19  Jim Meyering  <jim@meyering.net>
66672
66673         Work even in a chroot where d_ino values for entries in "/"
66674         don't match the stat.st_ino values for the same names.
66675         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66676         number, iterate through all entries again, using lstat instead.
66677         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66678         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66679
66680         * lib/getcwd.c (__getcwd): Clarify a comment.
66681         Use memcpy in place of a call to strcpy.
66682
66683         2006-03-12  Jim Meyering  <jim@meyering.net>
66684
66685         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66686         matches that of the current directory (which we're about to chdir ".."
66687         out of), then save the dev-ino of the parent, instead.
66688
66689         * lib/same-inode.h (SAME_INODE): New file/macro.
66690         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66691         Include "same-inode.h", instead.
66692         * lib/same.c: Likewise.
66693         * lib/cycle-check.h: Include "same-inode.h".
66694         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66695         * lib/cycle-check.c (SAME_INODE): Remove definition.
66696         * lib/root-dev-ino.h: Include "same-inode.h".
66697
66698         2006-03-11  Eric Blake  <ebb9@byu.net>
66699
66700         * lib/same.c (same_name): s/base_name/last_component/
66701         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66702         * lib/filenamecat.c (file_name_concat): Likewise.
66703
66704         2006-03-11  Eric Blake  <ebb9@byu.net>,
66705                     Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66708         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66709         drive prefix.
66710         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66711         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66712         (last_component): New method.
66713         * lib/dirname.c (dir_len): Determine when drive letters need a
66714         subsequent slash.  Preserve // when it is special.
66715         (dir_name): Don't append dot when drive letter is absolute.
66716         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66717         * lib/basename.c (base_name): New semantics - malloc the result.
66718         Preserve // when it is special.  Preserve relative files that look
66719         like drive letters.
66720         (base_len): Preserve // when it is special.
66721         (last_component): New method, similar to old base_name semantics.
66722         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66723         base_name.  Strip redundant slashes from ///.
66724
66725 2006-07-03  Jim Meyering  <jim@meyering.net>
66726
66727         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66728         macro is used before the first cycle_check call.
66729
66730 2006-07-03  Eric Blake  <ebb9@byu.net>
66731
66732         * modules/dirname (Depends-on): Add xstrndup.
66733
66734 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66735
66736         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66737         test cases, so that config.log is a bit easier to follow.
66738
66739 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66740
66741         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66742         both are 64 bits, since this seems to be the tradition, and this
66743         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66744         we ever run into a host that prefers long long to long in this
66745         case, we'll need another configure-time test.  Problem reported by
66746         Jim Meyering.
66747
66748 2006-07-02  Eric Blake  <ebb9@byu.net>
66749
66750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66751
66752 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * modules/inttypes (Depends-on): No longer depends on stdint.
66755         * modules/stdint (Description): Say more about assumptions.
66756         Say that the fast types might differ.  Say macros are used.
66757         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66758         (Makefile.am): Revise list of substituted symbols to match
66759         new stdint.m4.
66760         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66761         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66762         * tests/test-stdint.c (verify_same_types)
66763         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66764         the code conforms to C99/C89.
66765         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66766         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66767
66768 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66771         but fix a bug, by requiring at least 64 bits.
66772         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66773         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66774         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66775         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66776
66777         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66778         changes.  Make 2.59 a prerequisite.  Check and substitute for
66779         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66780         inttypes.h.  Do not use special include files; just use the
66781         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66782         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66783         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66784         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66785         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66786         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66787         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66788         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66789         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66790         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66791         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66792         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66793         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66794         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66795         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66796         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66797         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66798         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66799         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66800         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66801         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66802         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66803         not check for things that C99 does not require, e.g., int8_t.  If
66804         a test isn't needed unless <stdint.h> isn't working, and is
66805         unlikely to be needed for any other reason, then don't do it
66806         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66807         size_t, since we assume C89 freestanding at least.  Do not check
66808         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66809         the right thing even if the types are not defined.  Instead use:
66810         (gl_STDINT_TYPE_PROPERTIES): New macro.
66811         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66812         testing whether <sys/types.h> clashes, as Autoconf does this for
66813         us now.  All uses removed.
66814         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66815         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66816         (gl_CHECK_TYPE_SAME):
66817         Remove; no longer needed.
66818         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66819         exists, since we'll return 0 anyway in that case.
66820         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66821
66822 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66825         possible collision with system files.
66826         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66827         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66828         WCHAR_MIN and WCHAR_MAX in this case.
66829         (<stddef.h>): Do not include; no longer needed.
66830         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66831         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66832         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66833         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66834         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66835         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66836         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66837         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66838         !defined(__c99))]: Include in this case too, since it's harmless
66839         now.
66840         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66841         dangerous to do so.
66842         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66843         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66844         (_STDINT_MIN, _STDINT_MAX): New macros.
66845         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66846         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66847         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66848         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66849         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66850         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66851         macros, not typedefs; this simplifies things quite a bit.
66852         Use long int for all types narrower than int64_t.
66853         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66854         Define in terms of long long int or int64_t or long int,
66855         not int64_t or int32_t.  This saves some compile-time testing.
66856         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66857         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66858         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66859         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66860         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66861         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66862         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66863         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66864         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66865         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66866         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66867         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66868         undef any previous version and define our own version, for
66869         simplicity and consistency with the new macros for types.
66870         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66871         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66872         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66873         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66874         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66875         @WINT_T_SUFFIX@ to keep things simple here.
66876         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66877         Simplify by assuming typical 8/16/32/64 host, since we're
66878         already doing that elsewhere anyway.
66879         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66880         and assume long long int is 64 bits if available.  This
66881         speeds up 'configure'.
66882
66883 2006-07-01  Eric Blake  <ebb9@byu.net>
66884
66885         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66886         Reported by Andreas Buening.
66887
66888 2006-07-01  Eric Blake  <ebb9@byu.net>
66889
66890         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66891
66892 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66893
66894         * lib/getaddrinfo.c: fixed typo
66895
66896 2006-06-29  Jim Meyering  <jim@meyering.net>
66897
66898         * modules/strftime (Maintainer): Add my name, since with the
66899         FPRINTFTIME changes strftime.c has forked from glibc.
66900
66901 2006-06-29  Eric Blake  <ebb9@byu.net>
66902
66903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66904
66905 2006-06-29  Eric Blake  <ebb9@byu.net>
66906
66907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66908
66909 2006-06-29  Eric Blake  <ebb9@byu.net>
66910
66911         * lib/stat_.h: New file.
66912
66913 2006-06-29  Eric Blake  <ebb9@byu.net>
66914
66915         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66916         unused static function.
66917
66918 2006-06-29  Eric Blake  <ebb9@byu.net>
66919
66920         * doc/functions.texi (Function Portability): Document missing lstat
66921         on mingw.
66922
66923 2006-06-29  Eric Blake  <ebb9@byu.net>
66924
66925         * MODULES.html.sh: Add sys_stat.
66926         * modules/sys_stat: New module.
66927         * modules/mkstemp (Depends-on): Add sys_stat.
66928
66929 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66930
66931         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66932
66933 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66934
66935         * m4/c-bs-a.m4: Removed.
66936
66937 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66938
66939         * lib/strftime.c: Assume strftime() exists.
66940
66941 2006-06-29  Derek Price  <derek@ximbiot.com>
66942
66943         * modules/c-bs-a: Removed - \a is C89.
66944         * MODULES.html.sh: Remove c-bs-a.
66945
66946 2006-06-29  Bruno Haible  <bruno@clisp.org>
66947
66948         * modules/wcwidth (License): Change to LGPL.
66949
66950 2006-06-28  Simon Josefsson  <jas@extundo.com>
66951
66952         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66953         on _WIN32.
66954
66955         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66956         getnameinfo.
66957
66958 2006-06-28  Simon Josefsson  <jas@extundo.com>
66959
66960         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66961
66962 2006-06-28  Simon Josefsson  <jas@extundo.com>
66963
66964         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66965         functions there.  It will succeed on Windows XP, but on Windows
66966         2000 and (presumably) earlier, it will fail, and use the internal
66967         re-implementation.
66968         (use_win32_p): New function.
66969         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66970         Support AI_NUMERICSERV to disable getservbyname.
66971         (getnameinfo): New function, only supports
66972         NI_NUMERICHOST|NI_NUMERICSERV for now.
66973
66974         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66975         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66976         getnameinfo.
66977
66978 2006-06-28  Eric Blake  <ebb9@byu.net>
66979
66980         * modules/wcwidth: New file.
66981         * modules/mbchar (Depends-on): Add wcwidth.
66982         * modules/mbswidth (Depends-on): Add wcwidth.
66983         * MODULES.html.sh: Add wcwidth.
66984
66985 2006-06-28  Eric Blake  <ebb9@byu.net>
66986
66987         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66989
66990 2006-06-28  Eric Blake  <ebb9@byu.net>
66991
66992         * lib/xvasprintf.h: Fix comments.
66993
66994 2006-06-28  Eric Blake  <ebb9@byu.net>
66995
66996         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66997         * lib/mbswidth.c (wcwidth): Move from here...
66998         * lib/wcwidth.h: ...to this new file.
66999
67000 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67001
67002         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67003
67004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67005         it's obsolete.
67006         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67007
67008 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67009
67010         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67011         Autoconf 2.60 says this stuff was obsolete.
67012
67013 2006-06-28  Bruno Haible  <bruno@clisp.org>
67014
67015         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67016
67017 2006-06-28  Bruno Haible  <bruno@clisp.org>
67018
67019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67020         gt_TYPE_WCHAR_T.
67021
67022 2006-06-28  Bruno Haible  <bruno@clisp.org>
67023
67024         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67025         declaration for wcwidth.
67026         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67027
67028 2006-06-28  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67031         (mkdir): Define using _mkdir.
67032
67033 2006-06-28  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/getaddrinfo.h: Fix POSIX URL.
67036         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67037         _WIN32.
67038         (use_win32_p): Make static.
67039         (getaddrinfo): Reject service name if it is empty or does not consist
67040         solely of decimal digits, or if its value is > 65535.
67041         (getnameinfo): Remove useless casts.
67042
67043 2006-06-27  Simon Josefsson  <jas@extundo.com>
67044
67045         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67046         Eggert and Martin Lambers.
67047
67048 2006-06-27  Simon Josefsson  <jas@extundo.com>
67049
67050         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67051         Eggert and Martin Lambers.
67052
67053 2006-06-27  Bruno Haible  <bruno@clisp.org>
67054
67055         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67056         result to 0, not to empty.
67057         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67058
67059 2006-06-27  Bruno Haible  <bruno@clisp.org>
67060
67061         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67062
67063 2006-06-26  Simon Josefsson  <jas@extundo.com>
67064
67065         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67066         present.
67067
67068 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67071         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67073
67074 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67075
67076         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67077
67078 2006-06-26  Bruno Haible  <bruno@clisp.org>
67079
67080         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67081
67082 2006-06-26  Bruno Haible  <bruno@clisp.org>
67083
67084         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67085
67086 2006-06-26  Bruno Haible  <bruno@clisp.org>
67087
67088         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67089         SGI C compiler in pre-C99 mode.
67090         Suggested by Mark D. Baushke and Larry Jones.
67091
67092 2006-06-26  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67095         WCHAR_MAX.
67096         Reported by Mark D. Baushke and Larry Jones.
67097
67098 2006-06-26  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67101         in pre-C99 mode.
67102         Suggested by Mark D. Baushke and Larry Jones.
67103
67104 2006-06-23  Simon Josefsson  <jas@extundo.com>
67105             Bruno Haible  <bruno@clisp.org>
67106
67107         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67108         Emit mostlyclean-local rule.
67109         (func_emit_tests_Makefile_am): Likewise.
67110         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67111
67112 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67113
67114         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67115
67116 2006-06-23  Bruno Haible  <bruno@clisp.org>
67117
67118         * tests/test-stdint.c: Update to match ISO C 99 Technical
67119         Corrigendum 1.
67120
67121 2006-06-23  Bruno Haible  <bruno@clisp.org>
67122
67123         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67124
67125 2006-06-23  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/stdint_.h: Treat IRIX like OpenBSD.
67128
67129 2006-06-23  Bruno Haible  <bruno@clisp.org>
67130
67131         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67132         ISO C 99 Technical Corrigendum 1.
67133
67134 2006-06-22  Simon Josefsson  <jas@extundo.com>
67135
67136         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67137         MinGW.
67138
67139 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67142         needed.  Some compiler complained about some of them.  Problem reported
67143         by Larry Jones in
67144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67145
67146 2006-06-21  Simon Josefsson  <jas@extundo.com>
67147
67148         * tests/test-getaddrinfo.c: New file.
67149
67150         * modules/getaddrinfo-tests: New file.
67151
67152         * MODULES.html.sh: Add inet_pton.
67153
67154         * modules/inet_pton: New file.
67155
67156 2006-06-21  Simon Josefsson  <jas@extundo.com>
67157
67158         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67159         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67160         of using the (limited) gnulib implementation on Windows XP.
67161
67162         * m4/inet_pton.m4: New file.
67163
67164 2006-06-21  Simon Josefsson  <jas@extundo.com>
67165
67166         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67167         variable.
67168
67169         * lib/socket_.h: Don't define WINVER.
67170
67171         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67172         slightly modified to work in gnulib.
67173
67174 2006-06-21  Simon Josefsson  <jas@extundo.com>
67175
67176         * doc/gnulib.texi (Windows sockets): Add.
67177
67178 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * lib/read-file.c (fread_file): Start with buffer allocation of
67181         0 bytes rather than 1 byte; this simplifies the code.
67182         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67183         code to free buffer and save/restore errno.
67184         (internal_read_file): Remove unused local.
67185
67186 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67189         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67190         Problem reported by Denis Excoffier in
67191         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67192
67193 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67194
67195         * modules/sys_socket, modules/socklen: Include sys/types since
67196         FreeBSD 4.x's sys/socket.h needs it.
67197
67198 2006-06-19  Simon Josefsson  <jas@extundo.com>
67199
67200         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67201
67202 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67205
67206 2006-06-19  Bruno Haible  <bruno@clisp.org>
67207
67208         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67209         and FULL_PATH_INTTYPES_H in angle brackets.
67210         Reported by Mark D. Baushke <mdb@gnu.org>.
67211
67212 2006-06-17  Eric Blake  <ebb9@byu.net>
67213
67214         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67215         errno.
67216
67217 2006-06-17  Bruno Haible  <bruno@clisp.org>
67218
67219         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67220         <sys/inttypes.h>.
67221
67222 2006-06-17  Bruno Haible  <bruno@clisp.org>
67223
67224         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67225         whether errno is declared. Assume <errno.h> declares errno.
67226
67227 2006-06-17  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67230
67231 2006-06-17  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67234         problem on Solaris 2.5.1.
67235
67236 2006-06-16  Eric Blake  <ebb9@byu.net>
67237
67238         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67239         * lib/unicodeio.c [!defined errno]: Likewise.
67240         * lib/strtol.c [!defined errno]: Likewise.
67241         * lib/strtod.c [!defined errno]: Likewise.
67242
67243 2006-06-15  Eric Blake  <ebb9@byu.net>
67244
67245         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67246
67247 2006-06-15  Eric Blake  <ebb9@byu.net>
67248
67249         * config/srclist.txt (ssize_t.m4): Lose sync.
67250
67251 2006-06-15  Bruno Haible  <bruno@clisp.org>
67252
67253         * modules/stdint (Files): Include m4/full-header-path.m4,
67254         m4/size_max.m4, m4/wchar_t.m4.
67255         (Makefile.am): Many more substitutions.
67256         * modules/stdint-tests: New file.
67257         * tests/test-stdint.c: New file.
67258
67259 2006-06-15  Bruno Haible  <bruno@clisp.org>
67260
67261         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67262         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67263         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67264         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67265         gl_CHECK_TYPE_SAME): New macros.
67266
67267 2006-06-15  Bruno Haible  <bruno@clisp.org>
67268
67269         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67270
67271 2006-06-15  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/stdint_.h: Rewritten to be fully auto-configured.
67274         Fixes bug on HP-UX/IA64.
67275
67276 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * lib/getdate.y (__attribute__): Don't define if already defined.
67279         Problem reported by Larry Jones.
67280         * lib/utimens.c (__attribute__): Likewise.
67281
67282 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67285         reported by Andreas Schwab.
67286
67287 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67288             Bruno Haible  <bruno@clisp.org>
67289
67290         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67291         check for the declaration of strnlen and a run test that exposes the
67292         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67293         rpl_strndup.
67294
67295 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67296             Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67299
67300 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67301
67302         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67303         compile test, for Tru64 4.0D.
67304
67305 2006-05-28  Karl Berry  <karl@gnu.org>
67306
67307         * config/srclist.txt (printf-args.c): lose sync.
67308
67309 2006-05-26  Martin Lambers  <marlam@marlam.de>
67310
67311         * lib/getpass.c: Updates the test for the native W32 API, and adds
67312         missing includes, thus fixing compilation warnings.
67313
67314 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67315
67316         * lib/exclude.c (exclude_fnmatch): New function.
67317         (excluded_file_name): Call exclude_fnmatch.
67318         * lib/exclude.h (excluded_file_name): New prototype
67319
67320 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/tempname.c (small_open, large_open): New macros.
67323         (__open, __open64) [!_LIBC]: Remove.
67324         (__gen_tempname): Use small_open and large_open instead of __open
67325         and __open64.  This fixes a portability bug on HP-UX 11.11i
67326         reported by Simon Wing-Tang in
67327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67328
67329 2006-05-24  Bruno Haible  <bruno@clisp.org>
67330
67331         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67332         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67333         Reported by Thorsten Maerz <torte@netztorte.de> via
67334         Aaron Stone <aaron@serendipity.cx>.
67335
67336 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67339         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67340         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67341         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67342         not really conditional on the cache.
67343         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67344
67345 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67348         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67349         (my_usleep): Don't mishandle maximum value.
67350
67351 2006-05-19  Jim Meyering  <jim@meyering.net>
67352
67353         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67354
67355 2006-05-17  Bruno Haible  <bruno@clisp.org>
67356
67357         Cygwin portability.
67358         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67359
67360 2006-05-17  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/stdint_.h: Fix recognition of Cygwin.
67363
67364 2006-05-15  Bruno Haible  <bruno@clisp.org>
67365
67366         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67367         on libtool patch by Ralf Wildenhues.
67368
67369 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67372         test for C99 conformance; (bool) 0.5 is an integer constant
67373         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67374         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67375
67376 2006-05-11  Simon Josefsson  <jas@extundo.com>
67377
67378         * m4/xvasprintf.m4: Fix obvious typo.
67379
67380 2006-05-11  Jim Meyering  <jim@meyering.net>
67381
67382         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67383         James Lemley.
67384
67385 2006-05-10  Simon Josefsson  <jas@extundo.com>
67386
67387         * lib/md4.c: Typo fix, update copyright years.
67388         (K1, K2): Don't use L because it turn computations into 64-bit on
67389         64-bit platforms.
67390
67391 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67394         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67395         unwanted sign propagation, e.g., on hosts with 64-bit int.
67396         There still are some problems with reeelly weird theoretical hosts
67397         (e.g., 33-bit int) but it's not worth worrying about now.
67398         * lib/sha1.c (rol): Likewise.
67399         (K1, K2, K3, K4): Remove unnecessary L suffix.
67400
67401 2006-05-10  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/des.c: Cast to avoid warnings.
67404
67405 2006-05-09  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67408         (Depends-on): Depend also on xsize, stdarg.
67409         (configure.ac): Add gl_XVASPRINTF.
67410
67411 2006-05-09  Bruno Haible  <bruno@clisp.org>
67412
67413         * m4/xvasprintf.m4: New file.
67414
67415 2006-05-09  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67418         (EOVERFLOW): Define fallback value.
67419         (xstrcat): New function.
67420         (xvasprintf): Recognize the special case of a string concatenation.
67421
67422 2006-05-08  Eric Blake  <ebb9@byu.net>
67423
67424         * gnulib-tool (func_version): Base copyright year on CVS date.
67425         (func_emit_copyright_notice): New function.
67426         (func_emit_lib_Makefile_am): Use it.
67427         (func_emit_tests_Makefile_am): Likewise.
67428         (func_import): Likewise.
67429
67430 2006-05-08  Bruno Haible  <bruno@clisp.org>
67431
67432         * modules/stdarg: New file.
67433         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67434
67435 2006-05-08  Bruno Haible  <bruno@clisp.org>
67436
67437         * m4/stdarg.m4: New file, from GNU gettext.
67438
67439 2006-05-08  Bruno Haible  <bruno@clisp.org>
67440
67441         * config/srclist.txt (build-aux/config.rpath): different from latest
67442         release.
67443
67444 2006-05-08  Bruno Haible  <bruno@clisp.org>
67445
67446         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67447
67448 2006-05-05  Jim Meyering  <jim@meyering.net>
67449
67450         * m4/warning.m4: New file, derived from bison's file by the same name.
67451
67452 2006-05-03  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/stdint_.h: Shorter URL.
67455         * lib/inttypes.h: Likewise.
67456
67457 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67460
67461 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/verify.h: Document the internals better.  Most of this change
67464         was written by Bruno Haible.
67465
67466 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * doc/verify.texi: New file, partly based on a proposal by
67469         Bruno Haible.
67470
67471 2006-05-02  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67474         test from here...
67475         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67476
67477 2006-04-29  Bruno Haible  <bruno@clisp.org>
67478
67479         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67480         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67481
67482 2006-04-29  Bruno Haible  <bruno@clisp.org>
67483
67484         * gnulib-tool: Make --update option actually work.
67485
67486 2006-04-29  Bruno Haible  <bruno@clisp.org>
67487
67488         * doc/gcd.texi: New file.
67489         * doc/gnulib.texi: Include it.
67490
67491 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * lib/getdate.y (get_date): When adding relative date, start with the
67494         initial time, not with the result of the first mktime call.
67495
67496 2006-04-25  Bruno Haible  <bruno@clisp.org>
67497
67498         * gnulib-tool (func_import): Output the include directives in three
67499         blocks, sorted separately.
67500         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67501
67502 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67505         to define main with arguments, for C++.  Reported by Eric Blake.
67506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67507         Prefer 'int main ()' to 'int main (void)', for C++.
67508         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67510         for 'main', for C99 and C++.
67511
67512 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67515         Don't assume that exit status -1 is valid.
67516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67517         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67518         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67519         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67520         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67522         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67523         functions can be used without declaring them, or that you can
67524         exit with status -1.
67525         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67526
67527 2006-04-24  Karl Berry  <karl@gnu.org>
67528
67529         * config/srclist.txt (longdouble.m4): sync lost.
67530
67531 2006-04-24  Eric Blake  <ebb9@byu.net>
67532
67533         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67534
67535 2006-04-24  Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67538         poll() implementation in AIX.
67539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67540
67541 2006-04-24  Bruno Haible  <bruno@clisp.org>
67542
67543         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67544         assigned exactly once.
67545
67546 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67547             Bruno Haible  <bruno@clisp.org>
67548
67549         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67550         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67551         for AM_CPPFLAGS.
67552
67553 2006-04-23  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/copy-file: Depend on unistd.
67556         * modules/execute: Likewise.
67557         * modules/fatal-signal: Likewise.
67558         * modules/findprog: Likewise.
67559         * modules/mkdtemp : Likewise.
67560         * modules/pipe: Likewise.
67561         * modules/wait-process: Likewise.
67562
67563 2006-04-23  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67566         condition was already detected.
67567         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67568
67569 2006-04-23  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/copy-file.c: Include <unistd.h> unconditionally.
67572         * lib/execute.c: Likewise.
67573         * lib/fatal-signal.c: Likewise.
67574         * lib/findprog.c: Likewise.
67575         * lib/mkdtemp.c: Likewise.
67576         * lib/pipe.h: Likewise.
67577         * lib/pipe.c: Likewise.
67578         * lib/wait-process.h: Likewise.
67579
67580 2006-04-23  Bruno Haible  <bruno@clisp.org>
67581
67582         * gnulib-tool (func_usage): Fix --import description. Document
67583         --update.
67584         (func_import): Create temporary file in a temporary directory, if
67585         --dry-run is specified. Silence errors from 'grep' when there are no
67586         m4 files in $m4dir.
67587         (func_create_testdir): Silence errors from 'grep' when there are no
67588         m4 files in $m4dir.
67589         Reported by Karl Berry <karl@freefriends.org>.
67590
67591 2006-04-20  Bruno Haible  <bruno@clisp.org>
67592
67593         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67594         one argument, so that the code will be portable to Autoconf 2.60.
67595         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67597         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67598
67599 2006-04-19  Derek Price  <derek@ximbiot.com>
67600             Eric Blake  <ebb9@byu.net>
67601
67602         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67603         rather than "/full/path.h".  Update comment to match.  Shorten &
67604         generalize m4_translit call via AS_TR_CPP.
67605
67606 2006-04-19  Derek Price  <derek@ximbiot.com>
67607             Eric Blake  <ebb9@byu.net>
67608
67609         * lib/inttypes.h: Correct grammar in comment.
67610
67611 2006-04-18  Derek Price  <derek@ximbiot.com>
67612             Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * modules/inttypes: New file.
67615         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67616
67617 2006-04-18  Derek Price  <derek@ximbiot.com>
67618             Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67621         New files.
67622
67623 2006-04-18  Derek Price  <derek@ximbiot.com>
67624             Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         * lib/inttypes.h: New file.
67627         * lib/strtoimax.c: Assume <inttypes.h>.
67628
67629 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67632         isn't mounted.  Problem reported by Kir Kolyshkin.
67633
67634 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67637         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67638         Derek R. Price.
67639         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67640         implementation.
67641
67642 2006-04-12  Eric Blake  <ebb9@byu.net>
67643
67644         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67645         is now done automatically by the corresponding Autoconf macro.
67646
67647 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67650         time_r.h.
67651
67652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67653
67654         Merge regex changes from libc, removing some of our
67655         POSIX-conformance changes that were rejected and redoing them in a
67656         less-intrusive way.
67657
67658         * lib/regcomp.c (re_compile_internal, init_dfa):
67659         Length arg is now size_t, not Idx.  All uses changed.
67660         (peek_token): Forward decl now says internal_function.
67661         (__re_error_msgid, __re_error_msgid_idx):
67662         Now static rather than extern with attribute_hidden.
67663         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67664         For some reason libc prefers K&R style defns for external functions.
67665         (regerror) [!defined _LIBC]: Likewise.
67666         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67667         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67668         (build_range_exp, build_collating_symbol):
67669         Use K&R-style defn.
67670         (re_compile_fastmap): Use '\0' to memset, not 0.
67671         (utf8_sb_map): Make the calculations more obvious.
67672         (init_dfa, parse_bracket_exp, build_charclass_op):
67673         Call calloc and cast result, as glibc does.
67674         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67675         (build_range_exp, build_collating_symbol):
67676         Now internal functions.
67677
67678         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67679
67680         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67681         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67682         Don't depend on VMS; depend on __VMS instead, for POSIX
67683         namespace cleanness.
67684         (regoff_t): Define to ssize_t, not long int.
67685
67686         Remove the REG_ macros named below.  Instead, make the old names
67687         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67688         __USE_GNU_REGEX.
67689         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67690         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67691         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67692         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67693         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67694         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67695         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67696         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67697         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67698         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67699         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67700         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67701         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67702         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67703         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67704         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67705         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67706         (REG_NREGS):
67707         Remove.  All uses replaced by the old RE_* names.
67708         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67709         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67710         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67711         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67712         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67713         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67714         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67715         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67716         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67717         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67718         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67719         Don't bother having these macros be independent of each others'
67720         values, since they no longer exist in the POSIX name space.
67721
67722         Rename the following member names back to their old names,
67723         unless !__USE_GNU_REGEX.  All uses changed back.
67724         (buffer): Renamed from re_buffer.
67725         (allocated): Renamed from re_allocated.
67726         (used): Renamed from re_used.
67727         (syntax): Renamed from re_syntax.
67728         (fastmap): Renamed from re_fastmap.
67729         (translate): Renamed from re_translate.
67730         (can_be_null): Renamed from re_can_be_null.
67731         (regs_allocated): Renamed from re_regs_allocated.
67732         (fastmap_accurate): Renamed from re_fastmap_accurate.
67733         (no_sub): Renamed from re_no_sub.
67734         (not_bol): Renamed from re_not_bol.
67735         (not_eol): Renamed from re_not_eol.
67736         (newline_anchor): Renamed from re_newline_anchor.
67737         (num_regs): Renamed from rm_num_regs.
67738         (start): Renamed from rm_start.
67739         (end): Renamed from rm_end.
67740
67741         (free_state): Move up a bit.
67742
67743         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67744         #define to be empty.
67745         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67746         when that is what is intended.
67747         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67748         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67749         (MAX): New macro.
67750         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67751         All uses changed back to re_malloc, etc.  It's now the caller's
67752         responsibility to check for overflow; all callers changed.
67753         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67754         (re_x2nrealloc): Remove.
67755         (free_state): Remove decl.
67756
67757         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67758         (re_set_registers, re_exec):
67759         Use K&R-style defn.
67760
67761         2006-01-31  Roland McGrath  <roland@redhat.com>
67762
67763         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67764         Reported by Mike Frysinger <vapier@gentoo.org>.
67765
67766         2006-01-15  Andreas Jaeger  <aj@suse.de>
67767
67768         [BZ #1950]
67769         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67770         build_wcs_upper_buffer change.
67771         (build_wcs_upper_buffer): Change return type.
67772
67773         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67774
67775         * lib/regex_internal.h: Include <stdint.h> if available.
67776
67777         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67778
67779         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67780
67781         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67782
67783         * lib/regcomp.c: Adjust for changed secondary hash function.
67784
67785         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67786
67787         * lib/regex.h: Pretty printing.
67788         Clean up namespace a bit.
67789
67790         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67791
67792         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67793         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67794
67795         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67796                     Ulrich Drepper  <drepper@redhat.com>
67797
67798         [BZ #1302]
67799         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67800         changed.
67801         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67802
67803         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67804
67805         [BZ #281]
67806         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67807         * lib/regcomp.c: Remove unnecessary uses of
67808         unsigned RE_TRANSLATE_TYPE.
67809         * lib/regex_internal.h: Likewise.
67810         * lib/regex_internal.c: Likewise.
67811         * lib/regexec.c: Likewise.
67812         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67813
67814         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67815
67816         * lib/regexec.c (find_recover_state): Remove unnecessary
67817         initialization.
67818         (transit_state_bkref): Make DFA a const pointer.
67819         (get_subexp): Likewise.
67820         (check_arrival): Likewise.
67821         (update_cur_sifted_state): Likewise.
67822         (re_search_internal): Likewise.
67823         (prune_impossible_nodes): Likewise.
67824         (acquire_init_state_context): Likewise.
67825         (proceed_next_node): Likewise.
67826         (set_regs): Likewise.
67827         (free_fail_stack_return): Likewise.
67828         (check_arrival_expand_ecl): Mark DFA parameter as const.
67829         (check_arrival_expand_ecl_sub): Likewise.
67830         (check_subexp_limits): Likewise.
67831         (sub_epsilon_src_nodes):  Likewise.
67832         (add_epsilon_src_nodes):  Likewise.
67833         (merge_state_array): Likewise.
67834         (update_regs): Likewise.
67835         (build_trtable): Likewise.
67836         (sift_states_backward): Mark MCTX parameter as const.
67837         (build_sifted_states): Likewise.
67838         (update_cur_sifted_state): Likewise.
67839         (sift_states_mkref): Likewise.
67840         (check_arrival_expand_ecl): Mark eclosure as const.
67841         (check_dst_limits_calc_pos_1): Likewise.
67842         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67843         pointer.
67844
67845         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67846
67847         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67848         (transit_state_sb): Likewise.
67849         (transit_state_mb): Likewise.
67850         (sift_states_iter_mb): Likewise.
67851         (check_arrival_add_next_nodes): Likewise.
67852         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67853         [_LIBC] (re_search_2_stub): Use mempcpy.
67854
67855         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67856         mbrtowc for very simple UTF-8 case.
67857
67858         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67859         a pointer-to-const.
67860         (re_acquire_state_context): Likewise.
67861         * lib/regex_internal.h: Adjust prototypes.
67862
67863         * lib/regex.c: Prevent using C++ compilers.
67864
67865         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67866         (re_acquire_state_context): Likewise.
67867
67868 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * modules/regex (Depends-on): Add ssize_t.
67871
67872 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67875         translation table.
67876
67877 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67880
67881 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67882             Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67885         <sys/types.h> and <inttypes.h>.
67886
67887 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67888
67889         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67890         `__error_t_defined', so argp.h will not typedef the former.
67891
67892 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67895         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67896         glibc names.  Even if glibc is changed to conform to POSIX, the
67897         traditional names will be available anyway, since regex depends on
67898         the extensions module.  Also, fix a longstanding typo in the
67899         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67900         reported by Emanuele Giaquinta.  Also, change sense of cached
67901         variable, so that the message makes sense.
67902
67903 2006-03-24  Simon Josefsson  <jas@extundo.com>
67904
67905         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67906         including some doc fixes.
67907         (base64_encode_alloc): Fix +1 bug on allocation failures.
67908
67909 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67910
67911         * lib/base64.c (base64_encode): Do not read past end of array with
67912         unsanitized input on systems with CHAR_BIT > 8.
67913
67914 2006-03-24  Eric Blake  <ebb9@byu.net>
67915
67916         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67917
67918 2006-03-22  Karl Berry  <karl@gnu.org>
67919
67920         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67921         * config/srclistvars.sh (COREUTILS): new var.
67922
67923 2006-03-17  Jim Meyering  <jim@meyering.net>
67924
67925         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67926         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67927
67928 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67931         no longer needs it.  Instead, check that regoff_t is as least
67932         as wide as ptrdiff_t.
67933
67934         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67935         so that our regex.h stays compatible with the installed regex.
67936         This is helpful for installers who configure --without-included-regex.
67937         Problem reported by Emanuele Giaquinta.
67938
67939 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67942         Typedef to long int, not to off_, as POSIX will likely change
67943         in that direction.
67944
67945 2006-03-15  Eric Blake  <ebb9@byu.net>
67946
67947         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67948
67949 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67950
67951         * lib/argp-help.c (validate_uparams): Fix typo
67952         * lib/argp-parse.c (argp_default_options): Consistently begin help
67953         messages with a lowercase letter.
67954
67955 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67958         overrun buffers and shouldn't be used (much as gets shouldn't be
67959         used).
67960         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67961
67962 2006-03-08  Simon Josefsson  <jas@extundo.com>
67963
67964         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67965         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67966
67967 2006-03-08  Simon Josefsson  <jas@extundo.com>
67968
67969         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67970         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67971
67972 2006-03-08  Simon Josefsson  <jas@extundo.com>
67973
67974         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67975         signal that configure disabled the device.
67976
67977 2006-03-08  Simon Josefsson  <jas@extundo.com>
67978
67979         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67980         languages.
67981
67982 2006-03-07  Simon Josefsson  <jas@extundo.com>
67983
67984         * modules/getopt (Depends-on): Add unistd.
67985
67986         * modules/unistd: New file.
67987
67988 2006-03-07  Simon Josefsson  <jas@extundo.com>
67989
67990         * modules/gc-random: New file.
67991
67992 2006-03-07  Simon Josefsson  <jas@extundo.com>
67993
67994         * m4/unistd_h.m4: New file.
67995
67996 2006-03-07  Simon Josefsson  <jas@extundo.com>
67997
67998         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67999         test to be side-effect free by storing the result in the cache
68000         variable gl_cv_lib_readline, and moving the assignment of
68001         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68002         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68003
68004 2006-03-07  Simon Josefsson  <jas@extundo.com>
68005
68006         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68007         error on missing devices (the functions will return an error).
68008
68009         * m4/gc.m4: Move random stuff to gc-random.m4
68010
68011 2006-03-07  Simon Josefsson  <jas@extundo.com>
68012
68013         * lib/unistd_.h: New file.
68014
68015 2006-03-07  Simon Josefsson  <jas@extundo.com>
68016
68017         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68018
68019 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68022         Problem reported by Juan Manuel Guerrero.
68023
68024 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68027         the unistd module.
68028         * lib/getlogin_r.c: Likewise.
68029         * lib/getlogin_r.h: Likewise.
68030         * lib/glob.c: Likewise.
68031         * lib/pagealign_alloc.c: Likewise.
68032         * lib/unistd_.h: Remove; no longer needed.
68033
68034 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68037         Add unistd.
68038         * modules/c-stack (Depends-on): Add unistd.
68039         * modules/getlogin_r: Likewise.
68040         * modules/glob: Likewise.
68041         * modules/pagealign_alloc: Likewise.
68042         * modules/unistd (Files): Remove lib/unistd_.h.
68043         (EXTRA_DIST): Remove.
68044         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68045         need unistd_.h.
68046         (MOSTLYCLEANFILES): Remove unistd.h-t.
68047
68048 2006-03-03  Simon Josefsson  <jas@extundo.com>
68049
68050         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68051
68052 2006-03-03  Simon Josefsson  <jas@extundo.com>
68053
68054         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68055         libidn and bison.
68056
68057 2006-03-03  Simon Josefsson  <jas@extundo.com>
68058
68059         * build-aux/maint.mk: Add indent target.
68060
68061 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68062
68063         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68064         our replacement poll.h in any case, to avoid a differing
68065         declaration from a system header.  Seen on AIX.
68066
68067 2006-03-01  Simon Josefsson  <jas@extundo.com>
68068
68069         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68070         <kasal@ucw.cz>.
68071
68072 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * modules/gettime (Depends-on): Add extensions module.
68075         * modules/nanosleep (Depends-on): Likewise.
68076         * modules/settime (Depends-on): Likewise.
68077
68078 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68079
68080         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68081         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68082         pedantically.
68083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68084         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68085
68086         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68087         not "==".  Reported by Ralf Wildenhues.
68088
68089 2006-03-01  Karl Berry  <karl@gnu.org>
68090
68091         * doc/Copyright/request-*: new files, synced from gnuorg.
68092
68093 2006-03-01  Karl Berry  <karl@gnu.org>
68094
68095         * config/srclist.txt (Copyright/*): new entries.
68096
68097 2006-02-28  Simon Josefsson  <jas@extundo.com>
68098
68099         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68100
68101 2006-02-27  Simon Josefsson  <jas@extundo.com>
68102
68103         * lib/base64.h: Indent #define's.  From Jim Meyering
68104         <jim@meyering.net>.
68105
68106 2006-02-27  Jim Meyering  <jim@meyering.net>
68107
68108         Revert the change of 2006-02-24, so these files can continue
68109         to be sync'd from gettext.
68110         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68111         of `config.h'.
68112
68113 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * modules/intprops: New file.
68116         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68117         Add intprops.
68118         * modules/getloadavg (Files): Remove lib/intprops.h.
68119         (Depends-on): Add intprops.
68120         * modules/human: Likewise.
68121         * modules/inttostr: Likewise.
68122         * modules/openat: Likewise.
68123         * modules/sig2str: Likewise.
68124         * modules/userspec: Likewise.
68125         * modules/utimecmp: Likewise.
68126         * modules/xnanosleep: Likewise.
68127         * modules/xstrtol: Likewise.
68128
68129 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68130
68131         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68132         * modules/lock-tests (TESTS): Use $(EXEEXT).
68133         * modules/tls-tests: Likewise.
68134         * modules/argp-tests: Likewise.
68135         (check_PROGRAMS): New var, replacing...
68136         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68137
68138 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68139
68140         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68141         `config.h'.
68142
68143 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68146
68147 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68148
68149         Sync from coreutils.
68150         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68151         gl_CHDIR_SAFER.
68152
68153 2006-02-22  Jim Meyering  <jim@meyering.net>
68154
68155         Sync from coreutils.
68156         * m4/chdir-safer.m4: New file.
68157
68158 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68159
68160         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68161         AT_FDCWD exceeds INT_MAX.
68162         * lib/openat.h (AT_FDCWD): Likewise.
68163
68164 2006-02-17  Eric Blake  <address@hidden>
68165
68166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68167
68168 2006-02-16  Simon Josefsson  <jas@extundo.com>
68169
68170         * modules/getaddrinfo (Depends-on): Add sys_socket.
68171
68172 2006-02-15  Simon Josefsson  <jas@extundo.com>
68173
68174         * build-aux/maint.mk: Add dsyntax-check rule.
68175
68176 2006-02-15  Eric Blake  <ebb9@byu.net>
68177
68178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68179         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68180         'present but cannot compile' warnings on cygwin.
68181         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68182         use ws2tcpip.h if sys/socket.h works.
68183         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68184         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68185
68186 2006-02-14  Simon Josefsson  <jas@extundo.com>
68187
68188         * modules/maintainer-makefile (Files): Rename.
68189
68190         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68191         and (the local) Makefile.cfg to maint-cfg.mk.
68192
68193         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68194         to the latter.
68195
68196         * modules/maintainer-makefile: New module.
68197
68198         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68199         severaly stripped to make it possible to build it up from scratch
68200         with reliable tests.
68201
68202         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68203         fixes to permit overriding the default actions when configure and
68204         makefile are not available.
68205
68206 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         Sync from coreutils.
68209         * modules/lstat (Depends-on): Don't depend on xalloc.
68210         (License): Change from GPL to LGPL, since this is now simply a
68211         replacement for a libc function.
68212
68213 2006-02-14  Jim Meyering  <jim@meyering.net>
68214
68215         Sync from coreutils.
68216
68217         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68218         failure on deficient systems, and simplify gnulib lgpl dependencies.
68219         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68220         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68221
68222         * lib/xalloc-die.c: Remove unused definition of N_.
68223
68224 2006-02-14  Jim Meyering  <jim@meyering.net>
68225
68226         Sync from coreutils.
68227         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68228         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68229         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68230         double-quote uses of that variable, to accommodate the rare case in
68231         which getmntent is available in none of the libraries checked.  This
68232         happens at least on FreeBSD 5.0.
68233
68234 2006-02-13  Simon Josefsson  <jas@extundo.com>
68235
68236         * gnulib-tool (Usage): Fix --import, from
68237         karl@freefriends.org (Karl Berry).
68238
68239 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68240
68241         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68242
68243 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68244
68245         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68246         "autoupdate" on 2005-12-12.
68247
68248 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * modules/closeout (Depends-on): Remove atexit.
68251
68252 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68255         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68256
68257 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68260         __EXTENSIONS__ if this causes compilation to fail.  Problem
68261         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68262         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68263
68264 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68267         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68269         All uses changed.
68270
68271 2006-01-26  Simon Josefsson  <jas@extundo.com>
68272
68273         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68274         prototype is visible on mingw32.
68275
68276         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68277         for mingw32.
68278
68279         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68280         mingw32).
68281
68282 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68285         attempt to open for write; this always fails, at least on POSIX
68286         hosts.  This reinstates the 2006-01-09 change, which was
68287         inadvertently removed.
68288
68289 2006-01-26  Bruno Haible  <bruno@clisp.org>
68290
68291         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68292         Reported by Paul Eggert.
68293
68294 2006-01-26  Bruno Haible  <bruno@clisp.org>
68295             Paul Eggert  <eggert@cs.ucla.edu>
68296
68297         * lib/stdbool_.h (_Bool)
68298         [(! (defined __cplusplus || defined __BEOS__)
68299           && !defined __GNUC__
68300           && !(defined __HP_cc || defined __xlc__
68301                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68302                || defined __sgi))]:
68303         #define to signed char in these cases too; this simplifies
68304         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68305         etc., separately) and makes it more conservative.
68306
68307 2006-01-25  Simon Josefsson  <jas@extundo.com>
68308
68309         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68310         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68311         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68312
68313 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68314
68315         * lib/argp-namefrob.h: Bugfix. Remove stray #
68316
68317 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68320         so that we test the test.
68321         Check for yet another HP-UX cc bug involving *bool |= bool.
68322
68323 2006-01-25  Karl Berry  <karl@gnu.org>
68324
68325         * config/srclist.txt (vasnprintf.c): sync lost.
68326
68327 2006-01-25  Jim Meyering  <jim@meyering.net>
68328
68329         Sync from the stable (b5) branch of coreutils:
68330
68331         * lib/fts.c (fts_children): Don't let close() clobber errno from
68332         failed fchdir().
68333
68334         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68335         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68336         a dangling symlink.  That can also happen at least for ELOOP.
68337         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68338         FYI, this bug predates the inclusion of fts.c in coreutils.
68339
68340         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68341         in their own block, so pre-c99 compilers don't object.
68342
68343         Avoid the double-free (first in fts_read, second in fts_close) that
68344         would occur when an `active' directory is made inaccessible (e.g.,
68345         via chmod a-x) during a traversal.
68346         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68347         before returning.  Reproduce this failure by
68348         mkdir -p a/b; cd a; chmod a-x . b
68349         Reported by Stavros Passas.
68350
68351 2006-01-25  Jim Meyering  <jim@meyering.net>
68352
68353         * lib/fileblocks.c: Remove more useless parentheses.
68354         * lib/readutmp.h: Likewise.
68355
68356 2006-01-25  Bruno Haible  <bruno@clisp.org>
68357
68358         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68359         warnings.
68360         Reported by Paul Eggert.
68361
68362 2006-01-25  Bruno Haible  <bruno@clisp.org>
68363
68364         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68365         rid of a trap command. For Solaris sh.
68366         Reported by Mark D. Baushke <mdb@gnu.org>.
68367
68368 2006-01-24  Simon Josefsson  <jas@extundo.com>
68369
68370         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68371         Bruno.
68372
68373 2006-01-24  Karl Berry  <karl@gnu.org>
68374
68375         * config/srclist.txt (argp-namefrob.h): sync lost.
68376
68377 2006-01-24  Jim Meyering  <jim@meyering.net>
68378
68379         * modules/openat (Files): Add lib/intprops.h.
68380         From Mark D. Baushke.
68381
68382 2006-01-24  Jim Meyering  <jim@meyering.net>
68383
68384         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68385         Reported by Mark D. Baushke.
68386
68387 2006-01-24  Jim Meyering  <jim@meyering.net>
68388
68389         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68390
68391 2006-01-24  Bruno Haible  <bruno@clisp.org>
68392
68393         * modules/strnlen (Maintainer): Change from glibc to all.
68394
68395 2006-01-24  Bruno Haible  <bruno@clisp.org>
68396
68397         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68398         Patch by Paul Eggert.
68399
68400 2006-01-24  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68403         already has it.
68404         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68405         2005-11-26.
68406
68407         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68408         'signed char' to avoid problems with the built-in _Bool type.
68409         Reported by Paul Eggert on 2005-11-26.
68410
68411 2006-01-24  Bruno Haible  <bruno@clisp.org>
68412
68413         * gnulib-tool (func_import): Avoid constructing complicated sed
68414         expressions inside backquote.
68415         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68416
68417 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68418
68419         These changes imported from libc.
68420         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68421         test and two separate function calls.
68422         * lib/strndup.c (__strndup): Add libc_hidden_def.
68423
68424 2006-01-23  Simon Josefsson  <jas@extundo.com>
68425
68426         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68427         Remove the test_*_SOURCES variable: automake infers it by default.
68428         * modules/tls-tests: Likewise.
68429
68430 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         Work around porting bugs reported by Dieter in
68433         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68434         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68435         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68436         Include "getopt.h" first, to check interface.
68437         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68438         !HAVE_DECL_GETENV.
68439         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68440         (__strndup): Revert to K&R-style function dfns, the glibc style.
68441         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68442         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68443         Include strnlen.h first, to get prototype properly.
68444         (strnlen): Renamed from __strnlen.
68445         Remove weak alias.
68446
68447 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68450
68451 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * config/srclist.txt: Adjust to reflect glibc reorganization.
68454         This affects only comments.
68455
68456 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68457
68458          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68459          Reported by Bruce Korb <bkorb@gnu.org>.
68460
68461 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68464         to pacify gcc -Wswitch-default.
68465
68466 2006-01-22  Bruno Haible  <bruno@clisp.org>
68467
68468         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68469         temporary buffer for sprintf, take into account the precision also
68470         for 'd', 'i', 'u', 'o', 'x', 'X'.
68471
68472 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68473
68474         * modules/argp-tests: New module
68475         * tests/test-argp.c: New file
68476         * tests/test-argp-2.sh: New file
68477
68478 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68479
68480         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68481         (__argp_base_name): Removed
68482         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68483         typo.
68484         (__argp_base_name): Provide macro definition or extern declaration
68485         depending on the configuration
68486
68487 2006-01-20  Simon Josefsson  <jas@extundo.com>
68488
68489         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68490
68491 2006-01-20  Simon Josefsson  <jas@extundo.com>
68492
68493         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68494
68495 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68498         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68499         Suggested by Bruno Haible.
68500
68501 2006-01-20  Karl Berry  <karl@gnu.org>
68502
68503         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68504         until changes propagate, I guess.
68505
68506 2006-01-19  Simon Josefsson  <jas@extundo.com>
68507
68508         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68509
68510 2006-01-19  Simon Josefsson  <jas@extundo.com>
68511
68512         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68513
68514 2006-01-19  Simon Josefsson  <jas@extundo.com>
68515
68516         * gnulib-tool: Set check_PROGRAMS.
68517
68518         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68519         modules/des-tests, modules/gc-arcfour-tests,
68520         modules/gc-arctwo-tests, modules/gc-des-tests,
68521         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68522         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68523         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68524         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68525         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68526         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68527         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68528         test_*_SOURCES.
68529
68530 2006-01-18  Simon Josefsson  <jas@extundo.com>
68531
68532         * modules/socklen (Depends-on): Depend on sys_socket.
68533
68534 2006-01-18  Simon Josefsson  <jas@extundo.com>
68535
68536         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68537         modules/des-tests, modules/gc-arcfour-tests,
68538         modules/gc-arctwo-tests, modules/gc-des-tests,
68539         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68540         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68541         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68542         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68543         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68544         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68545         $(EXEEXT) to automake TESTS variable, for mingw32.
68546
68547 2006-01-17  Simon Josefsson  <jas@extundo.com>
68548
68549         * modules/socklen (Include): Need sys/socket.h.
68550
68551 2006-01-17  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/ssize_t (Include): Add <sys/types.h>.
68554
68555 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68558         it's not portable and it doesn't work with cross-compiles.
68559         Problem reported by Bruno Haible.  Fix missing-$ typo in
68560         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68561         -zignore from being used with Sun's C compiler.
68562
68563 2006-01-12  Simon Josefsson  <jas@extundo.com>
68564
68565         * lib/base64.c: Fix warning, reported by Bruno Haible
68566         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68567
68568 2006-01-12  Bruno Haible  <bruno@clisp.org>
68569
68570         * modules/ldd: New file.
68571         * build-aux/ldd.sh.in: New file.
68572         * MODULES.html.sh (Support for building libraries and executables): Add
68573         ldd.
68574
68575 2006-01-12  Bruno Haible  <bruno@clisp.org>
68576
68577         * m4/ldd.m4: New file.
68578
68579 2006-01-12  Bruno Haible  <bruno@clisp.org>
68580
68581         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68582         endless loop while replacing $auxdir with build-aux.
68583
68584 2006-01-11  Simon Josefsson  <jas@extundo.com>
68585
68586         * lib/stdint_.h (SIZE_MAX): Add missing (.
68587
68588 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         Sync from coreutils.
68591         * lib/md5.c: Fix commentary typos.
68592         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68593         * lib/md5.h (__attribute__): Remove; unused.
68594         * lib/sha1.c: Fix commentary to match md5 better.
68595         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68596         so that we don't need to worry about alignment.  All uses changed.
68597         This merges the 2005-10-28 md5 change into sha1.
68598
68599 2006-01-11  Jim Meyering  <jim@meyering.net>
68600
68601         Sync from coreutils.
68602         * lib/md5.c (OP): Fix spacing.
68603
68604 2006-01-11  Bruno Haible  <bruno@clisp.org>
68605
68606         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68607         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68608         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68609
68610 2006-01-11  Bruno Haible  <bruno@clisp.org>
68611
68612         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68613         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68614         the "early" section as well.
68615
68616 2006-01-11  Bruno Haible  <bruno@clisp.org>
68617
68618         Avoid "ar: no archive members specified" error on MacOS X.
68619         * gnulib-tool (func_modules_add_dummy): New function.
68620         (func_import, func_create_testdir): Invoke it.
68621
68622 2006-01-11  Bruno Haible  <bruno@clisp.org>
68623
68624         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68625         with $auxdir in AC_CONFIG_FILES statements.
68626
68627 2006-01-11  Bruno Haible  <bruno@clisp.org>
68628
68629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68630         Initialize also noinst_HEADERS to empty.
68631
68632 2006-01-11  Bruno Haible  <bruno@clisp.org>
68633
68634         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68635         variables.
68636         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68637         autoreconf.
68638
68639 2006-01-11  Bruno Haible  <bruno@clisp.org>
68640
68641         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68642         overridable by the user.
68643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68644
68645 2006-01-10  Simon Josefsson  <jas@extundo.com>
68646
68647         * modules/sys_socket: New file.
68648
68649 2006-01-10  Simon Josefsson  <jas@extundo.com>
68650
68651         * m4/sys_socket_h.m4: New file.
68652
68653 2006-01-10  Simon Josefsson  <jas@extundo.com>
68654
68655         * lib/socket_.h: New file.
68656
68657 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * modules/readutmp (Maintainer): Add myself.
68660
68661 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68664         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68665         People who are still concerned with buggy memcmp implementations
68666         can invoke gl_FUNC_MEMCMP themselves.
68667
68668 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * lib/regex_internal.h (BITSET_WORD_BITS):
68671         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68672         preprocessor mishandles large unsigned values as if they were signed.
68673         Problem reported by Claudio Fontana in
68674         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68675
68676 2006-01-10  Jim Meyering  <jim@meyering.net>
68677
68678         Avoid the double-free (first in fts_read, second in fts_close) that
68679         would occur when an `active' directory is made inaccessible (e.g.,
68680         via chmod a-x) during a traversal.
68681         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68682         before returning.  Reproduce this failure by
68683         mkdir -p a/b; cd a; chmod a-x . b
68684         Reported by Stavros Passas.
68685
68686         Sync from coreutils.
68687         * lib/sha1.c: Tweak grammar in a comment.
68688
68689 2006-01-10  Jim Meyering  <jim@meyering.net>
68690
68691         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68692         Patch by Joerg Sonnenberger.
68693
68694 2006-01-10  Bruno Haible  <bruno@clisp.org>
68695
68696         * modules/readutmp: Depend on module free.
68697         * modules/strtok_r: Depend on module restrict.
68698
68699 2006-01-10  Bruno Haible  <bruno@clisp.org>
68700
68701         * modules/gettext (configure.ac): Add an invocation of
68702         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68703
68704 2006-01-10  Bruno Haible  <bruno@clisp.org>
68705
68706         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68707         Reported by Werner Lemberg <wl@gnu.org>.
68708
68709 2006-01-10  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/localcharset.c: Update from GNU gettext.
68712
68713 2006-01-10  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/argp.h (__const): Remove macro. Use const instead.
68716         * lib/argp-fmtstream.h (__const): Likewise.
68717         * lib/glob_.h (__const): Remove macro.
68718         * lib/glob-libc.h: Use const instead of __const.
68719
68720 2006-01-10  Bruno Haible  <bruno@clisp.org>
68721
68722         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68723         variable.
68724         Needed to avoid an automake error regarding the 'gettext' module.
68725
68726 2006-01-09  Simon Josefsson  <jas@extundo.com>
68727
68728         * modules/inet_ntop (Depends-on): Add restrict.
68729
68730 2006-01-09  Simon Josefsson  <jas@extundo.com>
68731
68732         * modules/gc-rijndael-tests (License): Put under LGPL.
68733
68734         * modules/gc-des-tests (License): Likewise.
68735
68736         * modules/gc-arcfour-tests (License): Likewise.
68737
68738         * modules/gc-arctwo-tests (License): Likewise.
68739
68740         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68741
68742         * modules/gc-hmac-sha1-tests (Files): Likewise.
68743
68744         * modules/gc-hmac-md5-tests (License): Likewise.
68745
68746         * modules/gc-sha1-tests (License): Likewise.
68747
68748         * modules/gc-md5-tests (License): Likewise.
68749
68750         * modules/gc-md4-tests (License): Likewise.
68751
68752         * modules/gc-md2-tests (License): Likewise.
68753
68754         * modules/gc-tests (License): Likewise.
68755
68756         * modules/des-tests (License): Likewise.
68757
68758         * modules/md4-tests (License): Likewise.
68759
68760         * modules/md2-tests (License): Likewise.
68761
68762 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         Sync from coreutils:
68765
68766         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68767         * modules/lib-ignore: New file.
68768         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68769         chdir-safer.m4, lchmod.m4.
68770         * modules/openat: Add mkdirat.c, openat-priv.h.
68771
68772 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68773
68774         Sync from coreutils.
68775         * m4/lib-ignore.m4: New file.
68776         * m4/lchmod.m4: New file.
68777
68778 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         Sync from coreutils.
68781         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68782         for write access: POSIX says that must fail.
68783         * lib/fts.c (diropen): Likewise.
68784         * lib/save-cwd.c (save_cwd): Likewise.
68785         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68786         well, for minor improvements on hosts that lack O_DIRECTORY.
68787         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68788         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68789         Fall back on chown if open failed with EACCES.
68790
68791         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68792         Report an error at compile-time if only a 1-second nominal clock
68793         resolution is found.
68794
68795         * lib/lchmod.h: New file.
68796         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68797         (make_dir_parents): Use lchown rather than chown, and
68798         lchmod rather than chmod.
68799
68800         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68801         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68802         "proc" reported by n0dalus.
68803
68804         * lib/mountlist.c: Include <limits.h>.
68805         (dev_from_mount_options)
68806         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68807         New function.  It no longer assumes "dev=" has the System V meaning
68808         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68809         (read_file_system_list)
68810         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68811         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68812         dev= in that case.
68813
68814         * lib/posixtm.h (PDS_PRE_2000): New macro.
68815         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68816         allow_century.  All usages changed.  Reject dates outside the range
68817         1969-1999 if PDS_PRE_2000 is used.
68818
68819 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         Sync from coreutils.
68822         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68823         (Time of day items): Mention the possibility of leap seconds.
68824         Problem reported by Dr. David Alan Gilbert.
68825
68826 2006-01-09  Jim Meyering  <jim@meyering.net>
68827
68828         Sync from coreutils.
68829
68830         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68831
68832         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68833
68834         * lib/modechange.c (mode_compile): Reject an invalid mode string
68835         that starts with an octal digit.  From Andreas Gruenbacher.
68836
68837         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68838         and dup to open_safer and dup_safer, respectively.
68839         (openat_permissive): Fix typo in comment.
68840
68841         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68842         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68843         (_): Remove; no longer needed.
68844         (openat): Renamed from rpl_openat; no need for rpl_openat
68845         since openat.h renames openat for us.
68846         Replace most of the body with a call to openat_permissive,
68847         to avoid duplicate code.
68848         Port to (probably hypothetical) environments were mode_t is
68849         wider than int.
68850         (openat_permissive): Require mode arg, so that we can check
68851         types better.  Put it just after flags.  Change cwd failure
68852         indicator from pointer-to-bool to pointer-to-errno-value.
68853         All callers changed.
68854         Invoke openat_save_fail and/or openat_restore_fail if
68855         cwd_errno is null, so that openat can call us.
68856         (openat_permissive, fdopendir, fstatat, unlinkat):
68857         Simplify errno handling to avoid some duplicate code,
68858         as it's OK to set errno on success.
68859         * lib/openat.h: Revamp code so that function macros depend on
68860         __OPENAT_PREFIX only, not also on AT_FDCWD.
68861         (openat_ro): Remove.  Caller changed to use openat_permissive.
68862         (openat_permissive): Now a macro, if not a function.
68863         (openat_restore_fail, openat_save_fail): Now always functions,
68864         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68865
68866         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68867         and openat.c.
68868         * lib/mkdirat.c: Include openat-priv.h.
68869         Remove definitions of macros defined therein.
68870         * lib/openat.c: Likewise.
68871
68872         * lib/mkdirat.c (mkdirat): New file and function.
68873         * lib/openat.h (mkdirat): Declare.
68874
68875         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68876
68877         * lib/openat.h (openat_permissive): Declare.
68878         (openat_ro): Define.
68879
68880         * lib/openat.c (EXPECTED_ERRNO): New macro.
68881         (openat_permissive): New function -- used in remove.c rewrite.
68882         (all functions): Set errno just before returning, only if there
68883         was an actual failure.
68884         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68885
68886         Emulate openat-family functions using Linux's procfs, if possible.
68887         Idea and some code based on Ulrich Drepper's glibc changes.
68888
68889         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68890         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68891         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68892         before falling back on save_cwd and restore_cwd.
68893         (fdopendir, fstatat, unlinkat): Likewise.
68894
68895         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68896         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68897
68898         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68899         as second argument to va_arg.  Otherwise, some versions of gcc
68900         warn that `if this code is reached, the program will abort'.
68901
68902 2006-01-09  Jim Meyering  <jim@meyering.net>
68903
68904         Sync from coreutils.
68905         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68906         Require openat-priv.h.
68907
68908 2006-01-09  Bruno Haible  <bruno@clisp.org>
68909
68910         * modules/strnlen (Include): Use strnlen.h.
68911
68912 2006-01-09  Bruno Haible  <bruno@clisp.org>
68913
68914         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68915
68916 2006-01-09  Bruno Haible  <bruno@clisp.org>
68917
68918         * lib/sysexit_.h (EX_OK): New macro.
68919         Suggested by Martin Lambers <marlam@marlam.de>.
68920
68921 2006-01-09  Bruno Haible  <bruno@clisp.org>
68922
68923         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68924         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68925
68926 2006-01-09  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68929         numbers.
68930
68931 2006-01-09  Bruno Haible  <bruno@clisp.org>
68932
68933         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68934         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68935         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68936         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68937
68938 2006-01-09  Bruno Haible  <bruno@clisp.org>
68939
68940         * build-aux/javacomp.sh.in: New file, moved from lib/.
68941         * modules/javacomp-script (Files): Update.
68942         (configure.ac): Add AC_CONFIG_FILES invocation.
68943         (EXTRA_DIST): Remove variable.
68944
68945         * build-aux/javaexec.sh.in: New file, moved from lib/.
68946         * modules/javaexec (Files): Update.
68947         (configure.ac): Add AC_CONFIG_FILES invocation.
68948         (EXTRA_DIST): Remove javaexec.sh.in.
68949
68950         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68951         * modules/csharpcomp-script (Files): Update.
68952         (configure.ac): Add AC_CONFIG_FILES invocation.
68953         (EXTRA_DIST): Remove variable.
68954
68955         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68956         * modules/csharpexec (Files): Update.
68957         (configure.ac): Add AC_CONFIG_FILES invocation.
68958         (EXTRA_DIST): Remove csharpexec.sh.in.
68959
68960 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68961
68962         Sync from coreutils.
68963
68964         Add POSIX ACL support
68965         * lib/acl.h (copy_acl, set_acl): Add declarations.
68966         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68967         systems other than Linux.
68968         (chmod_or_fchmod): New function: use fchmod when possible,
68969         and chmod otherwise.
68970         (file_has_acl): Add a POSIX ACL implementation, with a
68971         Linux-specific subcase.
68972         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68973         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68974         acls are unsupported.
68975         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68976         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68977         are unsupported.
68978
68979 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68980
68981         Sync from coreutils.
68982         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68983
68984 2006-01-07  Bruno Haible  <bruno@clisp.org>
68985
68986         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68987         gl_EARLY.
68988
68989 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68992         Problem reported for Mingw by Mark Junker.
68993
68994 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * README: Gnulib normally doesn't generate a tarball.
68997
68998 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69001         long int, not int, for nanosecond counts, so that people who are
69002         used to POSIX struct timespec won't be surprised.  Reported by Jim
69003         Meyering.
69004
69005 2005-12-28  Bruno Haible  <bruno@clisp.org>
69006
69007         * build-aux/config.rpath: Update from GNU gettext.
69008
69009 2005-12-16  Jim Meyering  <jim@meyering.net>
69010
69011         * modules/fprintftime: New module.
69012         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69013
69014 2005-12-16  Jim Meyering  <jim@meyering.net>
69015
69016         * m4/fprintftime.m4: New file.
69017
69018 2005-12-16  Jim Meyering  <jim@meyering.net>
69019
69020         * lib/fprintftime.c, lib/fprintftime.h: New files.
69021
69022 2005-12-15  Simon Josefsson  <jas@extundo.com>
69023
69024         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69025         new m4/socklen.m4.
69026
69027 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69028
69029         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69030         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69031
69032 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69033
69034         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69035         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69036         struct uparams is valid. Fall back to the default values if it is
69037         not.
69038
69039 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69040
69041         * modules/argp (Files): Add argp-pin.c
69042         (Depends-on): dirname
69043         (lib_SOURCES): Add argp-pin.c
69044
69045 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69046
69047         * m4/argp.m4:  Check if program_invocation_name and
69048         program_invocation_short_name are declared and define appropriate
69049         macros if they are not.
69050
69051 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69052
69053         * lib/argp-help.c (__argp_base_name): New function
69054         (__argp_short_program_name): Rewrite using __argp_base_name
69055         * lib/argp-namefrob.h: Define program_invocation_name and
69056         program_invocation_short_name if requested
69057         (__argp_base_name): Add prototype
69058         * lib/argp-parse.c (argp_def): Use gettext wrappers
69059         (argp_default_parser): Use __argp_base_name
69060         * lib/argp-pin.c: New file. Defines program_invocation_name and
69061         program_invocation_short_name on systems that lack them.
69062
69063 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69066         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69067         porting problem reported by Georg Schwarz in
69068         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69069
69070 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69073         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69074         porting problem reported by Georg Schwarz in
69075         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69076
69077 2005-12-05  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69080         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69081         Reported by Mark Junker <mjscod@gmx.de>.
69082
69083 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69086         Use implementation from Albert Chin, with some
69087         comments/corrections by Stepan Kasal and myself.
69088
69089 2005-12-02  Bruno Haible  <bruno@clisp.org>
69090
69091         * gnulib-tool (func_import): Accept GPLed build tool modules when
69092         --lgpl is given.
69093         * modules/csharpcomp-script: New file.
69094         * modules/csharpcomp: Depend on it.
69095         * modules/javacomp-script: New file.
69096         * modules/javacomp: Depend on it.
69097         Suggested by Simon Josefsson.
69098
69099 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69102         statement, to work around an HP-UX 10.20 compiler bug reported by
69103         Peter O'Gorman.
69104
69105 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * modules/savedir (Depends-on): Add openat.
69108
69109 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69112         (uintmax_t) [defined uintmax_t]: Do not declare.
69113         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69114         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69115         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69116         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69117         sake of portability to weird hosts that C allows (though we don't
69118         know of any practical examples).
69119
69120         * lib/savedir.h (fdsavedir): New decl.
69121         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69122         contains most of the former guts of savedir.
69123         (savedir): Use savedirstream.
69124         Include "openat.h".
69125
69126 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * modules/obstack (Files): Add m4/ulonglong.m4.
69129         Problem reported by Davide Angelocola.
69130
69131 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69134         coreutils no longer futzes with rounding modes.
69135
69136 2005-11-14  Jim Meyering  <jim@meyering.net>
69137
69138         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69139         replacement of mkstemp.
69140
69141 2005-11-10  Simon Josefsson  <jas@extundo.com>
69142
69143         * lib/readline.c: Remove EOL.
69144
69145 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * modules/gethrxtime (Depends-on): Add gettime.
69148
69149 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69152         or gettimeofday; no longer needed.
69153
69154 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69157         time business.
69158         (gethrxtime) [! (HAVE_NANOUPTIME
69159         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69160         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69161         our own approximation.
69162
69163 2005-11-08  Eric Blake  <ebb9@byu.net>
69164
69165         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69166
69167 2005-11-08  Eric Blake  <ebb9@byu.net>
69168
69169         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69170
69171 2005-11-04  Bruno Haible  <bruno@clisp.org>
69172
69173         * gnulib-tool: Implement --update mode.
69174
69175 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         Fix porting problem reported by Theodoros V. Kalamatianos.
69178         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69179         Don't assume that futimes failing means we must fail.
69180
69181 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69184         variables to suggest the intended function of the PATH_MAX check.
69185
69186 2005-10-30  Kean Johnston  <jkj@sco.com>
69187
69188         Trivial changes to support SCO systems.
69189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69190         as PATH_MAX.
69191         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69192         where __ptr is null when no I/O is pending.
69193
69194 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69197         leave errno alone.  Problem reported by Dmitry V. Levin.
69198
69199 2005-10-28  Simon Josefsson  <jas@extundo.com>
69200
69201         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69202         Test more.
69203
69204         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69205
69206         * modules/md2, modules/md2-tests: New files.
69207
69208 2005-10-28  Simon Josefsson  <jas@extundo.com>
69209
69210         * m4/inet_ntop.m4: More tests.
69211
69212         * m4/gc-md2.m4, md2.m4: New file.
69213
69214 2005-10-28  Simon Josefsson  <jas@extundo.com>
69215
69216         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69217         "restrict" keywords, as per POSIX.  Protect the function
69218         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69219         Don't use K&R prototypes.  Check the sprintf return values.
69220         Re-define EAFNOSUPPORT if not present.  Indent.
69221
69222         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69223         suggested by Bruno Haible <bruno@clisp.org>.
69224
69225         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69226
69227         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69228
69229         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69230         libgcrypt).
69231
69232         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69233
69234         * lib/md2.h, lib/md2.c: New files.
69235
69236 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69239         errno alone.  Problem reported by Frederic Jolliton.
69240
69241 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * modules/verify (License): Change from GPL to LGPL.  This is a
69244         tiny module and there are apparently near-equivalents that are
69245         under the BSD license.
69246
69247 2005-10-24  Simon Josefsson  <jas@extundo.com>
69248
69249         * modules/sha1: Relicense to LGPL.
69250
69251 2005-10-24  Simon Josefsson  <jas@extundo.com>
69252
69253         * lib/md4.h: Shrink buffer size, now that we changed the type.
69254
69255 2005-10-23  Simon Josefsson  <jas@extundo.com>
69256
69257         * gnulib-tool (func_import): Fix --tests-base.
69258
69259 2005-10-22  Simon Josefsson  <jas@extundo.com>
69260
69261         * modules/arcfour (Depends-on): Need stdint.
69262
69263 2005-10-22  Simon Josefsson  <jas@extundo.com>
69264
69265         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69266         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69267
69268 2005-10-22  Simon Josefsson  <jas@extundo.com>
69269
69270         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69271         suggested by Bruno Haible <bruno@clisp.org>.
69272
69273 2005-10-22  Simon Josefsson  <jas@extundo.com>
69274
69275         * lib/crc.h: Include stddef.h, for size_t.
69276
69277 2005-10-22  Simon Josefsson  <jas@extundo.com>
69278
69279         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69280         arcfour_context struct (simplify test vector testing in GNU
69281         Shishi).
69282
69283 2005-10-21  Simon Josefsson  <jas@extundo.com>
69284
69285         * modules/des, modules/des-tests: New files.
69286
69287         * modules/gc-des, modules/gc-des-tests: New files.
69288
69289         * tests/test-des.c, tests/test-gc-des.c: New file.
69290
69291 2005-10-21  Simon Josefsson  <jas@extundo.com>
69292
69293         * modules/arctwo, modules/arctwo-tests: New files.
69294
69295         * tests/test-arctwo.c: New file.
69296
69297         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69298
69299         * tests/test-gc-arctwo.c: New file.
69300
69301 2005-10-21  Simon Josefsson  <jas@extundo.com>
69302
69303         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69304         Bruno Haible <bruno@clisp.org>.
69305
69306         * m4/gc-des.m4: New file.
69307
69308 2005-10-21  Simon Josefsson  <jas@extundo.com>
69309
69310         * m4/arctwo.m4: New file.
69311
69312         * m4/gc-arctwo.m4: New file.
69313
69314 2005-10-21  Simon Josefsson  <jas@extundo.com>
69315
69316         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69317         block.
69318
69319 2005-10-21  Simon Josefsson  <jas@extundo.com>
69320
69321         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69322         <bruno@clisp.org>.
69323
69324         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69325
69326         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69327         Bruno Haible <bruno@clisp.org>.
69328
69329         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69330         <bruno@clisp.org>.
69331
69332 2005-10-21  Simon Josefsson  <jas@extundo.com>
69333
69334         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69335
69336 2005-10-21  Simon Josefsson  <jas@extundo.com>
69337
69338         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69339
69340 2005-10-21  Simon Josefsson  <jas@extundo.com>
69341
69342         * lib/des.h, lib/des.c: New files.
69343
69344         * lib/gc-gnulib.c: Support DES.c
69345
69346 2005-10-21  Simon Josefsson  <jas@extundo.com>
69347
69348         * lib/arctwo.h, lib/arctwo.c: New files.
69349
69350         * lib/gc-gnulib.c: Support ARCTWO.
69351
69352 2005-10-21  Simon Josefsson  <jas@extundo.com>
69353
69354         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69355         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69356
69357 2005-10-21  Simon Josefsson  <jas@extundo.com>
69358
69359         * gnulib-tool (func_import, func_create_testdir): Define automake
69360         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69361         Makefile.am snippet),
69362         suggested by Bruno Haible <bruno@clisp.org>.
69363
69364         * modules/gc (Makefile.am): Use it.
69365
69366 2005-10-21  Bruno Haible  <bruno@clisp.org>
69367
69368         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69369         patch.
69370
69371 2005-10-19  Simon Josefsson  <jas@extundo.com>
69372
69373         * tests/test-gc-rijndael.c: New file.
69374
69375         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69376
69377 2005-10-19  Simon Josefsson  <jas@extundo.com>
69378
69379         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69380         interface too.
69381
69382 2005-10-19  Simon Josefsson  <jas@extundo.com>
69383
69384         * tests/test-gc-arcfour.c: New file.
69385
69386         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69387
69388 2005-10-19  Simon Josefsson  <jas@extundo.com>
69389
69390         * modules/gc-md4, modules/gc-md4-tests: New file.
69391
69392         * tests/test-gc-md4.c: New file.
69393
69394 2005-10-19  Simon Josefsson  <jas@extundo.com>
69395
69396         * m4/gc-md4.m4: New file.
69397
69398 2005-10-19  Simon Josefsson  <jas@extundo.com>
69399
69400         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69401         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69402         <kasal@ucw.cz>.
69403
69404 2005-10-19  Simon Josefsson  <jas@extundo.com>
69405
69406         * m4/gc-arcfour.m4: New file.
69407
69408         * m4/gc-rijndael.m4: New file.
69409
69410 2005-10-19  Simon Josefsson  <jas@extundo.com>
69411
69412         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69413
69414 2005-10-19  Simon Josefsson  <jas@extundo.com>
69415
69416         * lib/gc-gnulib.c: Support ARCFOUR.
69417
69418 2005-10-19  Simon Josefsson  <jas@extundo.com>
69419
69420         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69421         support.
69422
69423         * lib/gc.h: Add ECB enum type.
69424
69425         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69426
69427 2005-10-18  Simon Josefsson  <jas@extundo.com>
69428
69429         * tests/test-md5.c: New file.
69430
69431         * modules/md5-tests: New file.
69432
69433 2005-10-18  Simon Josefsson  <jas@extundo.com>
69434
69435         * tests/test-md4.c: New file.
69436
69437         * modules/md4, modules/md4-tests: New files.
69438
69439 2005-10-18  Simon Josefsson  <jas@extundo.com>
69440
69441         * m4/md4.m4: New file.
69442
69443 2005-10-18  Simon Josefsson  <jas@extundo.com>
69444
69445         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69446
69447 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69448
69449         * gnulib-tool (func_create_testdir): Omit the second check whether
69450         BUILT_SOURCES in nonempty.
69451
69452 2005-10-17  Simon Josefsson  <jas@extundo.com>
69453
69454         * tests/test-rijndael.c: New file.
69455
69456 2005-10-17  Simon Josefsson  <jas@extundo.com>
69457
69458         * modules/sha1: Depend on stdint instead of md5.
69459
69460         * modules/md5: Depend on stdint, remove uint32_t.
69461
69462 2005-10-17  Simon Josefsson  <jas@extundo.com>
69463
69464         * modules/gc-sha1-tests: New file.
69465
69466         * tests/test-gc-sha1.c: New file.
69467
69468 2005-10-17  Simon Josefsson  <jas@extundo.com>
69469
69470         * m4/md5.m4: Remove call to uint32_t.m4.
69471
69472 2005-10-17  Simon Josefsson  <jas@extundo.com>
69473
69474         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69475
69476         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69477         md5.h.
69478
69479         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69480
69481         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69482
69483 2005-10-17  Simon Josefsson  <jas@extundo.com>
69484
69485         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69486
69487 2005-10-17  Simon Josefsson  <jas@extundo.com>
69488
69489         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69490
69491 2005-10-17  Simon Josefsson  <jas@extundo.com>
69492
69493         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69494
69495         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69496
69497 2005-10-17  Bruno Haible  <bruno@clisp.org>
69498
69499         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69500         that it can also be used in a test.
69501
69502 2005-10-16  Bruno Haible  <bruno@clisp.org>
69503
69504         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69505         TESTS_ENVIRONMENT, so that individual tests can augment it.
69506
69507         * gnulib-tool (func_create_testdir): Use an intermediate target for
69508         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69509         macros, like $(ALLOCA_H), which cannot be passed through the command
69510         line.
69511
69512 2005-10-15  Simon Josefsson  <jas@extundo.com>
69513
69514         * modules/rijndael-tests: New file.
69515
69516         * modules/rijndael: New file.
69517
69518 2005-10-15  Simon Josefsson  <jas@extundo.com>
69519
69520         * m4/rijndael.m4: New file.
69521
69522 2005-10-15  Simon Josefsson  <jas@extundo.com>
69523
69524         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69525
69526         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69527
69528 2005-10-14  Simon Josefsson  <jas@extundo.com>
69529
69530         * tests/test-arcfour.c: New file.
69531
69532         * modules/arcfour, modules/arcfour-tests: New files.
69533
69534 2005-10-14  Simon Josefsson  <jas@extundo.com>
69535
69536         * m4/arcfour.m4: New file.
69537
69538 2005-10-14  Simon Josefsson  <jas@extundo.com>
69539
69540         * lib/arcfour.h, lib/arcfour.c: New files.
69541
69542 2005-10-14  Roland McGrath  <roland@redhat.com>
69543
69544         Import from libc.  [BZ #1331]
69545         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69546         macro argument.
69547         Reported by Matej Vela <vela@debian.org>.
69548
69549 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69552         include <wchar.h>; no longer needed.
69553
69554 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69557
69558 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69559         and  Ulrich Drepper  <drepper@redhat.com>
69560
69561         Import from libc.
69562         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69563         instead of inline stream orientation test and two separate
69564         function calls.  Pay no attention to USE_IN_LIBIO.
69565
69566 2005-10-13  Simon Josefsson  <jas@extundo.com>
69567
69568         * modules/gc-hmac-md5-tests: New file.
69569
69570         * tests/test-gc-hmac-sha1.c: New file.
69571
69572         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69573
69574         * modules/gc-hmac-md5-tests: New file.
69575
69576         * tests/test-gc-md5.c: New file.
69577
69578         * modules/gc-md5-tests: New file.
69579
69580 2005-10-13  Simon Josefsson  <jas@extundo.com>
69581
69582         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69583         Move memory allocation outside of loop.
69584
69585 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69588         intermediate directory is in a read-only file system.  Problem
69589         reported by Eric Blake.
69590
69591 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69592
69593         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69594
69595 2005-10-12  Simon Josefsson  <jas@extundo.com>
69596
69597         * tests/test-hmac-sha1.c: New file.
69598
69599         * modules/hmac-sha1-tests: New file.
69600
69601         * modules/hmac-sha1: New file.
69602
69603 2005-10-12  Simon Josefsson  <jas@extundo.com>
69604
69605         * modules/gc-sha1: New file.
69606
69607 2005-10-12  Simon Josefsson  <jas@extundo.com>
69608
69609         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69610
69611         * tests/test-gc-pbkdf2-sha1.c: New file.
69612
69613 2005-10-12  Simon Josefsson  <jas@extundo.com>
69614
69615         * modules/gc-md5, modules/gc-hmac-md5: New files.
69616
69617         * modules/gc (Files): Remove md5, memxor and hmac files.
69618
69619 2005-10-12  Simon Josefsson  <jas@extundo.com>
69620
69621         * m4/gc-pbkdf2-sha1.m4: New file.
69622
69623         * m4/gc-hmac-sha1.m4: New file.
69624
69625         * m4/gc-sha1: New file.
69626
69627         * m4/hmac-sha1.m4: New file.
69628
69629 2005-10-12  Simon Josefsson  <jas@extundo.com>
69630
69631         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69632
69633         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69634
69635 2005-10-12  Simon Josefsson  <jas@extundo.com>
69636
69637         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69638         suggested by Bruno Haible <bruno@clisp.org>.
69639
69640 2005-10-12  Simon Josefsson  <jas@extundo.com>
69641
69642         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69643
69644 2005-10-12  Simon Josefsson  <jas@extundo.com>
69645
69646         * lib/gc-pbkdf2-sha1.c: New file.
69647
69648         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69649
69650 2005-10-12  Simon Josefsson  <jas@extundo.com>
69651
69652         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69653
69654         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69655
69656 2005-10-12  Simon Josefsson  <jas@extundo.com>
69657
69658         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69659         GC_USE_HMAC_MD5, respectively.
69660
69661         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69662         (gc_md5): Fix typo.
69663
69664         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69665
69666         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69667
69668         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69669
69670 2005-10-12  Bruno Haible  <bruno@clisp.org>
69671
69672         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69673         Reported by Stepan Kasal <kasal@ucw.cz>.
69674
69675 2005-10-11  Simon Josefsson  <jas@extundo.com>
69676
69677         * tests/test-crc.c: New file.
69678
69679         * modules/crc, modules/crc-tests: New files.
69680
69681 2005-10-11  Simon Josefsson  <jas@extundo.com>
69682
69683         * m4/crc.m4: New file.
69684
69685 2005-10-11  Simon Josefsson  <jas@extundo.com>
69686
69687         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69688
69689         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69690
69691         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69692
69693 2005-10-11  Simon Josefsson  <jas@extundo.com>
69694
69695         * lib/crc.h, lib/crc.c: New files.
69696
69697         * lib/gc.h (gc_hash_buffer): Add doc.
69698
69699 2005-10-11  Bruno Haible  <bruno@clisp.org>
69700
69701         * modules/c-strcasestr: New file.
69702         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69703
69704 2005-10-11  Bruno Haible  <bruno@clisp.org>
69705
69706         * modules/c-strcase: New file.
69707         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69708
69709 2005-10-11  Bruno Haible  <bruno@clisp.org>
69710
69711         * lib/strcasecmp.c: Include limits.h.
69712         (strcasecmp): Avoid integer overflow on exotic platforms.
69713         * lib/strncasecmp.c: Include limits.h.
69714         (strncasecmp): Avoid integer overflow on exotic platforms.
69715         Reported by Paul Eggert.
69716
69717 2005-10-11  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/c-strcasestr.h: New file, from GNU gettext.
69720         * lib/c-strcasestr.c: New file, from GNU gettext.
69721
69722 2005-10-11  Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/c-strcase.h: New file, from GNU gettext.
69725         * lib/c-strcasecmp.c: New file, from GNU gettext.
69726         * lib/c-strncasecmp.c: New file, from GNU gettext.
69727
69728 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * modules/mempcpy (License): GPL -> LGPL.
69731         * modules/strchrnul (License): Likewise.
69732         * modules/sysexits (License): Likewise.
69733
69734 2005-10-08  Simon Josefsson  <jas@extundo.com>
69735
69736         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69737
69738 2005-10-07  Simon Josefsson  <jas@extundo.com>
69739
69740         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69741
69742 2005-10-06  Simon Josefsson  <jas@extundo.com>
69743
69744         * tests/test-hmac-md5.c: New file.
69745
69746         * modules/hmac-md5-tests: New file.
69747
69748         * modules/hmac-md5: New file.
69749
69750 2005-10-06  Simon Josefsson  <jas@extundo.com>
69751
69752         * m4/hmac-md5.m4: New file.
69753
69754         * m4/memxor.m4: Require gl_C_RESTRICT.
69755
69756 2005-10-06  Simon Josefsson  <jas@extundo.com>
69757
69758         * lib/memxor.c (memxor): Avoid casts and warnings.
69759
69760 2005-10-06  Simon Josefsson  <jas@extundo.com>
69761
69762         * lib/hmac-md5.c: New file.
69763
69764         * lib/hmac.h: New file.
69765
69766 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69769         promotes to int, not unsigned int, to catch the AIX 5.3
69770         compiler bug.
69771
69772 2005-10-05  Simon Josefsson  <jas@extundo.com>
69773
69774         * modules/memxor: New file.
69775
69776         * modules/iconv (Files): Move config.rpath to havelib, it is used
69777         there.
69778
69779         * modules/havelib (Files): Add config.rpath.
69780
69781 2005-10-05  Simon Josefsson  <jas@extundo.com>
69782
69783         * m4/memxor.m4: New file.
69784
69785 2005-10-05  Simon Josefsson  <jas@extundo.com>
69786
69787         * lib/memxor.c (memxor): Fix compiler error.
69788
69789         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69790         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69791
69792         * lib/memxor.h, lib/memxor.c: New files.
69793
69794         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69795         we assume all systems have it, suggested by Jim Meyering
69796         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69797         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69798         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69799         same reasons.
69800
69801 2005-10-05  Simon Josefsson  <jas@extundo.com>
69802
69803         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69804
69805 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69808         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69809         needed, since the source code now assumes these .h files.
69810
69811 2005-10-05  Derek Price  <derek@ximbiot.com>
69812
69813         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69814
69815 2005-10-05  Bruno Haible  <bruno@clisp.org>
69816
69817         * modules/stdint (License): Change to LGPL.
69818
69819 2005-10-04  Simon Josefsson  <jas@extundo.com>
69820
69821         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69822         D. Baushke" <mdb@gnu.org>.
69823
69824 2005-10-04  Bruno Haible  <bruno@clisp.org>
69825
69826         * lib/verify.h (verify_true): Provide alternative definition for C++.
69827
69828 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69831         (SSIZE_MAX): New macro, if not already defined.
69832         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69833         than 2 GiB.
69834
69835 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         Sync from coreutils.
69838         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69839         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69840         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69841         ULLONG_MAX doesn't work with 2.7.2.1.
69842
69843 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69846         From Ben Pfaff.
69847
69848         * modules/exclude (Depends-on): Depend on verify.
69849         * modules/strtoimax (Depends-on): Likewise.
69850         * modules/utimecmp (Depends-on): Likewise.
69851
69852 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         * lib/exclude.c: Include verify.h.
69855         (verify): Remove.  All callers changed to use verify.h's version.
69856         * lib/strtoimax.c: Likewise.
69857         * lib/utimecmp.c: Likewis.e
69858
69859         Sync from coreutils.
69860         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69861         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69862         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69863         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69864         bother returning ENOSYS if settimeofday or stime fails; just let
69865         them return whatever errno they want to return.
69866         * lib/utimens.c: Include unistd.h, for dup2.
69867         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69868         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69869
69870 2005-10-02  Jim Meyering  <jim@meyering.net>
69871
69872         Sync from coreutils.
69873         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69874         from glibc-2.2.5 that fails for read-only files.
69875
69876 2005-10-02  Jim Meyering  <jim@meyering.net>
69877
69878         Sync from coreutils.
69879         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69880         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69881         `#if HAVE_CONFIG_H'.
69882         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69883         Remove AT_FDCWD test.
69884         Do not consume the fd unless successful.
69885         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69886         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69887         block, so that we don't even try to compile it if settimeofday is
69888         available.  This works around a compilation failure on OSF1 V5.1,
69889         due to stime requiring a `long int*' while tv_sec is `int'.
69890
69891 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69892
69893         Sync from coreutils.
69894         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69895         against `yes', rather than just testing for nonempty.
69896
69897 2005-10-01  Simon Josefsson  <jas@extundo.com>
69898
69899         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69900         and Darwin.
69901
69902         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69903         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69904         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69905         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69906         Check if struct addrinfo is declared.
69907
69908 2005-10-01  Simon Josefsson  <jas@extundo.com>
69909
69910         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69911         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69912         AI_* and EAI_* definitions.  Protect function declarations.
69913
69914 2005-10-01  Jim Meyering  <jim@meyering.net>
69915
69916         Sync from coreutils.
69917
69918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69919         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69920         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69922         in the inet and nsl libraries.  Required on Solaris 5.7.
69923
69924 2005-10-01  Jim Meyering  <jim@meyering.net>
69925
69926         Sync from coreutils.
69927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69928         in the inet and nsl libraries.  Required on Solaris 5.7.
69929
69930 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69931
69932         * lib/getdelim.c (getdelim): Remove unused variables.
69933
69934 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69937         so that the code works even with ancient cpp.  Portability problem
69938         with GCC 2.7.2.1 reported by Thomas M.Ott.
69939
69940 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         * modules/regex (Depends-on): Add strcase.
69943
69944         * modules/gethostname (Licence): Change from GPL to LGPL, since
69945         gethostname.c is a trivial implementation of a standard library
69946         function.
69947         * modules/poll (License): Change from GPL to LGPL, since it's
69948         derived from LGPL code.
69949
69950 2005-09-27  Jim Meyering  <jim@meyering.net>
69951
69952         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69953         HAVE_CONFIG_H.
69954
69955         * lib/intprops.h (signed_type_or_expr__): Define.
69956         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69957         for unsigned types.
69958
69959 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * lib/verify.h (verify_expr): Remove, replacing with:
69962         (verify_true): New macro that returns true instead of void.
69963         (verify_type__): Remove.
69964         (verify): Use verify_true rather than verify_type__.
69965
69966 2005-09-26  Bruno Haible  <bruno@clisp.org>
69967
69968         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69969         is necessary.
69970         (lib_SOURCES): Remove mbchar.c.
69971         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69972         (Files): Add m4/mbrtowc.m4.
69973         * modules/mbiter: Likewise.
69974         * modules/mbuiter: Likewise.
69975
69976 2005-09-26  Bruno Haible  <bruno@clisp.org>
69977
69978         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69979         compile mbchar.c if they are not both present.
69980         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69981         * m4/mbiter.m4 (gl_MBITER): Likewise.
69982         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69983         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69984         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69985
69986 2005-09-25  Jim Meyering  <jim@meyering.net>
69987
69988         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69989         also uses socklen_t.
69990
69991 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/utimens.c (ENOSYS): Define if not already defined.
69994         (futimens): Support having a null PATH if the file descriptor
69995         is nonnegative.
69996
69997         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69998         Remove.
69999         (__attribute): Define to empty unless GCC 3.1 or later.
70000         This works around a core dump on OpenBSD 3.4, which has GCC
70001         2.95.3, which dumps core when given __attribute__(()).  It also
70002         simplifies other tests, since we really don't want to bother with
70003         worrying about which ancient version of GCC supported what.
70004         Original problem reported by Yoann Vandoorselaere, with part of
70005         the fix suggested by Derek Price.
70006
70007 2005-09-24  Jim Meyering  <jim@meyering.net>
70008
70009         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70010         so we can once again use a positive bitfield width of 1 -- now we
70011         don't have to explain why we were using a bitfield width of 2.
70012
70013 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70016         and similarly for the other external symbols.  Problem reported
70017         by James Gallager.
70018
70019         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70020         bug reported by Jim Meyering.
70021
70022         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70024         not needed, since socklen is a prerequisite module.
70025
70026 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70029         Problem reported by Eric Blake.
70030         (getaddrinfo): Initialize se so that it's not garbage.
70031         Redo internal storage allocation so that it doesn't make unportable
70032         assumptions about alignment.
70033         Fix a memory leak.
70034
70035         * lib/utimens.c (futimens): Use futimesat if available.
70036         Prefer it to futimes since it doesn't have the futimes bug.
70037
70038         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70039         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70040         Instead, declare a function that returns a pointer to an array,
70041         and use verify_type__ to declare the size of the array.
70042         Problem and germ of a solution reported by Bruno Haible.
70043         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70044         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70045
70046 2005-09-23  Jim Meyering  <jim@meyering.net>
70047
70048         Sync from coreutils.
70049         Correct build failure (socklen_t not defined) on at least
70050         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70052
70053 2005-09-23  Jim Meyering  <jim@meyering.net>
70054
70055         * modules/getaddrinfo (Depends-on): Add socklen.
70056
70057 2005-09-23  Bruno Haible  <bruno@clisp.org>
70058
70059         * tests/test-verify.c: New file.
70060
70061 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         Sync from coreutils.
70064
70065         * modules/argmatch (Depends-on): Add verify.
70066         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70067         unistd-safer.
70068         * modules/save-cwd (Depends-on): Likewise.
70069
70070         * modules/openat (Files): Add lib/openat-die.c.
70071         (Depends-on): Remove error, exitfail.
70072         Add dirname.
70073
70074         * modules/verify: New file.
70075         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70076         with "verify" module.
70077
70078 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         Sync from coreutils.
70081
70082         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70083         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70084         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70085         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70086         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70087         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70088         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70089         Don't bother checking for string.h, stdlib.h, unistd.h.
70090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70091         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70092         module's job.
70093         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70094         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70095
70096         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70097         (gl_GETDATE): Use it.
70098
70099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70100
70101 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         Sync from coreutils.
70104
70105         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70106         stat-time.h.
70107         * lib/argmatch.h: Include verify.h
70108         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70109         (ARGMATCH_ASSERT): Remove; unused.
70110         * lib/canonicalize.c: Assume STDC_HEADERS.
70111         * lib/exclude.c: Include "strcase.h".
70112         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70113         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70114         and stdio-safer.h.
70115         (getusershell): Call fopen, not fopen_safer.
70116         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70117         Do not include unistd-safer.h.
70118         (save_cwd): Don't call fd_safer; no longer needed
70119         now that we include fcntl--.h.
70120
70121         * lib/getdate.y (relative_time): New type.
70122         (RELATIVE_TIME_0): New constant.
70123         (parser_control): Use relative_time instead of doing it ourselves.
70124         (%union): Add new relative_time rel member.
70125         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70126         Now typeless.
70127         (relunit, relunit_snumber): Now of type rel.
70128         (zone, rel, relunit, get_date): Adjust to above changes.
70129
70130         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70131         Do not include unistd-safer.h.
70132         (getloadavg): Don't call fd_safer; no longer needed
70133         now that we include fcntl--.h.
70134
70135         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70136         (make_dir_parents): Treat ENOSYS like EEXIST.
70137
70138         Improve quality of diagnostics on restore_cwd failure.
70139         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70140         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70141         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70142         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70143         each time through the loop.  Do not diagnose restore_cwd failure;
70144         that is the caller's job (and perhaps the caller does not care).
70145
70146         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70147         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70148         If the file already exists but is not a directory, don't bother
70149         to try to make its parents.
70150         Close potential file descriptor leak if we can't chdir("/") (!).
70151         Don't always return true if chdir($PWD) fails; return true only
70152         if the requested action was done successfully (except for the
70153         chdir($PWD)).
70154         Don't log final directory unless we actually made it.
70155         Refactor to avoid duplicate code to fix up permissions.
70156         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70157
70158         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70159         to make it a bit faster and (I hope) clearer.
70160         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70161         Fix bug in formats like %2N.
70162
70163         * lib/verify.h: New file.
70164
70165 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         Sync from coreutils.
70168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70169
70170 2005-09-22  Jim Meyering  <jim@meyering.net>
70171
70172         Sync from coreutils.
70173
70174         * m4/lstat.m4 (gl_FUNC_LSTAT):
70175         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70176         Remove obsolete comment.
70177         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70178         * m4/xstrtod.m4: Likewise.
70179
70180         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70181
70182 2005-09-22  Jim Meyering  <jim@meyering.net>
70183
70184         Sync from coreutils.
70185
70186         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70187
70188         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70189         the .tm_year member, since otherwise gcc-4.0 would now warn about
70190         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70191
70192         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70193         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70194
70195         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70196         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70197         when run in a time zone for which daylight savings time is in effect
70198         for the starting date.
70199
70200         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70201         stop us from restricting permissions of just-created absolute-named
70202         directories.
70203         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70204         to restore initial working directory.
70205         * lib/mkdir-p.c (make_dir_parents): New parameter:
70206         different_working_dir, to tell caller if/when we change the working
70207         directory and are unable to return to the initial one.
70208         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70209         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70210         `return false'.  This fixes a bug introduced on 2004-07-30.
70211
70212         * lib/openat.c (fdopendir): Be sure to close the supplied
70213         file descriptor before returning.  This makes our replacement
70214         implementation a little closer to Solaris's, where fdopendir
70215         ties the file descriptor to the returned DIR* pointer.
70216         * lib/openat.c (unlinkat): New function.
70217         * lib/openat.h (unlinkat): Add prototype.
70218         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70219         (openat_restore_fail): Rename from openat_restore_die.
70220         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70221
70222         Provide an alternative to exiting immediately upon save_cwd or
70223         restore_cwd failure.  Now, an application can arrange e.g.,
70224         to perform a longjump in that case.
70225         * lib/openat.c: Include dirname.h.
70226         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70227         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70228         and openat_restore_die rather than calling error directly.
70229         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70230
70231         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70232         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70233         define.
70234
70235         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70236         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70237                             int utc, int nanoseconds);
70238         Background:
70239         date should not have to allocate a megabyte of virtual memory to
70240         handle a format argument like +%1048575T.  When implemented with
70241         strftime, it must allocate such a buffer, use strftime to fill it
70242         in, print it, then free it.
70243         With fprintftime, it simply prints everything and exits.
70244         With no need for memory allocation, that's one fewer way to fail.
70245         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70246         optional field width, not before, so we accept %9:z, not %:9z.
70247         (my_strftime): Be sure to use L_('x') for literals.
70248
70249         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70250         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70251         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70252         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70253         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70254         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70255         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70256         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70257         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70258         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70259         * lib/xgethostname.c, lib/xreadlink.c:
70260         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70261
70262         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70263         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70264         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70265         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70266         and don't include <sys/file.h>).
70267
70268 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70269
70270         Sync from coreutils.
70271
70272         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70273         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70274         [!LDAV_DONE]: Avoid unused variable warning.
70275
70276 2005-09-21  Bruno Haible  <bruno@clisp.org>
70277
70278         * lib/unicodeio.h (unicode_to_mb): New declaration.
70279
70280 2005-09-20  Derek Price  <derek@ximbiot.com>
70281
70282         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70283         getaddrinfo.h.
70284
70285 2005-09-20  Bruno Haible  <bruno@clisp.org>
70286
70287         * gnulib-tool: Remove trailing slashes from the values specified for
70288         --source-base, --m4-base, --tests-base, --aux-dir.
70289         Suggested by Simon Josefsson <jas@extundo.com>.
70290
70291 2005-09-20  Bruno Haible  <bruno@clisp.org>
70292
70293         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70294         func_modules_to_filelist, func_import, func_create_testdir): Make all
70295         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70296         change when gnulib-tool is invoked in a different locale.
70297
70298 2005-09-19  Simon Josefsson  <jas@extundo.com>
70299
70300         * m4/socklen.m4: Fix typo.
70301
70302 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70303
70304         Use a consistent style for including <config.h>.
70305         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70306         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70307         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70308         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70309         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70310         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70311         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70312         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70313         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70314         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70315         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70316         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70317         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70318         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70319         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70320         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70321         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70322         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70323         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70324         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70325         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70326         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70327         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70328         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70329         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70330         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70331         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70332         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70333         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70334         lib/xstrtoumax.c, lib/yesno.c:
70335         Standardize inclusion of config.h.
70336         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70337         lib/inttostr.h:  Removed inclusion of config.h from header files.
70338         * lib/inttostr.c:  Adjusted in-tree users.
70339         * lib/timespec.h: Remove superfluous warning to include config.h.
70340         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70341         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70342         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70343         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70344         config.h with HAVE_CONFIG_H.
70345
70346 2005-09-19  Jim Meyering  <jim@meyering.net>
70347
70348         * modules/pathmax (License): Change to LGPL.
70349
70350 2005-09-19  Derek Price  <derek@ximbiot.com>
70351
70352         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70353
70354 2005-09-19  Bruno Haible  <bruno@clisp.org>
70355
70356         * gnulib-tool (import): Provide default for --tests-base.
70357
70358 2005-09-19  Bruno Haible  <bruno@clisp.org>
70359
70360         * doc/quote.texi: New file, extracted from gnulib.texi.
70361         * doc/ctime.texi: New file, extracted from gnulib.texi.
70362         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70363         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70364         * doc/gnulib.texi: Include them.
70365
70366 2005-09-18  Bruno Haible  <bruno@clisp.org>
70367
70368         Portability fix.
70369         * gnulib-tool (func_readlink): New function.
70370         (func_ln_if_changed): Use it.
70371
70372 2005-09-18  Bruno Haible  <bruno@clisp.org>
70373
70374         * gnulib-tool: Support --with-tests also with --import.
70375         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70376         (func_import): Use variables $testsbase and $inctests. Emit a
70377         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70378         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70379         SUBDIRS += $testsdir.
70380         (func_create_testdir): Update.
70381
70382 2005-09-18  Bruno Haible  <bruno@clisp.org>
70383
70384         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70385         instead of $dry_run.
70386         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70387         (func_ln_if_changed): Don't handle dry-run here.
70388         (func_import): In dry-run mode, detect more precisely which actions
70389         would be performed, and don't use "...ing" verbs.
70390
70391 2005-09-18  Bruno Haible  <bruno@clisp.org>
70392
70393         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70394         (func_import): Use join on two temporary files instead of three nested
70395         loops, in order to determine which files are new or old.
70396
70397 2005-09-18  Bruno Haible  <bruno@clisp.org>
70398
70399         * gnulib-tool (func_import): Comment out code that spits out the
70400         new files with --dry-run.
70401
70402 2005-09-18  Bruno Haible  <bruno@clisp.org>
70403
70404         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70405
70406 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * lib/stat-time.h: New file.
70409         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70410         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70411         in a different way.
70412         (timespec_cmp): New function.
70413         * lib/utimecmp.c: Include stat-time.h.
70414         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70415         members exist, not on the obsolescent ST_MTIM_NSEC.
70416         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70417
70418 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70421
70422 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * MODULES.html.sh (File system functions): Add stat-time.
70425         * modules/stat-time: New file.
70426         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70427         is now done in a different way, by the stat-time module.
70428         * modules/utimecmp (Depends-on): Add stat-time.
70429
70430 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * m4/st_mtim.m4: Remove.  Superseded by...
70433         * m4/stat-time.m4: New file.
70434         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70435         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70436
70437 2005-09-15  Derek Price  <derek@ximbiot.com>
70438
70439         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70440
70441 2005-09-15  Derek Price  <derek@ximbiot.com>
70442
70443         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70444         * lib/regex_internal.c: Ditto, using this...
70445         (__GNUC_PREREQ): ...new macro.
70446         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70447         using...
70448         (__GNUC_PREREQ): ...this new macro.
70449
70450         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70451
70452 2005-09-15  Derek Price  <derek@ximbiot.com>
70453             Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70456         changes, consolidating in...
70457         * lib/regex_internal.h: ...this file.
70458
70459 2005-09-13  Jim Meyering  <jim@meyering.net>
70460
70461         * lib/canon-host.c: Filter through gnu indent and reword comments
70462         slightly.
70463         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70464
70465 2005-09-13  Derek Price  <derek@ximbiot.com>
70466
70467         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70468         failure.
70469         Reported by Jim Meyering  <jim@meyering.net>.
70470
70471 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70472
70473         * lib/base64.c: Typo.
70474         (base64_encode): Put b64str in initialized data section.
70475
70476 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         Merge glibc and coreutils changes into gnulib, plus a few
70479         extra fixes.
70480         * lib/md5.c: Use #error rather than a string.
70481         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70482         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70483         (__attribute__): Define to empty for non recent-GCC.
70484         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70485         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70486         Renamed from their non-__ counterparts, with new macros replacing
70487         them if not _LIBC.  Add __THROW attribute.
70488         (rol): Remove.
70489         (struct md5_ctx): Align buffer if using GCC.
70490         * lib/sha1.h (struct sha1_ctx): Likewise.
70491         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70492         The old name was backwards.
70493         (NOTSWAP): Remove; not used.
70494         (rol): New macro, moved here from md5.h.
70495         (sha1_process_block): Remove a FIXME that doesn't make sense.
70496
70497 2005-09-12  Derek Price  <derek@ximbiot.com>
70498
70499         Return usable errors from canon-host.
70500         * lib/canon-host.h: New file.
70501         * lib/canon-host.c (canon_host): Wrap...
70502         (canon_host_r): ...this new function, which now relies exclusively on
70503         getaddrinfo.
70504         (ch_strerror): New function.
70505         (last_cherror): New global.
70506         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70507         interface.
70508         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70509         void *.
70510         (freeaddrinfo): Free ai->ai_canonname when set.
70511
70512 2005-09-12  Derek Price  <derek@ximbiot.com>
70513
70514         Make canon-host require getaddrinfo.
70515         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70516         AC_LIBSOURCE canon-host.h.  Call...
70517         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70518         gl_GETADDRINFO.
70519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70520
70521 2005-09-12  Derek Price  <derek@ximbiot.com>
70522
70523         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70524         LGPL.
70525         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70526
70527 2005-09-12  Derek Price  <derek@ximbiot.com>
70528
70529         * lib/gai_strerror.c: Include config.h when available.  Include
70530         getaddrinfo.h before other headers to test interface.
70531         Reported by Larry Jones <lawrence.jones@ugs.com>.
70532
70533 2005-09-12  Derek Price  <derek@ximbiot.com>
70534             Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * modules/glob (Files): Add glob-libc.h.
70537
70538 2005-09-12  Derek Price  <derek@ximbiot.com>
70539             Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70542         glob_.h, glob-libc.h.
70543         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70544
70545 2005-09-12  Derek Price  <derek@ximbiot.com>
70546             Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70549         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70550         protecting things that should be done only in gnulib contexts.
70551         * lib/glob_.h: New file, containing only the glob things needed for
70552         gnulib.
70553         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70554         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70555         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70556         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70557         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70558         and to respect the namespace rules better.
70559
70560 2005-09-08  Simon Josefsson  <jas@extundo.com>
70561
70562         * modules/socklen: New file.
70563
70564 2005-09-08  Simon Josefsson  <jas@extundo.com>
70565
70566         * m4/socklen.m4: New file.
70567
70568 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * modules/utimens (Files): Add m4/utimbuf.m4, since
70571         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70572         Reported by Sergey Poznyakoff.
70573
70574 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70577         definitions, since that's the preferred style in glibc.
70578         Fix a minor spacing issue, and update copyright notice to match
70579         glibc's.
70580
70581 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70584
70585 2005-09-06  Simon Josefsson  <jas@extundo.com>
70586
70587         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70588         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70589
70590 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70593         warning.
70594
70595 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * config/srclist.txt: Add glibc bug 1302.
70598
70599 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         Change bitset word type from unsigned int to unsigned long int,
70602         as this has better performance on typical 64-bit hosts.
70603         Port bitset code to hosts with unusual word sizes.
70604         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70605         (build_collating_symbol):
70606         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70607         argument is a bitset.  This is merely a style issue, but it makes
70608         it clearer that an entire array is expected.
70609         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70610         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70611         Port to the case where bitset_word is not the same as unsigned int.
70612         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70613         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70614         Likewise.
70615         * lib/regexec.c (check_dst_limits_calc_pos_1,
70616         check_subexp_matching_top):
70617         (build_trtable, group_nodes_into_DFAstates):
70618         Likewise.
70619         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70620         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70621         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70622         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70623         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70624         * lib/regcomp.c (optimize_subexps, lower_subexp):
70625         Work even if bitset_word has holes in its bitwise representation.
70626         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70627         * lib/regexec.c (check_dst_limits_calc_pos_1,
70628         check_subexp_matching_top):
70629         Likewise.
70630         * lib/regex_internal.c (re_string_reconstruct):
70631         Don't assume UCHAR_MAX == 255.
70632         * lib/regex_internal.h (bitset_set_all): Likewise.
70633         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70634         All uses changed.
70635         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70636         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70637         All uses changed.
70638         (BITSET_WORD_MAX): New macro.
70639         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70640         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70641         (bitset_empty, bitset_copy):
70642         Prefer sizeof (bitset) to multiplying it out ourselves.
70643         (bitset_not_merge): Remove; unused.
70644         (bitset_contain): Return bool, not unsigned int with one bit on.
70645         All callers changed.
70646         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70647         alignment than re_node_set; do this by defining a new internal
70648         type struct dests_alloc and using it to allocate memory.
70649
70650 2005-09-05  Bruno Haible  <bruno@clisp.org>
70651
70652         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70653         links.
70654
70655 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70656
70657         * modules/size_max (Makefile.am): Add size_max.h
70658
70659 2005-09-04  Derek Price  <derek@ximbiot.com>
70660
70661         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70662
70663 2005-09-03  Simon Josefsson  <jas@extundo.com>
70664
70665         * gnulib-tool: Fix typo.
70666
70667 2005-09-03  Simon Josefsson  <jas@extundo.com>
70668
70669         * config/srclist.txt: Add glibc bug 1293.
70670
70671 2005-09-03  Derek Price  <derek@ximbiot.com>
70672
70673         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70674         From Larry Jones <lawrence.jones@ugs.com>.
70675
70676 2005-09-02  Simon Josefsson  <jas@extundo.com>
70677
70678         * modules/socklen: New file.
70679
70680 2005-09-02  Simon Josefsson  <jas@extundo.com>
70681
70682         * modules/havelib: New module.
70683
70684         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70685         Use havelib.
70686
70687 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         Check for arithmetic overflow when calculating sizes, to prevent
70690         some buffer-overflow issues.  These patches are conservative, in the
70691         sense that when I couldn't determine whether an overflow was possible,
70692         I inserted a run-time check.
70693         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70694         macros.
70695         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70696         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70697         (re_xnrealloc, re_x2nrealloc): New inline functions.
70698         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70699         parse_bracket_exp):
70700         (build_equiv_class, build_charclass): Check for arithmetic overflow
70701         in size expression calculations.
70702         * lib/regex_internal.c (re_string_realloc_buffers):
70703         (build_wcs_upper_buffer, re_node_set_add_intersect):
70704         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70705         (re_dfa_add_node, register_state): Likewise.
70706         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70707         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70708         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70709         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70710
70711 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70714         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70715
70716 2005-09-02  Bruno Haible  <bruno@clisp.org>
70717
70718         Support for lib vs. lib64 distinction on biarch platforms.
70719         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70720         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70722
70723 2005-09-02  Bruno Haible  <bruno@clisp.org>
70724
70725         * gnulib-tool (import): In the other first-use case, provide defaults
70726         as well.
70727
70728 2005-09-02  Bruno Haible  <bruno@clisp.org>
70729
70730         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70731         patches not yet found in the latest gettext release.
70732
70733 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70736         to avoid a collision with bits/local_lim.h in glibc.
70737         All uses changed.  Problem reported by Dmitry V. Levin in
70738         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70739
70740         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70741         bugs in int versus size_t comparisons.
70742         (re_string_context_at): Fix bug where the code assumed that
70743         Idx is signed.
70744
70745         Use bool where appropriate.
70746         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70747         All callers changed.
70748         (calc_eclosure_iter): Likewise, for ROOT arg.
70749         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70750         (build_charclass_op): Likewise, for NON_MATCH arg.
70751         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70752         (re_string_construct_common): Likewise, for ICASE arg.
70753         * lib/regexec.c (re_search_2_stub, re_search_stub):
70754         Likewise, for RET_LEN arg.
70755         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70756         (set_regs): Likewise, for FL_BACKTRACK arg.
70757         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70758         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70759         (calc_eclosure_iter, parse_bracket_exp):
70760         Use bool for internal variables that are booleans.
70761         * lib/regexec.c (re_search_internal, check_matching,
70762         proceed_next_node):
70763         (set_regs, build_sifted_states, sift_states_bkref):
70764         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70765         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70766         (find_collation_sequence_value):
70767         Likewise.
70768         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70769         (re_node_set_compare):
70770         Return bool, not int. All callers changed.
70771         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70772         (build_trtable, check_node_accept): Likewise.
70773         * lib/regex_internal.h: Include stdbool.h.
70774
70775         Fix bugs uncovered when converting to bool.
70776         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70777         failure instead of charging ahead blindly.
70778         * lib/regex_internal.c (register_state): Likewise.
70779         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70780         for freeing internal storage.
70781         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70782         bitset pieces used as boolean, to avoid undefined behavior
70783         on hosts that do int overflow checking.
70784
70785 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70786
70787         * config/srclist.txt: Add glibc bugs 1285-1287.
70788
70789 2005-09-01  Jim Meyering  <jim@meyering.net>
70790
70791         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70792         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70793         Require gl_STAT_MACROS, too.
70794
70795 2005-09-01  Bruno Haible  <bruno@clisp.org>
70796
70797         * gnulib-tool (import): In the first-use case, provide defaults.
70798
70799 2005-09-01  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool (func_import): Remove the .tmp files.
70802
70803 2005-09-01  Bruno Haible  <bruno@clisp.org>
70804
70805         * gnulib-tool (func_import): Fix handling of symbolic links.
70806
70807 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70810         old glibc regex code mishandles strings longer than 2**31 bytes.
70811         This patch fixes this when the regex code is used in gnulib
70812         (i.e., outside glibc).
70813
70814         This patch should not affect the use of the regex code inside
70815         glibc.  No doubt this problem also needs to be handled for glibc
70816         as well, but the result will be an incompatible change to the
70817         glibc ABI, and the old ABI will have to be supported too.  That
70818         can be the the subject for another patch.
70819
70820         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70821         governing whether the rest of this patch is active.  By default,
70822         the macro is disabled and the patch has no effect.
70823         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70824         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70825         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70826         (re_match_2, re_set_registers): Use the new types.
70827         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70828         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70829         New macros.
70830         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70831         (re_string_context_at, bin_tree_t, re_dfastate_t):
70832         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70833         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70834         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70835         (re_string_char_size_at, re_string_wchar_at):
70836         (re_string_elem_size_at):
70837         Use the new types and macros to port to 64-bit hosts.
70838         Use unsigned types for internal values, so that the code
70839         mostly works even for arrays larger than SSIZE_MAX.
70840         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70841         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70842         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70843         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70844         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70845         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70846         (calc_inveclosure, parse_dup_op, build_range_exp):
70847         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70848         (fetch_number, create_token_tree, mark_opt_subexp):
70849         Likewise.
70850         * lib/regex_internal.c (re_string_construct_common,
70851         create_ci_newstate):
70852         (create_cd_newstate, re_string_allocate, re_string_construct):
70853         (re_string_realloc_buffers, build_wcs_upper_buffer):
70854         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70855         (re_string_reconstruct, re_string_peek_byte_case):
70856         (re_string_fetch_byte_case, re_string_context_at):
70857         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70858         (re_node_set_init_copy, re_node_set_add_intersect):
70859         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70860         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70861         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70862         (re_acquire_state, re_acquire_state_context, register_state):
70863         Likewise.
70864         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70865         search_cur_bkref_entry):
70866         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70867         (re_search_internal, re_search_2_stub, re_search_stub)
70868         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70869         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70870         (update_cur_sifted_state, check_dst_limits):
70871         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70872         (check_subexp_limits, sift_states_bkref, merge_state_array):
70873         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70874         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70875         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70876         (expand_bkref_cache, check_node_accept_bytes):
70877         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70878         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70879         (acquire_init_state_context, check_halt_node_context):
70880         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70881         (sift_states_backward, clean_state_log_if_needed):
70882         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70883         (find_recover_state, transit_state_sb, transit_state_mb):
70884         (transit_state_bkref, build_trtable, match_ctx_clean):
70885         Likewise.
70886         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70887         to work around an assumption that REG_MISSING is negative.
70888
70889         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70890         (seek_collating_symbol_entry) [defined _LIBC]:
70891         (lookup_collation_sequence_value) [defined _LIBC]:
70892         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70893         Use prototypes rather than old-style function definitions.
70894         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70895         (transit_state_sb) [0]:
70896         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70897
70898         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70899         rm_eo.
70900
70901         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70902         (optimize_subexps, lower_subexp):
70903         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70904         since the signed shift might overflow.  Use 1u<<31 instead.
70905         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70906         Likewise.
70907         * lib/regexec.c (check_dst_limits_calc_pos_1,
70908         check_subexp_matching_top): Likewise.
70909
70910         * lib/regcomp.c (optimize_subexps, lower_subexp):
70911         Use CHAR_BIT rather than 8, for clarity.
70912         * lib/regexec.c (check_dst_limits_calc_pos_1):
70913         (check_subexp_matching_top): Likewise.
70914         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70915         have to worry about portability issues when shifting it left.
70916         Remove no-longer-needed test for table_size > 0.
70917         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70918         in a word, as the resulting behavior is undefined.
70919         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70920         in one case, a <= should have been an <, and in another case the
70921         whole test was missing.
70922         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70923         the standard name CHAR_BIT.
70924         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70925         this is not true on one's complement and signed-magnitude hosts.
70926
70927         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70928         next_last_offset.
70929         (struct re_dfa_t): Remove unused member states_alloc.
70930         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70931
70932 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70935         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70936         and large-file glibc and in 32-bit large-file Solaris.
70937
70938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70941         lengths fit in regoff_t; this isn't true if regoff_t is the same
70942         width as size_t.
70943         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70944         (= START + RANGE) instead of RANGE.  This avoids overflow
70945         problems when regoff_t is the same width as size_t.
70946         All callers changed.
70947         (re_search_2_stub): Check for overflow when adding the
70948         sizes of the two strings.
70949         (re_search_stub): Check for overflow when adding START
70950         to RANGE; if it occurs, substitute the extreme value.
70951
70952 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70955
70956 2005-08-31  Jim Meyering  <jim@meyering.net>
70957
70958         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70959         a pointer-to-const.
70960         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70961         (register_state): Likewise.
70962         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70963         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70964         (group_nodes_into_DFAstates): Likewise.
70965
70966 2005-08-31  Jim Meyering  <jim@meyering.net>
70967
70968         * check-module: Add a FIXME comment.
70969
70970 2005-08-31  Eric Blake  <ebb9@byu.net>
70971
70972         * modules/unistd-safer (Files): Add unistd--.h.
70973         * modules/stdio-safer (Files): Add stdio--.h.
70974
70975 2005-08-31  Derek Price  <derek@ximbiot.com>
70976
70977         * lib/getdelim.c (getdelim): Return EOF on EOF.
70978         Reported by Larry Jones <lawrence.jones@ugs.com>.
70979
70980 2005-08-31  Bruno Haible  <bruno@clisp.org>
70981
70982         Avoid unnecessary diffs in the generated lib/Makefile.am.
70983         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70984         the generated files.
70985         (func_import): Don't set cmd.
70986
70987 2005-08-31  Bruno Haible  <bruno@clisp.org>
70988
70989         * lib/strstr.c: Include <stddef.h>, for NULL.
70990         * lib/strcasestr.c: Likewise.
70991         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70992
70993 2005-08-31  Bruno Haible  <bruno@clisp.org>
70994
70995         * gnulib-tool: New option --macro-prefix.
70996         (func_import): Use macro_prefix.
70997         (import): Handle option --macro-prefix.
70998
70999 2005-08-31  Bruno Haible  <bruno@clisp.org>
71000
71001         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71002         Also use new variables cached_lgpl, cached_libtool.
71003
71004 2005-08-31  Bruno Haible  <bruno@clisp.org>
71005
71006         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71007         always instantiating them.
71008
71009 2005-08-31  Bruno Haible  <bruno@clisp.org>
71010
71011         * gnulib-tool (func_import): Read the previous cached settings
71012         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71013         earlier added by gnulib but are now dropped. Warn when a gnulib file
71014         overwrites a non-gnulib file.
71015
71016 2005-08-31  Bruno Haible  <bruno@clisp.org>
71017
71018         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71019         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71020         projects that don't keep autogenerated files in CVS. Put into
71021         actioncmd only the specified modules, not the transitive closure.
71022
71023 2005-08-31  Bruno Haible  <bruno@clisp.org>
71024
71025         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71026         Create directories that shall be filled.
71027         (import): Don't look for gl_* macros in configure.ac. Recurse across
71028         all directories containing a gnulib-cache.m4 files, if meaningful.
71029
71030 2005-08-31  Bruno Haible  <bruno@clisp.org>
71031
71032         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71033         (import): Set seen_libtool when we see gl_LIBTOOL.
71034
71035 2005-08-31  Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71038         declaration macro definitions from generated gnulib.m4.
71039
71040 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71041
71042         * lib/iconvme.h: Add prototype for iconv_alloc.
71043
71044 2005-08-29  Simon Josefsson  <jas@extundo.com>
71045
71046         * lib/iconvme.c: Fix errno.
71047
71048 2005-08-29  Bruno Haible  <bruno@clisp.org>
71049
71050         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71051         that it works when the directory contains spaces.
71052
71053 2005-08-29  Bruno Haible  <bruno@clisp.org>
71054
71055         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71056
71057 2005-08-29  Bruno Haible  <bruno@clisp.org>
71058
71059         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71060         Emit more advice.
71061
71062 2005-08-29  Bruno Haible  <bruno@clisp.org>
71063         and Stepan Kasal  <kasal@ucw.cz>
71064
71065         * check-module: If more parameters are given, check each of them
71066         separately; add more exceptions, as noted by Jim Meyering.
71067         (check_module): New procedure.
71068         (%exempt_header): Now contains all exceptions.
71069
71070 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71071
71072         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71073
71074 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71075
71076         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71077
71078 2005-08-28  Bruno Haible  <bruno@clisp.org>
71079
71080         * m4/gnulib-tool.m4: New file.
71081
71082 2005-08-27  Jim Meyering  <jim@meyering.net>
71083
71084         * modules/unistd-safer (Files): Add pipe-safer.c.
71085         * modules/fcntl-safer (Files): Add creat-safer.c.
71086
71087 2005-08-27  Jim Meyering  <jim@meyering.net>
71088
71089         * m4/stdlib-safer.m4: New file.  From coreutils.
71090         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71091         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71092         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71093         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71094         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71095
71096 2005-08-27  Jim Meyering  <jim@meyering.net>
71097
71098         * lib/fopen-safer.c: Merge minor changes from coreutils.
71099         * lib/dup-safer.c: Likewise.
71100         * lib/fd-safer.c: Likewise.
71101
71102         Merge from coreutils.
71103         * lib/stdio--.h: New file.
71104         * lib/stdlib--.h: New file.
71105         * lib/mkstemp-safer.c: New file.
71106
71107         GNU tar needs these.
71108         * lib/pipe-safer.c: New file.
71109         * lib/creat-safer.c: New file.
71110         * lib/fcntl--.h (creat): Define to creat_safer.
71111         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71112         * lib/unistd--.h (pipe): Define to pipe_safer.
71113         * lib/unistd-safer.h: Declare pipe_safer.
71114
71115 2005-08-26  Simon Josefsson  <jas@extundo.com>
71116
71117         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71118         Haible <bruno@clisp.org>.
71119
71120 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * lib/regex_internal.h: Remove all references to
71123         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71124         or better.
71125         (bitset_not, bitset_merge, bitset_not_merge):
71126         (bitset_mask, re_string_allocate, re_string_construct):
71127         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71128         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71129         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71130         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71131         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71132         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71133         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71134         (re_acquire_state_context):
71135         Remove unnecessary forward decls.
71136         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71137         Put __attribute at function definition,
71138         now that the function decl has been removed.
71139         * lib/regex_internal.c (re_string_peek_byte_case):
71140         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71141         Likewise.
71142
71143 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71144
71145         * m4/regex.m4: Add AC_PREREQ(2.50).
71146         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71147
71148 2005-08-25  Simon Josefsson  <jas@extundo.com>
71149
71150         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71151         __fsetlocking.
71152
71153 2005-08-25  Simon Josefsson  <jas@extundo.com>
71154
71155         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71156         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71157         GLIBC specific code.
71158
71159 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71160
71161         Make regex safe for g++.  This fixes one real bug (an "err"
71162         that should have been "*err").  g++ problem reported by
71163         Sam Steingold.
71164         * lib/regex_internal.h (re_calloc): New macro, consistent with
71165         re_malloc etc.  All callers of calloc changed to use re_calloc.
71166         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71167         not int.  All callers changed.
71168         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71169         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71170         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71171         (find_recover_state): Change "err" to "*err"; this fixes what
71172         appears to be a real bug.
71173         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71174         versus int.
71175
71176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * modules/regex (Depends-on): Add malloc, since the code
71179         assumes that !malloc(0) means failure.
71180
71181 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71184
71185         alloca modernization/simplification for regex.
71186         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71187         needs to be at the start of the file, and can be moved into
71188         regex_internal.h and simplified.
71189         * lib/regex_internal.h: Include <alloca.h>.
71190         (__libc_use_alloca) [!defined _LIBC]: New macro.
71191         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71192         now works outside glibc.
71193
71194 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * config/srclist.txt: Add glibc bugs 1241, 1245.
71197
71198 2005-08-25  Jim Meyering  <jim@meyering.net>
71199
71200         * lib/open-safer.c: Include <config.h>.
71201         Otherwise, we'd lose LARGEFILE support in any file using
71202         e.g. "fcntl--.h"
71203
71204 2005-08-25  Bruno Haible  <bruno@clisp.org>
71205
71206         * m4/minmax.m4: Require autoconf 2.52.
71207         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71208         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71209         alternatives of translit over the alphabet.
71210         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71211
71212 2005-08-24  Simon Josefsson  <jas@extundo.com>
71213
71214         * tests/test-getpass.c: New file.
71215
71216 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71219         for GNU regex features.
71220
71221 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71224         * lib/regex.h (regerror): Likewise.
71225
71226         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71227         requires this.  (The code never needed it.)
71228
71229         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71230         All uses of recently-renamed identifiers changed to use the new,
71231         POSIX-compliant names.  The code will build and run just fine
71232         without these changes, but it's better to eat our own dog food
71233         and use the standard-conforming names.
71234
71235         * lib/regex.h: Fix a multitude of POSIX name space violations.
71236         These changes have an effect only for programs that define
71237         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71238         do not change anything for programs compiled in the normal way.
71239         Also, there is no effect on the ABI.
71240
71241         (_REGEX_SOURCE): New macro.
71242         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71243         defined and _GNU_SOURCE is not; this fixes a name space violation.
71244
71245         Rename the following macros to obey POSIX requirements.
71246         The old names are still visible as macros if _REGEX_SOURCE is defined.
71247         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71248         RE_BACKSLASH_ESCAPE_IN_LISTS.
71249         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71250         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71251         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71252         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71253         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71254         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71255         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71256         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71257         (REG_INTERVALS): renamed from RE_INTERVALS.
71258         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71259         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71260         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71261         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71262         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71263         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71264         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71265         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71266         RE_UNMATCHED_RIGHT_PAREN_ORD.
71267         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71268         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71269         (REG_DEBUG): renamed from RE_DEBUG.
71270         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71271         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71272         unusual, since we can't clash with the POSIX REG_ICASE.
71273         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71274         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71275         (REG_NO_SUB): renamed from RE_NO_SUB.
71276         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71277         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71278         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71279         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71280         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71281         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71282         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71283         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71284         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71285         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71286         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71287         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71288         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71289         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71290         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71291         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71292         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71293         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71294         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71295         (REG_FIXED): Renamed from REGS_FIXED.
71296         (REG_NREGS): Renamed from RE_NREGS.
71297
71298         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71299         of other REG_* macros, since POSIX says the user is allowed to
71300         #undef these macros selectively.
71301
71302         (reg_errcode_t): Update comment stating what other tables need
71303         to be consistent.
71304
71305         Rename the following enum values to obey POSIX requirements.
71306         The old names are still visible as macros.
71307         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71308         is not defined, since GNU is supposed to be a superset of POSIX as
71309         much as possible, and since we want reg_errcode_t to be a signed
71310         type for implementation consistency.
71311         (_REG_NOERROR): Renamed from REG_NOERROR.
71312         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71313         (_REG_BADPAT): Renamed from REG_BADPAT.
71314         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71315         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71316         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71317         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71318         (_REG_EBRACK): Renamed from REG_EBRACK.
71319         (_REG_EPAREN): Renamed from REG_EPAREN.
71320         (_REG_EBRACE): Renamed from REG_EBRACE.
71321         (_REG_BADBR): Renamed from REG_BADBR.
71322         (_REG_ERANGE): Renamed from REG_ERANGE.
71323         (_REG_ESPACE): Renamed from REG_ESPACE.
71324         (_REG_BADRPT): Renamed from REG_BADRPT.
71325         (_REG_EEND): Renamed from REG_EEND.
71326         (_REG_ESIZE): Renamed from REG_ESIZE.
71327         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71328         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71329         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71330         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71331         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71332
71333         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71334         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71335         changed.  But support the old name if the new one is not defined
71336         and if _REGEX_SOURCE.
71337
71338         Change the following member names in struct re_pattern_buffer.
71339         The old names are still supported if !_REGEX_SOURCE.
71340         The new names are always supported, regardless of _REGEX_SOURCE.
71341         (re_buffer): Renamed from buffer.
71342         (re_allocated): Renamed from allocated.
71343         (re_used): Renamed from used.
71344         (re_syntax): Renamed from syntax.
71345         (re_fastmap): Renamed from fastmap.
71346         (re_translate): Renamed from translate.
71347         (re_can_be_null): Renamed from can_be_null.
71348         (re_regs_allocated): Renamed from regs_allocated.
71349         (re_fastmap_accurate): Renamed from fastmap_accurate.
71350         (re_no_sub): Renamed from no_sub.
71351         (re_not_bol): Renamed from not_bol.
71352         (re_not_eol): Renamed from not_eol.
71353         (re_newline_anchor): Renamed from newline_anchor.
71354
71355         Change the following member names in struct re_registers.
71356         The old names are still supported if !_REGEX_SOURCE.
71357         The new names are always supported, regardless of _REGEX_SOURCE.
71358         (rm_num_regs): Renamed from num_regs.
71359         (rm_start): Renamed from start.
71360         (rm_end): Renamed from end.
71361
71362         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71363         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71364         Prepend __ to parameter names.
71365
71366         Undo yesterday's changes.
71367
71368 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71371         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71372         lib/regex.c.
71373
71374 2005-08-24  Jim Meyering  <jim@meyering.net>
71375
71376         Sync from coreutils.
71377         * m4/fcntl-safer.m4: New file.
71378
71379         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71380         and object files for this module.
71381
71382 2005-08-24  Jim Meyering  <jim@meyering.net>
71383
71384         Sync from coreutils.
71385         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71386
71387 2005-08-24  Jim Meyering  <jim@meyering.net>
71388
71389         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71390         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71391
71392 2005-08-24  Jim Meyering  <jim@meyering.net>
71393
71394         * modules/fcntl-safer: New module.
71395         * modules/fts (Depends-on): Add fcntl-safer.
71396         * MODULES.html.sh (File descriptor based Input/Output):
71397         Add fcntl-safer.
71398
71399 2005-08-24  Bruno Haible  <bruno@clisp.org>
71400
71401         Support for unit test modules.
71402         * modules/README: Mention tests modules.
71403         * modules/TEMPLATE-TESTS: New file.
71404         * gnulib-tool: New options --extract-tests-module, --with-tests and
71405         --tests-base (unused for the moment).
71406         (testsbase, inctests): New variables.
71407         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71408         (func_verify_module): Exclude TEMPLATE-TESTS.
71409         (func_verify_nontests_module, func_verify_tests_module): New functions.
71410         (func_get_dependencies): Add implicit dependency for tests modules.
71411         (func_get_tests_module): New function.
71412         (func_modules_transitive_closure): When --with-tests was specified,
71413         include the unit tests as well, unless explicitly avoided.
71414         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71415         (func_emit_tests_Makefile_am): New function.
71416         (func_create_testdir): When --with-tests was specified, emit a
71417         tests/ directory.
71418         * MODULES.html.sh (Future developments): Update.
71419
71420 2005-08-24  Bruno Haible  <bruno@clisp.org>
71421
71422         * modules/tls-tests: New file.
71423         * tests/test-tls.c: New file, from GNU gettext.
71424
71425 2005-08-24  Bruno Haible  <bruno@clisp.org>
71426
71427         * modules/lock-tests: New file.
71428         * tests/test-lock.c: New file, from GNU gettext.
71429
71430 2005-08-24  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/lock.h: Add multiple inclusion guard.
71433         * lib/tls.h: Add multiple inclusion guard.
71434
71435 2005-08-24  Bruno Haible  <bruno@clisp.org>
71436
71437         * gnulib-tool: Add support for the --aux-dir option to
71438         --create-testdir, --create-megatestdir, --test, --megatest.
71439         (func_create_testdir, func_create_megatestdir): Optionally emit a
71440         AC_CONFIG_AUX_DIR directive.
71441         (create-testdir, create-megatestdir, test, megatest): Provide a
71442         default value for $auxdir.
71443
71444 2005-08-24  Bruno Haible  <bruno@clisp.org>
71445
71446         * gnulib-tool (import): Use compound statement instead of subshell
71447         where possible.
71448
71449 2005-08-24  Bruno Haible  <bruno@clisp.org>
71450
71451         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71452
71453 2005-08-24  Bruno Haible  <bruno@clisp.org>
71454
71455         * gnulib-tool (func_version): Update.
71456
71457 2005-08-24  Bruno Haible  <bruno@clisp.org>
71458
71459         * gnulib-tool (func_import, func_create_testdir,
71460         func_create_megatestdir): Quote all autoconf macro arguments.
71461
71462 2005-08-24  Bruno Haible  <bruno@clisp.org>
71463
71464         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71465         option --force, because --force causes the aclocal.m4 of each
71466         subdirectory to be newer than the corresponding config.h.in.
71467
71468 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71471         All contents moved to gl_REGEX.
71472         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71473         assume that it does.
71474
71475 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * lib/regex.h (REG_NOSYS)
71478         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71479         Define, since POSIX requires it as of 2001.
71480         (_REG_ENOSYS)
71481         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71482         New private symbol, used to keep the enum signed in all cases.
71483         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71484         Youngman in
71485         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71486
71487         * lib/regex_internal.c (re_string_skip_chars, register_state):
71488         (calc_state_hash):
71489         Remove forward decls; no longer needed now that we use prototypes.
71490         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71491         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71492         (clean_state_log_if_needed): Likewise.
71493
71494 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * config/srclist.txt: Add glibc bugs 1231-1233.
71497
71498 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         Fix problems reported by Sam Steingold in
71501         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71502         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71503         assumed that reg_errcode_t is a signed type, which is not
71504         necessarily true if _XOPEN_SOURCE is not defined.
71505         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71506         since some compilers warn about it otherwise.
71507
71508 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71511         (init_word_char, create_initial_state, duplicate_node_closure):
71512         (fetch_token, peek_token_bracket, build_range_exp):
71513         (build_collating_symbol): Remove forward decls; no longer needed
71514         now that we use prototypes.
71515
71516         * lib/regcomp.c:
71517         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71518         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71519         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71520         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71521         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71522         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71523         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71524         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71525         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71526         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71527         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71528         (build_charclass, build_charclass_op, fetch_number, create_tree):
71529         (create_token_tree, mark_opt_subexp, duplicate_tree):
71530         Use prototypes rather than old-style definitions.
71531
71532         * lib/regex_internal.c:
71533         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71534         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71535         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71536         (re_string_reconstruct, re_string_peek_byte_case):
71537         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71538         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71539         (re_node_set_init_copy, re_node_set_add_intersect):
71540         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71541         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71542         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71543         (re_acquire_state, re_acquire_state_context, register_state):
71544         (create_ci_newstate, create_cd_newstate, free_state):
71545         Likewise.
71546         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71547         re_search_2):
71548         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71549         (re_search_internal, prune_impossible_nodes):
71550         (acquire_init_state_context, check_matching, static):
71551         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71552         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71553         (update_regs, sift_states_backward, build_sifted_states):
71554         (clean_state_log_if_needed, merge_state_array):
71555         (update_cur_sifted_state, add_epsilon_src_nodes):
71556         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71557         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71558         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71559         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71560         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71561         (check_arrival, check_arrival_add_next_nodes):
71562         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71563         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71564         (check_node_accept_bytes, check_node_accept, extend_buffers):
71565         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71566         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71567         (sift_ctx_init):
71568         Likewise.
71569
71570         * lib/regex_internal.h:
71571         (re_string_allocate, re_string_construct, re_string_reconstruct):
71572         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71573         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71574         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71575         (re_string_context_at, re_string_peek_byte_case):
71576         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71577         is defined, since we now use prototypes always.
71578
71579         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71580         C89 or better.  All uses removed.
71581
71582 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * config/srclist.txt: Add glibc bugs 1220-1227.
71585
71586 2005-08-20  Jim Meyering  <jim@meyering.net>
71587
71588         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71589         of unused local, dfa.
71590
71591 2005-08-20  Bruno Haible  <bruno@clisp.org>
71592
71593         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71594
71595 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71598         (re_node_set_insert_last, re_dfa_add_node):
71599         Rename local variables to avoid GCC shadowing warnings.
71600
71601 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71604         [defined lint]: Suppress bogus uninitialized-variable warnings.
71605
71606         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71607         and let the caller return REG_ESPACE if out of space.  This
71608         removes an uninitialied-variable warning with GCC 4.0.1, and also
71609         avoids taking the address of a local variable.  All callers
71610         changed.
71611
71612 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71615         $LIBCSRC/posix/regexec.c.
71616         Add glibc bug 1217 for regcomp.c.
71617
71618 2005-08-19  Jim Meyering  <jim@meyering.net>
71619
71620         * lib/regexec.c (proceed_next_node): Redo local variables to
71621         avoid GCC shadowing warnings.
71622
71623 2005-08-18  Bruno Haible  <bruno@clisp.org>
71624
71625         * lib/strstr.c (strstr): Fix return value in multibyte case.
71626         * lib/strcasestr.c (strcasestr): Likewise.
71627
71628 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71631
71632 2005-08-17  Jim Meyering  <jim@meyering.net>
71633
71634         Make the %s format (seconds since the epoch) work for a negative
71635         number and when used with a zero-padded field width, e.g. %015s.
71636
71637         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71638         label so that it precedes the code to set `digits'.  Otherwise,
71639         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71640         print `00-22'.  Now, it prints `-0022', as it should.
71641
71642 2005-08-17  Bruno Haible  <bruno@clisp.org>
71643
71644         * modules/strstr (Files): Add m4/mbrtowc.m4.
71645         (Depends-on): Add mbuiter.
71646
71647 2005-08-17  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/strcasestr: New file.
71650         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71651         strcasestr.
71652
71653 2005-08-17  Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71656
71657 2005-08-17  Bruno Haible  <bruno@clisp.org>
71658
71659         * modules/mbuiter: New file.
71660         * MODULES.html.sh (Extended multibyte and wide character utilities):
71661         Add mbuiter.
71662
71663 2005-08-17  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71666         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71667
71668 2005-08-17  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/strcasestr.m4: New file.
71671
71672 2005-08-17  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71675         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71676
71677 2005-08-17  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/strcasestr.h: New file.
71680         * lib/strcasestr.c: New file.
71681
71682 2005-08-17  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/strcasecmp.c: Use mbuiter.h.
71685
71686 2005-08-17  Bruno Haible  <bruno@clisp.org>
71687
71688         * lib/mbuiter.h: New file.
71689
71690 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71693         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71694         and gl_GETOPT are both invoked via different paths (as happens
71695         with GNU tar CVS because it uses both argp and getopt), the former
71696         wins.
71697
71698 2005-08-16  Bruno Haible  <bruno@clisp.org>
71699
71700         * modules/tls: New file.
71701         * MODULES.html.sh (Multithreading): Add tls.
71702
71703 2005-08-16  Bruno Haible  <bruno@clisp.org>
71704
71705         * modules/strnlen1: New file.
71706         * MODULES.html.sh (String handling): Add strnlen1.
71707
71708 2005-08-16  Bruno Haible  <bruno@clisp.org>
71709
71710         * modules/strcase (Files): Add m4/mbrtowc.m4.
71711         (Depends-on): Add strnlen1, mbchar.
71712
71713 2005-08-16  Bruno Haible  <bruno@clisp.org>
71714
71715         * modules/mbiter: New file.
71716         * MODULES.html.sh (Extended multibyte and wide character utilities):
71717         Add mbiter.
71718
71719 2005-08-16  Bruno Haible  <bruno@clisp.org>
71720
71721         * modules/mbfile: New file.
71722         * MODULES.html.sh (Extended multibyte and wide character utilities):
71723         Add mbfile.
71724
71725 2005-08-16  Bruno Haible  <bruno@clisp.org>
71726
71727         * modules/mbchar: New file.
71728         * MODULES.html.sh (Extended multibyte and wide character utilities):
71729         New section.
71730
71731 2005-08-16  Bruno Haible  <bruno@clisp.org>
71732
71733         * m4/tls.m4: New file, from GNU gettext.
71734
71735 2005-08-16  Bruno Haible  <bruno@clisp.org>
71736
71737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71738         always.
71739         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71740
71741 2005-08-16  Bruno Haible  <bruno@clisp.org>
71742
71743         * m4/mbiter.m4: New file.
71744
71745 2005-08-16  Bruno Haible  <bruno@clisp.org>
71746
71747         * m4/mbfile.m4: New file.
71748
71749 2005-08-16  Bruno Haible  <bruno@clisp.org>
71750
71751         * m4/mbchar.m4: New file.
71752
71753 2005-08-16  Bruno Haible  <bruno@clisp.org>
71754
71755         * lib/tls.h: New file, from GNU gettext.
71756         * lib/tls.c: New file, from GNU gettext.
71757
71758 2005-08-16  Bruno Haible  <bruno@clisp.org>
71759
71760         * lib/strnlen1.h: New file.
71761         * lib/strnlen1.c: New file.
71762
71763 2005-08-16  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71766         (mbi_init): Update.
71767         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71768         NUL byte, not after it.
71769
71770 2005-08-16  Bruno Haible  <bruno@clisp.org>
71771
71772         * lib/strcase.h (strcasecmp): Add note in comments.
71773         * lib/strncasecmp.c: Use code from strcasecmp.c.
71774         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71775         (strcasecmp): Work correctly in multibyte locales.
71776
71777 2005-08-16  Bruno Haible  <bruno@clisp.org>
71778
71779         * lib/mbiter.h: New file.
71780
71781 2005-08-16  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/mbfile.h: New file.
71784
71785 2005-08-16  Bruno Haible  <bruno@clisp.org>
71786
71787         * lib/mbchar.h: New file.
71788         * lib/mbchar.c: New file.
71789
71790 2005-08-16  Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71793         the valid ones. Makes the comparison operations transitive:
71794         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71795         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71796
71797 2005-08-15  Simon Josefsson  <jas@extundo.com>
71798
71799         * modules/ssize_t (License): Change to 'unlimited'.
71800
71801         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71802
71803 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71806         Add comments for each pending glibc patch.
71807
71808 2005-08-15  Bruno Haible  <bruno@clisp.org>
71809
71810         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71811         __cplusplus is defined.
71812
71813 2005-08-14  Jim Meyering  <jim@meyering.net>
71814
71815         Sync from coreutils.
71816
71817         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71818         Use the hash-table-based cycle-detection code not just when
71819         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71820         Reported by James Youngman in
71821         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71822         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71823         FTS_TIGHT_CYCLE_CHECK.
71824         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71825         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71826         once again.
71827         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71828         * lib/fts.c (fd_safer): Remove decl.
71829         Include fcntl--.h rather than unistd-safer.h
71830         (fts_safe_changedir): Don't call fd_safer; no longer needed
71831         now that we include fcntl--.h.
71832
71833 2005-08-12  Simon Josefsson  <jas@extundo.com>
71834
71835         * modules/getndelim2: Use ssize_t module.
71836         * modules/getnline: Likewise.
71837         * modules/safe-read: Likewise.
71838         * modules/xreadlink: Likewise.
71839
71840         * modules/ssize_t: New file.
71841
71842 2005-08-12  Simon Josefsson  <jas@extundo.com>
71843
71844         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71845
71846 2005-08-12  Simon Josefsson  <jas@extundo.com>
71847
71848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71849         ssize_t.
71850
71851 2005-08-12  Simon Josefsson  <jas@extundo.com>
71852
71853         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71854         readline, getdelim and check_version.
71855         (Support for systems lacking ISO C 99: Sizes of integer types):
71856         Add size_max.
71857
71858 2005-08-12  Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71861
71862 2005-08-11  Simon Josefsson  <jas@extundo.com>
71863
71864         * modules/readline: New file.
71865
71866         * modules/strnlen (Files): Add strnlen.h.
71867
71868 2005-08-11  Simon Josefsson  <jas@extundo.com>
71869
71870         * m4/readline.m4: New file.
71871
71872 2005-08-11  Simon Josefsson  <jas@extundo.com>
71873
71874         * lib/readline.h, readline.c: New file.
71875
71876 2005-08-11  Simon Josefsson  <jas@extundo.com>
71877
71878         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71879         gl_AVOID.
71880
71881 2005-08-11  Bruno Haible  <bruno@clisp.org>
71882
71883         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71884
71885 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71886
71887         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71888
71889 2005-08-10  Simon Josefsson  <jas@extundo.com>
71890
71891         * tests/test-iconvme.c: New file.
71892
71893 2005-08-10  Simon Josefsson  <jas@extundo.com>
71894
71895         * m4/strnlen.m4: New file.
71896
71897         * m4/strndup.m4: Don't check for strnlen declaration, done in
71898         strnlen.m4.
71899
71900 2005-08-10  Simon Josefsson  <jas@extundo.com>
71901
71902         * lib/strndup.c: Use strnlen.h.
71903
71904         * lib/strnlen.h: New file.
71905
71906 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71907
71908         * README: Typos.
71909
71910 2005-08-02  Simon Josefsson  <jas@extundo.com>
71911
71912         * modules/readline: New file.
71913
71914 2005-08-02  Simon Josefsson  <jas@extundo.com>
71915
71916         * modules/getdelim: New file.
71917
71918         * modules/getline: Rewrite, don't use getndelim2.
71919
71920 2005-08-02  Simon Josefsson  <jas@extundo.com>
71921
71922         * m4/getline.m4: Separate out getdelim stuff into separate module.
71923
71924         * m4/getdelim.m4: New file.
71925
71926 2005-08-02  Simon Josefsson  <jas@extundo.com>
71927
71928         * lib/getline.h, getline.c: Rewrite.
71929
71930         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71931
71932 2005-07-31  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/lock.h (gl_lock_initializer): New macro.
71935         (gl_lock_define_initialized): Use it.
71936         (gl_rwlock_initializer): New macro.
71937         (gl_rwlock_define_initialized): Use it.
71938         (gl_recursive_lock_initializer): New macro.
71939         (gl_recursive_lock_define_initialized): Use it.
71940
71941 2005-07-30  Karl Berry  <karl@gnu.org>
71942
71943         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71944         Report from Ben Pfaff, regarding getopt.
71945
71946 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71949         normal way.
71950         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71951         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71952         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71953         (gl_GETOPT): Use the new macros.  Most of the implementation
71954         is moved to the new macros.  This is for programs like Emacs
71955         that don't want all the functionality of gl_GETOPT.
71956
71957 2005-07-26  Bruno Haible  <bruno@clisp.org>
71958
71959         * m4/lock.m4: Update from GNU gettext.
71960
71961 2005-07-26  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/lock.h: Update from GNU gettext.
71964         * lib/lock.c: Update from GNU gettext.
71965
71966 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71969         obsolescent AC_TRY_RUN.  Include the default includes files, for
71970         'exit'.
71971
71972 2005-07-24  Bruno Haible  <bruno@clisp.org>
71973
71974         * modules/visibility: New file.
71975         * MODULES.html.sh (Misc): Add visibility.
71976
71977 2005-07-24  Bruno Haible  <bruno@clisp.org>
71978
71979         * m4/visibility.m4: New file.
71980
71981 2005-07-24  Bruno Haible  <bruno@clisp.org>
71982
71983         * doc/visibility.texi: New file.
71984
71985 2005-07-22  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71988         $(ALLOCA_H), redundant through BUILT_SOURCES.
71989         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71990         redundant through BUILT_SOURCES.
71991         * modules/byteswap (Makefile.am): Remove explicit dependency on
71992         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71993         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71994         $(FNMATCH_H), redundant through BUILT_SOURCES.
71995         * modules/getopt (Makefile.am): Remove explicit dependency on
71996         $(GETOPT_H), redundant through BUILT_SOURCES.
71997         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71998         redundant through BUILT_SOURCES.
71999         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72000         redundant through BUILT_SOURCES.
72001         * modules/stdbool (Makefile.am): Remove explicit dependency on
72002         $(STDBOOL_H), redundant through BUILT_SOURCES.
72003         * modules/stdint (Makefile.am): Remove explicit dependency on
72004         $(STDINT_H), redundant through BUILT_SOURCES.
72005         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72006         Remove explicit dependency on $(SYSEXITS_H).
72007         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72008
72009 2005-07-18  Simon Josefsson  <jas@extundo.com>
72010
72011         * lib/check-version.c (check_version): Accept identical versions too.
72012
72013 2005-07-18  Bruno Haible  <bruno@clisp.org>
72014
72015         * modules/lock: New file.
72016         * MODULES.html.sh (Multithreading): New section.
72017
72018 2005-07-18  Bruno Haible  <bruno@clisp.org>
72019
72020         * m4/lock.m4: New file, from GNU gettext.
72021
72022 2005-07-18  Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/lock.h: New file, from GNU gettext.
72025         * lib/lock.c: New file, from GNU gettext.
72026
72027 2005-07-18  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/lock.h (gl_once_t): New type.
72030         (gl_once_define, gl_once): New macros.
72031         * lib/lock.c (fresh_once): New variable.
72032         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72033         functions.
72034
72035 2005-07-16  Simon Josefsson  <jas@extundo.com>
72036
72037         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72038         workaround, suggested by Bruno.
72039
72040 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72041
72042         * modules/xalloc (Depends-on): Add xalloc-die.
72043         * modules/xvasprintf (Depends-on): Add xalloc-die.
72044
72045 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72046
72047         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72048         with a minor change.
72049
72050 2005-07-15  Bruno Haible  <bruno@clisp.org>
72051
72052         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72053         When using lib/poll.c, define poll as rpl_poll.
72054
72055 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * modules/argp (Depends-on): Remove unlocked-io.
72058
72059 2005-07-14  Derek Price  <derek@ximbiot.com>
72060
72061         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72062         for glob symlink bug.
72063
72064 2005-07-14  Bruno Haible  <bruno@clisp.org>
72065
72066         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72067         Instead, test for *_unlocked function declarations directly.
72068
72069 2005-07-11  Simon Josefsson  <jas@extundo.com>
72070
72071         * modules/size_max: New file.
72072
72073         * modules/xsize: Depend on size_max module for size_max.m4.
72074
72075 2005-07-11  Simon Josefsson  <jas@extundo.com>
72076
72077         * lib/size_max.h: New file.
72078
72079 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72082         copyright symbol and the year.
72083         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72084         (version_etc_va): Use parameterized copyright notice.
72085         Reword to conform to the current GNU coding standards.
72086
72087 2005-07-11  Karl Berry  <karl@gnu.org>
72088
72089         * doc/gnulib.texi (Quoting): new node.
72090         (Initial import): more info, from Patrice.
72091
72092 2005-07-11  Bruno Haible  <bruno@clisp.org>
72093
72094         * gnulib-tool (func_usage): Document option --avoid.
72095         (Command line options): Handle --avoid.
72096         (func_acceptable): New function.
72097         (func_modules_transitive_closure): Use it.
72098
72099 2005-07-11  Bruno Haible  <bruno@clisp.org>
72100
72101         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72102         Reported by Jim Meyering.
72103
72104 2005-07-10  Bruno Haible  <bruno@clisp.org>
72105
72106         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72107         Needed when size_t is smaller than 'unsigned int'.
72108         Reported by Paul Eggert.
72109
72110 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72111
72112         * modules/argp (Depends-on): Add unlocked-io
72113
72114 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72115
72116         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72117         block of defines.
72118
72119 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72122         fix now.
72123
72124 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72125         and Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72128         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72129
72130 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * modules/regex (Files): Add lib/regex_internal.c,
72133         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72134         (Depends-on): Add extensions.
72135         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72136
72137 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72140         pathconf.
72141         * m4/same.m4 (gl_SAME): Likewise.
72142         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72143
72144         * m4/regex.m4: Adjust to new libc regex implementation.
72145         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72146         all the .c and .h parts of (the new) regex.
72147         Quote the m4 stuff better.
72148         Check for RE_ICASE bug of old gnulib.
72149         Check for REG_STARTEND of recent libc.
72150         Rename local variables from jm_* to gl_*.
72151         Quote operand of "test -f".
72152         Say "recent enough" version of libc, not "version 2".
72153         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72154         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72155         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72156         Remove check for btowc, isascii.
72157         Require AM_LANGINFO_CODESET.
72158
72159 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * lib/regex.c, regex.h: Sync from libc.
72162         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72163         * lib/regexec.c:
72164         New files, synced from libc, except that regex_internal.h
72165         currently has a small porting fix.
72166
72167 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72170         regex_internal.c, regexec.c.
72171         Add regex_internal.h too, but as a comment, since the libc version
72172         is currently broken in gnulib mode.
72173
72174 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         Support programs like Emacs that use gnulib but not gettext.
72177         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72178         * modules/gettext-h: New file.
72179         * modules/gettext (Files): Remove lib/gettext.h.
72180         (Depends-on): Add gettext-h.
72181         (Makefile.am): Remove lib_SOURCES.
72182         * modules/argmatch, modules/c-stack, modules/closeout:
72183         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72184         * modules/execute, modules/file-type, modules/getaddrinfo:
72185         * modules/getopt, modules/human, modules/javacomp:
72186         * modules/javaexec, modules/mkdir-p, modules/obstack:
72187         * modules/openat, modules/pagealign_alloc, modules/pipe:
72188         * modules/quotearg, modules/regex, modules/rpmatch:
72189         * modules/unicodeio, modules/userspec, modules/version-etc:
72190         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72191         * modules/xsetenv:
72192         Depend on gettext-h, not gettext.
72193
72194 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * gnulib-tool (func_import): Add support for 'public domain' license.
72197         * modules/alloca, modules/atexit, modules/memmove:
72198         Now public domain, not GPL.
72199         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72200         * modules/realloc, modules/strerror, modules/strtod:
72201         Now LGPL, not GPL.
72202
72203 2005-07-05  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72206         autoconf CVS. Needed for mingw.
72207
72208 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         Remove the dependency of the strftime module on the tzset module.
72211         * modules/strftime (Depends-on): Remove dependency on tzset.
72212
72213 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         Remove the dependency of the strftime module on the tzset module.
72216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72217         gl_FUNC_TZSET_CLOBBER.
72218
72219 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         Remove the dependency of the strftime module on the tzset module.
72222         * lib/strftime.c (my_strftime)
72223         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72224         Copy the input structure, to work around some of the bug with
72225         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72226         Solaris releases, you should also use the tzset module, but we won't
72227         require it as a dependency any more since we don't want LGPLed code
72228         to depend on GPLed code.
72229
72230 2005-07-02  Jim Meyering  <jim@meyering.net>
72231
72232         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72233         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72234         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72235         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72236
72237 2005-07-02  Jim Meyering  <jim@meyering.net>
72238
72239         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72240
72241 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72244         declares only 'struct timespec;' (!).
72245
72246 2005-07-01  Jim Meyering  <jim@meyering.net>
72247
72248         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72249         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72250         * lib/save-cwd.c, tempname.c:
72251         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72252         and don't include <sys/file.h>).
72253
72254 2005-06-29  Jim Meyering  <jim@meyering.net>
72255
72256         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72257         type name.  Use the variable name instead.
72258         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72259         Likewise.
72260
72261 2005-06-28  Simon Josefsson  <jas@extundo.com>
72262
72263         * modules/check-version (Files): Add check-version.m4.
72264
72265 2005-06-28  Simon Josefsson  <jas@extundo.com>
72266
72267         * m4/check-version.m4: New file, suggested by Jim Meyering
72268         <jim@meyering.net>.
72269
72270 2005-06-28  Simon Josefsson  <jas@extundo.com>
72271
72272         * lib/check-version.h, lib/check-version.c: New files.
72273
72274 2005-06-28  Simon Josefsson  <jas@extundo.com>
72275
72276         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72277         collision with global variable.  Better indentation.  Don't
72278         increment buffer pointer beyond buffer end.  Based on comments
72279         from Paul Eggert <eggert@cs.ucla.edu>.
72280
72281         * lib/base64.h: Indent.
72282
72283 2005-06-28  Simon Josefsson  <jas@extundo.com>
72284
72285         * doc/gnulib.texi (Library version handling): New section.
72286
72287 2005-06-28  Jim Meyering  <jim@meyering.net>
72288
72289         * check-module (find_included_lib_files): Hard-code another
72290         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72291         but modules/fts-lgpl (correctly) does not list those files.
72292
72293         * modules/canonicalize (Files): Add lib/pathmax.h.
72294
72295 2005-06-25  Simon Josefsson  <jas@extundo.com>
72296
72297         * modules/check-version: New file.
72298
72299 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72302         initializer of struct addrinfo, as an indication that we don't
72303         care how many members the structure has.
72304
72305 2005-06-24  Derek Price  <derek@ximbiot.com>
72306         and Bruno Haible  <bruno@clisp.org>
72307
72308         Remove stat module & update lstat.
72309         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72310         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72311         * m4/stat.m4: Remove this file.
72312
72313 2005-06-24  Derek Price  <derek@ximbiot.com>
72314         and Bruno Haible  <bruno@clisp.org>
72315
72316         Remove stat module & update lstat.
72317         * lib/stat.c: Remove this file...
72318         (slash_aware_lstat): ...moving this content and its support...
72319         * lib/lstat.c (rpl_lstat): ...into here.
72320         * lib/lstat.h: New file.
72321
72322 2005-06-24  Derek Price  <derek@ximbiot.com>
72323         and Bruno Haible  <bruno@clisp.org>
72324
72325         Remove stat module & update lstat.
72326         * config/srclist.txt (libc sources): Remove stat.
72327
72328 2005-06-24  Derek Price  <derek@ximbiot.com>
72329         and Bruno Haible  <bruno@clisp.org>
72330
72331         Remove stat module & update lstat.
72332         * MODULES.html.sh (stat): Remove.
72333         * MODULES.html: Regenerated.
72334         * modules/lstat (Description): Correct function name.
72335         (Files): Add "lstat.h".
72336         (Depends-on): Remove stat, add xalloc, stat-macros.
72337         * modules/stat: Remove this file.
72338         (Include): Add "lstat.h", remove <sys/stat.h>.
72339
72340 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72343         (ranged_convert): Don't save conversion in a temporary struct.
72344         This causes a warning with GCC 4.0.0, and anyway in the typical
72345         case it's not worth the extra 100 bytes or so of code.
72346         (ranged_convert, __mktime_internal): When calling a function via a
72347         pointer P, use P () rather than (*P) (), as we now assume C89 or
72348         better.
72349
72350 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72353         "who -r" failed to give output.  Problem reported by Tim Waugh.
72354
72355         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72356         (xcalloc): Use it to avoid needless tests.
72357         Problem reported by Jim Meyering.
72358
72359 2005-06-20  Derek Price  <derek@ximbiot.com>
72360
72361         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72362         unnecessary for Autoconfs > 2.59c.
72363
72364 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72365
72366         * lib/argp.h (__option_is_short): Check upper limit of
72367         __key. Isprint() requires its argument to have the value
72368         of an unsigned char or EOF.
72369
72370 2005-06-16  Jim Meyering  <jim@meyering.net>
72371
72372         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72373         when either N or S is zero.
72374
72375 2005-06-16  Derek Price  <derek@ximbiot.com>
72376
72377         * m4/bison.m4: Declare YACC & YFLAGS precious.
72378
72379 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72382         multibyte string or pattern, fall back on unibyte matching.
72383         Problem reported by James Youngman.
72384
72385 2005-06-08  Bruno Haible  <bruno@clisp.org>
72386
72387         * modules/csharpcomp: New file.
72388         * MODULES.html.sh (C#): Add csharpcomp.
72389
72390 2005-06-08  Bruno Haible  <bruno@clisp.org>
72391
72392         * m4/csharpcomp.m4: New file, from GNU gettext.
72393
72394 2005-06-08  Bruno Haible  <bruno@clisp.org>
72395
72396         * lib/csharpcomp.h: New file, from GNU gettext.
72397         * lib/csharpcomp.c: New file, from GNU gettext.
72398         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72399
72400 2005-06-08  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72403         warning on mingw.
72404
72405 2005-06-07  Derek Price  <derek@ximbiot.com>
72406
72407         Sync from CVS.
72408         * lib/glob_.h: Indent nested #ifdef.
72409
72410 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         Sync from coreutils.
72413         Use "file name" when talking about file names, instead of "filename"
72414         or "path", as per the GNU coding standards.
72415         * lib/mkdir-p.c: Renamed from makepath.c.
72416         (make_dir_parents): Renamed from make_path.  All callers changed.
72417         * lib/mkdir-p.h: Likewise.  All includers changed.
72418         * lib/filenamecat.c: Renamed from path-concat.c.
72419         (file_name_concat): Renamed from path_concat.  All callers changed.
72420         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72421         * lib/filenamecat.h: Likewise.  All includers changed.
72422         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72423         in comments or local variable names.
72424         * lib/basename.c: Likewise.
72425         * lib/canonicalize.c, canonicalize.h: Likewise.
72426         * lib/dirname.c, dirname.h: Likewise.
72427         * lib/euidaccess.c: Likewise.
72428         * lib/exclude.c: Likewise
72429         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72430         * lib/fsusage.c, fsuage.h: Likewise.
72431         * lib/fts.c, fts_.h: Likewise.
72432         * lib/getcwd.c: Likewise.
72433         * lib/getloadavg.c: Likewise.
72434         * lib/mkstemp.c: Likewise.
72435         * lib/mountlist.c, mountlist.h: Likewise.
72436         * lib/openat.c, openat.h: Likewise.
72437         * lib/readlink-stub.c: Likewise.
72438         * lib/readutmp.c, readutmp.h: Likewise.
72439         * lib/rename.c: Likewise.
72440         * lib/rmdir.c: Likewise.
72441         * lib/same.c: Likewise.
72442         * lib/savedir.c: Likewise.
72443         * lib/stripslash.c: Likewise.
72444         * lib/tempname.c: Likewise.
72445         * lib/xreadlink.c: Likewise.
72446         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72447         All uses changed.
72448         * lib/exclude.h: Likewise.
72449
72450         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72451         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72452         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72453         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72454         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72455         files have been getting away with it for years (MORE/BSD 4.3
72456         is extinct now).
72457         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72458         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72459
72460         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72461         Define to 256, not 255, as per modern POSIX.
72462
72463 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         Sync from coreutils.
72466         Use "file name" when talking about file names, instead of "filename"
72467         or "path", as per the GNU coding standards.
72468         * MODULES.html.sh: mkdir-p renamed from makepath.
72469         filenamecat renamed from path-concat.
72470         * modules/filenamecat: Renamed from modules/path-concat.
72471         (Files): filenamecat.h and filenamecat.c renamed from
72472         path-concat.h and path-concat.c.
72473         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72474         (Include): filenamecat.h, not path-concat.h.
72475         * modules/mkdir-p: Renamed from modules/makepath.
72476         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72477         makepath.c.
72478         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72479         (Include): mkdir-p.h, not makepath.h.
72480
72481 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         Sync from coreutils.
72484         * m4/mkdir-p.m4: Renamed from makepath.m4.
72485         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72486         Rename files from makepath.c to mkdir-p.c, and from
72487         makepath.h to mkdir-p.h.
72488         * m4/filenamecat.m4: Renamed from path-concat.m4.
72489         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72490         Rename files from path-concat.c to filenamecat.c,
72491         and from path-concat.h to filenamecat.h.
72492         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72493         "file name" in local variables or comments.
72494         * m4/rename.m4: Likewise.
72495
72496 2005-06-01  Bruno Haible  <bruno@clisp.org>
72497
72498         * modules/csharpexec: New file.
72499         * MODULES.html.sh (C#): New section.
72500
72501 2005-06-01  Bruno Haible  <bruno@clisp.org>
72502
72503         * m4/csharp.m4: New file, from GNU gettext.
72504         * m4/csharpexec.m4: New file, from GNU gettext.
72505
72506 2005-06-01  Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/csharpexec.h: New file, from GNU gettext.
72509         * lib/csharpexec.c: New file, from GNU gettext.
72510         * lib/csharpexec.sh.in: New file, from GNU gettext.
72511
72512 2005-05-31  Derek Price  <derek@ximbiot.com>
72513             Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         Sync from cvs.
72516         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72517
72518 2005-05-31  Derek Price  <derek@ximbiot.com>
72519             Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         Sync from cvs.
72522         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72523
72524 2005-05-29  Derek Price  <derek@ximbiot.com>
72525
72526         * config/srclist.txt (glob_.h, glob.c): Add these files.
72527
72528 2005-05-29  Derek Price  <derek@ximbiot.com>
72529
72530         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72531         * modules/glob: New file.
72532         * modules/getlogin_r: Add link to POSIX spec in description.
72533
72534 2005-05-29  Derek Price  <derek@ximbiot.com>
72535             Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * m4/glob.m4: New file.
72538
72539 2005-05-29  Derek Price  <derek@ximbiot.com>
72540             Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * lib/glob_.h, lib/glob.c: New files.
72543
72544 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72547         * modules/fts-lgpl (Depends-on): Remove gettext.
72548
72549 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72550
72551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72552         and don't require gt_INTTYPES_PRI.
72553
72554 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72557
72558         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72559         the configuration hassle isn't worth it.
72560         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72561         (LONGEST_MODIFIER, PRIuMAX): Remove.
72562
72563 2005-05-27  Bruno Haible  <bruno@clisp.org>
72564
72565         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72566
72567 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72570         _POSIX_PTHREAD_SEMANTICS for Solaris.
72571
72572 2005-05-25  Derek Price  <derek@ximbiot.com>
72573
72574         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72575
72576 2005-05-25  Derek Price  <derek@ximbiot.com>
72577             Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72580         * lib/getlogin_r.c, getlogin_r.h: New files.
72581
72582 2005-05-25  Bruno Haible  <bruno@clisp.org>
72583             Derek Price  <derek@ximbiot.com>
72584
72585         * lib/getlogin_r.h: Simplify API documentation.
72586
72587 2005-05-23  Derek Price  <derek@ximbiot.com>
72588
72589         * modules/minmax (Files): Add m4/minmax.m4.
72590         (configure.ac): Add gl_MINMAX.
72591
72592 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72595         so that unistd-safer.h (GPL'ed code) need not be included.
72596
72597 2005-05-22  Bruno Haible  <bruno@clisp.org>
72598
72599         * m4/minmax.m4: New file.
72600         Based on a patch by Derek Price <derek@ximbiot.com>.
72601
72602 2005-05-22  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72605         (INT64_MIN): Fix definition.
72606         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72607
72608         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72609         NEED_SIGNED_INT_TYPES.
72610
72611         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72612         HAVE_SYSTEM_INTTYPES.
72613
72614 2005-05-22  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72617         Also include <sys/param.h> if it defines MIN, MAX.
72618         Based on a patch by Derek Price <derek@ximbiot.com>.
72619
72620 2005-05-21  Jim Meyering  <jim@meyering.net>
72621
72622         * modules/fts (Files): Add m4/inttypes-pri.m4.
72623         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72624
72625 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         New fts module.
72628         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72629         (setup_dir, free_dir): New functions.
72630         (enter_dir, leave_dir): Define trivial
72631         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72632         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72633         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72634         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72635         Move to fts-cycle.c.
72636         (fts_open): Use setup_dir.
72637         (fts_close): Use free_dir.
72638         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72639         This adds a label and some gotos, but the alternatives were messier.
72640         Check for memory allocation failure when entering a dir.
72641         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72642         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72643         (FTS): New member fts_cycle, that is a union that contains the
72644         old active_dir_ht and cycle_state.  All uses changed to mention
72645         fts_cycle.ht and fts_cycle.state.
72646         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72647         fts.c, with the following changes:
72648         (setup_dir, free_dir): New functions.
72649         (enter_dir): Now returns bool.  Return true if successful, false
72650         if memory exhausted.  All callers changed.
72651         Do not bother partly cleaning up on
72652         memory allocation failure; that is free_dir's job.
72653         However, free ad if hash_insert fails, to avoid memory leak.
72654         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72655         fts->fts_options to see which union member to use.
72656
72657 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72660         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72661
72662 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72665
72666 2005-05-20  Jim Meyering  <jim@meyering.net>
72667
72668         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72669         Now a macro, to pacify GCC.
72670
72671 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72672
72673         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72674         of -1.
72675
72676 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72677
72678         * lib/chown.c (rpl_chown): Return -1 on failure.
72679
72680 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72683         Don't check for stddef.h.
72684         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72685         don't use its results.
72686         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72687         since we include them unconditionally.  Don't require
72688         AM_STDBOOL_H, since stdbool is a prerequisite.
72689         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72690         since we assume C89 or better.
72691         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72692         as we don't use their results.
72693         Don't check for fchdir, memmove, memset, strrchr, as we use
72694         them unconditionally.
72695         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72696         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72697
72698 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72701         Include <stddef.h> unconditionally, since we assume C89 now.
72702         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72703         * lib/fts.c: Include fts_.h first, to check interface.
72704         Do not include intprops.h; no longer needed.
72705         Include cycle-check.h and hash.h, since fts_.h no longer does.
72706         Remove unnecessary casts of closedir to void.
72707         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72708         decide whether to decrement nlinks.
72709         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72710         (FTS): Use struct hash_table * instead of Hash_table, so that
72711         we no longer need to include hash.h here.
72712
72713 2005-05-18  Jim Meyering  <jim@meyering.net>
72714
72715         * modules/dirfd (License): Change to LGPL.  Most of the code
72716         is already in the public domain.
72717
72718 2005-05-18  Jim Meyering  <jim@meyering.net>
72719
72720         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72721         Reported by Yoann Vandoorselaere.
72722
72723 2005-05-17  Jim Meyering  <jim@meyering.net>
72724
72725         * m4/fts.m4: New file, from coreutils.
72726
72727 2005-05-17  Jim Meyering  <jim@meyering.net>
72728
72729         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72730
72731 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         Sync from coreutils.
72734         * m4/unlinkdir.m4: New file.
72735
72736 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         Sync from coreutils.
72739         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72740         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72741         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72742         White space changes only.
72743         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72744         special.
72745         * lib/yesno.c: Include getline.h, not ctype.h.
72746         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72747         Use getline to remove arbitrary restriction on response length.
72748
72749 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * config/srclist-update: Spell out "Street" in FSF postal
72752         mail address; this is the style the FSF seems to prefer.
72753
72754         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72755         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72756         this updates FSF postal mail address.
72757
72758         Sync from coreutils.
72759         * modules/unlinkdir: New file.
72760         * modules/yesno (Depends-on): Add getline.
72761         * MODULES.html.sh (File system functions): Add unlinkdir.
72762
72763 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72766         lib/strsep.h:
72767         Change the initial comment to refer to GPL, not LGPL.
72768         gnulib-tool will change it to LGPL as needed.
72769
72770         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72771         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72772         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72773         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72774         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72775         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72776         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72777         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72778         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72779         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72780         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72781         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72782         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72783         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72784         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72785         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72786         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72787         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72788         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72789         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72790         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72791         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72792         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72793         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72794         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72795         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72796         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72797         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72798         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72799         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72800         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72801         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72802         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72803         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72804         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72805         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72806         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72807         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72808         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72809         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72810         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72811         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72812         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72813         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72814         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72815         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72816         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72817         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72818         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72819         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72820         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72821         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72822         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72823         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72824         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72825         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72826         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72827         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72828         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72829         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72830         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72831         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72832         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72833         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72834         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72835         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72836         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72837         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72838         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72839         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72840         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72841         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72842         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72843         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72844         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72845         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72846         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72847         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72848         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72849         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72850         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72851         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72852         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72853         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72854         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72855         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72856         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72857         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72858         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72859         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72860         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72861         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72862         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72863         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72864         lib/yesno.c, lib/yesno.h:
72865         Update FSF postal mail address.
72866
72867 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72868
72869         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72870         tests/test-memmem.c, tests/test-stpncpy.c:
72871         Update FSF postal mail address.
72872
72873 2005-05-13  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72876         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72877         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72878         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72879         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72880         Add support for 64-bit integers in the MSVC compiler.
72881
72882 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72883
72884         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72885
72886 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72887
72888         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72889
72890 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * doc/getdate.texi (General date syntax): Don't say that date
72893         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72894         Problem reported by Nic Ferrier.
72895
72896 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72897
72898         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72899         specified in ai_socktype. Fix invalid ai_protocol
72900         check. ai_protocol is usually set to 0 or depending on
72901         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72902         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72903         ai_socktype / ai_protocol in the returned addrinfo structure.
72904
72905 2005-05-10  Simon Josefsson  <jas@extundo.com>
72906
72907         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72908         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72909
72910 2005-05-10  Karl Berry  <karl@gnu.org>
72911
72912         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72913         (from http://www.gnu.org/licenses).
72914         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72915         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72916         fdl.texi suffices.
72917
72918 2005-05-10  Karl Berry  <karl@gnu.org>
72919
72920         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72921         (COPYING.DOC): remove.
72922
72923         * config/srclist-update: new FSF address.
72924
72925 2005-05-10  Derek Price  <derek@ximbiot.com>
72926
72927         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72928         possible.
72929
72930 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72931             Bruno Haible  <bruno@clisp.org>
72932
72933         * modules/inet_ntop: New file.
72934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72935         inet_ntop.
72936
72937 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72938             Bruno Haible  <bruno@clisp.org>
72939
72940         * m4/inet_ntop.m4: New file.
72941
72942 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72943             Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/inet_ntop.h: New file.
72946         * lib/inet_ntop.c: New file, from glibc with modifications.
72947
72948 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * modules/time_r (License): Change to LGPL.
72951         * modules/extensions (License): Change to LGPL.  Actually,
72952         the license is more permissive than that, but currently gnulib-tool
72953         doesn't know how to handle more-permissive licenses.
72954
72955         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72956         Problem reported by Dave Love.
72957
72958 2005-05-08  Jim Meyering  <jim@meyering.net>
72959
72960         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72961         blank.
72962
72963 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * modules/argmatch (Depends-on): Add stdbool.
72966         * modules/backupfile (Depends-on): Likewise.
72967         * modules/chdir-long (Depends-on): Likewise.
72968         * modules/closeout (Depends-on): Likewise.
72969         * modules/cycle-check (Depends-on): Likewise.
72970         * modules/dirname (Depends-on): Likewise.
72971         * modules/fnmatch (Depends-on): Likewise.
72972         * modules/fsusage (Depends-on): Likewise.
72973         * modules/fwriteerror (Depends-on): Likewise.
72974         * modules/getcwd (Depends-on): Likewise.
72975         * modules/getloadavg (Depends-on): Likewise.
72976         * modules/hard-locale (Depends-on): Likewise.
72977         * modules/makepath (Depends-on): Likewise.
72978         * modules/mountlist (Depends-on): Likewise.
72979         * modules/nanosleep (Depends-on): Likewise.
72980         * modules/posixtm (Depends-on): Likewise.
72981         * modules/quotearg (Depends-on): Likewise.
72982         * modules/readtokens (Depends-on): Likewise.
72983         * modules/readtokens0 (Depends-on): Likewise.
72984         * modules/readutmp (Depends-on): Likewise.
72985         * modules/save-cwd (Depends-on): Likewise.
72986         * modules/strftime (Depends-on): Likewise.
72987         * modules/userspec (Depends-on): Likewise.
72988         * modules/utimecmp (Depends-on): Likewise.
72989         * modules/xgetcwd (Depends-on): Likewise.
72990         * modules/xnanosleep (Depends-on): Likewise.
72991         * modules/xstrtod (Depends-on): Likewise.
72992         * modules/yesno (Depends-on): Likewise.
72993
72994 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72997         needless checks.
72998
72999 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         Merge from coreutils.  Among other things,
73002         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73003         * lib/fd-safer.c: New file.
73004         * lib/fcntl-safer.h, open-safer.c: Remove.
73005         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73006         * lib/dup-safer.c: Include unistd-safer.h first.
73007         Don't include errno.h.
73008         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73009         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73010         * lib/file-type.c: Rely on file-type.h change.
73011         * lib/getloadavg.c: Include unistd-safer.h.
73012         (getloadavg): Use safer open.
73013         * lib/getusershell.c: Include "stdio-safer.h".
73014         (getusershell): Use safer fopen.
73015         * lib/long-options.c (long_options): Use NULL rather than 0.
73016         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73017         'free'.
73018         * lib/modechange.c: Likewise.
73019         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73020         (MODE_DONE): New constant.
73021         (struct mode_change): Remove 'next' member.
73022         (make_node_op_equals): New function; like the old one of the
73023         same name, except it allocates an array.
73024         (mode_compile, mode_create_from_ref): Use it.
73025         (mode_compile): Allocate result as an array, not a linked list.
73026         Parse octal string ourself, so that we catch mistakes like "+0".
73027         (mode_adjust): Arg is an array, not a linked list.
73028         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73029         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73030         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73031         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73032         Remove.  This is now stat-macros.h's job.
73033         (talloc): Remove.  All callers replaced by xalloc, so that
73034         our invokers don't have to worry about reporting memory failures.
73035         (make_node_op_equals): Remove.
73036         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73037         New constants.
73038         (struct mode_change): Moved here from modechange.h.
73039         (mode_append_entry): Remove.
73040         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73041         apps to have incorrect behavior.  Use simpler algorithm for head
73042         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73043         Detect more invalid usages rather than having somewhat-random behavior.
73044         Don't insert an "a=" action, as that leads to incorrect behavior.
73045         (mode_compile, mode_create_from_ref): Return NULL on error instead
73046         of an enum, since now there's only one way to have an error.  All
73047         callers changed.
73048         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73049         at the correct time.  Simplify calculation of "+u" and its ilk.
73050         Don't mishandle "+X".
73051         (mode_free): Remove "register" and localize decls.
73052         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73053         (struct mode_change): Move to modechange.c; callers don't
73054         need to see this stuff.
73055         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73056         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73057         (mode_change, mode_adjust): Reflect the new signatures noted above.
73058         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73059         that might redefine system include files.
73060         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73061         (my_usleep): Use NULL rather than (void *) 0.
73062         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73063         Use siginterrupt to specify that system calls should be interrupted.
73064         (rpl_nanosleep): Move initialization of suspended closer to call of
73065         my_usleep.
73066         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73067         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73068         (desirable_utmp_entry): New function.
73069         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73070         using x2nrealloc, to simplify logic.
73071         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73072         size calculation.  Do not assume utmp file is a regular file.
73073         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73074         (READ_UTMP_CHECK_PIDS): New constant.
73075         * lib/save-cwd.c: Include unistd-safer.h.
73076         (save_cwd): Use fd_safer.
73077         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73078         [!_LIBC] Include "stat-macros.h" instead.
73079         * lib/unistd-safer.h (fd_safer): New decl.
73080
73081 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * modules/getloadavg (Depends-on): Add unistd-safer.
73084         * modules/getusershell (Depends-on): Add stdio-safer.
73085         * modules/lstat (Depends-on): Remove xalloc.
73086         * modules/mkstemp (Depends-on): Add stat-macros.
73087         * modules/modechange (Depends-on): Remove xstrtol.
73088         Add stat-macros, xalloc.
73089         * modules/save-cwd (Depends-on): Add unistd-safer.
73090         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73091         * modules/unistd-safer (Files): Add lib/fd-safer.c
73092         (Makefile.am): Remove lib_SOURCES.
73093
73094         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73095         Remove fcntl-safer; unistd-safer supersedes it.
73096
73097 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73100         AC_HEADER_STAT.
73101         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73102         (gl_PREREQ_CHOWN): Remove.
73103         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73104         it.  Don't require AC_HEADER_STAT.
73105         (gl_PREREQ_LSTAT): Remove.
73106         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73107         Don't require AC_HEADER_STAT.
73108         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73109         (gl_PREREQ_RMDIR): Remove.
73110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73111         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73112         the stat-macros module a prerequisite.
73113         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73114         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73115         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73116         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73117         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73118         variable names.
73119         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73120         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73121         variable prefixes.
73122         * m4/fcntl-safer.m4: Remove.
73123         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73124         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73125         Invoke gl_PREREQ_FD_SAFER.
73126         (gl_PREREQ_FD_SAFER): New macro.
73127         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73128         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73129         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73130         Remove duplicate call to AC_LIBOBJ(readutmp).
73131         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73132
73133         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73134         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73135
73136 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * MODULES.html.sh (Misc): Add byteswap.
73139
73140 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73141
73142         * modules/getcwd (Depends-on): Add extensions.
73143         * modules/openat (Depends-on): Likewise.
73144
73145 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73146
73147         * modules/byteswap: New file.
73148
73149 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73150
73151         * m4/byteswap.m4: New file.
73152
73153 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73154
73155         * lib/byteswap_.h: New file.
73156
73157 2005-04-25  Karl Berry  <karl@gnu.org>
73158
73159         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73160
73161 2005-04-25  Albert Chin  <china@thewrittenword.com>
73162
73163         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73164         Toolkit C bug.
73165
73166 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73167
73168         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73169         (func_ln_if_changed): Remove forcibly for no error message
73170         in case file does not exist.
73171
73172 2005-04-19  Simon Josefsson  <jas@extundo.com>
73173
73174         * gnulib-tool (Options): Make --symlink mean --symbolic.
73175
73176 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73177
73178         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73179
73180 2005-04-16  Simon Josefsson  <jas@extundo.com>
73181
73182         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73183
73184 2005-04-15  Simon Josefsson  <jas@extundo.com>
73185
73186         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73187
73188 2005-04-15  Simon Josefsson  <jas@extundo.com>
73189
73190         * gnulib-tool: Rename --symlink to --symbolic.
73191
73192 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73193
73194         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73195         symbolic links to files instead of copying/moving.  Add --aux-dir,
73196         specifying directory relative --dir where auxiliary build tools
73197         are placed.
73198
73199 2005-04-14  Bruno Haible  <bruno@clisp.org>
73200
73201         * modules/allocsa (License): Change to LGPL.
73202         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73203
73204 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73207         that "UTC +1 second" continues to work.  Problem reported
73208         by Dmitry V. Levin.
73209         (relunit_snumber): New rule.
73210         (relunit): Use it.
73211
73212 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * lib/getdate.y (universal_time_zone_table): New constant.
73215         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73216         universal_time_zone_table.
73217         (lookup_zone): Prefer universal_time_zone_table to
73218         local_time_zone_table, so that "GMT" time stamps are allowed in
73219         London during the summer.  Problem reported by Ian Abbott.
73220
73221 2005-04-12  Jim Meyering  <jim@meyering.net>
73222
73223         * lib/human.c (humblock): Set *options even when returning due to
73224         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73225         warning from gcc-4.
73226
73227 2005-04-09  Jim Meyering  <jim@meyering.net>
73228
73229         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73230         -Wuninitialized: initialize tm0.tm_year.
73231
73232 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73235         count, since there's no maximum.  All uses changed.
73236         Add member dsts_seen.
73237         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73238         not being INT_MAX.
73239         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73240         Use pc_rels_seen to decide whther a date is absolute.
73241
73242         * lib/getdate.y (number): Don't overwrite year.
73243         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73244         check.
73245
73246 2005-04-02  Simon Josefsson  <jas@extundo.com>
73247
73248         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73249         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73250
73251 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73252
73253         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73254         where no absolute path name can be longer than PATH_MAX.
73255
73256 2005-03-27  Jim Meyering  <jim@meyering.net>
73257
73258         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73259
73260 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73263         "one's complement" -> "ones' complement" in comment, as per Knuth.
73264         "value of type" -> "type or expression" in comment.
73265         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73266
73267 2005-03-26  Jim Meyering  <jim@meyering.net>
73268
73269         Comment nits.
73270         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73271         Correct typos: s/or/of/.
73272
73273 2005-03-26  Jim Meyering  <jim@meyering.net>
73274
73275         * modules/check-include-files: Move to ../ and rename to...
73276         * check-module: ...this.
73277
73278 2005-03-25  Jim Meyering  <jim@meyering.net>
73279
73280         * modules/xvasprintf (Files): Add xalloc.h.
73281
73282 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * modules/gettext (Files): config/config.rpath ->
73285         build-aux/config.rpath
73286         * modules/iconv (Files): Likewise.
73287         Problem reported by Oskar Liljeblad.
73288
73289 2005-03-23  Jim Meyering  <jim@meyering.net>
73290
73291         * modules/check-include-files: New script to check for
73292         missing dependencies, multiple includes, etc.
73293
73294         * modules/c-strtold (Depends-on): Add xalloc.
73295         * modules/c-strtod (Depends-on): Add xalloc.
73296         * modules/hash (Depends-on): Add xalloc.
73297         (Files): Remove lib/xalloc.h.
73298
73299         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73300         * modules/userspec (Files): Add lib/inttostr.h.
73301
73302 2005-03-23  Jim Meyering  <jim@meyering.net>
73303
73304         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73305
73306 2005-03-22  Jim Meyering  <jim@meyering.net>
73307
73308         * modules/stat-macros: New module.
73309         * modules/canonicalize, modules/euidaccess, modules/file-type,
73310         * modules/filemode, modules/lchown, modules/makepath,
73311         * modules/rmdir, modules/stat: Depend on new stat-macros module
73312         rather than listing lib/stat-macros.h manually.
73313         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73314
73315 2005-03-22  Jim Meyering  <jim@meyering.net>
73316
73317         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73318
73319 2005-03-22  Bruno Haible  <bruno@clisp.org>
73320
73321         * config/srclist.txt: Replace target directory 'config' with
73322         'build-aux'.
73323         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73324         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73325         ../build-aux/.
73326
73327 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * modules/chdir-long (Depends-on): Add mempcpy.
73330
73331         * modules/acl, modules/backupfile, modules/c-strtod,
73332         modules/c-strtold, modules/canon-host, modules/canonicalize,
73333         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73334         modules/exclude, modules/exitfail, modules/file-type,
73335         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73336         modules/getdate, modules/getline, modules/getpagesize,
73337         modules/getpass, modules/getugroups, modules/group-member,
73338         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73339         modules/inttostr, modules/long-options, modules/makepath,
73340         modules/md5, modules/memcasecmp, modules/memcoll,
73341         modules/modechange, modules/mountlist, modules/path-concat,
73342         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73343         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73344         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73345         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73346         modules/strftime, modules/strndup, modules/strverscmp,
73347         modules/timespec, modules/unlocked-io, modules/userspec,
73348         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73349         modules/yesno:
73350         Remove lib_SOURCES line from Makefile.am section, as this is now
73351         done automatically by the corresponding Autoconf macro.
73352
73353 2005-03-21  Jim Meyering  <jim@meyering.net>
73354
73355         Changes imported from coreutils.
73356
73357         * lib/cycle-check.c: Don't include xalloc.h.
73358
73359         * lib/path-concat.c: Don't include assert.h.
73360         (path_concat): Remove assertion that would have triggered
73361         for ABASE starting with more than one slash.
73362         Reported by Andreas Schwab.
73363
73364         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73365         properly when ABASE is an absolute file name.
73366         Correct the description of this function.
73367         Include <assert.h>.
73368         Add an assertion and a test driver.
73369         This fixes a bug introduced on 2004-07-02.
73370         Andreas Schwab reported the resulting failure of cp --parents:
73371         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73372
73373 2005-03-21  Jim Meyering  <jim@meyering.net>
73374
73375         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73377
73378 2005-03-21  Jim Meyering  <jim@meyering.net>
73379         and  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73382         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73383         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73384         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73385         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73386         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73387         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73388         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73389         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73390         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73391         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73392         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73393         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73394         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73395         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73396         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73397         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73398         for these modules.
73399
73400 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73401
73402         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73403         (which shouldn't happen), generate nothing instead of returning 0
73404         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73405
73406 2005-03-16  Bruno Haible  <bruno@clisp.org>
73407
73408         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73409         HAVE_LONGLONG_64BIT.
73410
73411 2005-03-16  Bruno Haible  <bruno@clisp.org>
73412
73413         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73414         HAVE_LONGLONG_64BIT.
73415
73416 2005-03-16  Bruno Haible  <bruno@clisp.org>
73417
73418         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73419         HAVE_LONGLONG_64BIT.
73420
73421 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73424         reliably distinguish strftime failure from empty output on POSIX
73425         hosts.
73426
73427 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73430         (iconv_string): Don't guess a size-zero buffer, as that might cause
73431         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73432         result would be 'too large', where 'too large' is (heuristically)
73433         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73434         overflow concerns.  This will prevent some unwanted malloc failures
73435         when the inputs are very large.
73436
73437 2005-03-15  Karl Berry  <karl@gnu.org>
73438
73439         * config/srclist.txt (config.rpath): from gettext.
73440         * config/config.rpath: update.
73441
73442 2005-03-15  Bruno Haible  <bruno@clisp.org>
73443
73444         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73445         to 'negate'.
73446
73447         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73448         variable.
73449
73450         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73451         results.
73452
73453 2005-03-14  Simon Josefsson  <jas@extundo.com>
73454
73455         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73456         <fx@gnu.org>.
73457
73458 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73461         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73462         intprops.h.
73463         * lib/strtol.c: Likewise.
73464
73465 2005-03-14  Jim Meyering  <jim@meyering.net>
73466
73467         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73468         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73469         to be nonzero so that we (and caller) can detect the difference
73470         between a valid zero-length expansion and an error return, even
73471         when the underlying strftime fails before writing anything into
73472         that location.
73473
73474 2005-03-14  Bruno Haible  <bruno@clisp.org>
73475
73476         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73477         Update from GNU gettext 0.14.3.
73478
73479 2005-03-10  Jim Meyering  <jim@meyering.net>
73480
73481         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73482
73483 2005-03-10  Jim Meyering  <jim@meyering.net>
73484
73485         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73486         so that this module works on systems without fchdir.
73487
73488 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         Factor int-properties macros into a single file, except for
73491         glibc-related files.
73492         * lib/intprops.h: New file.
73493         * lib/getloadavg.c: Include it instead of limits.h.
73494         (INT_STRLEN_BOUND): Remove.
73495         * lib/human.c: Include intprops.h.
73496         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73497         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73498         302/1000.
73499         * lib/inttostr.h: Include intprops.h instead of limits.h.
73500         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73501         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73502         for consistency with intprops.h.
73503         (time_t_is_integer, twos_complement_arithmetic): Use them.
73504         * lib/sig2str.h: Include <signal.h>, intprops.h.
73505         (INT_STRLEN_BOUND): Remove.
73506         * lib/strftime.c (TYPE_SIGNED): Remove.
73507         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73508         * lib/strtol.c: Adjust comments to match intprops.h.
73509         * lib/userspec.c: Include intprops.h.
73510         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73511         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73512         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73513         instead of rolling our own expressions.
73514         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73515
73516         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73517         instead of int.
73518         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73519         the right thing even if adding 1900 would overflow.  Similarly
73520         for tm_mon + 1 and tm_yday + 1.
73521         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73522         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73523         (DO_SIGNED_NUMBER): New macro.
73524         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73525
73526 2005-03-07  Bruno Haible  <bruno@clisp.org>
73527
73528         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73529
73530 2005-03-07  Bruno Haible  <bruno@clisp.org>
73531
73532         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73533
73534 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73535
73536         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73537         (func_import): Only replace files via --import when they have actually
73538         changed.
73539
73540 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73541
73542         * m4/mmap-anon.m4: New file.
73543         * m4/pagealign_alloc.m4: New file.
73544
73545 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73546             Bruno Haible  <bruno@clisp.org>
73547
73548         * modules/pagealign_alloc: New file.
73549         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73550
73551 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73552             Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/pagealign_alloc.h: New file.
73555         * lib/pagealign_alloc.c: New file.
73556
73557 2005-03-03  Bruno Haible  <bruno@clisp.org>
73558
73559         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73560         Use an all-permissive copyright notice, recommended by RMS.
73561
73562 2005-03-02  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73565         of AIX, the replacement has to be done only after <string.h> is
73566         included, therefore not in config.h. stpncpy.h does the replacement,
73567         and stpncpy.c uses it.
73568
73569 2005-03-02  Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73572         stpncpy.c uses it.
73573
73574 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73575
73576         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73577         The workaround isn't strictly needed for POSIX conformance, and
73578         it's too much of a pain to configure and maintain.  We'll ask
73579         people to fix their kernels instead.
73580         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73581         (NANOSLEEP_BUG_WORKAROUND): Remove.
73582         (xnanosleep): Remove the workaround.
73583
73584 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73587         Reported by Derek Price.
73588         (Include): Add "timespec.h".
73589
73590         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73591
73592 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73593
73594         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73595         to detect nanosleep bug.
73596
73597 2005-03-01  Bruno Haible  <bruno@clisp.org>
73598
73599         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73600
73601 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         * modules/gethrxtime: New file.
73604         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73605         (Depends-on): Add gethrxtime.
73606         (configure.ac): Add gl_XNANOSLEEP.
73607         (Makefile.am): Remove lib_SOURCES line.
73608
73609 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73612         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73613
73614 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73615
73616         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73617         * lib/timespec.h (gettime): Return void, since it always
73618         succeeds now.  All uses changed.
73619         * lib/gettime.c (gettime): Likewise.
73620         [HAVE_NANOTIME]: Prefer nanotime.
73621         Assume gettimeofday succeeds, as POSIX requires.
73622         Assime time () succeeds, since other code already does.
73623         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73624         (timespec_subtract): Remove.
73625         (NANOSLEEP_BUG_WORKAROUND): New constant.
73626         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73627         things considerably.  Use it only on GNU/Linux hosts, since the
73628         workaround shouldn't be needed elsewhere.
73629
73630 2005-02-24  Bruno Haible  <bruno@clisp.org>
73631
73632         * modules/gettext (Files): Add m4/glibc2.m4.
73633
73634 2005-02-24  Bruno Haible  <bruno@clisp.org>
73635
73636         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73637         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73638         * m4/progtest.m4:
73639         Update from GNU gettext 0.14.2.
73640         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73641
73642 2005-02-24  Bruno Haible  <bruno@clisp.org>
73643
73644         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73645         * lib/config.charset: Update from GNU gettext 0.14.2.
73646
73647 2005-02-24  Bruno Haible  <bruno@clisp.org>
73648
73649         * lib/gettext.h: Update from GNU gettext 0.14.2.
73650
73651 2005-02-23  Simon Josefsson  <jas@extundo.com>
73652
73653         * m4/iconvme.m4: New file.
73654
73655 2005-02-23  Jim Meyering  <jim@meyering.net>
73656
73657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73658         change.
73659         Thanks to Bruno Haible for catching it.
73660
73661 2005-02-22  Simon Josefsson  <jas@extundo.com>
73662
73663         * modules/iconvme: New file.
73664
73665         * MODULES.html.sh: Add iconvme.
73666
73667 2005-02-22  Simon Josefsson  <jas@extundo.com>
73668
73669         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73670
73671 2005-02-22  Simon Josefsson  <jas@extundo.com>
73672
73673         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73674
73675 2005-02-22  Jim Meyering  <jim@meyering.net>
73676
73677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73678         s/ifndef/ifdef/.
73679
73680 2005-02-20  Neil Conway  <neilc@samurai.com>
73681
73682         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73683         returned by OSX/Darwin if the specified buffer is not large
73684         enough for the hostname.
73685
73686 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73687
73688         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73689         pass it to _help, otherwise the latter coredumps trying to
73690         dereference state.root_argp.
73691
73692 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * modules/chdir-long (Depends-on): Add memrchr.
73695         * modules/memrchr (Files): Add lib/memrchr.h.
73696         (Include): "memrchr.h".
73697
73698 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73701
73702 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * lib/memrchr.h: New file.
73705         * lib/chdir-long.c: Include it.
73706         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73707         Don't bother including stddef.h.
73708
73709 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73712         inclusion.
73713         Include <sys/types.h>, for dev_t.
73714         (ME_DUMMY, ME_REMOTE): Move from here....
73715         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73716         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73717         Dmitry V. Levin.
73718         Include mountlist.h first, to test the interface.
73719
73720 2005-01-29  Bruno Haible  <bruno@clisp.org>
73721
73722         * lib/progname.c (program_name): Initialize.
73723         Needed when linking statically on MacOS X.
73724
73725 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73726
73727         Sync from coreutils.
73728         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73729         (Depends-on): Add c-strtod.
73730         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73731
73732 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         Sync from coreutils.
73735         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73736
73737         Remove files that are specific to coreutils.
73738         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73739
73740 2005-01-28  Bruno Haible  <bruno@clisp.org>
73741
73742         * modules/javacomp: New file.
73743         * MODULES.html.sh (Java): Add javacomp.
73744
73745 2005-01-28  Bruno Haible  <bruno@clisp.org>
73746
73747         * m4/javacomp.m4: New file, from GNU gettext.
73748
73749 2005-01-28  Bruno Haible  <bruno@clisp.org>
73750
73751         * lib/javacomp.sh.in: New file, from GNU gettext.
73752         * lib/javacomp.h: New file, from GNU gettext.
73753         * lib/javacomp.c: New file, from GNU gettext.
73754
73755 2005-01-26  Simon Josefsson  <jas@extundo.com>
73756
73757         * lib/gai_strerror.c: Use GPL in header.
73758
73759 2005-01-26  Bruno Haible  <bruno@clisp.org>
73760
73761         * modules/javaexec: New file.
73762         * MODULES.html.sh (Java): Add javaexec.
73763
73764 2005-01-26  Bruno Haible  <bruno@clisp.org>
73765
73766         * m4/javaexec.m4: New file, from GNU gettext.
73767
73768 2005-01-26  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/javaexec.sh.in: New file, from GNU gettext.
73771         * lib/javaexec.h: New file, from GNU gettext.
73772         * lib/javaexec.c: New file, from GNU gettext.
73773
73774 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73775
73776         * modules/lchown (Depends-on): Remove lchown.h
73777
73778 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73779
73780         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73781         must be defined if the header file was not found, in order
73782         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73783
73784 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73785
73786         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73787         initializers for struct pentry_state.
73788         (__argp_error): Check return value of __asprintf
73789         (__argp_failure): Translate error message
73790
73791         * lib/argp-parse.c: Removed braces around the expansion of N_()
73792
73793 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73796         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73797         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73798         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73799         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73800         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73801         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73802         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73803         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73804         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73805         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73806         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73807         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73808         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73809         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73810         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73811         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73812         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73813         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73814         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73815         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73816         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73817         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73818         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73819         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73820         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73821         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73822         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73823         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73824         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73825         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73826         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73827         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73828         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73829         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73830         Use an all-permissive copyright notice, recommended by RMS.
73831
73832 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * modules/chdir-long (Depends-on): Remove mempcpy.
73835
73836 2005-01-21  Jim Meyering  <jim@meyering.net>
73837
73838         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73839         same value as for Solaris 9.
73840
73841         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73842         component length.  This included changing the parameter to be
73843         of type `char *' rather than `char const *'.
73844         * lib/chdir-long.h (chdir_long): Update prototype.
73845
73846         * lib/openat.c (fdopendir, fstatat): New functions.
73847         * lib/openat.h: Include headers required for use of DIR and struct
73848         stat.
73849         [AT_SYMLINK_NOFOLLOW]: Define.
73850         (fdopendir, fstatat): Add prototypes.
73851
73852 2005-01-21  Bruno Haible  <bruno@clisp.org>
73853
73854         * modules/classpath: New file.
73855         * MODULES.html.sh (Java): Add classpath.
73856
73857 2005-01-21  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/classpath.h: New file, from GNU gettext.
73860         * lib/classpath.c: New file, from GNU gettext.
73861
73862 2005-01-20  Simon Josefsson  <jas@extundo.com>
73863
73864         * modules/version-etc-fsf: New file.
73865
73866 2005-01-20  Simon Josefsson  <jas@extundo.com>
73867
73868         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73869         * lib/version-etc.c: Remove version_etc_copyright.
73870         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73871         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73872
73873 2005-01-20  Simon Josefsson  <jas@extundo.com>
73874
73875         * lib/base64.h (isbase64): Add.
73876
73877         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73878         using a unsigned prototype, don't inline.
73879         (base64_decode): Use it.
73880
73881 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73884         it.
73885
73886 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         * lib/save-cwd.c (save_cwd): Remove code to support the case
73889         where fchdir is missing or flaky.
73890
73891 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73894
73895 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73898         AC_LIBSOURCES now does this.
73899         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73900         with new ullong_max module.
73901
73902 2005-01-19  Bruno Haible  <bruno@clisp.org>
73903
73904         * modules/sh-quote: New file.
73905         * MODULES.html.sh (Executing programs): Add sh-quote.
73906
73907 2005-01-19  Bruno Haible  <bruno@clisp.org>
73908
73909         * lib/sh-quote.h: New file, from GNU gettext.
73910         * lib/sh-quote.c: New file, from GNU gettext.
73911
73912 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         Merge from coreutils.
73915         * m4/ullong_max.m4: New file.
73916         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73917         (gl_MACROS): Assume localeconv exists.
73918
73919 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         Merge changes from coreutils, as described below in several
73922         changelogs dated today.
73923
73924         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73925         (O_DIRECTORY): Remove; not needed here, since "." must be
73926         a directory.  All uses removed.
73927         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73928         universal on Suns, and we also need to test for IRIX.
73929         Revamp code to use 'if' rather than '#if'.
73930         Avoid unnecessary comparison of cwd->desc to 0.
73931
73932         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73933         for known valid error numbers rather than observed invalid ones.
73934
73935 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73936
73937         * modules/ullong_max: New file.
73938
73939         * modules/chdir-long, modules/openat: New files.
73940         * modules/save-cwd (Depends-on): Depend on chdir-long.
73941         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73942
73943 2005-01-18  Jim Meyering  <jim@meyering.net>
73944
73945         Merge from coreutils.
73946         * m4/chdir-long.m4, m4/openat.m4: New files.
73947         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73948         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73949         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73950         is sane and DOES follow symlinks.  Besides, testing 20 different
73951         systems found no broken chown implementations.
73952         Prompted by a change in rsync's copy of this macro.
73953         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73954
73955         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73956
73957         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73958         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73959         NULL-means-set-to-current-time semantics.
73960         Remove temporary file immediately, rather than waiting
73961         for configure's at-exit trap code to do it.
73962
73963 2005-01-18  Jim Meyering  <jim@meyering.net>
73964
73965         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73966
73967         * lib/utimens.c (futimens): Account for the fact that futimes
73968         can also fail with errno == ENOSYS or errno == ENOENT.
73969         Patch from Dmitry V. Levin.
73970
73971         Change the name of the robust chdir function from chdir to chdir_long.
73972         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73973         (restore_cwd): Use chdir_long, not chdir.
73974         * lib/chdir-long.c: Renamed from chdir.c.
73975         * lib/chdir-long.h: Renamed from chdir.h.
73976         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73977         Hurd.
73978
73979 2005-01-18  Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73982         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73983         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73984         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73985         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73986         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73987         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73988         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73989         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73990         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73991         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73992         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73993         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73994         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73995         Use an all-permissive copyright notice, recommended by RMS.
73996
73997 2005-01-18  Bob Proulx  <bob@proulx.com>
73998
73999         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74000         simplify offsetof() macro construct to avoid compile failure with
74001         native HP-UX 11.0 ANSI C compiler.
74002
74003 2005-01-17  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74006         redundant because stpncpy.m4 takes care of it.
74007
74008 2005-01-17  Bruno Haible  <bruno@clisp.org>
74009
74010         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74011
74012 2005-01-17  Bruno Haible  <bruno@clisp.org>
74013
74014         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74015         used.
74016
74017 2005-01-17  Bruno Haible  <bruno@clisp.org>
74018
74019         * lib/fwriteerror.h (fwriteerror): Change specification to include
74020         fclose.
74021         * lib/fwriteerror.c: Include <stdbool.h>.
74022         (fwriteerror): At the end, close the file stream. Record whether
74023         stdout was already closed.
74024
74025 2005-01-17  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/execute.c (environ): Declare if needed.
74028         * lib/pipe.c (environ): Likewise.
74029         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74030
74031 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74032
74033         * modules/argp: Depend on vsnprintf
74034
74035 2005-01-10  Jim Meyering  <jim@meyering.net>
74036
74037         * modules/closeout (Depends-on): Add atexit.
74038
74039 2005-01-06  Bruno Haible  <bruno@clisp.org>
74040
74041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74042
74043 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74046         definitions to be after all include files, to avoid collisions.
74047         Problem reported by Bob Proulx.
74048
74049 2005-01-04  Jim Meyering  <jim@meyering.net>
74050
74051         Changes imported from coreutils.
74052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74053         as the mkstemp template, use a temporary directory and an
74054         8.3-friendly template to avoid trouble on systems like DJGPP.
74055         Reported by Juan M. Guerrero via Stepan Kasal.
74056         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74057         close. Remove the temporary directory right away, rather than waiting
74058         for configure's at-exit trap code to do it.
74059         Suggestion from Stepan Kasal.
74060
74061 2005-01-01  Simon Josefsson  <jas@extundo.com>
74062
74063         * gnulib-tool: Print #include directives when --import'ing.
74064
74065 2004-12-28  Simon Josefsson  <jas@extundo.com>
74066
74067         * tests/test-base64.c: Include required header files.  Remove
74068         unused variables.
74069
74070 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * modules/error (Depends-on): Remove gettext.
74073
74074 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74077         not needed.  This removes a dependency on the gettext module.
74078         [defined _LIBC]: Do not include <libintl.h>; not needed.
74079
74080 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74083         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74084
74085 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74088         HAVE_DECL_STRTOLD.
74089
74090 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * modules/getdate (Depends-on): Remove alloca-opt.
74093
74094 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74097
74098 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * lib/argp-parse.c: Include <stddef.h>.
74101         (alignof, alignto): New macros.
74102         (parser_init): Don't assume that void * is aligned sufficiently
74103         for struct option.
74104
74105         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74106         need to extend the stack.
74107         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74108         large.
74109
74110 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74111
74112         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74113
74114 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74117         (2004-10-24) change.  Apparently this was a false alarm.
74118
74119         * modules/getdate: Depend on alloca-opt, not alloca.
74120
74121 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74124         Remove now-obsolete comment about AIX.
74125         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74126         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74127         (YYMAXDEPTH): New macro.
74128
74129 2004-12-18  Simon Josefsson  <jas@extundo.com>
74130
74131         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74132
74133 2004-12-18  Bruno Haible  <bruno@clisp.org>
74134
74135         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74136
74137 2004-12-18  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/fatal-signal.c (fatal_signals): Make non-const.
74140         (init_fatal_signals): New function.
74141         (uninstall_handlers, install_handlers): Ignore signals that were set to
74142         SIG_IGN.
74143         (at_fatal_signal): Call init_fatal_signals.
74144         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74145         SIG_IGN.
74146         Reported by Paul Eggert.
74147
74148 2004-12-18  Bruno Haible  <bruno@clisp.org>
74149
74150         * doc/alloca.texi: New file.
74151         * doc/alloca-opt.texi: New file.
74152
74153 2004-12-17  Jim Meyering  <jim@meyering.net>
74154
74155         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74156         Otherwise, install-sh could exit with improper exit status when
74157         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74158
74159 2004-12-16  Simon Josefsson  <jas@extundo.com>
74160
74161         * tests/test-base64.c: Add license.
74162
74163 2004-12-15  Stepan Kasal  <address@hidden>
74164
74165         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74166
74167 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * modules/getcwd (Files): Add m4/d-ino.m4.
74170         Suggested by Mark D. Baushke.
74171
74172 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * lib/getdate.y (textint): New member "negative".
74175         (time_zone_hhmm): New function.
74176         Expect 14 shift-reduce conflicts, not 13.
74177         (o_colon_minutes): New rule.
74178         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74179         (yylex): Set the "negative" member of signed numbers.
74180
74181 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * doc/getdate.texi (Time of day items, Time zone items):
74184         Describe new formats +00:00, UTC+00:00.
74185
74186 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74187
74188         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74189         spurious "-l"s.  Problem reported by Stepan Kasal.
74190
74191 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74194         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74195
74196 2004-12-04  Simon Josefsson  <jas@extundo.com>
74197
74198         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74199         Vandoorselaere <yoann@prelude-ids.org>.
74200
74201 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         Changes imported from coreutils.
74204         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74205         exist.
74206         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74207
74208 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         Changes imported from coreutils.
74211         * lib/hard-locale.c: Assume <locale.h> exists.
74212         Include "strdup.h".
74213         (GLIBC_VERSION): New macro.
74214         (hard_locale): Assume setlocale exists.
74215         Rewrite to avoid #ifdef.
74216         Use strdup rather than malloc + strcpy.
74217         * lib/human.c: Assume <locale.h> exists.
74218         (human_readable): Assume localeconv exists.
74219
74220 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74221
74222         * modules/hard-locale (Depends-on): Add strdup.
74223
74224 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74225
74226         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74227         convert T2, not T.  (Imported from libc.)
74228
74229 2004-11-30  Simon Josefsson  <jas@extundo.com>
74230
74231         * modules/restrict (License): Change to LGPL.
74232
74233 2004-11-30  Simon Josefsson  <jas@extundo.com>
74234
74235         * m4/restrict.m4: Add copyright and copying conditions.
74236
74237 2004-11-30  Simon Josefsson  <jas@extundo.com>
74238
74239         * m4/base64.m4: New file.
74240
74241 2004-11-30  Simon Josefsson  <jas@extundo.com>
74242
74243         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74244         base64.
74245
74246         * tests/test-base64.c: New file.
74247
74248         * modules/base64: New file.
74249
74250 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74253         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74254
74255         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74256
74257 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74260         (__getcwd.c): Don't restore errno; glibc doesn't.
74261         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74262         first, falling back to our code only if its results look suspicious.
74263         Ensure that the resulting buffer is only as large as necessary.
74264
74265         * lib/readutmp.c: Include readutmp.h first.
74266         Include <errno.h>, since readutmp.h no longer does that.
74267         * lib/readutmp.h: Don't include <errno.h>,
74268         <sys/param.h>, <time.h>; not needed to establish interface.
74269         (errno): Remove decl.
74270         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74271         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74272         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74273
74274 2004-11-28  Simon Josefsson  <jas@extundo.com>
74275
74276         * lib/base64.h, base64.c: New file.
74277
74278 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74281
74282 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74285         (Depends-on): Remove pathmax, same.  Add mempcpy.
74286         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74287         (Makefile.am): Append getcwd.h to lib_SOURCES.
74288         (Include): Add getcwd.h.
74289         (Maintainer): Change from Jim Meyering to "all, glibc",
74290         since getdate now uses intended-for-glibc code.
74291         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74292         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74293
74294 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74295
74296         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74297         HP's ANSI C compiler.
74298         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74299         Declaring int functions causes warnings on some modern systems and
74300         shouldn't be needed to compile on ancient ones.
74301         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74302         defined.
74303
74304         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74305         with the following changes.
74306         (__set_errno): Parenthesize properly.
74307         Include <stdbool.h>.
74308         (MIN, MAX, MATCHING_INO): New macros.
74309         (__getcwd): Define with prototype, not K&R form.
74310         Use heuristics to allocate default buffer on stack if possible.
74311         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74312         behavior, and to avoid the PATH_MAX limit when computing
74313         ../../../../...
74314         Use MATCHING_INO to compare inode number to file.
74315         Check for arithmetic overflow in size calculations.
74316         Fix bug in reallocation of dot array that caused getcwd to fail
74317         on directories nested deeper than 75.
74318         Be more careful about saving errno on error.
74319         Do not use realloc; use only free+malloc, as this is a bit
74320         more flexible and avoids a needless copy operation.
74321         Do not inspect st_dev and st_ino for symbolic links; POSIX
74322         doesn't specify the latter.
74323         Check for closedir errors.
74324         Avoid needless casts.
74325         Use "#ifdef weak_alias" around weak_alias, to be like other
74326         glibc code.
74327         The following changes to getcwd.c have effect only when used in
74328         gnulib; they have no effect inside glibc proper.
74329         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74330         as alloca isn't used.
74331         (alloca, __alloca): Likewise.
74332         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74333         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74334         unconditionally, as gnulib assumes C89 or better.
74335         Do not include <sys/param.h>.
74336         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74337         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74338         better.
74339         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74340         Include <dirent.h> in a way that is compatible with modern Autoconf.
74341         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74342         New macros, if not already defined.
74343         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74344         Use "_LIBC", not "defined _LIBC", for consistency.
74345         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74346         a mempcpy module.
74347         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74348         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74349         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74350         credit only to Jim Meyering and adjust the copyright dates.
74351         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74352         <stdlib.h>, <unistd.h>, "pathmax.h".
74353         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74354         (INITIAL_BUFFER_SIZE): Remove.
74355         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74356
74357 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74360         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74361         Use the _ONCE methods, for efficiency.
74362         Check for fcntl.h.  In test program, include <errno.h>
74363         and <fcntl.h> if available.  Remove old K&R cruft from
74364         test program.  Check for common errors in GNU/Linux,
74365         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74366         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74368         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74369         name accordingly.
74370         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74371         accommodate new getcwd.c.
74372         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74373         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74374         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74375         that's all we need now.
74376
74377 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74378
74379         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74380         argp-parse.c depends on getopt internals, that means we should
74381         always use our getopt, to be on the safe side.
74382         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74383         order not to spoil the result of an eventual previous invocation
74384         of gl_GETOPT_SUBSTITUTE.
74385
74386 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74387
74388         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74389         redefinition warnings. To avoid them, include the defines
74390         in `#if !defined __need_getopt ... #endif'. The only place
74391         where __getopt_argv_const is used is in definitions
74392         of getopt_long and getopt_long_only below, which are as well
74393         protected by `#ifndef __need_getopt'.
74394         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74395         __need_getopt after including <stdio.h> and <unistd.h> These
74396         headers might have defined it.
74397
74398 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74401
74402 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74405         (futimens): New function, which uses futimes if available.
74406         (futimens, utimens): Support timespec==NULL, with same semantics
74407         as utime and utimens.
74408         * lib/utimens.h (futimens): New decl.
74409
74410 2004-11-23  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/getopt_.h: Remove trailing blanks.
74413
74414 2004-11-23  Jim Meyering  <jim@meyering.net>
74415
74416         * lib/__fpending.c: Add comment.
74417
74418 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * modules/canonicalize (Depends-on): Add xreadlink.
74421         Problem reported by James Youngman.
74422
74423 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74426         New macros.
74427         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74428         optopt): Use them instead of invoking ## directly; otherwise, the
74429         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74430
74431 2004-11-19  Bruno Haible  <bruno@clisp.org>
74432
74433         * lib/strtok_r.c: Move comments from here...
74434         * lib/strtok_r.h: ... to here.
74435
74436 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74439         implementations that mishandle size_t overflow.
74440
74441 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74444         might fail.  Problem reported by Yoann Vandoorselaere.
74445         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74446         implementations that mishandle size_t overflow.
74447
74448 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * modules/canon-host (Depends-on): Add strdup.
74451
74452 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74455
74456 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * lib/canon-host.c: Include "strdup.h".
74459         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74460         Use strdup instead of malloc/strcpy to duplicate strings.
74461
74462         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74463         (human_space_before_unit): New constant.
74464         * lib/human.c (human_readable): Support it.
74465
74466         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74467         (xgetcwd): Set errno correctly when failing.
74468         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74469         the failure is actually due to a PATH_MAX problem.
74470
74471         Further getopt changes to make it more likely that glibc will
74472         buy the changes back.
74473         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74474         (getopt): Use it, so to preserve glibc semantic
74475         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74476         when compiling for libc.
74477         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74478         (getopt_long, getopt_long_only): Use it.
74479
74480         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74481         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74482         (getopt): Argv is now char * const *, as per standard.
74483         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74484         not char *__getopt_argv_const *.
74485         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74486         _getopt_long_only_r): Likewise.
74487         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74488         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74489         _getopt_long_r, _getopt_long_only_r): Likewise.
74490         * lib/getopt_.h (__getopt_argv_const): Remove.
74491         (getopt): Argv is now char * const *, as per standard.
74492
74493         * lib/getdate.y (tORDINAL): New token.
74494         (day, relunit): Allow it for relative times.
74495         (relative_time_table): Use tORDINAL for ordinals.
74496
74497 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74500         Document that "second" isn't allowed as an ordinal number.
74501
74502 2004-11-16  Jim Meyering  <jim@meyering.net>
74503
74504         * modules/closeout (Depends-on): Add fpending.
74505
74506 2004-11-15  Jim Meyering  <jim@meyering.net>
74507
74508         * lib/closeout.c: Include "__fpending.h" once again.
74509         Include <stdbool.h>.
74510         (close_stdout): Don't fail just because stdout was closed initially,
74511         since some programs don't write to stdout in the normal course of
74512         operation (other than --version and --help), and we don't want this
74513         function to make e.g. `touch file >&-' fail.
74514         But do fail if it was closed and someone has tried to write to it.
74515         E.g., `printf foo >&-' must fail.
74516
74517 2004-11-13  Jim Meyering  <jim@meyering.net>
74518
74519         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74520
74521 2004-11-12  Simon Josefsson  <jas@extundo.com>
74522
74523         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74524         small doc fix is still pending.
74525
74526 2004-11-11  Simon Josefsson  <jas@extundo.com>
74527
74528         * modules/strtok_r: New file.
74529
74530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74531         strtok_r.
74532
74533 2004-11-11  Simon Josefsson  <jas@extundo.com>
74534
74535         * m4/strtok_r.m4: New file.
74536
74537         * m4/getopt.m4: Replace opterr.
74538
74539 2004-11-11  Simon Josefsson  <jas@extundo.com>
74540
74541         * lib/strtok_r.h, strtok_r.c: New file.
74542
74543 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74546         of replacing opterr, getopt, etc.  This should handle the
74547         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74548
74549 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74552         we can stop lying to compilers about the constness of argv when we
74553         are compiled outside glibc.
74554         (getopt, getopt_long, getopt_long_only): Use it.
74555         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74556         _getopt_internal, getopt): Likewise.
74557         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74558         _getopt_long_only_r): Likewise.
74559         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74560         _getopt_long_r, _getopt_long_only_r): Likewise.
74561
74562         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74563         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74564         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74565         the other external symbols.
74566         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74567         declaration, since the above renaming now works around collisions.
74568
74569 2004-11-11  Jim Meyering  <jim@meyering.net>
74570
74571         * lib/linebreak.c: Remove trailing blanks.
74572         * lib/alloca_.h: Likewise.
74573         * lib/acosl.c: Likewise.
74574         * lib/euidaccess.c: Likewise.
74575         * lib/allocsa.h: Likewise.
74576
74577 2004-11-10  Simon Josefsson  <jas@extundo.com>
74578
74579         * m4/getaddrinfo.m4: New file.
74580
74581 2004-11-10  Simon Josefsson  <jas@extundo.com>
74582
74583         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74584
74585 2004-11-10  Simon Josefsson  <jas@extundo.com>
74586
74587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74588         getaddrinfo.
74589
74590         * modules/getaddrinfo: New file.
74591
74592 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74595
74596 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         * lib/mktime.c (SHR): New macro, which is a portable
74599         substitute for >> that should work even on Crays.
74600         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74601         Problem reported by Mark D. Baushke in
74602         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74603         * lib/getdate.y (SHR): Likewise.
74604         (tm_diff): Use it.
74605         * lib/strftime.c (SHR): Likewise.
74606         (tm_diff): Use it.
74607         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74608         quote_these_too, so that right shifts are well defined.  All uses
74609         changed.
74610
74611 2004-11-10  Jim Meyering  <jim@meyering.net>
74612
74613         Ensure that no close failure goes unreported.
74614         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74615         return early when it seems there's nothing to flush.
74616         Don't include __fpending.h.
74617
74618 2004-11-10  Jim Meyering  <jim@meyering.net>
74619
74620         * modules/closeout (Depends-on): Remove fpending.
74621
74622 2004-11-10  Jim Meyering  <jim@meyering.net>
74623
74624         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74625
74626 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74627
74628         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74629         gl_FUNC_STRFTIME.
74630         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74631         and AC_REQUIRE when possible, to avoid duplicate checks.
74632         Check for <wchar.h>.
74633
74634 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74637
74638 2004-11-09  Bruno Haible  <bruno@clisp.org>
74639
74640         * m4/sockpfaf.m4: New file.
74641
74642 2004-11-05  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74645         Reported by Mark D. Baushke <mdb@cvshome.org>.
74646
74647 2004-11-04  Bruno Haible  <bruno@clisp.org>
74648
74649         2004-09-11  Bruno Haible  <bruno@clisp.org>
74650                 * allocsa.valgrind: New file.
74651         2004-02-06  Bruno Haible  <bruno@clisp.org>
74652                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74653                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74654                 Reported by Christopher Seip <chris.seip@hp.com>.
74655
74656 2004-11-04  Bruno Haible  <bruno@clisp.org>
74657
74658         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74659         (Makefile.am): Distribute it.
74660
74661 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74664         with errno == ERANGE if the buffer is too small.
74665         Problem reported by Mark D. Baushke.
74666
74667 2004-11-03  Albert Chin  <china@thewrittenword.com>
74668             Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74671         equivalent, substitute $ac_type for equivalent type rather than
74672         blindly using uint32_t *always* which won't work if uint32_t is not
74673         available.  Define _UINT32_T to work around typedef of uint32_t if
74674         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74675         2.5.1.
74676
74677 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * m4/jm-macros.m4: Sync from coreutils.
74680         (gl_MACROS): Check for mbrlen, for pathchk.
74681         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74682
74683 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * lib/xreadlink.c (MAXSIZE): New macro.
74686         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74687         size does not exceed MAXSIZE.  Avoid cast.
74688         As suggested by Mark D. Baushke in
74689         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74690         if readlink fails with buffer size just under MAXSIZE, try again
74691         with MAXSIZE.
74692
74693 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74696
74697 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74698         and  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74701         (get_date): Overparenthesize to avoid GCC warning.
74702
74703 2004-11-02  Bruno Haible  <bruno@clisp.org>
74704
74705         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74706         returns void.
74707
74708 2004-11-02  Bruno Haible  <bruno@clisp.org>
74709
74710         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74711         function returns void.
74712
74713 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74714
74715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74716         fflush_unlocked, flockfile, funlockfile, funlockfile,
74717         fputs_unlocked, putc_unlocked.
74718
74719 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74722         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74723         already declared.
74724
74725 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * modules/getdate (Files): Add doc/getdate.texi.
74728         (Depends-on): Add setenv, xalloc.
74729
74730 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * lib/getdate.y: Add support for TZ="foo" within a date string.
74733         Fix some bugs near time_t boundaries.  Reject dates with
74734         out-of-range components, e.g., "Sept 31".
74735         Include <stdlib.h>, "setenv.h", "xalloc.h".
74736         (ISDIGIT_LOCALE): Remove; unused.
74737         Note that the TZ and time functions used here are not reentrant.
74738         (mktime_ok, get_tz): New functions.
74739         (TZBUFSIZE): New constant.
74740         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74741         This requires that we sometimes generate our own TZ="XXX..." setting.
74742
74743 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * doc/getdate.texi: New file, from coreutils with modifications for
74746         the new TZ parsing.
74747
74748 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74749
74750         * lib/mktime.c (not_equal_tm): Remove redundant check.
74751
74752 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * modules/regex (lib_SOURCES): Add regex.c.
74755         Reported by James Youngman in
74756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74757
74758 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * lib/getdate.y: Use Bison 1.875 features, and some minor
74761         code cleanups.  This change does not affect semantics.
74762         Don't include <stdlib.h>; no longer needed.
74763         Don't include unlocked-io.h; only the "#if TEST" code uses
74764         stdio, and performance isn't crucial there.
74765         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74766         Bison 1.875 features as described below.
74767         All uses of "PC." replaced by "pc->".
74768         (YYSTYPE): Add a forward declaration.
74769         (yylex, yyerror): Use full prototypes in forward decls.
74770         Use "%pure-parser" rather than obsolescent "%pure_parser".
74771         Use %parse-param and %lex-param instead of obsolescent
74772         YYPARSE_PARAM and YYLEX_PARAM.
74773         (meridian_table, month_and_day_table, time_units_table,
74774         relative_time_table, time_zone_table, military_table,
74775         lookup_zone, lookup_word, get_date):
74776         Use NULL instead of 0 where appropriate.
74777         (to_hour): Avoid abort (), to avoid a dependency on
74778         stdlib.h.
74779         (yyerror, yylex): Now accepts parser_control * arg.
74780         (main) [TEST]: Use '\0' rather than 0 for char.
74781
74782 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74785
74786 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74789         It's now the caller's responsibility to handle the case where
74790         !HAVE_GETPAGESIZE && !defined getpagesize.
74791
74792         * lib/mktime.c (leapyear): Arg is long int, not int.
74793
74794 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74797
74798 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74801         missing.  Problem reported by James Youngman.
74802
74803 2004-10-16  Simon Josefsson  <jas@extundo.com>
74804
74805         * gnulib-tool: Fix comments.  Fix parse problem.
74806         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74807
74808 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74811         implementation of getopt_long.  Problem reported by Alexander Taler in:
74812         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74813
74814 2004-10-15  Bruno Haible  <bruno@clisp.org>
74815
74816         * gnulib-tool: Untabify. Initialize supplied_libname.
74817         (func_usage): More homogenous output.
74818         (func_modules_transitive_closure, func_modules_to_filelist,
74819         func_emit_lib_Makefile_am): New functions.
74820         (func_import): New function, extracted from big case statement. Use
74821         func_get_license, func_modules_transitive_closure,
74822         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74823         opt_lgpl. Don't use test -a, as it's not portable.
74824         (func_create_testdir): Use func_modules_transitive_closure,
74825         func_modules_to_filelist, func_emit_lib_Makefile_am.
74826
74827 2004-10-15  Bruno Haible  <bruno@clisp.org>
74828
74829         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74830
74831 2004-10-15  Bruno Haible  <bruno@clisp.org>
74832
74833         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74834         the portions belonging to each module.
74835         Suggested by Derek Robert Price <derek@ximbiot.com>.
74836
74837 2004-10-12  Simon Josefsson  <jas@extundo.com>
74838
74839         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74840         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74841         to real functions.
74842
74843 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74844
74845         * modules/vsnprintf: New file.
74846
74847 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74848
74849         * m4/vsnprintf.m4: New file.
74850
74851 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74852
74853         * lib/vsnprintf.h: New file.
74854         * lib/vsnprintf.c: New file.
74855
74856 2004-10-11  Bruno Haible  <bruno@clisp.org>
74857
74858         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74859         vsnprintf.
74860
74861 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74862
74863         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74864
74865 2004-10-07  Bruno Haible  <bruno@clisp.org>
74866
74867         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74868         fits into the provided buffer.
74869
74870 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * lib/diacrit.c, diacrit.h: Add GPL notice.
74873
74874         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74875         notice.
74876         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74877         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74878         This avoids a potential constant-folding bug.
74879
74880 2004-10-05  Bruno Haible  <bruno@clisp.org>
74881
74882         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74883         for the declaration of strsep.
74884
74885 2004-10-05  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74888
74889 2004-10-04  Simon Josefsson  <jas@extundo.com>
74890
74891         * modules/memmem: New file.
74892         * tests/test-memmem.c: New file.
74893         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74894
74895 2004-10-04  Simon Josefsson  <jas@extundo.com>
74896
74897         * m4/memmem.m4: New file.
74898
74899 2004-10-04  Simon Josefsson  <jas@extundo.com>
74900
74901         * lib/memmem.h: New file.
74902         * lib/memmem.c: New file, taken from glibc.
74903
74904 2004-10-04  Simon Josefsson  <jas@extundo.com>
74905
74906         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74907         '#ifdef USE_UNLOCKED_IO'.
74908
74909 2004-10-04  Simon Josefsson  <jas@extundo.com>
74910
74911         * config/srclist.txt: Add memmem from glibc.
74912
74913 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74916
74917         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74918         modules/exclude, modules/getdate, modules/getline,
74919         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74920         modules/getusershell, modules/linebuffer, modules/md5,
74921         modules/mountlist, modules/posixtm, modules/readtokens,
74922         modules/readutmp, modules/regex, modules/sha1,
74923         modules/version-etc, modules/yesno:
74924         Remove dependency on unlocked-io.
74925
74926 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74929
74930         * m4/unlocked-io.m4: Add copyright notice.
74931         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74932
74933 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74936         * lib/xmalloc.c (xmemdup): Likewise.
74937         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74938         XFREE): Remove these long-obsolescent macros.
74939         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74940         * lib/xstrdup.c: Remove.
74941
74942         * lib/regex.c (re_comp): Cast gettext return value to char *,
74943         Problem reported by Martin Neitzel via Mark D. Baushke.
74944
74945 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74948         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74949         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74950         regex.c, sha1.c, version-etc.c, yesno.c:
74951         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74952         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74953         the includer's responsibility.
74954
74955         Sync from coreutils.
74956
74957         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74958         points to the start of a string, as the C Standard says the
74959         resulting behavior is undefined.
74960
74961         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74962         simple -> simple_backups, numbered_existing ->
74963         numbered_existing_backups, numbered -> numbered_backups
74964         to avoid shadowing problems.  All uses changed.
74965         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74966         * lib/backupfile.c (check_extension, numbered_backup):
74967         Rename locals to avoid shadowing 'basename'.
74968         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74969         once.
74970
74971         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74972         * lib/.cvsignore: Add getopt.h.
74973
74974 2004-10-04  Bruno Haible  <bruno@clisp.org>
74975
74976         * modules/README: New file.
74977         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74978         not a module.
74979
74980 2004-10-02  Jim Meyering  <jim@meyering.net>
74981
74982         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74983
74984 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74985
74986         * modules/strsep: New file.
74987
74988 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74989
74990         * m4/strsep.m4: New file.
74991
74992 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74993
74994         * lib/strsep.h: New file.
74995         * lib/strsep.c: New file.
74996
74997 2004-10-01  Simon Josefsson  <jas@extundo.com>
74998
74999         * lib/snprintf.c (snprintf): Handle size==0.
75000
75001 2004-10-01  Simon Josefsson  <jas@extundo.com>
75002             Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75005         (snprintf): Declare 'args'.
75006
75007 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * lib/snprintf.c: Remove comments as to why each header is needed.
75010
75011 2004-10-01  Bruno Haible  <bruno@clisp.org>
75012
75013         * MODULES.html.sh: Add strsep.
75014
75015 2004-09-30  Simon Josefsson  <jas@extundo.com>
75016
75017         * modules/snprintf: New file.
75018
75019 2004-09-30  Simon Josefsson  <jas@extundo.com>
75020
75021         * m4/snprintf.m4: New file.
75022
75023 2004-09-30  Simon Josefsson  <jas@extundo.com>
75024
75025         * lib/snprintf.h, lib/snprintf.c: New files.
75026
75027 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75028
75029         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75030         (hol_entry_help): Never translate an empty string.
75031         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75032         * lib/argp.h (OPTION_NO_TRANS): New option.
75033
75034 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         * modules/argp (Maintainer): Replace Simon Josefsson
75037         by Sergey Poznyakoff.
75038
75039 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75042         changes merged back into glibc.
75043
75044 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75047
75048 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75049
75050         * lib/xvasprintf.c: Include xalloc.h.
75051         (xvasprintf): Use xalloc_die, not xmalloc_die.
75052
75053 2004-09-29  Bruno Haible  <bruno@clisp.org>
75054
75055         * modules/alloca-opt: New file, derived from modules/alloca.
75056         * modules/allocsa: Depend on alloca-opt instead of alloca.
75057         * modules/setenv: Likewise.
75058         * modules/vasnprintf: Likewise.
75059         * MODULES.html.sh: Add alloca-opt.
75060
75061 2004-09-28  Simon Josefsson  <jas@extundo.com>
75062
75063         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75064         LGPL, and to replace license template from GPL to LGPL.
75065
75066 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * modules/dummy: Change license to LGPL.
75069
75070 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75073
75074 2004-09-24  Simon Josefsson  <jas@extundo.com>
75075
75076         * modules/minmax (License): Change from GPL to LGPL.
75077
75078 2004-09-23  Simon Josefsson  <jas@extundo.com>
75079
75080         * gnulib-tool (--import): Typo.
75081
75082 2004-09-23  Simon Josefsson  <jas@extundo.com>
75083
75084         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75085
75086 2004-09-22  Bruno Haible  <bruno@clisp.org>
75087
75088         * modules/*: Add 'License' field.
75089         * gnulib-tool: Accept --extract-license option.
75090         (func_get_license): New function.
75091
75092 2004-09-21  Bruno Haible  <bruno@clisp.org>
75093
75094         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75095         Reported by Simon Josefsson.
75096
75097 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75100         gl_AC_TYPE_LONG_LONG.
75101
75102 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75105
75106 2004-09-18  Simon Josefsson  <jas@extundo.com>
75107         and  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75110         calls with autoreconf.  Define GL_LIB.
75111
75112 2004-09-14  Karl Berry  <karl@gnu.org>
75113
75114         * config/srclist.txt: unsync setenv.c, sigh.
75115
75116 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75119         Problem reported by Bruno Haible in:
75120         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75121
75122 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         * config/srclist.txt: Comment out argp-pvh.c.
75125
75126 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75129         in case some system header has #define'd it.  Problem reported by
75130         Soeren D. Schulze in
75131         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75132
75133 2004-09-09  Karl Berry  <karl@gnu.org>
75134
75135         * regex.[ch]: delete from the root.  These were supposed to be
75136                 synced with emacs cvs, but this has not happened for about
75137                 a year, and anyway nothing else uses emacs regex.[ch].
75138                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75139                 lib/regex[.ch] is untouched.
75140
75141 2004-09-09  Bruno Haible  <bruno@clisp.org>
75142
75143         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75144
75145 2004-09-09  Bruno Haible  <bruno@clisp.org>
75146
75147         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75148         modifications.
75149         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75150
75151 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75152
75153         * modules/xvasprintf: New file.
75154         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75155
75156 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75157
75158         * lib/xvasprintf.h: New file.
75159         * lib/xvasprintf.c: New file.
75160         * lib/xasprintf.c: New file.
75161
75162 2004-09-08  Bruno Haible  <bruno@clisp.org>
75163
75164         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75165
75166 2004-09-08  Bruno Haible  <bruno@clisp.org>
75167
75168         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75169         length is > INT_MAX.
75170         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75171         more.
75172
75173 2004-09-08  Bruno Haible  <bruno@clisp.org>
75174
75175         * lib/stdint_.h: New file, taken from GNU clisp.
75176
75177 2004-09-08  Bruno Haible  <bruno@clisp.org>
75178             Oskar Liljeblad  <oskar@osk.mine.nu>
75179
75180         * modules/stdint: New file.
75181         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75182
75183 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         Import from coreutils.
75186         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75187         strings on unbounded length.  alloca's performance benefits aren't
75188         that important here.
75189         (V_STRDUP): Remove.
75190         (parse_with_separator): New function, with most of the internals
75191         of the old parse_user_spec.  Allow user to omit both user and group,
75192         for compatibility with FreeBSD.
75193         Clone only the user name, not the entire spec.
75194         Do not set *uid, *gid unless entirely successful.
75195         Avoid memory leak in some failing cases.
75196         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75197         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75198         (parse_user_spec): Rewrite to use parse_with_separator.
75199
75200 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75201
75202         * modules/userspec: Don't depend on alloca.
75203
75204 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75207
75208 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75211         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75212         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75213
75214 2004-08-16  Simon Josefsson  <jas@extundo.com>
75215
75216         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75217         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75218         Add --dry-run for --import.
75219         Let user provided command line parameters override configure.ac
75220         settings.
75221
75222 2004-08-12  Simon Josefsson  <jas@extundo.com>
75223
75224         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75225         as discussed with Paul Eggert in threads rooted at
75226         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75227         and
75228         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75229         Before, the test was empty, and relied on ELIDE_CODE in source
75230         code.)
75231         (gl_PREREQ_GETOPT): New macro.
75232         (gl_GETOPT): Use them.
75233
75234 2004-08-12  Simon Josefsson  <jas@extundo.com>
75235
75236         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75237         * lib/getopt_.h: Renamed from getopt.h.
75238
75239 2004-08-12  Simon Josefsson  <jas@extundo.com>
75240
75241         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75242         Change default library name from libfoo to libgnu.
75243         Now, if you have a configure.ac that says:
75244                 gl_SOURCE_BASE(gl)
75245                 gl_M4_BASE(gl/m4)
75246                 gl_MODULES(error getopt etcetera)
75247                 gl_INIT
75248         you can import all you need by running:
75249                 ../gnulib/gnulib-tool --import
75250
75251         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75252         (Makefile.am): Rewrite, use logic from argz.
75253         (Include): Use <getopt.h> instead of "getopt.h".
75254
75255 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * modules/argp (Files): Add m4/unlocked-io.m4.
75258         (Depends-on): Add extensions.
75259
75260 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75263         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75264         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75265         Check for program_invocation_name, program_invocation_short_name,
75266         flockfile, funlockfile, features.h, _getopt_long_only_r.
75267
75268 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75271         its complicated substitute.
75272         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75273         and program_invocation_name.
75274         (__argp_basename) [!_LIBC]: Remove; the only use was
75275         replaced by its body.
75276         (__argp_short_program_name): Change condition from
75277         !defined __argp_short_program_name to
75278         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75279         to match argp-namefrob.h.
75280         (__argp_failure): Don't assume strerror_r returns char *.
75281         * lib/argp-parse.c (N_): Define unconditionally.
75282         (argp_default_options): Fill out initializers with 0 to avoid
75283         gcc warnings.
75284
75285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75288         getopt1.c.
75289
75290 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         Merge from coreutils.
75293
75294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75295
75296         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75297         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75298
75299 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         Merge from coreutils.
75302
75303         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75304         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75305         for Reliant Unix 5.43.
75306
75307         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75308         (union fooround): Use uintmax_t, not long int.
75309         The rest is a merge from libc:
75310         [defined _LIBC]: Include <shlib-compat.h>.
75311         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75312
75313         * lib/settime.c (settime): Recode to avoid warning with
75314         Sun Forte C 6U2.
75315
75316         * lib/strverscmp.c: Convert to UTF-8.
75317
75318 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75321         m4/uintmax_t.m4.
75322
75323 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * modules/xalloc-die: New file.
75326         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75327
75328         * modules/md5 (Files): Add m4/uint32_t.m4.
75329         * modules/sha1: Renamed from modules/sha.
75330         (Files):
75331         Rename lib/sha.h to lib/sha1.h.
75332         Rename lib/sha.c to lib/sha1.c.
75333         Rename m4/sha.m4 to m4/sha1.m4.
75334         (lib_SOURCES): Likewise.
75335         (configure.ac): Rename gl_SHA to gl_SHA1.
75336         (Include): sha.h -> sha1.h.
75337
75338 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75341         * m4/sha1.m4: Renamed from sha.m4.
75342         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75343
75344 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/obstack.h (obstack_empty_p):
75347         Don't assume that chunk->contents is suitably aligned.
75348         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75349         Likewise. Problem reported by Benno in
75350         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75351
75352         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75353         readable.  This could be improved further but it'd take some work.
75354
75355 2004-08-08  Simon Josefsson  <jas@extundo.com>
75356
75357         * modules/xgethostname (Depends-on): Remove exit and error (not
75358         used).
75359
75360         * modules/getpass-gnu: Add getpass.h.
75361         (Depends-on): Add stdbool.
75362         * modules/getpass: Add getpass.h.
75363
75364 2004-08-08  Simon Josefsson  <jas@extundo.com>
75365
75366         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75367         Check getpass declaration.
75368
75369 2004-08-08  Simon Josefsson  <jas@extundo.com>
75370
75371         * lib/xgethostname.c: Don't include error.h (not used).
75372
75373         * lib/getpass.h: Add.
75374         * lib/getpass.c: Include getpass.h first.
75375
75376 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * lib/xalloc-die.c: New file.
75379         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75380         All uses removed.
75381         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75382         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75383         xalloc-die.c.
75384         (_, N_, xalloc_die): Move to xalloc-die.c.
75385         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75386         so that we needn't mess with xalloc_msg_memory_exhausted.
75387
75388         * lib/sha1.h: Renamed from sha.h.
75389         (SHA1_H): Renamed from _SHA_H.
75390         (sha1_ctx): Renamed from sha_ctx.
75391         (sha1_init_ctx): Renamed from sha_init_ctx.
75392         (sha1_process_block): Renamed from sha_process_block.
75393         (sha1_process_bytes): Renamed from sha_process_bytes.
75394         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75395         (sha1_read_ctx): Renamed from sha_read_ctx.
75396         (sha1_stream): Renamed from sha_stream.
75397         (sha1_buffer): Renamed from sha_buffer.
75398         * lib/sha1.c: Likewise; renamed from sha.c.
75399         Do not include <sys/types.h>.
75400         Include <stddef.h> rather than <stdlib.h>.
75401
75402 2004-08-08  Bruno Haible  <bruno@clisp.org>
75403
75404         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75405         FILESYSTEM_PREFIX_LEN.
75406         * lib/progreloc.c: Likewise.
75407         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75408
75409 2004-08-06  Simon Josefsson  <jas@extundo.com>
75410
75411         * modules/progname (Depends-on): Don't depend on stdbool.
75412
75413 2004-08-06  Simon Josefsson  <jas@extundo.com>
75414
75415         * modules/getsubopt: New file.
75416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75417         getsubopt.
75418
75419 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         More merge from coreutils.
75422
75423         * m4/utimens.m4, m4/utimecmp.m4: New files.
75424         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75425         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75426         prereq.m4, sha.m4: Import changes from coreutils.
75427
75428 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75429
75430         More merge from coreutils.
75431         * modules/raise, modules/readtokens0, modules/utimens:
75432         * modules/utimecmp, module/xnanosleep: New files.
75433         * modules/strftime: Add lib/strftime.h.
75434         Change include from <time.h> to "strftime.h".
75435         * modules/yesno: Add lib/yesno.h.
75436         * modules/backupfile: Remove lib/addext.c.
75437         * modules/euidaccess: Add stat-macros.h.
75438         * modules/canonicalize, modules/euidaccess,
75439         modules/filemode, modules/lchown, modules/makepath,
75440         modules/rmdir, modules/stat: Likewise.
75441
75442 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         Merge from tar.
75445         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75446         SIZE_MAX is a valid preprocessor constant.
75447         (__argp_basename): Change from "#ifndef _LIBC"
75448         to "#ifndef __argp_short_program_name", so that
75449         we don't compile these functions for tar.
75450
75451         More merges from coreutils.
75452         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75453         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75454         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75455         * lib/addext.c: Remove; no longer needed.
75456         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75457         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75458         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75459         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75460         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75461         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75462         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75463         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75464         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75465         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75466         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75467         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75468         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75469         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75470         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75471         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75472         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75473         Import changes from coreutils.
75474
75475 2004-08-05  Simon Josefsson  <jas@extundo.com>
75476
75477         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75478
75479 2004-08-05  Simon Josefsson  <jas@extundo.com>
75480
75481         * m4/getsubopt.m4: New file.
75482
75483 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75484
75485         Merge from coreutils.
75486
75487         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75488         * m4/getcwd-path-max.m4: New files.
75489
75490         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75491         FILESYSTEM_PREFIX_LEN ->
75492         FILE_SYSTEM_PREFIX_LEN.
75493         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75494         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75495         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75496         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75497
75498         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75499         prerequisite modules now handle the DOS stuff.
75500         Don't check for unistd.h.
75501
75502 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         Merge from coreutils.
75505
75506         * lib/.gdb-history: Remove; this doesn't belong here.
75507
75508         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75509         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75510         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75511         * lib/getcwd.c: New files.
75512
75513         * lib/dirname.h: Include <stdbool.h>.
75514         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75515         for consistency with POSIX terminology.  All uses changed.
75516         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75517         (strip_trailing_slashes): Use bool for booleans.
75518         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75519
75520         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75521         sometimes returns a positive errno value even when it succeeds.
75522         (print_errno_message) [!LIBC]: Fall back on strerror if
75523         __strerror_r fails.
75524
75525         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75526         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75527         (longest_relative_suffix): New function.
75528         (path_concat): Use it.  Assume first argument is not NULL.
75529         Port to DOS.  Omit redundant separators.
75530         Report an error instead of returning NULL.
75531         Use mempcpy instead of memcpy.
75532         (xpath_concat): Remove: not declared or used.
75533
75534         * lib/same.h: Include <stdbool.h>
75535         (same_name): Return bool, not int.
75536         * lib/same.c (same_name): Likewise.
75537         (errno): Don't declare; we assume C89 or better now.
75538
75539         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75540         if not already defined.
75541
75542         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75543         * lib/dup-safer.c (errno): Likewise.
75544
75545 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75546
75547         Merge from coreutils.
75548         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75549         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75550         * modules/path-concat: Don't depend on strdup.
75551
75552 2004-08-03  Simon Josefsson  <jas@extundo.com>
75553
75554         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75555         * lib/progname.h: Don't include stdbool.h.
75556
75557 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75560         * MODULES.html.sh (func_all_modules): Remove fatal.
75561
75562 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75565
75566 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75569         working.
75570
75571 2004-08-02  Simon Josefsson  <jas@extundo.com>
75572
75573         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75574         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75575         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75576
75577 2004-08-01  Simon Josefsson  <jas@extundo.com>
75578
75579         * lib/xgetdomainname.c: Include stdlib.h, for free().
75580
75581 2004-07-19  Bruno Haible  <bruno@clisp.org>
75582
75583         * MODULES.html.sh (func_all_modules): Add dummy.
75584
75585 2004-07-16  Simon Josefsson  <jas@extundo.com>
75586
75587         * modules/dummy: New file.
75588
75589 2004-07-16  Simon Josefsson  <jas@extundo.com>
75590
75591         * lib/dummy.c: New file.
75592
75593 2004-07-16  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/backupfile.h: Add extern "C" for C++.
75596         * lib/closeout.h: Likewise.
75597         * lib/copy-file.h: Likewise.
75598         * lib/findprog.h: Likewise.
75599         * lib/full-write.h: Likewise.
75600         * lib/pathname.h: Likewise.
75601         * lib/progname.h: Likewise.
75602         * lib/stpcpy.h: Likewise.
75603         * lib/stpncpy.h: Likewise.
75604         * lib/strcase.h: Likewise.
75605         * lib/strstr.h: Likewise.
75606         * lib/xalloc.h: Likewise.
75607
75608         * lib/mbswidth.h: Add extern "C" for C++.
75609         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75610
75611 2004-07-13  Robert Millan  <robertmh@gnu.org>
75612
75613         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75614
75615 2004-07-09  Simon Josefsson  <jas@extundo.com>
75616
75617         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75618         failed without this.)
75619
75620 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * modules/chown (Files): Add lib/fchown-stub.c, since
75623         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75624
75625 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * lib/fchown-stub.c: New file.
75628
75629 2004-06-24  Jim Meyering  <jim@meyering.net>
75630
75631         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75632
75633 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * modules/argz: Omit "#include".
75636
75637         * MODULES.html.sh (func_all_modules): Add calloc, to match
75638         2004-06-01 addition of calloc module.
75639
75640 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * m4/argz.m4: New file, which is autoupdated from libtool.
75643
75644 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75647         libtool.
75648
75649 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75650
75651         * config/srclist-update: Don't insist on "USA." before the
75652         close-comment, as libtool omits the period and puts the */ on a
75653         separate line.
75654         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75655         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75656
75657 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75658
75659         * modules/argz: New file.
75660         * MODULES.html.sh (func_all_modules): Add argz.
75661
75662 2004-06-12  Jim Meyering  <jim@meyering.net>
75663         and  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * modules/hash (Files): Add lib/xalloc.h.
75666         * modules/pipe (Depends-on): Add wait-process.
75667         * modules/stat (Depends-on): Add xalloc.
75668         * modules/userspec (Files): Add lib/userspec.h.
75669         * modules/xstrto
75670
75671         Upgrade from gettext-0.13.
75672         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75673         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75674         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75675
75676 2004-06-10  Jim Meyering  <jim@meyering.net>
75677
75678         * lib/calloc.c: New file.
75679
75680 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * lib/getdate.y (yylex): Allow space between sign and number.
75683         Problem reported by Dan Jacobson.
75684
75685 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         Merge from coreutils CVS.
75688
75689         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75690         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75691         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75692         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75693         xstrtol.m4: Fix copyright date and/or serial number.
75694
75695         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75696         See if we need an fchown replacement.
75697         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75698         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75699         and use the replacement function if we detect either defect.
75700
75701         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75702         gl_UTIMECMP.
75703
75704 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75705         and  Jim Meyering  <jim@meyering.net>
75706
75707         Merge from coreutils CVS.
75708
75709         * lib/stat-macros.h: New file, with contents from file-type.h
75710         and coreutils' system.h.
75711         * lib/file-type.c: Include "stat-macros.h".
75712         * lib/file-type.h (file_type): Move all macro definitions to new file,
75713         stat-macros.h.
75714
75715         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75716         Wrap old code with this conditional.
75717         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75718         function that does not dereference symlinks.
75719         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75720
75721         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75722         dependency problems.
75723         (xreadlink): Accept new arg SIZE, for efficiency.
75724         All decls and uses changed.
75725         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75726
75727         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75728         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75729
75730         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75731         sysexits.h.
75732
75733 2004-06-01  Jim Meyering  <jim@meyering.net>
75734
75735         * m4/calloc.m4: New file.
75736
75737 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75740         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75741         Also, fix a typo in a diagnostic.
75742
75743 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75746         or AC_FUNC_REALLOC.
75747
75748 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75751         macros to be defined.
75752         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75753         the allocator returns NULL because the requested size is zero.
75754
75755 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75758         var.  Add comment explaining why libc still defines it.  This
75759         merges the following patch from glibc:
75760         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75761
75762 2004-05-20  Andreas Schwab  <schwab@suse.de>
75763
75764         * m4/free.m4: Replace free if it not known to work, not the other
75765         way round.
75766
75767 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75770         present in glibc since revision 1.1 of this file.
75771         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75772         obstack_alignment_mask, obstack_alloc, obstack_base,
75773         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75774         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75775         obstack_grow0, obstack_init, obstack_int_grow,
75776         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75777         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75778         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75779         nonexistent functions.
75780
75781 2004-05-18  Karl Berry  <karl@gnu.org>
75782
75783         * config/srclist.txt: break link for vasnprintf.c.
75784
75785 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         Port obstack to the AS/400, where pointers are 16 bytes wide and
75788         you cannot cast an integer to a valid pointer.  This patch is
75789         currently waiting to be integrated into glibc; see
75790         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75791
75792         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75793         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75794         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75795         (struct obstack): temp member is now a union of a pointer and
75796         an integer, instead of an integer.  All integer uses changed.
75797         This does not affect the physical layout of struct obstack,
75798         except on hosts (like the AS/400) where the size or alignment of
75799         void * is greater than that of ptrdiff_t.
75800         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75801         __STDC__)]: Store temporary in pointer member of union, not
75802         integer member.
75803         * lib/obstack.c: Include <stddef.h>, for offsetof.
75804         (struct fooalign): Remove; it doesn't need a name.
75805         (union fooround): Change double to long double, and add void *.
75806         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75807         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75808         not a macro.  Hence the values are always int; so remove all
75809         casts-to-int in uses.
75810
75811 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75814         we can get this patch merged into glibc.
75815
75816 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75817             Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * m4/argp: Depend on alloca.
75820
75821 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75822             Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75825         freecoding.
75826
75827 2004-05-17  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75830         precision that consists of a '.' followed by an empty digit string.
75831         Patch by Tor Lillqvist <tml@iki.fi>.
75832
75833 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75836         for backward compatibility with older code.  We need our own
75837         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75838         it under some other name, and our alloca.h will define it.
75839
75840 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75841             Derek Price  <derek@ximbiot.com>
75842
75843         * lib/alloca.c: Include <alloca.h>, to get our interface.
75844         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75845         include <alloca.h> first.  Use C89 prototype for alloca; this
75846         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75847         Use #elif for simplicity, since we can assume C89 now.
75848         Don't try to source the system alloca.h since it will not be found
75849         and to prevent recursively including its replacement.
75850         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75851         * lib/regex.c: Likewise.
75852
75853 2004-05-16  Derek Price  <derek@ximbiot.com>
75854             Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         getline cleanup.  This changes the getndelim2 API: both order of
75857         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75858         no delimiter).
75859
75860         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75861         interface does that.
75862         (getline): Always use getdelim, so that we don't have two
75863         copies of this code.
75864         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75865         if available.
75866         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75867         (GETNDELIM2_MAXIMUM): New macro.
75868         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75869         instead of the old practice of delim2==0.  All callers changed.
75870         Return -1 on overflow, instead of returning junk.
75871         Do not set *linesize unless allocation succeeds.
75872         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75873         that we include sys/types.h.
75874         * lib/getnline.h: Likewise.
75875         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75876         (getndelim2): Reorder arguments.
75877         * lib/getnline.c (getnline, getndelim):
75878         Don't discard the NMAX argument.
75879         (getnline): Invoke getndelim, to avoid code duplication.
75880         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75881         of (size_t) -1 by callers of the getnline family.
75882
75883 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75886         Check for gettimeofday.
75887         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75888         Check for settimeofday, stime.
75889
75890 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * lib/nanosleep.c (suspended): Change its type from int to
75893         sig_atomic_t volatile.
75894         (first_call): Make it private to rpl_nanosleep, and have it
75895         be zero initially as that's a bit faster.
75896         (my_usleep): Round up fractional times instead of truncating them,
75897         as this is the usual meaning for 'sleep'.
75898
75899         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75900         doesn't work.
75901         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75902         (ENOSYS): Define if not defined.
75903         (settime): Fall back on stime if it exists and settimeofday fails.
75904         But don't bother with fallbacks if a method fails with errno == EPERM.
75905
75906 2004-05-11  Jim Meyering  <jim@meyering.net>
75907
75908         Prior to this change, the save_cwd caller required read access to the
75909         current directory on most systems (ones with the fchdir function).
75910
75911         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75912         fails, try write-only, and finally, resort to using xgetcwd.
75913
75914 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * lib/obstack.c, obstack.h: Import changes from libc.
75917
75918 2004-04-28  Bruno Haible  <bruno@clisp.org>
75919
75920         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75921         also implicitly appends .exe to executables.
75922         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75923         accepts Windows pathnames.
75924         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75925         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75926         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75927         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75928         Reported by Derek Robert Price <derek@ximbiot.com>.
75929
75930 2004-04-21  Karl Berry  <karl@gnu.org>
75931
75932         * config/srclist.txt (localcharset.c): break sync.
75933
75934 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75935
75936         * m4/host-os.m4: Add a copyright notice.
75937
75938 2004-04-20  Jim Meyering  <jim@meyering.net>
75939
75940         Change UTILS_ to gl_ in AC_DEFINE'd names.
75941         Change utils_- and jm_-prefixed variables, too.
75942         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75943         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75945
75946         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75947         Don't emit trailing blanks.
75948         Also rename jm_-prefixed variables to have gl_ prefix.
75949
75950         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75951         Also rename jm_-prefixed variables to have gl_ prefix.
75952
75953         * m4/jm-macros.m4: Reflect the renamings.
75954         * m4/prereq.m4: Likewise.
75955
75956 2004-04-20  Jim Meyering  <jim@meyering.net>
75957
75958         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75959         memory.
75960
75961 2004-04-20  Jim Meyering  <jim@meyering.net>
75962             Bruno Haible  <bruno@clisp.org>
75963
75964         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75965         memory when realloc fails.
75966
75967 2004-04-19  Jim Meyering  <jim@meyering.net>
75968
75969         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75970         now that readutmp.c may call `free (0)'.
75971
75972 2004-04-19  Bruno Haible  <bruno@clisp.org>
75973
75974         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75975         * m4/inttypes_h.m4: Likewise.
75976         * m4/stdint_h.m4: Likewise.
75977         * m4/intmax_t.m4: Likewise.
75978         * m4/uintmax_t.m4: Likewise.
75979
75980 2004-04-18  Jim Meyering  <jim@meyering.net>
75981
75982         * m4/prereq.m4: Don't forbid jm_ prefix.
75983
75984         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75985         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75986         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75987         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75988         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75989         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75990         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75991         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75992         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75993         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75994         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75995         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75996         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75997         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75998         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75999         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76000         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76001         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76002         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76003
76004 2004-04-18  Jim Meyering  <jim@meyering.net>
76005
76006         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76007         failure, don't leak memory and do call END_UTMP_ENT.
76008
76009 2004-04-16  Jim Meyering  <jim@meyering.net>
76010
76011         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76012         coreutils' stat program.
76013         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76014
76015 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76016
76017         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76018         C89.
76019         (CHAR_BIT): Remove, since we assume C89.
76020         Include <stdint.h> if available, as per current Autoconf CVS advice.
76021
76022 2004-03-31  Jim Meyering  <jim@meyering.net>
76023
76024         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76025         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76026         * m4/xalloc.m4: Likewise.
76027
76028 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76029
76030         Merge from coreutils.
76031
76032         * m4/inttostr.m4: New file.
76033         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76034         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76035         Require gl_CLOCK_TIME.
76036         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76037
76038 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76039
76040         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76041         not bool, to be more consistent with Unix conventions.
76042         Suggested by Bruno Haible.
76043
76044         Merge from coreutils.
76045
76046         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76047         * lib/umaxtostr.c: New files.
76048
76049         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76050         the usual <time.h> dance.
76051         (get_date): Change signature to support fractional time stamps.
76052         All callers changed.
76053         * lib/getdate.y: Include "getdate.h" first, as we can now
76054         assume C89 and don't need to worry about 'const'.
76055         Similarly, include "unlocked-io.h" near start, not in middle.
76056         Include <limits.h>.
76057         (textint.value): Use long int rather than int.
76058         (textint.digits): Use size_t rather than int.
76059         (BILLION, LOG10_BILLION): New constants.
76060         (parser_control): New member rel_ns.  Members day_ordinal,
76061         time_zone, month, day, hour, minutes, rel_year, rel_month,
76062         rel_day, rel_hour, rel_minutes, rel_seconds
76063         are now long int, not int.  Member seconds is now struct timespec,
76064         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76065         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76066         not int.
76067         (%union.intval): Now long int, not int.
76068         New member timespec.
76069         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76070         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76071         (spec): Now is a timespec or an item list.
76072         (timespec, items): New nonterminals.
76073         (time, rel, relunit, number, get_date):
76074         Add support for fractional seconds.
76075         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76076         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76077         (to_hour): First arg is now long int, not int.
76078         (to_year): Returns long int, not int.
76079         Don't treat year -70 like 70.
76080         (tm_diff): Returns long int, not int.
76081         (lookup_word): Use bool instead of int when appropriate.
76082         (yylex): Use size_t for count, not int.
76083         Detect overflow when parsing large integer constants.
76084         Add support for fractions.
76085         (get_date): Make pointers 'const' if possible.
76086         Use more-portable code to detect integer overflow.
76087         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76088         Don't use ctime; it's not reliable if the year has >4 digits.
76089
76090         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76091         This is for compatibility with BSD.
76092
76093         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76094         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76095         From coreutils' system.h.
76096
76097         * lib/userspec.c: Don't include "posixver.h".
76098         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76099         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76100         compatible extension.  Simplify code by removing a boolean int
76101         that was always nonzero if a string was nonnull.
76102
76103 2004-03-30  Jim Meyering  <jim@meyering.net>
76104
76105         Merge from coreutils.
76106
76107         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76108         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76109         on some systems one must include <grp.h> before it.
76110         Reported by Christian Krackowizer.
76111
76112 2004-03-30  Jim Meyering  <jim@meyering.net>
76113
76114         Merge from coreutils.
76115
76116         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76117
76118         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76119         an empty input stream.
76120
76121         * lib/readtokens.c: Include <stdbool.h>.
76122         (readtoken): Use `size_t' rather than int/long.
76123         All callers adjusted.
76124         Use `bool' rather than `int' where appropriate.
76125         Use memset rather than an explicit loop.
76126         Use x2nrealloc rather than xrealloc.
76127         Allow the use of `\0' as a delimiter.
76128         (readtokens): Likewise.
76129         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76130
76131 2004-03-30  Jim Meyering  <jim@meyering.net>
76132
76133         * m4/realloc.m4: Remove file, since now it does no more than
76134         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76135         the `configure.ac' section of module/realloc.
76136         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76137
76138 2004-03-30  Bruno Haible  <bruno@clisp.org>
76139
76140         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76141         nonnull.
76142
76143 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76144
76145         Merge changes to getloadavg.c from coreutils and Emacs.
76146
76147         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76148         Define to an expression, not to the empty string.
76149         Include cloexec.h and xalloc.h.
76150         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76151         Use set_cloexec_flag rather than rolling our own.
76152         * lib/cloexec.c, lib/cloexec.h: New files.
76153
76154 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76155
76156         * m4/cloexec.m4: New file.
76157
76158 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76159
76160         * lib/getopt.h: Sync with libc CVS.
76161
76162 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76163             Bruno Haible  <bruno@clisp.org>
76164
76165         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76166         mbswidth.
76167
76168 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76169             Bruno Haible  <bruno@clisp.org>
76170
76171         * lib/mbswidth.h: Include <wchar.h> only if
76172         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76173         <wchar.h>.
76174         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76175
76176 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76177
76178         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76179         Sync with libc CVS.
76180         * lib/getopt_int.h: New file, also synced from libc.
76181
76182 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76183
76184         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76185         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76186         Bring back getopt.c, getopt.h, getopt1.c.
76187
76188 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76189
76190         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76191         All uses changed.  Check for sa_sigaction member; this fixes
76192         a bug first reported by Jason Andrade in
76193         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76194
76195 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76196
76197         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76198         '#if' expressions.  Unlike the code it replaces, it does not
76199         depend on (defined _SC_PAGESIZE).  However, it does depend on
76200         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76201         first reported by Jason Andrade in
76202         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76203
76204 2004-02-25  Simon Josefsson  <jas@extundo.com>
76205
76206         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76207
76208 2004-02-25  Simon Josefsson  <jas@extundo.com>
76209
76210         * lib/strdup.h: New file.
76211         * lib/strdup.c: Include it.
76212         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76213         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76214
76215 2004-02-23  Karl Berry  <karl@gnu.org>
76216
76217         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76218         (from fencepost.gnu.org:/gd/gnuorg).
76219
76220 2004-02-23  Karl Berry  <karl@gnu.org>
76221
76222         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76223         * config/srclist.txt: add maintain/standards documents.
76224
76225 2004-02-18  Bruno Haible  <bruno@clisp.org>
76226
76227         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76228         Reported by Derek Robert Price <derek@ximbiot.com>.
76229
76230 2004-02-16  Karl Berry  <karl@gnu.org>
76231
76232         * config/mkinstalldirs, install-sh: update from automake.
76233
76234 2004-02-06  Karl Berry  <karl@gnu.org>
76235
76236         * m4/po.m4: update from gettext 0.14.1.
76237
76238 2004-02-06  Karl Berry  <karl@gnu.org>
76239
76240         * lib/config.charset: update from gettext 0.14.1.
76241
76242 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76243
76244         Add comments and code, prompted by suggestions from Bruno Haible
76245         for sh-quote.
76246         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76247         describing the enum quoting_style values.
76248         * lib/quotearg.c (quotearg_alloc): New function.
76249         (quotearg_buffer_restyled): Treat lone { and } as special.
76250         Treat = as special.  Work around bug with older shells
76251         that "see" a '\' that is really the 2nd byte of a multibyte char.
76252         Quote empty string with shell_quoting_style.
76253
76254 2004-02-03  Bruno Haible  <bruno@clisp.org>
76255
76256         * m4/pipe.m4: New file, from GNU gettext.
76257
76258 2004-02-03  Bruno Haible  <bruno@clisp.org>
76259
76260         * lib/pipe.h: New file, from GNU gettext.
76261         * lib/pipe.c: New file, from GNU gettext.
76262
76263 2004-01-27  Bruno Haible  <bruno@clisp.org>
76264
76265         * m4/execute.m4: New file, from GNU gettext.
76266
76267 2004-01-27  Bruno Haible  <bruno@clisp.org>
76268
76269         * lib/execute.h: New file, from GNU gettext.
76270         * lib/execute.c: New file, from GNU gettext.
76271         * lib/w32spawn.h: New file, from GNU gettext.
76272
76273 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76274
76275         Merge from diffutils.
76276
76277         * lib/file-type.c (file_type): Add typed memory objects.
76278         * lib/file-type.h (S_TYPEISTMO): New macro.
76279
76280         * lib/c-stack.h (c_stack_action): Remove argv argument.
76281         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76282         (die): Don't calculate message unless segv_action returns.
76283         (get_stack_location, min_address_from_argv, max_address_from_argv,
76284         volatile stack_base, volatile_stack_size): Remove.
76285         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76286         that every segmentation violation is a stack overflow.  (Ouch!)
76287         See Debian bug 136249 (still outstanding) for more info about why
76288         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76289
76290 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76291
76292         Exit-status fix from coreutils.
76293
76294         Use exit_failure consistently in place of EXIT_FAILURE,
76295         so that program exit statuses are consistent on failure.
76296
76297         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76298         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76299         * lib/argmatch.h: Comment fix to match the above.
76300         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76301         Now a macro referring to exit_failure, instead of a separate
76302         variable.  Include "exitfail.h" to get it.
76303         * lib/xstrtol.h: Include "exitfail.h".
76304         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76305
76306         * lib/long-options.c (parse_long_options): Use prototype
76307         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76308         for clarity.
76309
76310 2004-01-21  Jim Meyering  <jim@meyering.net>
76311
76312         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76313         so as not to conflict with a different-sized __mktime_internal
76314         function in GNU libc.
76315         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76316         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76317
76318 2004-01-20  Karl Berry  <karl@gnu.org>
76319
76320         * config/config.guess: update from config.
76321
76322         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76323
76324 2004-01-20  Bruno Haible  <bruno@clisp.org>
76325
76326         Safer stack allocation.
76327         * lib/setenv.c: Include allocsa.h.
76328         (alloca): Remove fallback definition.
76329         (freea): Remove macro.
76330         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76331         instead of freea.
76332
76333 2004-01-20  Bruno Haible  <bruno@clisp.org>
76334
76335         * m4/eealloc.m4: New file, from GNU gettext.
76336
76337 2004-01-20  Bruno Haible  <bruno@clisp.org>
76338
76339         * m4/allocsa.m4: New file, from GNU gettext.
76340
76341 2004-01-20  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/xallocsa.h: New file, from GNU gettext.
76344         * lib/xallocsa.c: New file, from GNU gettext.
76345
76346 2004-01-20  Bruno Haible  <bruno@clisp.org>
76347
76348         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76349
76350 2004-01-20  Bruno Haible  <bruno@clisp.org>
76351
76352         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76353         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76354         specially.
76355
76356 2004-01-20  Bruno Haible  <bruno@clisp.org>
76357
76358         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76359         patch.
76360
76361 2004-01-20  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76364
76365 2004-01-20  Bruno Haible  <bruno@clisp.org>
76366
76367         * lib/eealloc.h: New file.
76368
76369 2004-01-20  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/binary-io.h: Avoid warnings on Cygwin.
76372
76373 2004-01-20  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/allocsa.h: New file, from GNU gettext.
76376         * lib/allocsa.c: New file, from GNU gettext.
76377
76378 2004-01-18  Karl Berry  <karl@gnu.org>
76379
76380         * doc/gpl.texi, doc/lgpl.texi: new files.
76381
76382 2004-01-18  Karl Berry  <karl@gnu.org>
76383
76384         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76385         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76386
76387 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76388
76389         Merge from coreutils.
76390
76391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76392         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76393         (gl_DEFAULT_POSIX2_VERSION): Move
76394         the documentation from 'configure' into 'config.hin',
76395         so that 'configure --help' isn't burdened by it and
76396         we don't have to worry about its formatting there.
76397         Reword the documentation so that it's more succinct
76398         and can be run together into a single paragraph.
76399         * m4/same.m4 (gl_SAME): Check for pathconf.
76400
76401 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76402
76403         Merge from coreutils.
76404
76405         * lib/posixver.c: Include posixver.h.
76406
76407         * lib/same.c: Include <stdbool.h>, <limits.h>.
76408         (_POSIX_NAME_MAX): Define if not defined.
76409         (MIN): New macro.
76410         (same_name): If file names are silently truncated, report
76411         that the file names are the same if they are the same after
76412         the silent truncation.
76413
76414         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76415         conversion function.
76416         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76417         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76418         longer needed.
76419
76420 2004-01-15  Jim Meyering  <jim@meyering.net>
76421
76422         Merge from coreutils.
76423
76424         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76425         if no library is required.
76426         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76427         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76428         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76429         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76430         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76431         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76432         value, $ac_cv_search_crypt, if it's "none required".
76433         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76434         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76435         not gl_FUNC_GETLOADAVG.
76436         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76437         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76438
76439 2004-01-15  Jim Meyering  <jim@meyering.net>
76440
76441         Merge from coreutils.
76442
76443         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76444         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76445         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76446
76447         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76448         optional configure-time default.
76449
76450         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76451
76452         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76453
76454 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76455
76456         Merge from coreutils.
76457
76458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76459         value, $ac_cv_search_nanosleep, if it's "none required".
76460
76461 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76462
76463         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76464         with like-named macro in fnmatch.c.
76465         (EXT): Use an internal constant instead.
76466
76467         Merge fnmatch patches from glibc.
76468         * lib/fnmatch.c (mbsinit): Remove define.
76469         Add libc_hidden_ver (__fnmatch, fnmatch).
76470         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76471         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76472
76473 2004-01-14  Karl Berry  <karl@gnu.org>
76474
76475         * config/install-sh: update from automake.
76476
76477 2004-01-13  Karl Berry  <karl@gnu.org>
76478
76479         * config/install-sh: update from automake.
76480
76481 2004-01-09  Karl Berry  <karl@gnu.org>
76482
76483         * config/install-sh: update from automake.
76484
76485 2004-01-05  Karl Berry  <karl@gnu.org>
76486
76487         * config/config.{sub,guess}: update from config.
76488
76489 2003-12-31  Karl Berry  <karl@gnu.org>
76490
76491         * config/depcomp: update from automake.
76492
76493 2003-12-14  Karl Berry  <karl@gnu.org>
76494
76495         * lib/config.charset: update from gettext-runtime.
76496
76497 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76498
76499         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76500         Bug reported by Alfred M. Szmidt.
76501
76502 2003-12-03  Bruno Haible  <bruno@clisp.org>
76503
76504         * m4/gettext.m4: Upgrade from gettext-0.13.
76505         * m4/po.m4: Upgrade from gettext-0.13.
76506         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76507         * m4/intmax.m4: New file, from gettext-0.13.
76508         * m4/printf-posix.m4: New file, from gettext-0.13.
76509
76510 2003-11-29  Karl Berry  <karl@gnu.org>
76511
76512         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76513
76514 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76515             Bruno Haible  <bruno@clisp.org>
76516
76517         * lib/printf-parse.h: Don't include sys/types.h.
76518         (ARG_NONE): New macro.
76519         (char_directive): Change type of *arg_index fields to size_t.
76520         * lib/printf-parse.c: Don't include sys/types.h.
76521         (SSIZE_MAX): Remove macro.
76522         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76523         Remove unnecessary overflow check.
76524         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76525         fields.
76526
76527 2003-11-25  Bruno Haible  <bruno@clisp.org>
76528
76529         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76530
76531 2003-11-25  Bruno Haible  <bruno@clisp.org>
76532
76533         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76534         gt_TYPE_SSIZE_T.
76535
76536 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76537
76538         * modules/alloca: Remove dependency on xalloc.
76539
76540 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76541
76542         * lib/alloca.c: Remove dependency on xalloc module.
76543         (xalloc_die): Remove.
76544         (memory_full) [!defined emacs]: New macro.
76545         [!defined emacs]: Don't include xalloc.h.
76546         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76547         address arithmetic overflows.  Change datatypes a bit to avoid
76548         unnecessary casts.
76549
76550 2003-11-22  Jim Meyering  <jim@meyering.net>
76551
76552         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76553         s/size/size_t/.
76554
76555 2003-11-21  Karl Berry  <karl@gnu.org>
76556
76557         * config/config.{sub,guess}: update from config.
76558
76559 2003-11-18  Karl Berry  <karl@gnu.org>
76560
76561         * config/config.{sub,guess}: update from config.
76562
76563         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76564
76565 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76566
76567         * README: Mention that S+T cannot overflow if S is the size of
76568         an existing object and T is sufficiently small.
76569
76570 2003-11-17  Jim Meyering  <jim@meyering.net>
76571
76572         On systems without utime and without a utimes function capable of
76573         dealing with a NULL struct utimbuf* argument, this utime replacement
76574         could -- in unusual circumstances -- leak a file descriptor.
76575         * lib/utime.c: Include <unistd.h> and <errno.h>.
76576         (utime_null): Be sure to close `fd' and to preserve errno.
76577         Reported by Geoff Collyer via Arnold Robbins.
76578
76579 2003-11-17  Bruno Haible  <bruno@clisp.org>
76580
76581         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76582         (Depends-on): Add xsize.
76583
76584 2003-11-17  Bruno Haible  <bruno@clisp.org>
76585
76586         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76587
76588 2003-11-17  Bruno Haible  <bruno@clisp.org>
76589
76590         * lib/vasnprintf.c (alloca): Remove fallback definition.
76591         (freea): Remove definition.
76592         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76593         Reported by Paul Eggert.
76594
76595 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76596             Bruno Haible  <bruno@clisp.org>
76597
76598         Protect against address arithmetic overflow.
76599         * lib/printf-args.h: Include stddef.h.
76600         (arguments): Change type of field 'count' to size_t.
76601         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76602         'unsigned int' where appropriate.
76603         * lib/printf-parse.h: Include sys/types.h.
76604         (char_directive): Change type of *arg_index fields to ssize_t.
76605         (char_directives): Change type of fields 'count', max_*_length to
76606         size_t.
76607         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76608         (SSIZE_MAX): Define fallback value.
76609         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76610         instead of 'int' where appropriate. Check a_allocated, d_allocated
76611         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76612         * lib/vasnprintf.c: Include xsize.h.
76613         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76614         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76615         overflow. Avoid wraparound when converting a width or precision from
76616         decimal to binary.
76617
76618 2003-11-16  Bruno Haible  <bruno@clisp.org>
76619
76620         Update from GNU gettext.
76621         * lib/printf-parse.c: Generalize to it can be compiled for wide
76622         strings.
76623         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76624         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76625         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76626         SNPRINTF): New macros.
76627         Don't include <alloca.h> if the file is used inside libintl.
76628         (local_wcslen): New function, for Solaris 2.5.1.
76629         (VASNPRINTF): Use it instead of wcslen.
76630
76631 2003-11-16  Bruno Haible  <bruno@clisp.org>
76632
76633         * lib/xsize.h (xmax): New function.
76634         (xsum, xsum3, xsum4): Declare as "pure" functions.
76635
76636 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76637
76638         * modules/xalloc (Files): Undo latest change, since xalloc.h
76639         no longer needs SIZE_MAX or PTRDIFF_MAX.
76640
76641 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76642
76643         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76644         gl_PTRDIFF_MAX.
76645
76646 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76647
76648         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76649         "return", to pacify some unknown compiler.  Problem reported
76650         by Joerg Schilling.
76651
76652 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76653
76654         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76655         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76656         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76657         heuristic is just as accurate as far as we know, and it removes a
76658         dependency on size_max.m4 and ptrdiff_max.m4.
76659
76660 2003-11-11  Bruno Haible  <bruno@clisp.org>
76661
76662         * modules/xsize (Files): Add m4/size_max.m4.
76663         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76664
76665 2003-11-11  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/size_max.m4: New file.
76668         * m4/ptrdiff_max.m4: New file.
76669         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76671         (gl_XALLOC): Invoke it.
76672
76673 2003-11-11  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76676         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76677         defined.
76678
76679 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76680
76681         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76682         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76683         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76684         From Bruno Haible.
76685         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76686         not (size_t) -1, since it's defined here.
76687
76688 2003-11-09  Karl Berry  <karl@gnu.org>
76689
76690         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76691
76692 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76693
76694         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76695         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76696         Reject sizes of exactly SIZE_MAX bytes.
76697         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76698         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76699
76700 2003-11-05  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76703         SIZE_MAX defined in <limits.h> on Solaris.
76704
76705 2003-11-04  Jim Meyering  <jim@meyering.net>
76706
76707         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76708         variable names, rather than @VAR@.
76709         * modules/poll: Likewise.
76710
76711 2003-11-04  Bruno Haible  <bruno@clisp.org>
76712
76713         * modules/xsize: New file.
76714         * modules/linebreak: Depend on xsize.
76715         * MODULES.html.sh (func_all_modules): Add xsize.
76716
76717 2003-11-04  Bruno Haible  <bruno@clisp.org>
76718
76719         * m4/xsize.m4: New file.
76720
76721 2003-11-04  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/xsize.h: New file.
76724         * lib/linebreak.c: Include xsize.h.
76725         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76726         argument for overflow.
76727         Suggested by Paul Eggert.
76728
76729 2003-11-03  Karl Berry  <karl@gnu.org>
76730
76731         * config/config.{guess,sub}: update from config.
76732
76733 2003-11-03  Jim Meyering  <jim@meyering.net>
76734
76735         * modules/userspec (lib_SOURCES): Add userspec.h.
76736         (Include): Add "userspec.h".
76737         Improve description.
76738
76739 2003-11-03  Jim Meyering  <jim@meyering.net>
76740
76741         * lib/userspec.c: Include "userspec.h".
76742         * lib/userspec.h: New file.
76743
76744 2003-11-03  Bruno Haible  <bruno@clisp.org>
76745
76746         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76747
76748 2003-11-03  Bruno Haible  <bruno@clisp.org>
76749
76750         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76751         available, to avoid (extremely rare) race condition.
76752         Suggested by Paul Eggert.
76753
76754 2003-11-02  Karl Berry  <karl@gnu.org>
76755
76756         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76757
76758 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76759
76760         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76761         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76762         (read_filesystem_list): Set and use me_type_malloced.
76763         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76764         whatever the type happens to be), for brevity and consistency.
76765         Check for size calculation overflow on Alphas running OSF/1.
76766
76767 2003-10-31  Jim Meyering  <jim@meyering.net>
76768
76769         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76770
76771         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76772
76773 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76774             Bruno Haible  <bruno@clisp.org>
76775
76776         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76777         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76778
76779 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76782         netbsd*-gnu*.  Suggested by Robert Millan.
76783
76784 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76785
76786         * modules/group-member: Depend on stdbool.
76787
76788 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76789
76790         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76791
76792 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76793
76794         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76795         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76796         after the 'gnu' in these cases.  This fixes some bugs in the
76797         previous change, and is based on suggestions by Robert Millan.
76798
76799 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76800
76801         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76802         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76803         no longer needed.
76804         * lib/quotearg.c (quotearg_n_options): Use it.
76805         * lib/group-member.c: Include <stdbool.h>.
76806         (free_group_info): Arg is now const *; don't free arg.
76807         (get_group_info): Now returns bool and accepts struct group_info *,
76808         rather than returning a malloc'ed struct group_info *.
76809         All uses changed.  Check for overflow in internal size calculation.
76810
76811         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76812         rather than xmalloc/xrealloc.
76813         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76814         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76815         conformance bug: the old code used a pointer after freeing the
76816         storage that it addressed.
76817         * lib/hash.c (hash_initialize): Simplify the code by using
76818         xalloc_oversized rather than doing it by hand.
76819         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76820         the buffer preserved.  Use free and xmalloc instead.
76821         * lib/quotearg.c (quotearg_n_options): Likewise.
76822         Use a simpler test for size overflow.  Don't use xalloc_oversized
76823         because unsigned int might be wider than size_t (!); this suggests
76824         that we should switch from unsigned int to size_t for slot numbers.
76825
76826 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76827
76828         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76829         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76830         NetBSD kernels.  Requested by Richard Stallman.
76831
76832 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76833
76834         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76835         to allocate the returned structure.  Do not allocate a subarray,
76836         as x2nrealloc will do that.
76837         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76838         instead of xnrealloc.
76839         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76840
76841 2003-10-27  Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/stdbool_.h: Better support for BeOS.
76844
76845 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76846
76847         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76848         now uses inline.
76849
76850 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76851
76852         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76853         callers that want to do their own size-overflow checking.  Include
76854         <stdbool.h>, since xalloc_oversized returns bool.
76855         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76856         to use xalloc_oversized.
76857
76858         Add two functions x2realloc, x2nrealloc, for programs that grow
76859         arrays dynamically by doubling their sizes.
76860         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76861         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76862         New functions.
76863
76864         Port to C99 semantics for 'inline' of external functions.
76865         Bug reported by Bruno Haible.
76866         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76867         with the old contents of xnmalloc.
76868         (xnmalloc, xmalloc): Use it.
76869         (xnrealloc_inline): New static inline function,
76870         with the old contents of xnrealloc.
76871         (xnrealloc, xrealloc): Use it.
76872
76873         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76874         that.
76875
76876 2003-10-26  Karl Berry  <karl@gnu.org>
76877
76878         * config/srclist.txt (COPYING.DOC): no longer available from
76879         /gd/gnuorg; don't know where the ultimate source is.
76880
76881 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76882
76883         Fix several address-calculation bugs in the hash modules,
76884         plus some minor code cleanup.
76885
76886         * lib/hash.h: Include <stdbool.h>, for bool.
76887         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76888         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76889         hash_get_n_entries, hash_get_max_bucket_length,
76890         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76891         hash_rehash): Use size_t rather than unsigned.
76892         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76893         hash_get_n_buckets_used, hash_get_n_entries,
76894         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76895         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76896         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76897         Likewise.
76898         (SIZE_MAX): Define if not defined.
76899         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76900         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76901         hash_print):
76902         Use const * when possible.
76903         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76904         (check_tuning): Fix bug: if tuning parameters were very close to
76905         0 or 1, rounding errors could have caused subscript violations.
76906         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76907         (hash_initialize): Add 'fail:' label
76908         to free table and return NULL, and use it to simplify code.
76909         Use calloc rather than clearing the storage ourself.
76910         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76911         buffer size calculations.
76912         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76913         Include <stddef.h>, for size_t.
76914         * lib/hash-pjw.c (hash_pjw): Likewise.
76915         Switch to method described by Bruno Haible.
76916         Include <limits.h>, for CHAR_BIT.
76917         (SIZE_BITS): New macro.
76918
76919 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76920
76921         * m4/getline.m4 (AM_FUNC_GETLINE):
76922         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76923         hosts.  Problem reported by Derek Robert Price in
76924         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76925         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76926         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76927
76928 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76929
76930         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76931         ceiling the allocation at NMAX bytes rather than silently
76932         discarding input bytes before NMAX is reached.  This makes
76933         a difference only if NMAX exceeds SIZE_MAX / 2.
76934
76935         * lib/obstack.c: Merge from glibc.
76936         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76937         Add libc_hidden_def (_obstack_newchunk).
76938         (_obstack_free) [! defined _LIBC]: Remove.
76939         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76940         a clone of the function body.
76941         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76942         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76943
76944         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76945         glibc.
76946         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76947         arg to memcpy.
76948
76949         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76950         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76951         Don't use lvalue casts, as GCC plans to remove support for them
76952         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76953         was also present in the non-GCC version, indicating that this
76954         code had always been buggy and had never been widely used.
76955         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76956         Use the fast variant of each macro, rather than copying the
76957         definiens of the fast variant; that way, we'll be more likely to
76958         catch future bugs in the fast variants.
76959
76960 2003-10-20  Bruno Haible  <bruno@clisp.org>
76961
76962         * modules/wait-process: New file.
76963         * MODULES.html.sh (func_all_modules): Add wait-process.
76964
76965 2003-10-20  Bruno Haible  <bruno@clisp.org>
76966
76967         * m4/wait-process.m4: New file.
76968
76969 2003-10-20  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/wait-process.h: New file, from GNU gettext.
76972         * lib/wait-process.c: New file, from GNU gettext.
76973
76974 2003-10-19  Jim Meyering  <jim@meyering.net>
76975
76976         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76977         HPUX 10.20.
76978
76979 2003-10-18  Karl Berry  <karl@gnu.org>
76980
76981         * config/config.guess: update from config.
76982
76983 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76984
76985         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76986         (getgroups): First arg is int, not size_t.
76987         Don't let 'free' mangle errno.
76988
76989 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76990
76991         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76992
76993 2003-10-16  Karl Berry  <karl@gnu.org>
76994
76995         * config/config.{guess,sub}: update from config.
76996
76997 2003-10-16  Jim Meyering  <jim@meyering.net>
76998
76999         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77000         memcpy.
77001
77002 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77003
77004         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77005         (SIZE_MAX): Remove.
77006         (new_exclude, add_exclude_file): Initial size no longer needs to
77007         be a power of 2.
77008         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77009         our own address arithmetic overflow checking.
77010
77011         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77012         (fnmatch): Do not alloca more than 2000 wide characters;
77013         instead, use malloc for large buffers.
77014         Check for address arithmetic overflow, and return -1
77015         with errno set to ENOMEM in that case.
77016         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77017         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77018         instead, return -1.  Check for address arithmetic overflow.
77019
77020 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77021
77022         Handle invalid suffixes and overflow independently, so that
77023         callers can treat them independently as needed.  Fix some bugs in
77024         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77025         suffix for a human-readable blocksize.  The major caller-visible
77026         change is the addition of a new
77027         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77028         that both overflow and suffix chars were found.
77029
77030         * lib/human.c (humblock): Don't check separately for invalid suffix
77031         char; that is xstrtoumax's job (now that its bug is fixed).
77032         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77033         INTMAX_MAX]: New macros.
77034         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77035         TYPE_MAXIMUM): New macros.
77036         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77037         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77038         if overflow occurs, as it's what __strtol does and it's more useful
77039         in practice.
77040         (__xstrtol): If __strtol reports some error other than ERANGE,
77041         reflect it to the caller as LONGINT_INVALID.  If it reports
77042         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77043         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77044         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77045         value.
77046         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77047         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77048         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77049         [defined UINTMAX_MAX]: New macros.
77050
77051 2003-10-14  Bruno Haible  <bruno@clisp.org>
77052
77053         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77054
77055 2003-10-14  Bruno Haible  <bruno@clisp.org>
77056
77057         * m4/sig_atomic_t: New file, from GNU gettext.
77058         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77059
77060 2003-10-14  Bruno Haible  <bruno@clisp.org>
77061
77062         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77063         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77064         Also use volatile where needed.
77065
77066 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77067
77068         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77069         Change maintainer from Bruno Haible to 'all'.
77070
77071 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77072
77073         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77074
77075 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77076
77077         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77078         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77079         and define in terms of the other primitives.
77080         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77081         (SIZE_MAX): Define if not already defined.
77082         (array_size_overflow): New function.
77083         (xalloc_die): Abort instead of exiting if 'error' returns.
77084         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77085         (xmalloc, xrealloc): Use them.
77086         (xcalloc): Check for address arithmetic overflow.
77087         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77088         a bit faster than strcpy.
77089
77090 2003-10-10  Simon Josefsson  <jas@extundo.com>
77091
77092         * modules/argp (Depends-on): Add restrict and strcase.
77093
77094 2003-10-10  Simon Josefsson  <jas@extundo.com>
77095
77096         * m4/argp.m4: Add AC_C_INLINE.
77097
77098 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77099
77100         Merge getpass from libc, plus a few fixes.
77101
77102         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77103         Include <stdbool.h>.
77104         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77105         __fsetlocking to empty.
77106         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77107         do include <bits/libc-lock.h>.
77108         Do not include <fcntl.h>; not needed.
77109         [_LIBC]: Include <wchar.h>.
77110         (NOTCANCEL_MODE): New macro.
77111         (flockfile, funlockfile) [_LIBC]: New macros.
77112         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77113         [!_LIBC]: New macros.
77114         (call_fclose): New function.
77115         (getpass): Use it.  Save tty stream separately; this simplifies the
77116         code and makes it more reliable if stdin happens to equal stdout.
77117         Invoke __fsetlocking on tty.
77118         Handle thread cancellation if needed.
77119         Namespace cleanup (use __tcgetattr, __getline).
77120         Use bool for Booleans.
77121         [USE_IN_LIBIO]: Handle wide streams.
77122         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77123         stream might go where.
77124
77125         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77126         doesn't have to include <stdio.h> before us.
77127         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77128         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77129         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77130         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77131         if not declared, so that we can use getpass.c code from libc without
77132         rewriting it.
77133         (flockfile, ftrylockfile, funlockfile): New macros.
77134
77135 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77136
77137         * modules/getpass: Depend on stdbool.
77138
77139 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77140
77141         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77142
77143 2003-10-07  Karl Berry  <karl@gnu.org>
77144
77145         * config/config.{guess,sub}: update from config.
77146
77147 2003-10-06  Jim Meyering  <jim@meyering.net>
77148             Bruno Haible  <bruno@clisp.org>
77149
77150         This lets translators provide better translations for the
77151         "Written by ..." part of --version output.
77152         * lib/version-etc.h: Include stdarg.h.
77153         (version_etc_copyright): Declare as readonly.
77154         (version_etc): Make this function variadic with a NULL-terminated list
77155         of author name strings.
77156         (version_etc_va): New declaration.
77157         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77158         (version_etc_copyright): Declare as readonly.
77159         (version_etc_va): New function. Provide a different translatable string
77160         for each possible number of authors < 10. Abbreviate when there are 10
77161         authors or more.
77162         (version_etc): Make this function variadic. Call version_etc_va.
77163         Suggestion from Gary V. Vaughan.
77164
77165         * lib/long-options.h (parse_long_options): Change prototype: the
77166         authors string is moved to the end and becomes variadic.
77167         * lib/long-options.c: Include stdarg.h.
77168         (parse_long_options): Make this function variadic, too.
77169         Call version_etc_va, not version_etc.
77170
77171 2003-10-06  Bruno Haible  <bruno@clisp.org>
77172
77173         * modules/version-etc-2: Remove file.
77174         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77175
77176 2003-10-06  Bruno Haible  <bruno@clisp.org>
77177
77178         * modules/fatal-signal: New file.
77179         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77180
77181 2003-10-06  Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/fatal-signal.m4: New file.
77184         * m4/signalblocking.m4: New file, from GNU gettext.
77185
77186 2003-10-06  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/version-etc-2.h: Remove file.
77189         * lib/version-etc-2.c: Remove file.
77190
77191 2003-10-06  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/fatal-signal.h: New file, from GNU gettext.
77194         * lib/fatal-signal.c: New file, from GNU gettext.
77195
77196 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77197
77198         * README: Rework advice for preventing empty .o files.
77199         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77200         not <sys/types.h>.
77201
77202 2003-10-04  Karl Berry  <karl@gnu.org>
77203
77204         * lib/argp*: update from libc.
77205
77206 2003-10-04  Karl Berry  <karl@gnu.org>
77207
77208         * config/config.{guess,sub}: update from config.
77209
77210 2003-10-02  Bruno Haible  <bruno@clisp.org>
77211
77212         * modules/lchown (Include): Add lchown.h.
77213         * modules/time_r (Include): Use "..." syntax.
77214         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77215
77216 2003-10-01  Simon Josefsson  <jas@extundo.com>
77217
77218         * MODULES.html.sh (func_all_modules): Move gethostname from section
77219         'based on' to section 'lacking' POSIX:2001.
77220
77221 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77222
77223         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77224         to output mode on the same stream.
77225
77226 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77227
77228         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77229         Fix arg typo in previous patch.
77230
77231 2003-09-28  Jim Meyering  <jim@meyering.net>
77232
77233         * lib/error.c: Correct cpp indentation.
77234
77235 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77236
77237         * modules/free: New file.
77238
77239 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77240
77241         * m4/free.m4: New file.
77242
77243 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77244
77245         * lib/minmax.h (MIN, MAX)
77246         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77247         Omit the special code that used __typeof__, since we worry that
77248         it could be more trouble than it's worth.  See:
77249         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77250         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77251
77252         * lib/free.c: New file.
77253
77254 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77255
77256         Trivial fixes to Makefile.am parts of module listings.
77257         * modules/strstr: Append strstr.h to lib_SOURCES.
77258         * modules/strcase: Likewise, for strcase.h.
77259
77260 2003-09-27  Karl Berry  <karl@gnu.org>
77261
77262         * config/mkinstalldirs: update from automake.
77263
77264 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77265
77266         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77267         (error_tail): Do not loop, reallocating temporary buffer, since
77268         the output cannot contain more wide characters than the input
77269         contains bytes, the size must be big enough already.  This avoids
77270         one potential size overflow calculation.  Check for size overflow
77271         when calculating temporary buffer size.  Free temporary buffer
77272         when done, if it was allocated with malloc; this plugs a memory
77273         leak.  Remove casts from void * to pointers, that are no longer
77274         needed now that we're assuming C89 or better.
77275
77276         Merge error changes from glibc.
77277
77278         * lib/error.c, error.h: Update copyright notice header to match glibc.
77279         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77280         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77281         Disable cancellation while printing error.
77282         * lib/error.h: Prepend __ to parameter names.
77283
77284 2003-09-26  Jim Meyering  <jim@meyering.net>
77285
77286         * lib/error.c (error_tail): Move some declarations
77287         into inner scope where the local variables are used.
77288
77289 2003-09-26  Bruno Haible  <bruno@clisp.org>
77290
77291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77292         stpncpy().
77293         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77294
77295 2003-09-26  Bruno Haible  <bruno@clisp.org>
77296
77297         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77298         (stpncpy): Define as alias for gnu_stpncpy.
77299         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77300
77301 2003-09-25  Simon Josefsson  <jas@extundo.com>
77302
77303         * lib/xgetdomainname.h: New file.
77304         * lib/xgetdomainname.c: New file.
77305
77306 2003-09-25  Simon Josefsson  <jas@extundo.com>
77307             Bruno Haible  <bruno@clisp.org>
77308
77309         * modules/getdomainname: New file.
77310         * modules/xgetdomainname: New file.
77311         * MODULES.html.sh (func_all_modules): Add getdomainname,
77312         xgetdomainname.
77313
77314 2003-09-25  Simon Josefsson  <jas@extundo.com>
77315             Bruno Haible  <bruno@clisp.org>
77316
77317         * m4/getdomainname.m4: New file.
77318
77319 2003-09-25  Simon Josefsson  <jas@extundo.com>
77320             Bruno Haible  <bruno@clisp.org>
77321
77322         * lib/getdomainname.h: New file.
77323         * lib/getdomainname.c: New file.
77324
77325 2003-09-25  Karl Berry  <karl@gnu.org>
77326
77327         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77328
77329 2003-09-25  Karl Berry  <karl@gnu.org>
77330
77331         * config/install-sh: update from automake.
77332
77333 2003-09-25  Bruno Haible  <bruno@clisp.org>
77334
77335         * modules/version-etc-2: New file, from modules/version-etc with
77336         modifications.
77337         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77338
77339 2003-09-25  Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77342         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77343
77344 2003-09-24  Simon Josefsson  <jas@extundo.com>
77345
77346         * modules/xgethostname: Add xgethostname.h.
77347
77348 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77349
77350         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77351         the buffer associated with the argument.  Bug reported by
77352         Simon Josefsson.
77353
77354 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77355
77356         * README: Document assumptions that 'int' is at least 32 bits
77357         wide, that integer arithmetic is 2's complement without overflow,
77358         that there are no holes in integer values, that adding sizes of
77359         two nonoverlapping objects can't overflow, and that all-bits-zero
77360         yields scalar zero.  Fix spelling and capitalization typos.
77361
77362 2003-09-19  Karl Berry  <karl@gnu.org>
77363
77364         * lib/argp.h: update from libc.
77365
77366 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77367
77368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77369         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77370         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77371
77372 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77373
77374         * gnulib-tool: Use "test -h", not "test -L", for portability
77375         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77376         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77377         (sed_extract_prog): Issue s commands one-by-one, rather than
77378         using \| in one s command.
77379
77380 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77381
77382         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77383         input error, instead of returning NULL the next time we are called
77384         (and therefore losing track of errno).
77385
77386 2003-09-16  Bruno Haible  <bruno@clisp.org>
77387
77388         * gnulib-tool (func_create_testdir): Warn about duplicated
77389         dependencies.
77390
77391 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77392
77393         * modules/argmatch, modules/fatal, modules/obstack,
77394         modules/xalloc, modules/xgethostname: Sort dependencies by
77395         importance, not alphabetically.
77396
77397 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77398
77399         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77400         fails, so that the caller gets the proper errno.
77401
77402         * lib/readutmp.c (read_utmp): Likewise.
77403         Check for fstat error.  Close stream and free storage
77404         when failing.
77405
77406 2003-09-14  Karl Berry  <karl@gnu.org>
77407
77408         * config/srclist.txt (strdup.c): disable for c89 changes.
77409
77410 2003-09-14  Jim Meyering  <jim@meyering.net>
77411
77412         * lib/getloadavg.c: Correct cpp indentation.
77413         * lib/strdup.c: Likewise.
77414         * lib/vasnprintf.c: Likewise.
77415
77416 2003-09-14  Bruno Haible  <bruno@clisp.org>
77417
77418         * modules/fwriteerror: New file.
77419         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77420
77421 2003-09-14  Bruno Haible  <bruno@clisp.org>
77422
77423         * lib/fwriteerror.h: New file.
77424         * lib/fwriteerror.c: New file.
77425
77426 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77427
77428         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77429         modules/xgethostname, modules/xalloc: Depend on exit.
77430
77431 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77432
77433         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77434
77435         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77436         and AC_MINIX, too, so that their extensions are available.
77437
77438         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77439         This macro has been superseded by gl_BACKUPFILE.
77440
77441         More patches to assume C89 or better.
77442
77443         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77444
77445         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77446         unconditionally.
77447         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77448         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77449         Include <string.h>, <stdlib.h> unconditionally.
77450         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77451         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77452         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77453         headers or for string.h.
77454         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77455         or strtoul.
77456
77457         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77458         headers.
77459         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77460         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77461         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77462         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77463         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77465         memcpy, memset.
77466         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77467         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77468         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77469         strtol.
77470         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77471         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77472         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77473         strtoul.
77474
77475 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77476
77477         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77478         * lib/obstack.c [!defined _LIBC]: Likewise.
77479         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77480         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77481         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77482
77483         More changes to assume C89 or better.
77484
77485         * lib/error.c (error_tail): Assume vprintf.
77486
77487         * lib/argmatch.c (getenv): Remove decl.
77488         * lib/progreloc.c (get_full_program_name): Define via prototype.
77489         * lib/setenv.c (clearenv): Likewise.
77490         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77491         needed.
77492         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77493         (malloc, memcpy): Remove decls.
77494         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77495         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77496         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77497         (memcpy): Remove macro.
77498         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77499         (__P): Remove.  All uses removed.
77500         (PTR): Remove.  All uses changed to void *.
77501         (CHAR_BIT, NULL): Remove.
77502         (spaces, zeros, memset_space, memset_zero)
77503         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77504         Remove.
77505         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77506         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77507         Define with prototype.
77508         Remove now-unnecessary prototype decl.
77509         (extra_args_spec): Assume ANSI C.  All uses changed.
77510         (extra_args_spec_iso): Remove.
77511         (my_strftime, emacs_strftimeu): Define via prototype.
77512         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77513         unconditionally.
77514         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77515         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77516         (strtoul, strtol): Remove decls.
77517         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77518         LONG_MAX): Remove.
77519         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77520         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77521         (LOCALE_PARAM_PROTO): New macro.
77522         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77523         (INTERNAL (strtol), strtol): Define with a prototype.
77524         (PARAMS): Remove.  All uses removed.
77525         * lib/tempname.c: Include <string.h> unconditionally.
77526         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77527         * lib/xgethostname.c (main): Define with a prototype.
77528         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77529         Include <stdlib.h> unconditionally.
77530         (calloc, malloc, realloc, free): Remove decls.
77531         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77532         Include <stdlib.h> unconditionally.  Sort include file names.
77533         (strtod): Remove.
77534         (xstrtod): Define with a prototype.
77535         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77536         (strtol, strtoul): Remove decls.
77537
77538 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77539
77540         More patches to assume C89 or better.
77541         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77542         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77543         string.h, memchr, STDC_HEADERS.
77544
77545 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77546
77547         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77548         Include <stdlib.h>, <string.h> unconditionally.
77549         Remove now-unnecessary cast to char *.
77550         * lib/strnlen.c: Include <string.h> unconditionally.
77551         * lib/yesno.c (yesno): Define with a prototype.
77552
77553 2003-09-11  Bruno Haible  <bruno@clisp.org>
77554
77555         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77556
77557 2003-09-10  Jim Meyering  <jim@meyering.net>
77558
77559         * lib/error.c: Correct indentation of cpp directives.
77560
77561 2003-09-10  Bruno Haible  <bruno@clisp.org>
77562
77563         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77564         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77565         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77566         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77567         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77568         <stdlib.h> and <string.h> checks.
77569         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77570         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77571
77572 2003-09-10  Bruno Haible  <bruno@clisp.org>
77573
77574         * lib/strcspn.c: Include <string.h> unconditionally.
77575         * lib/strpbrk.c: Include <string.h> unconditionally.
77576         * lib/strstr.c: Include <string.h> unconditionally.
77577         * lib/unicodeio.c: Include <string.h> unconditionally.
77578         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77579         * lib/unsetenv.c: Likewise.
77580         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77581         * lib/yesno.c: Include <stdlib.h> unconditionally.
77582         (rpmatch): Add prototype.
77583
77584 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77585
77586         More patches to assume C89 or better.
77587         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77588         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77589         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77590         or for string.h.
77591         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77592         stdlib.h.
77593         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77594         C headers.
77595         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77596         string.h.
77597         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77598         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77599         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77600         or for string.h.
77601         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77602         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77603         C headers.
77604         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77605         memcpy.
77606         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77607         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77608         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77609         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77610         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77611         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77612         string.h, free.
77613         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77614         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77615         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77616         C headers, or for string.h.
77617         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77618         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77619         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77620         headers, memory.h, stdlib.h, string.h, strings.h.
77621         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77622         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77623         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77624         strchr.
77625         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77626         headers, memory.h, string.h.
77627         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77628         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77629         free.
77630         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77631         headers.
77632         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77633         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77634         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77635         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77636         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77637
77638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77639
77640         More K&R removal.
77641
77642         * lib/acosl.c (main): Use a prototype.
77643         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77644         tanl.c: Likewise.
77645
77646         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77647
77648         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77649         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77650         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77651         with a prototype.
77652         * lib/getopt.c (const): Remove macro.
77653         Include <string.h> unconditionally.
77654         (my_index): Remove; all uses changed to strchr.
77655         (strlen): Remove decl.
77656         (exchange): Remove forward decl; no longer needed.
77657         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77658         Define with prototype.
77659         * lib/getopt1.c (const): Remove macro.
77660         (getopt_long, getopt_long_only, main): Define with prototype.
77661
77662         * lib/getugroups.c: Include <string.h> unconditionally.
77663
77664         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77665         (getusershell, setusershell, endusershell, readname, main):
77666         Define with prototypes.
77667
77668         * lib/group-member.c: Include group-member.h first.
77669         Include <stdlib.h> unconditionally.
77670
77671         * lib/hard-locale.c: Include hard-locale.h first.
77672         Include <stdlib.h>, <string.h> unconditionally.
77673
77674         * lib/hash.c (free, malloc): Remove decls.
77675         Include <stdlib.h> unconditionally.
77676
77677         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77678         (getenv): Do not declare.
77679
77680         * lib/idcache.c: Include <string.h> unconditionally.
77681
77682         * lib/long-options.c: Include long-options.h first, to test interface.
77683         Include <stdlib.h> unconditionally.
77684
77685         * lib/makepath.c: Include makepath.h first, to test interface.
77686         Include <stdlib.h> and <string.h> unconditionally.
77687
77688         * lib/linebuffer.c: Include <stdlib.h>.
77689         (free): Remove decl.
77690
77691         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77692         stddef.h. rpl_malloc returns void *, not char *.
77693         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77694         prototype.
77695
77696         * lib/md5.h: Include <limits.h> unconditionally.
77697         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77698         (__P): Remove; all uses removed.
77699         * lib/md5.c: Include "md5.h" first.
77700         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77701         md5_buffer, md5_process_bytes, md5_process_block):
77702         Define with prototypes.
77703         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77704         * lib/sha.c: Include "sha.h" first.
77705         Include <stdlib.h>, <string.h> unconditionally.
77706
77707         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77708         * lib/memcmp.c (__ptr_t): Likewise.
77709         * lib/memrchr.c (__ptr_t): Likewise.
77710         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77711         Include <string.h> unconditionally.
77712         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77713         * lib/memchr.c: Include <stdlib.h> unconditionally.
77714         * lib/memchr.c (LONG_MAX): Remove.
77715         * lib/memrchr.c (LONG_MAX): Likewise.
77716         * lib/memchr.c (__memchr): Define via a prototype.
77717         * lib/memrchr.c (__memrchr): Likewise.
77718         * lib/memcmp.c (__P): Remove, and remove all uses.
77719         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77720         Remove forward decls; no longer needed.
77721         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77722         Use types required by C89 in prototype.
77723
77724         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77725         * lib/savedir.c: Likewise.
77726         * lib/mkdir.c (free): Remove decl.
77727         * lib/rmdir.c (rmdir): Define with a prototype.
77728         * lib/savedir.c: Include savedir.h first, to test interface.
77729
77730         * lib/mktime.c (STDC_HEADERS): Remove.
77731         Include <stdlib.h>, <string.h> unconditionally.
77732
77733         * lib/modechange.c: Include <stdlib.h> unconditionally.
77734         (malloc): Remove decl.
77735
77736         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77737         (free): Remove decl.
77738
77739         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77740         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77741         (This type really should be intptr_t, but that's a C99ism.)
77742         (_obstack_memcpy): Remove: all uses changed to memcpy.
77743         Include <string.h> unconditionally.
77744         (struct obstack): Assume __STDC__ for types of members
77745         chunkfun, freefun, extra_arg.
77746         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77747         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77748         obstack_begin, obstack_specify_allocation,
77749         obstack_specify_allocation_with_arg, obstack_chunkfun,
77750         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77751         Remove unprototyped decls and the macros that use them.
77752         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77753         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77754         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77755         (defined __STDC__ && __STDC__)]:
77756         Remove nonprototyped code.
77757         Include <stdlib.h> unconditionally.
77758         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77759         _obstack_allocated_p, _obstack_free, obstack_free,
77760         _obstack_memory_used, print_and_abort):
77761         Define using prototypes.
77762         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77763         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77764         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77765         obstack_next_free, obstack_object_size, obstack_room) [0]:
77766         Remove unused, unprototyped code.
77767
77768         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77769
77770         * lib/physmem.c (physmem_total, physmem_available, main): Define
77771         with prototypes.
77772
77773         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77774         (main): Define with a prototype.
77775
77776         * lib/posixver.c (getenv): Remove decl.
77777
77778         * lib/putenv.c (malloc): Returns void *, not char *.
77779         Include <string.h> unconditionally.
77780         (strchr, memcpy, NULL): Do not define.
77781
77782         * lib/readtokens.c: Include readtokens.h first, to test interface.
77783         Include <stdlib.h>, <string.h> unconditionally.
77784         (init_tokenbuffer): Define with a prototype.
77785
77786         * lib/regex.c (PARAMS): Remove.  All uses removed.
77787         All uses of _RE_ARGS removed, too.
77788         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77789         unconditionally.
77790         (bzero): Assume memset exists.
77791         (memcmp, memcpy, NULL): Remove.
77792         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77793         char, or assignments to local vars of type signed char.
77794         (init_syntax_once, PREFIX(extract_number_and_incr),
77795         PREFIX(print_partial_compiled_pattern),
77796         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77797         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77798         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77799         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77800         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77801         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77802         wcs_compile_range, byte_compile_range, truncate_wchar,
77803         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77804         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77805         count_mbs_length, wcs_re_match_2_internal,
77806         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77807         PREFIX(alt_match_null_string_p),
77808         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77809         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77810         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77811         now-unnecessary declaration, if any.
77812         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77813         regcomp, regexec):
77814         Remove now-unnecessary casts among pointer types.
77815         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77816
77817         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77818         (free): Remove decl.
77819
77820         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77821
77822         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77823         (free): Remove decl.
77824
77825         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77826         * lib/xgetcwd.c: Likewise.
77827
77828         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77829         (free): Remove decl.
77830
77831         * lib/strchrnul.c (strchrnul): Define with a prototype.
77832         Fix bug: c_in was not converted to char before searching.
77833
77834         The following changes are not K&R related:
77835
77836         * lib/group-member.h: Include <sys/types.h>, so that this file is
77837         self-contained.
77838         * lib/makepath.h: Likewise.
77839
77840         * lib/getusershell.c (readname, default_index, line_size, readname):
77841         Use size_t, not int, for sizes.
77842         (readname): If the size overflows, report an error instead of
77843         looping forever.
77844
77845 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77846
77847         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77848         libc.
77849
77850 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77851
77852         * README: New section: portability guidelines.
77853
77854 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77855
77856         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77857         C89 spec.
77858
77859 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77860
77861         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77862
77863 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77864
77865         Assume C89 or better; remove K&R cruft.
77866         A few of these changes were first proposed by Derek Robert Price
77867         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77868
77869         * lib/addext.c: Include <string.h> unconditionally.
77870         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77871         Don't declare getenv or malloc.
77872
77873         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77874         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77875         (NULL): Remove.
77876         (find_stack_direction, alloca): Use prototypes.
77877
77878         * lib/atexit.c (atexit): Define using a prototype.
77879
77880         * lib/basename.c, dirname.c, stripslash.c:
77881         Include <string.h> unconditionally.
77882
77883         * lib/bcopy.c: Include <stddef.h>.
77884         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77885
77886         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77887
77888         * lib/error.h (error, error_at_line, error_print_progname)
77889         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77890         * lib/error.c: Include error.h first, to check interface.
77891         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77892         (VA_START): Remove; all uses changeed to va_start.
77893         (exit, strerror): Remove decls.
77894         (error_print_progname): Prototype uncondionally.
77895         Don't include <errno.h>; no longer needed.
77896         (private_strerror): Remove.
77897         (error_tail): Always define.
77898         (error, error_at_line): Assume C89 or better; always use prototypes.
77899         * lib/fatal.c: Include "fatal.h" first, to test interface.
77900         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77901         (VA_START): Remove; all uses changed to va_start.
77902         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77903         this case.
77904         (exit): Remove decl.
77905         (fatal): Prototype unconditionally.  Assume va_start works.
77906         Abort at end, to pacify gcc.
77907
77908         * lib/euidaccess.c (main): Define with a prototype.
77909
77910         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77911
77912         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77913
77914         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77915         prototypes.
77916         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77917         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77918         (getenv): Remove decl.
77919         (fnmatch): Define using a prototype.
77920         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77921         (FCT): Define using a prototype.
77922
77923         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77924
77925         * lib/gethostname.c: Include <stddef.h>.
77926         (gethostname): Define with prototype.  Length is size_t, not int.
77927
77928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77929
77930         Assume C89 or better; remove K&R cruft.
77931         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77932         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77933         string.h, getenv, malloc.
77934         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77935         headers.
77936         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77937         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77938         do not check for strerror.
77939         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77940         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77941         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77942         do not check for doprnt or vprintf.
77943         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77944         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77945
77946 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77947
77948         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77949         getversion.c should have been removed then, but was accidentally
77950         preserved.
77951
77952         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77953         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77954
77955 2003-09-08  Karl Berry  <karl@gnu.org>
77956
77957         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77958                 config, forget about prep.
77959
77960         * config/depcomp, missing: update from automake.
77961
77962 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77963
77964         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77966
77967 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77968
77969         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77970         copy_tm_result.  Bug reported by Simon Josefsson in
77971         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77972
77973 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77974
77975         * m4/time_r.m4: New file.
77976         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77977         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77978         is. Check for timegm declaration.
77979         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77980         Do not check for gmtime_r.
77981         Replace mktime if __mktime_internal does not exist and if mktime
77982         hasn't been replaced already.
77983
77984 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77985
77986         * lib/time_r.c, lib/time_r.h: New files.
77987
77988         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77989         __localtime_r.
77990         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77991         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77992
77993         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77994         __gmtime_r.
77995         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77996         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77997         Include <time_r.h>.
77998
77999         * lib/timegm.c: Switch to glibc implementation, with the following
78000         changes:
78001         [defined HAVE_CONFIG_H]: Include <config.h>.
78002         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78003         (__mktime_internal) [!defined _LIBC]: New decl.
78004         (__gmtime_r) [!defined _LIBC]: New macro and function.
78005         (timegm): Use a prototype, since gnulib assumes C89.
78006         Do not bother declaring tmp to be const, as it's not really usefu.
78007         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78008         (timegm): Declare only if HAVE_DECL_TIMEGM.
78009
78010 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78011
78012         * MODULES.html.sh (func_all_modules): Add time_r.
78013         * modules/time_r: New file.
78014         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78015         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78016
78017 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78018
78019         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78020         Bug reported by Lute Kamstra in
78021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78022
78023         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78024         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78025         course with correspondingly smaller numbers for tomorrow and
78026         yesterday.  From Tadayoshi Funaba.  Originally installed into
78027         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78028         coreutils merge?).
78029
78030 2003-08-31  Simon Josefsson  <jas@extundo.com>
78031
78032         * modules/timegm: New file.
78033         * MODULES.html.sh (func_all_modules): Add timegm.
78034
78035 2003-08-31  Simon Josefsson  <jas@extundo.com>
78036
78037         * m4/timegm.m4: New file.
78038
78039 2003-08-31  Simon Josefsson  <jas@extundo.com>
78040
78041         * lib/timegm.h: New file.
78042         * lib/timegm.c: New file.  Based on
78043         wget-1.8.2/src/http.c:mktime_from_utc.
78044
78045 2003-08-31  Karl Berry  <karl@gnu.org>
78046
78047         * lib/argp.h: update from libc.
78048
78049 2003-08-28  Bruno Haible  <bruno@clisp.org>
78050
78051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78052         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78053         followed by '#define fnmatch fnmatch_posix' gives an error.
78054
78055 2003-08-28  Bruno Haible  <bruno@clisp.org>
78056
78057         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78058         warning on QNX, which defines O_BINARY to 000000.
78059
78060 2003-08-27  Jim Meyering  <jim@meyering.net>
78061
78062         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78063         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78064         would fail after 32.  Reported by Danny Levinson.  Details here:
78065         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78066
78067 2003-08-24  Bruno Haible  <bruno@clisp.org>
78068
78069         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78070         MSVC7 <stdio.h> is included later.
78071
78072 2003-08-22  Simon Josefsson  <jas@extundo.com>
78073
78074         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78075
78076 2003-08-20  Karl Berry  <karl@gnu.org>
78077
78078         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78079
78080 2003-08-20  Bruno Haible  <bruno@clisp.org>
78081
78082         * modules/progname: New file.
78083         * MODULES.html.sh (func_all_modules): Add progname.
78084
78085 2003-08-20  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/progname.h: New file, from GNU gettext.
78088         * lib/progname.c: New file, from GNU gettext.
78089         * lib/progreloc.c: New file, from GNU gettext.
78090
78091 2003-08-19  Jim Meyering  <jim@meyering.net>
78092
78093         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78094         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78095
78096 2003-08-19  Bruno Haible  <bruno@clisp.org>
78097
78098         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78099         more.
78100
78101 2003-08-19  Bruno Haible  <bruno@clisp.org>
78102
78103         * lib/xstrdup.c: Assume <string.h> exists.
78104
78105 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78106
78107         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78108         in makefile rules.
78109
78110 2003-08-18  Jim Meyering  <jim@meyering.net>
78111
78112         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78113         * m4/lib-ld.m4: Likewise.
78114
78115 2003-08-18  Jim Meyering  <jim@meyering.net>
78116
78117         * lib/setenv.h: Indent nested cpp directive.
78118         * lib/vasnprintf.c: Remove trailing blanks.
78119
78120 2003-08-17  Simon Josefsson  <jas@extundo.com>
78121
78122         * modules/xstrndup: New file.
78123         * MODULES.html.sh (func_all_modules): Add xstrndup.
78124
78125 2003-08-17  Simon Josefsson  <jas@extundo.com>
78126
78127         * modules/argp: Fix autoconf macro name. Add more dependencies.
78128
78129 2003-08-17  Simon Josefsson  <jas@extundo.com>
78130
78131         * m4/xstrndup.m4: New file.
78132
78133 2003-08-17  Simon Josefsson  <jas@extundo.com>
78134
78135         * m4/argp.m4: New file.
78136
78137 2003-08-17  Simon Josefsson  <jas@extundo.com>
78138             Bruno Haible  <bruno@clisp.org>
78139
78140         * lib/xstrndup.h: New file.
78141         * lib/xstrndup.c: New file.
78142
78143 2003-08-17  Bruno Haible  <bruno@clisp.org>
78144
78145         * modules/strndup (Files, Include): Add lib/strndup.h.
78146
78147 2003-08-17  Bruno Haible  <bruno@clisp.org>
78148
78149         * modules/euidaccess (Files): Add lib/euidaccess.h.
78150
78151 2003-08-17  Bruno Haible  <bruno@clisp.org>
78152
78153         * lib/strndup.h: New file.
78154
78155 2003-08-17  Bruno Haible  <bruno@clisp.org>
78156
78157         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78158         like AC_GNU_SOURCE.
78159         * modules/extensions (configure.ac): Comment out the invocation of
78160         gl_USE_SYSTEM_EXTENSIONS.
78161
78162 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78163
78164         Merges from coreutils, etc.
78165         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78166         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78167         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78168         fixing a typo.
78169         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78170         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78171
78172 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78173
78174         Document merge from coreutils.
78175         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78176         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78177         * modules/utime: Add m4/utimes-null.m4.
78178
78179 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78180
78181         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78182         space, undoing this 2003-08-12 change:
78183         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78184
78185 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78186
78187         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78188         strtoul.c from libc, undoing this 2003-08-12 change:
78189         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78190
78191 2003-08-16  Jim Meyering  <jim@meyering.net>
78192
78193         Merges from coreutils.
78194         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78195         prefix.  Adjust cache variables similarly.  Create 500 rather than
78196         just 300 files, to exercise bug on Darwin6.5, too.
78197         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78198         $missing_dir.
78199         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78200         AM_SYS_POSIX_TERMIOS.
78201         Reported by mkc@mathdogs.com.
78202         Also change use of $am_cv_sys_posix_termios
78203         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78204         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78205         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78206         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78207         in /proc/mounts until it finds one with matching device number.  This
78208         is unnecessary when the FILE argument *is* a mount point.  No stat call
78209         is necessary in that case.  So, disable the statvfs-testing code on
78210         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78211         as RedHat bug# 84846.
78212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78213         to 1MB, so as not to render systems with no stack size limit (e.g.,
78214         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78215         Include <unistd.h>.  On some systems,
78216         it is required for the definition of _SC_PAGESIZE.
78217
78218 2003-08-16  Jim Meyering  <jim@meyering.net>
78219
78220         Merge from coreutils.
78221         * lib/xstrtoimax.c: #else #if -> #elif.
78222         * lib/xstrtoumax.c: Likewise.
78223
78224 2003-08-16  Jim Meyering  <jim@meyering.net>
78225
78226         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78227         * m4/utimes.m4: Removed.
78228         * m4/utimes-null.m4: Renamed from utimes.m4.
78229
78230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78231         to 1MB, so as not to render systems with no stack size limit (e.g.,
78232         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78233         Include <unistd.h>.  On some systems,
78234         it is required for the definition of _SC_PAGESIZE.
78235
78236 2003-08-16  Jim Meyering  <jim@meyering.net>
78237         and Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         Merges from coreutils, etc.
78240
78241         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78242         using the latest version from cvs.  This avoids problems with #line
78243         directives using a vendor (Sun) compiler.
78244         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78245         Don't set GETGROUPS_LIB here; now it's
78246         done via getgroups.m4's wrapper function.
78247         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78248         rather than just in sh-util/configure.in, so that the
78249         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78250         same.
78251         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78252         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78253         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78254         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78255         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78256         Remove code that is now done by the newly-required macros.
78257         Append $(EXEEXT) to DF_PROG.
78258         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78259         Do not invoke or require the following here,
78260         since prereq.m4 or some gnulib .m4 now does this for us:
78261         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78262         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78263         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78264         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78265         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78266         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78267         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78268         AC_FUNC_OBSTACK.
78269         Do not replace the following functions, as this is now the job
78270         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78271         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78272         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78273         atexit getpass, strdup, getpagesize.
78274         Replace 'raise'.
78275         Do not check for the following functions, as this is now the job
78276         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78277         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78278         setregid.
78279         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78280         Check for sys/sysctl.h.
78281         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78282         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78283         of checking for ssize_t ourselves.
78284
78285         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78286         Require every macro that gnulib/modules/* suggests for us.
78287         (jm_PREREQ_ADDEXT): New macro.
78288         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78289         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78290
78291         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78292         (gl_PHYSMEM): Use it.
78293         Also check for `table' function.
78294         Check for new headers and functions.
78295         Add check for sys/sysmp.h.
78296         With suggestions from Kaveh Ghazi.
78297         Ignore headers that are present but cannot be compiled.  This
78298         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78299         C 5.4.
78300
78301 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78302
78303         Document merge from coreutils.
78304         * modules/userspec: Depend on posixver.
78305         * modules/strftime: Depend on tzset.
78306
78307 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78308
78309         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78310         rather than tab, after '#' in shell-script copyright notices.
78311         Suggested by Bruno Haible.
78312
78313 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78314
78315         * config/srclist-update: Use three spaces, rather than tab, after '#'
78316         in shell-script copyright notices.  Suggested by Bruno Haible.
78317         Remove unnecessary parenthesization in regular expression.
78318
78319 2003-08-15  Jim Meyering  <jim@meyering.net>
78320
78321         Merge from coreutils.
78322         * lib/xgethostname.c: Include <stdlib.h>.
78323         (xghostname): Don't exit for anything other than memory-related
78324         failure; just return NULL.
78325         * lib/userspec.c: Include "posixver.h".
78326         (parse_user_spec): Accept `.' as a separator only
78327         in pre-POSIX-200112 mode.
78328         * lib/strtoimax.c: Use #elif rather than #else #if.
78329         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78330         Remove function, now that we can rely on a working tzset function.
78331         [!_LIBC]: Ensure that the required autoconf test has been run.
78332         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78333         Use underlying_strftime for %r.
78334         * lib/sha.c: Merge in some clean-up and optimization changes from
78335         glibc.
78336         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78337         Ensure that it is a multiple of 64.
78338         Rearrange loop exit tests so as to avoid performing an
78339         additional fread after encountering an error or EOF.
78340         * lib/realloc.c: Update copyright date.
78341
78342 2003-08-15  Jim Meyering  <jim@meyering.net>
78343         and Paul Eggert  <eggert@twinsun.com>
78344
78345         Merge from coreutils.
78346         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78347         member but strut utmpx does not.  Needed for AIX 4.3.3.
78348         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78349
78350 2003-08-15  Jim Meyering  <jim@meyering.net>
78351         and Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         Merges from coreutils, etc.
78354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78355         Require gl_FUNC_TZSET_CLOBBER.
78356         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78357         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78358         members.
78359
78360 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78361
78362         Help the merge from coreutils.
78363         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78364         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78365         * m4/tzset.m4: Use it too.
78366
78367 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78368
78369         * modules/tzset: New file.
78370
78371 2003-08-14  Jim Meyering  <jim@meyering.net>
78372
78373         Merges from coreutils.
78374         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78375         variable names, rather than @FNMATCH_H@.
78376         * modules/alloca: Likewise for $(ALLOCA_H).
78377
78378         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78379         the three copies of the literal target, `fnmatch.h'.
78380         * modules/alloca (alloca.h): Likewise.
78381
78382 2003-08-14  Jim Meyering  <jim@meyering.net>
78383
78384         Merge from coreutils.
78385         * m4/tzset.m4: New file.
78386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78387         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78388         otherwise, AIX 5.1 systems would end up using the latter.
78389         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78390         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78391         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78392         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78393
78394 2003-08-14  Jim Meyering  <jim@meyering.net>
78395
78396         Merge from coreutils.
78397         * lib/obstack.h: Whitespace changes.
78398         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78399         and xcalloc return values.
78400         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78401         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78402         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78403         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78404         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78405         error from mntctl.
78406         Use mntctl's return value to drive the entry-processing loop, since
78407         we can't rely on the value of the vmt_length member in the last
78408         entry.  On some systems doing so could result in exhausting
78409         virtual memory.  Based in part on a patch from Mike Jetzer.
78410
78411 2003-08-14  Jim Meyering  <jim@meyering.net>
78412         and Paul Eggert  <eggert@twinsun.com>
78413
78414         Merges from coreutils, plus other fixes.
78415         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78416         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78417         for credits and details.  Thanks to Kaveh Ghazi for helping
78418         to keep these files in sync.
78419         (ARRAY_SIZE): Define it.
78420         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78421         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78422         (memcasecmp): Don't assume size_t fits in unsigned int.
78423         Remove casts and duplicate code.
78424         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78425         (memcpy): Remove definition.
78426         Merge in some clean-up and optimization changes from glibc.
78427         [BLOCKSIZE]: Move definition to top of file.
78428         Ensure that it is a multiple of 64.
78429         Rearrange loop exit tests so as to avoid performing an
78430         additional fread after encountering an error or EOF.
78431         * lib/md5.h (md5_uintptr): Define.
78432         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78433         return to the initial working directory.  Preserve errno
78434         for caller.
78435         * lib/idcache.c: Include "xalloc.h".
78436         (xmalloc, xrealloc): Remove decls.
78437         (getuser): Remove casts no longer required in C89.
78438         * lib/human.c: Include stdio.h, for sprintf.
78439         * lib/group-member.c: Include "xalloc.h".
78440         (xmalloc, xrealloc): Remove decls.
78441         (get_group_info): Remove casts no longer required in C89.
78442         * lib/getusershell.c (readname): Remove casts no longer required in
78443         C89.
78444         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78445         * lib/getline.c: Whitespace fix, from coreutils.
78446
78447 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78448
78449         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78450         Check for isascii.
78451
78452         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78453         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78454         Undo previous (whitespace-only) change.
78455
78456 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78457
78458         * lib/exclude.c: Include <ctype.h>
78459         (IN_CTYPE_DOMAIN): New macro.
78460         (is_space): New fn.
78461         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78462         and empty lines.
78463
78464         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78465         Undo previous (whitespace-only) change.
78466
78467 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78468
78469         * config/srclist-update: Change update back to the old behavior,
78470         leaving whitespace alone.  Use one 'sed' command rather than a
78471         pipeline.
78472         (fixlicense): Now a variable, not a function.
78473         (remove_trailing_blanks): Remove.
78474         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78475         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78476         Undo previous (whitespace-only) change.
78477
78478 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78479
78480         Merge from coreutils.
78481         * modules/euidaccess: Add lib_SOURCES, include for new
78482         file euidaccess.h
78483
78484 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78485
78486         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78487         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78488         Normalize leading white space and remove trailing white space.
78489
78490         Merge from coreutils
78491         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78492
78493         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78494         0.12.1.  These files are now being upgraded automatically by
78495         ../config/srclist-update.
78496
78497 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78498
78499         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78500         Normalize leading white space and remove trailing white space.
78501         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78502         notice, as per ../config/srclist-update.
78503
78504         Merge from coreutils.
78505         * lib/euidaccess.h: New file.
78506         * lib/euidaccess.c: Include it.
78507         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78508         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78509         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78510
78511 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78512
78513         * config/srclist-update: Add copyright notice.
78514         (remove_id_lines, remove_trailing_blanks): New constants.
78515         (fixfile): Use them to normalize spacing a bit in copied files.
78516         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78517         Normalize leading white space and remove trailing white space.
78518
78519         * config/texinfo.tex: Sync with texinfo.
78520
78521         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78522         strtoul.c from libc, to merge coreutils whitespace changes.
78523
78524         * config/srclist.txt: Get the following m4 files from gettext:
78525         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78526         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78527         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78528         wint_t.m4.
78529
78530 2003-08-12  Karl Berry  <karl@gnu.org>
78531
78532         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78533         been made.
78534
78535 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78536
78537         * modules/gnu-source, m4/gnu-source.m4:
78538         Remove; we're assuming Autoconf 2.54 or later now.
78539         Suggested by Bruno Haible.
78540         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78541
78542 2003-08-11  Bruno Haible  <bruno@clisp.org>
78543
78544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78545
78546 2003-08-11  Bruno Haible  <bruno@clisp.org>
78547
78548         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78549         (vasnprintf): Use it instead of wcslen.
78550
78551 2003-08-11  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78554         value to ensure that _Bool promotes to int. Use #define for _Bool when
78555         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78556
78557 2003-08-10  Karl Berry  <karl@gnu.org>
78558
78559         * lib/regex.h: update from libc (whitespace fix).
78560
78561 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78562
78563         Merge some files from coreutils.  These changes were
78564         originally made by Jim Meyering.
78565         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78566         many older Unixes require this.
78567         * lib/alloca.c (alloca): Remove cast to argument of free;
78568         no longer needed in C89.
78569         * lib/alloca_.h, regex.h: Fix white space to match
78570         what GNU indent does.
78571
78572 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78573
78574         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78575         apparently Emacs's Unicode mode got confused before my 2003-08-05
78576         checkin.
78577
78578 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78579
78580         * m4/extensions.m4: New file.
78581         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78582         Require gl_USE_SYSTEM_EXTENSIONS.
78583         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78584         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78585
78586 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78587
78588         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78589         * modules/extensions, modules/gnu-source: New files.
78590         * modules/timespec, modules/unlocked-io: Depend on extensions.
78591
78592 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78593
78594         * modules/restrict: New file.
78595         * MODULES.html.sh (func_all_modules): Add restrict.
78596         * modules/regex: Depend on restrict.
78597
78598 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78599
78600         * m4/restrict.m4: New file.
78601         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78602
78603 2003-08-07  Bruno Haible  <bruno@clisp.org>
78604
78605         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78606         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78607
78608 2003-08-07  Bruno Haible  <bruno@clisp.org>
78609
78610         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78611         makes the module 'getndelim2' compatible with the module 'getline'.
78612
78613 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78614
78615         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78616         byte with "\201" to avoid glitches when editing that source file
78617         with multi-gnome-terminal.
78618
78619 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78620
78621         * lib/bumpalloc.h: Remove.
78622
78623 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78624
78625         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78626         * modules/bumpalloc: Remove.
78627
78628 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78629
78630         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78631         GNU coding style.
78632
78633         Merge from coreutils.
78634         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78635         1. From glibc.
78636         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78637         from Karl Berry, implemented by Jim Meyering.
78638         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78639         from Dmitry V. Levin.
78640         Remove anachronistic cast of xrealloc.
78641         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78642         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78643         type. Otherwise, it wouldn't compile with at least /bin/cc on
78644         ymp-cray-unicos9.0.2.X.
78645         Combine two mostly-identical uses of alloca into one.
78646         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78647
78648 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78649
78650         [From Emacs.]
78651
78652         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78653         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78654         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78655         obsolete NLIST_NAME_UNION.
78656         [__GNU__]: Undef BSD and FSCALE.
78657         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78658
78659 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78660
78661         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78662         an enum type, so that it's guaranteed to promote to int.  See:
78663         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78664
78665 2003-08-03  Karl Berry  <karl@gnu.org>
78666
78667         * config/depcomp: update from automake.
78668
78669 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78670
78671         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78672         (strerror): Don't assume that a printable int fits in 14 bytes.
78673
78674 2003-07-31  Bruno Haible  <bruno@clisp.org>
78675
78676         * modules/getpass-gnu: New file.
78677         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78678
78679 2003-07-31  Bruno Haible  <bruno@clisp.org>
78680
78681         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78682
78683 2003-07-24  Karl Berry  <karl@gnu.org>
78684
78685         * config/missing: update from automake.
78686
78687 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78688             Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78691         * lib/getline.c (getline, getdelim): Likewise.
78692         Remove _GNU_SOURCE define; now it's defined in config.h through
78693         m4/getline.m4.
78694
78695 2003-07-23  Karl Berry  <karl@gnu.org>
78696
78697         * config/config.sub: update from prep.
78698
78699 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78700
78701         * modules/xalloc (Depends-on): Add exitfail.
78702         * modules/xmemcoll: Likewise.
78703
78704 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78705
78706         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78707         over-parenthesization in macros.
78708
78709         Sync with coreutils.
78710
78711         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78712         required by C99.
78713
78714         Use `exit_failure' for xalloc and xmemcoll instead of their own
78715         private exit-failure variables.
78716         * lib/xalloc.h (xalloc_exit_failure): Remove.
78717         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78718         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78719         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78720         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78721         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78722
78723 2003-07-20  Jim Meyering  <jim@meyering.net>
78724
78725         * modules/closeout (Depends-on): Add exitfail.
78726         Suggestion from Bruno Haible.
78727
78728 2003-07-19  Karl Berry  <karl@gnu.org>
78729
78730         * config/config.sub: update from prep.
78731
78732 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78733
78734         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78735         Remove.
78736         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78737         to test that it can stand by itself.  Include "exitfail.h".
78738         Clients should set exit_failure instead.
78739         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78740
78741 2003-07-18  Bruno Haible  <bruno@clisp.org>
78742
78743         * modules/getndelim2: New file.
78744         * modules/getline: Share files with module getndelim2.
78745         * modules/getnline: Depend on getndelim2 instead of sharing files with
78746         it. Add getnline.c to lib_SOURCES.
78747         * MODULES.html.sh (func_all_modules): Add getndelim2.
78748
78749 2003-07-18  Bruno Haible  <bruno@clisp.org>
78750
78751         * m4/getndelim2.m4: New file.
78752         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78753         invoke gl_PREREQ_GETNDELIM2.
78754         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78755         gl_PREREQ_GETNDELIM2.
78756         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78757         gl_GETNDELIM2.
78758
78759 2003-07-18  Bruno Haible  <bruno@clisp.org>
78760
78761         * lib/getndelim2.h: New file.
78762         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78763         getndelim2.h.
78764         (getndelim2): Make non-static. Change return type to ssize_t.
78765         * lib/getline.h: Change argument names.
78766         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78767         * lib/getnline.c: Include getndelim2.h.
78768
78769 2003-07-18  Andreas Schwab  <schwab@suse.de>
78770
78771         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78772
78773 2003-07-17  Karl Berry  <karl@gnu.org>
78774
78775         * config/config.sub: update from prep.
78776
78777 2003-07-17  Bruno Haible  <bruno@clisp.org>
78778
78779         * modules/getnline: New file.
78780         * modules/getline: Add lib/getndelim2.c to source file list.
78781         * MODULES.html.sh (func_all_modules): Add getnline.
78782
78783 2003-07-17  Bruno Haible  <bruno@clisp.org>
78784
78785         * m4/getnline.m4: New file.
78786
78787 2003-07-17  Bruno Haible  <bruno@clisp.org>
78788
78789         * m4/Makefile.am.in: Remove file.
78790         * m4/Makefile.am: Remove file.
78791         * m4/Makefile.in: Remove file.
78792
78793 2003-07-17  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/getnline.h: New file.
78796         * lib/getnline.c: New file.
78797         * lib/getndelim2.c: New file, extracted from getline.c.
78798         (getndelim2): Renamed from getdelim2, with added nmax argument.
78799         * lib/getline.c: Include getndelim2.c.
78800         (getdelim2): Moved out to getndelim2.c.
78801         (getline, getdelim): Update.
78802
78803 2003-07-17  Bruno Haible  <bruno@clisp.org>
78804
78805         * lib/Makefile.am: Remove file.
78806         * lib/Makefile.in: Remove file.
78807
78808 2003-07-17  Bruno Haible  <bruno@clisp.org>
78809
78810         * configure.in: Remove file.
78811         * Makefile.in: Remove file.
78812
78813 2003-07-17  Bruno Haible  <bruno@clisp.org>
78814
78815         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78816
78817 2003-07-16  Karl Berry  <karl@gnu.org>
78818
78819         * config/srclist-update: was running fixlicense twice, which caused
78820                 texinfo.tex to be nullified for some reason.  Simplify,
78821                 $gplsrc is no longer needed as far as I can see?
78822
78823 2003-07-16  Jim Meyering  <jim@meyering.net>
78824
78825         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78826
78827 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78828
78829         * config/srclist.txt: Get the following files from gettext-runtime/intl
78830         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78831         ref-del.sin.  From Bruno Haible.
78832         * config/srclist-update (fixfile): Change grep pattern again, since the
78833         previous fix didn't work (there was another trailing $).  Use
78834         '[$]' to escape the $s.
78835
78836 2003-07-15  Karl Berry  <karl@gnu.org>
78837
78838         * lib/vasnprintf.c: update from gettext.
78839
78840 2003-07-15  Karl Berry  <karl@gnu.org>
78841
78842         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78843         gets expanded when surrounded by '$'.
78844
78845 2003-07-15  Jim Meyering  <jim@meyering.net>
78846
78847         * modules/save-cwd: Don't depend on error.  From Derek Price.
78848
78849 2003-07-15  Jim Meyering  <jim@meyering.net>
78850
78851         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78852
78853 2003-07-14  Simon Josefsson  <jas@extundo.com>
78854
78855         * modules/mempcpy: New file.
78856         * MODULES.html.sh (func_all_modules): Add mempcpy.
78857
78858 2003-07-14  Simon Josefsson  <jas@extundo.com>
78859
78860         * m4/mempcpy.m4: New file.
78861
78862 2003-07-14  Simon Josefsson  <jas@extundo.com>
78863
78864         * lib/mempcpy.h: New file.
78865         * lib/mempcpy.c: New file.
78866
78867 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78868
78869         * modules/getdate, modules/posixtm: Depend on mktime.
78870
78871 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78874         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78875         unicodeio.c, unicodeio.h, unlocked-io.h:
78876         Switch from LGPL to GPL.
78877
78878 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78879
78880         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78881         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78882         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78883         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78884         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78885         updated automatically by ../config/srclist-update.  This changes
78886         their license from LPGL to GPL.
78887
78888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78889
78890         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78891         assumed to refer to the root of the most recent stable gettext version.
78892         * config/srclistvars.sh: Add defaults for eggert.
78893         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78894         Match "This program" as well as "The program".  This is needed
78895         for gettext.
78896
78897 2003-07-14  Jim Meyering  <jim@meyering.net>
78898
78899         Don't emit diagnostics.  Let callers do that.
78900         * lib/save-cwd.c: Don't include "error.h".
78901         (save_cwd): Don't call error.  Ensure that errno is valid
78902         when returning nonzero.
78903
78904         * lib/save-cwd.h (restore_cwd): Update prototype.
78905         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78906         Simplify.  Don't call error upon failure.  Let callers do that.
78907         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78908         when auditing is enabled.  But don't bother updating the #if.
78909
78910 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78911
78912         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78913         it breaks C++ compilation.
78914         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78915
78916 2003-07-10  Simon Josefsson  <jas@extundo.com>
78917
78918         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78919
78920 2003-07-10  Jim Meyering  <jim@meyering.net>
78921
78922         * m4/clock_time.m4: Remove trailing blank.
78923         * m4/intmax_t.m4: Likewise.
78924
78925 2003-07-10  Jim Meyering  <jim@meyering.net>
78926
78927         * lib/vasnprintf.c: Remove trailing blanks.
78928         Make cpp indentation consistent.
78929
78930 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78931
78932         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78933         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78934         Switch from LGPL to GPL.
78935
78936 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78937
78938         * config/srclist.txt: Sort sublists.  Add
78939         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78940         that differ from gnulib for one reason or another; we'd like this list
78941         to be smaller but for now let's document what we have.
78942
78943 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78944
78945         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78946         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78947         and sweeter "eval x=$x".
78948         * config/srclist.txt: Get lib/argp* from glibc.
78949
78950 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78951
78952         * lib/mktime.c: Fix some boundary cases and remove need for floating
78953         point.
78954
78955         Issue a compile-time diagnostic if time_t is floating point, or if
78956         two's complement arithmetic is not in effect, or if arithmetic
78957         right shift does not propagate the sign.  These assumptions were
78958         all in the original code but they weren't checked.
78959
78960         (TIME_T_MIDPOINT, verify): New macros.
78961         (__isleap): Remove; it has integer overflow problems.
78962         (leapyear): New function, without those problems.
78963         (ydhms_tm_diff): Remove; splitting into two parts.
78964         (ydhms_diff): New function, containing the arithmetic part of
78965         the old ydhms_tm_diff function.  Issue a compile-time
78966         diagnostic if we are not using C99 integer division.
78967         Avoid casts when possible.
78968         (guess_time_tm): New function, containing the checking part of
78969         the old ydhms_tm_diff function.  Return the new value, rather than
78970         the difference between it and the old.  Accept a new argument T
78971         so that *T specifies the old value.  Check for overflow in the result.
78972
78973         (__mktime_internal): Use a time_t offset, not a long int offset.
78974         This undoes the 2003-06-04 change, which is no longer needed now
78975         that we have better overflow checking.
78976         (localtime_offset): Likewise.
78977
78978         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78979         and long are 64-bit but int is only 32-bit.
78980         (ydhms_diff): Use long int to store year1 and yday1.
78981         Issue a compile-time diagnostic if long int is not wide enough.
78982
78983         (__mktime_internal): Use long int to store adjusted year and yday.
78984         Use plain C rather than preprocessor commands, if that doesn't
78985         affect efficiency.
78986         Check for overflow (and try to repair) after each probe
78987         rather than checking only at the very end.  This avoids some bugs
78988         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78989         does not equal GMT offset at maximum time).
78990         Use integer to check for overflow rather than floating point; this
78991         is more portable to non-IEEE hosts, and is a tad faster.
78992         When we detect that we are oscillating between two values,
78993         don't check whether tm_isdst has the requested value, since
78994         we already know the answer.  When tm_isdst has the wrong value,
78995         use a different heuristic to find the right one, based on the
78996         extreme values actually observed in practice in tz2003a,
78997         rather than the (overly optimistic) "previous 3 calendar quarters".
78998
78999         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79000         "T const" to accommodate glibc style.
79001         (check_result): Use less-confusing report format.  "long" -> "long int.
79002         (main): Likewise.
79003         Don't loop if the iteration overflows time_t.
79004         Allow a negative step in the iteration.
79005
79006 2003-07-06  Karl Berry  <karl@gnu.org>
79007
79008         * config/depcomp: update from automake.
79009         * config/config.sub: update from prep.
79010
79011 2003-07-03  Karl Berry  <karl@gnu.org>
79012
79013         * config/config.guess: update from prep.
79014
79015 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79016
79017         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79018         xreadlink.c now includes it unconditionally.
79019
79020 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79021
79022         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79023         having it depend on HAVE_SYS_TYPES_H.
79024
79025 2003-07-01  Bruno Haible  <bruno@clisp.org>
79026
79027         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79028         <sys/types.h> should be sufficient.
79029         Reported by Paul Eggert.
79030
79031 2003-06-26  Karl Berry  <karl@gnu.org>
79032
79033         * config/depcomp: update from automake.
79034
79035 2003-06-26  Bruno Haible  <bruno@clisp.org>
79036
79037         * modules/human: Depend on module stdbool.
79038
79039 2003-06-25  Bruno Haible  <bruno@clisp.org>
79040
79041         * modules/readlink: New file.
79042         * modules/xreadlink: Depend on it.
79043         * MODULES.html.sh (func_all_modules): Add readlink.
79044
79045 2003-06-25  Bruno Haible  <bruno@clisp.org>
79046
79047         * m4/readlink.m4: New file.
79048
79049 2003-06-25  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/readlink.c: New file.
79052
79053 2003-06-22  Karl Berry  <karl@gnu.org>
79054
79055         * config/srclist.txt: update mkinstalldirs from automake.
79056         * config/mkinstalldirs: update.
79057
79058 2003-06-22  Bruno Haible  <bruno@clisp.org>
79059
79060         Portability to mingw32.
79061         * m4/ssize_t.m4: New file, from GNU gettext.
79062         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79063         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79064
79065 2003-06-22  Bruno Haible  <bruno@clisp.org>
79066
79067         * modules/safe-read: Add m4/ssize_t.m4.
79068         * modules/xreadlink: Add m4/ssize_t.m4.
79069
79070 2003-06-20  Bruno Haible  <bruno@clisp.org>
79071
79072         Assume C89, so PARAMS isn't needed.
79073         * lib/unicodeio.h (PARAMS): Remove.
79074         * lib/unicodeio.c: Don't use PARAMS.
79075
79076 2003-06-18  Karl Berry  <karl@gnu.org>
79077
79078         * config/config.{guess,sub}: update from prep.
79079
79080 2003-06-18  Jim Meyering  <jim@meyering.net>
79081
79082         Merge changes from coreutils.
79083         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79084         Remove explicit declarations of xmalloc and realloc.
79085         Include xalloc.h.
79086         (read_utmp): Remove anachronistic cast of xmalloc.
79087
79088 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79089
79090         Assume C89, so PARAMS isn't needed.
79091         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79092         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79093         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79094         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79095         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79096         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79097         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79098         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79099         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79100         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79101         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79102         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79103         no longer needed. Anyway, config.h should always be included before any
79104         other file.
79105
79106 2003-06-11  Simon Josefsson  <jas@extundo.com>
79107
79108         * modules/sysexits: New file.
79109         * MODULES.html.sh (func_all_modules): Add sysexits.
79110
79111 2003-06-11  Simon Josefsson  <jas@extundo.com>
79112
79113         * lib/sysexit_.h: New file.
79114
79115 2003-06-11  Derek Price  <derek@ximbiot.com>
79116
79117         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79118         necessary.
79119
79120 2003-06-11  Bruno Haible  <bruno@clisp.org>
79121
79122         * m4/sysexits.m4: New file.
79123
79124 2003-06-10  Simon Josefsson  <jas@extundo.com>
79125
79126         * lib/argp.h: New file, from glibc.
79127         * lib/argp-ba.c: New file, from glibc.
79128         * lib/argp-eexst.c: New file, from glibc.
79129         * lib/argp-fmtstream.c: New file, from glibc.
79130         * lib/argp-fmtstream.h: New file, from glibc.
79131         * lib/argp-fs-xinl.c: New file, from glibc.
79132         * lib/argp-help.c: New file, from glibc.
79133         * lib/argp-namefrob.h: New file, from glibc.
79134         * lib/argp-parse.c: New file, from glibc.
79135         * lib/argp-pv.c: New file, from glibc.
79136         * lib/argp-pvh.c: New file, from glibc.
79137         * lib/argp-xinl.c: New file, from glibc.
79138
79139 2003-06-10  Simon Josefsson  <jas@extundo.com>
79140
79141         * modules/strchrnul: New file.
79142
79143 2003-06-10  Simon Josefsson  <jas@extundo.com>
79144
79145         * modules/argp: New file.
79146
79147 2003-06-10  Simon Josefsson  <jas@extundo.com>
79148
79149         * m4/strchrnul.m4: New file.
79150
79151 2003-06-10  Simon Josefsson  <jas@extundo.com>
79152
79153         * lib/strchrnul.h: New file.
79154         * lib/strchrnul.c: New file.
79155
79156 2003-06-10  Bruno Haible  <bruno@clisp.org>
79157
79158         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79159
79160 2003-06-07  Karl Berry  <karl@gnu.org>
79161
79162         * config/config.{guess,sub}: update from prep.
79163
79164 2003-06-07  Jim Meyering  <jim@meyering.net>
79165
79166         * modules/strtod: Use $(...) notation, not @...@ for
79167         AC_REPLACE'd variables.
79168         * modules/localcharset: Likewise.
79169
79170 2003-06-07  Jim Meyering  <jim@meyering.net>
79171
79172         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79173         in place of my name in the copyright comment.
79174         Remove definition and uses of __P.
79175
79176         From coreutils.
79177         * lib/stat.c: Don't declare xmalloc explicitly.
79178         Instead, include "xalloc.h".
79179         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79180         xrealloc, and xcalloc return values.
79181         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79182         Improve comment.
79183         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79184
79185 2003-06-07  Bruno Haible  <bruno@clisp.org>
79186
79187         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79188         avoid AC_CONFIG_LINKS.
79189         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79190         fnmatch.h, to avoid AC_CONFIG_LINKS.
79191         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79192
79193 2003-06-07  Bruno Haible  <bruno@clisp.org>
79194
79195         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79196         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79197         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79198         directory.
79199         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79200         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79201         directory.
79202
79203 2003-06-06  Jim Meyering  <jim@meyering.net>
79204
79205         Merge from coreutils.
79206         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79207         Consolidate declarations and initializations of *_base* locals.
79208
79209         Merge from coreutils.
79210         This avoids a core dump on systems without GNU putenv,
79211         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79212         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79213         (unsetenv): New static function, from GNU libc.
79214         (rpl_putenv): Use it.
79215
79216         * lib/modechange.c: Remove trailing blanks.
79217
79218         Merge from coreutils.
79219         * lib/fsusage.c: Remove declaration of statfs.
79220         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79221
79222         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79223
79224 2003-06-06  Jim Meyering  <jim@meyering.net>
79225
79226         * lib/stdbool_.h: Renamed from stdbool.h.in.
79227
79228 2003-06-06  Jim Meyering  <jim@meyering.net>
79229             Bruno Haible  <bruno@clisp.org>
79230
79231         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79232         Adjust Makefile.am snippet not to redirect directly to target.
79233         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79234
79235 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79236
79237         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79238         mismatch, look in future quarters as well as past.  This fixes a
79239         bug when processing fall-backwards gaps immediately after a long
79240         period of daylight-saving time.
79241
79242         * lib/mktime.c: Assume freestanding C89 or better.
79243         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79244         (__P): Remove; not used.
79245         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79246         (mktime, not_equal_tm, print_tm, check_result,
79247         main): Use prototypes.  Use const * where appropriate.
79248         (main): Fix typo in testing code that uncovered by above changes.
79249         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79250
79251 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79252
79253         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79254         locale.h, localeconv.  This merges changes from coreutils.
79255
79256         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79257         It can be removed after the next Autoconf is released.
79258         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79259         needed.
79260
79261 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79262
79263         * lib/mktime.c: Fix Debian bug 177940
79264         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79265         (localtime_offset): Now long int, not time_t, because we want it
79266         to be guaranteed to be signed.  All uses changed.
79267         (__mktime_internal): If overflow would occur when adding offset,
79268         don't add it.
79269
79270         Merge 'human' changes from coreutils.  Rewrite to support
79271         locale-specific notations like thousands separators.
79272         * lib/human.c: Simplify authorship notice.
79273         Include human.h immediately after config.h.
79274         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79275         <limits.h>: Do not include, since human.h does.
79276         (SIZE_MAX, UINTMAX_MAX): New macros.
79277         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79278         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79279         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79280         (power_letter): Renamed from suffixes.
79281         (generate_suffix_backwards): Remove.
79282         (adjust_value): Now takes int style (because of human.h changes)
79283         and long double value (for greater precision on some platforms).
79284         (group_number): New function.
79285         (human_readable): Use it.  Use integer options, not enum.
79286         Put the options before the sizes in the arg list.
79287         Support all the new options.
79288         The old human_readable function has been removed;
79289         use inttostr.h instead.
79290         (human_readable, default_block_size, humblock):
79291         Use uintmax_t, not int, for block sizes.
79292         (human_readable_inexact, block_size_types): Remove.
79293         (block_size_opts): New constant.
79294         (human_options): Renamed from human_block_size, with new signature
79295         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79296         * lib/human.h: Add copyright and authorship notice.
79297         Include <limits.h> and <stdbool.h> unconditionally.
79298         (PARAMS): Remove.  All uses removed.
79299         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79300         (enum human_inexact_style): Remove tag; now a nameless enum.
79301         (human_floor, human_ceiling, human_round_to_even): Now have
79302         values 2, 0, 1 rather than -1, 1, 0.
79303         (human_group_digits, human_suppress_point_zero, human_autoscale,
79304         human_base_1024, human_SI, human_B): New constants.
79305         (human_readable_inexact, human_block_size): Remove.
79306         (human_readable): Size args are now uintmax_t, not int.
79307         (human_options): New decl.
79308
79309         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79310         unnecessary now that we assume C89 or better.  This change
79311         imported from coreutils.
79312
79313         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79314         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79315         in the 2003-05-30 sync from glibc.
79316
79317         .h files should stand alone, but we shouldn't include <sys/types.h>
79318         if we can get away with just <stddef.h>.
79319
79320         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79321         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79322         rather than <sys/types.h>, as we merely need size_t.
79323         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79324         to get size_t.
79325         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79326         Include <stdio.h>, to get FILE.
79327         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79328         memcasecmp.h has included <stddef.h> and all we need is size_t.
79329         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79330         our interface, instead of including <sys/types.h>
79331
79332 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79333
79334         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79335         now, as glibc mktime is buggy on non-glibc systems.
79336
79337 2003-06-03  Karl Berry  <karl@gnu.org>
79338
79339         * config/config.sub: update from prep.
79340
79341 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79342
79343         [from coreutils]
79344         Fix some minor time-related bugs with POSIX time arguments.
79345         Some valid time stamps were being rejected (notably -1, and
79346         time stamps before 1900 on 64-bit hosts).  And some invalid
79347         time stamps were being accepted, e.g. September 31.
79348
79349         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79350         that we can return (time_t) -1 successfully.
79351         * lib/posixtm.c: Likewise.
79352         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79353         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79354         (t): Remove static var.
79355         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79356         of static var.  All uses changed.
79357         (year): Do not reject years before 1900; they can occur with
79358         64-bit time_t.
79359         (posix_time_parse): Do not check for out-of-range components;
79360         that is now the caller's responsibility, since our checks were
79361         only approximations.
79362         (posixtime): Use mktime to check for out-of-range components,
79363         since it knows them exactly.
79364         If mktime returns (time_t) -1, check whether an error actually occurred
79365         by invoking localtime on -1.
79366         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79367         posixtime failures better.
79368         Improve the test data (in comments only).
79369
79370 2003-06-02  Karl Berry  <karl@gnu.org>
79371
79372         * config/mkinstalldirs (version): new variable.
79373         (--version): new option.
79374         (usage): improve message.
79375
79376 2003-05-30  Karl Berry  <karl@gnu.org>
79377
79378         * lib/mktime.c: update from libc.
79379
79380 2003-05-30  Bruno Haible  <bruno@clisp.org>
79381
79382         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79383         * config/config.rpath: Upgrade to gettext-0.12.1.
79384
79385 2003-05-30  Bruno Haible  <bruno@clisp.org>
79386
79387         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79388         * m4/nls.m4: New file, from gettext-0.12.1.
79389         * m4/po.m4: New file, from gettext-0.12.1.
79390         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79391
79392 2003-05-30  Bruno Haible  <bruno@clisp.org>
79393
79394         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79395         * lib/localcharset.h: Likewise.
79396         * lib/localcharset.c: Likewise.
79397
79398 2003-05-29  Karl Berry  <karl@gnu.org>
79399
79400         * config/config.rpath: update from gettext.
79401
79402 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79403
79404         Assume the headers required for C89 freestanding compilers.
79405         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79406         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79407         * m4/human.m4 (gl_HUMAN): Likewise.
79408         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79409         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79410         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79411         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79413         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79414
79415 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79416
79417         Assume the headers required for C89 freestanding compilers.
79418         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79419         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79420         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79421         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79422         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79423         define, since <limits.h> is guaranteed to do that.
79424         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79425         * lib/exclude.c: Include <stdbool.h> unconditionally.
79426         * lib/tempname.c: Include <stddef.h> unconditionally.
79427         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79428         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79429         <stddef.h> does that.
79430         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79431         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79432         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79433         needed.
79434         * lib/xstrtol.c: Likewise.
79435         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79436         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79437
79438         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79439         warnings on some platforms.
79440
79441         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79442         arbitrarily.
79443
79444 2003-05-26  Jim Meyering  <jim@meyering.net>
79445
79446         Merge in a change from coreutils:
79447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79448         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79449         that condition, rather than `-1' which is slightly misleading.
79450         Change the name of the cache variable to have the gl_ prefix.
79451         Prompted by a patch from Richard Dawe for DJGPP.
79452
79453 2003-05-24  Karl Berry  <karl@gnu.org>
79454
79455         * config/config.guess: update from prep.
79456
79457 2003-05-22  Karl Berry  <karl@gnu.org>
79458
79459         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79460
79461 2003-05-20  Karl Berry  <karl@gnu.org>
79462
79463         * config/config.guess: update from prep.
79464
79465 2003-05-18  Karl Berry  <karl@gnu.org>
79466
79467         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79468         might actually be set by the user.
79469
79470         * config/depcomp, install-sh, mdate-sh: update from automake.
79471
79472 2003-05-17  Bruno Haible  <bruno@clisp.org>
79473
79474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79475         invalid expansion for AC_EGREP_CPP.
79476         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79478         Suggested by Akim Demaille <akim@epita.fr> in
79479         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79480
79481 2003-05-12  Jim Meyering  <jim@meyering.net>
79482
79483         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79484         the space-padded-by-default conversion specifiers, %e, %k, %l.
79485
79486 2003-05-12  Bruno Haible  <bruno@clisp.org>
79487
79488         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79489         the string is longer than 4 KB.
79490
79491 2003-05-11  Karl Berry  <karl@gnu.org>
79492
79493         * config/config.{guess,sub}: update from prep.
79494
79495 2003-05-09  Bruno Haible  <bruno@clisp.org>
79496
79497         * modules/error: Add m4/strerror_r.m4 to file list.
79498
79499 2003-05-03  Bruno Haible  <bruno@clisp.org>
79500
79501         Upgrade to Unicode-4.0.
79502         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79503         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79504         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79505         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79506         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79507         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79508         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79509         Change width of U+E0100..U+E01EF from 1 to 0.
79510
79511 2003-04-25  Jim Meyering  <jim@meyering.net>
79512
79513         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79514         of type size_t, not int.
79515
79516 2003-04-25  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/copy-file.c: Include <stddef.h>, for size_t.
79519
79520 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79521
79522         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79523         code which expansion is under static control.  Patch imported from
79524         Akim Demaille's patch to Bison; see
79525         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79526
79527 2003-04-14  Bruno Haible  <bruno@clisp.org>
79528
79529         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79530
79531 2003-04-11  Jim Meyering  <jim@meyering.net>
79532
79533         Merge changes from Coreutils.
79534
79535         2003-03-22  Jim Meyering  <jim@meyering.net>
79536
79537         * lib/strftime.c (widen): Cast alloca return value to proper type.
79538
79539         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79540
79541         From GNU libc.
79542         * lib/strftime.c (my_strftime): Handle very large width
79543         specifications for numeric values correctly.  Improve checks for
79544         overflow.
79545
79546         2003-01-19  Jim Meyering  <jim@meyering.net>
79547
79548         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79549         definitions.
79550         (nl_get_alt_digit) [! defined my_strftime]: Define.
79551         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79552         _nl_get_alt_digit and _nl_get_walt_digit.
79553
79554         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79555         libc. These changes have no effect outside of _LIBC.
79556
79557 2003-04-10  Bruno Haible  <bruno@clisp.org>
79558
79559         * modules/findprog: New file.
79560         * MODULES.html.sh (func_all_modules): Add it.
79561
79562 2003-04-10  Bruno Haible  <bruno@clisp.org>
79563
79564         * m4/findprog.m4: New file.
79565         * m4/eaccess.m4: New file.
79566
79567 2003-04-10  Bruno Haible  <bruno@clisp.org>
79568
79569         * lib/findprog.h: New file, from GNU gettext.
79570         * lib/findprog.c: New file, from GNU gettext.
79571
79572 2003-04-05  Jim Meyering  <jim@meyering.net>
79573
79574         Merge changes from Coreutils.
79575
79576         * lib/exclude.h (PARAMS): Remove definition and uses.
79577         * lib/exclude.c: Remove uses of `PARAMS'.
79578
79579         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79580         Add test-cases for DOS filenames. Declare program_name.
79581         (main): Set up program_name.  Patch by Rich Dawe.
79582
79583         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79584         error from mntctl.
79585         Use mntctl's return value to drive the entry-processing loop, since
79586         we can't rely on the value of the vmt_length member in the last
79587         entry.  On some systems doing so could result in exhausting
79588         virtual memory.  Based in part on a patch from Mike Jetzer.
79589
79590 2003-04-04  Bruno Haible  <bruno@clisp.org>
79591
79592         * modules/linebreak: New file.
79593         * MODULES.html.sh (func_all_modules): Add it.
79594
79595 2003-04-04  Bruno Haible  <bruno@clisp.org>
79596
79597         * m4/linebreak.m4: New file.
79598
79599 2003-04-04  Bruno Haible  <bruno@clisp.org>
79600
79601         * lib/linebreak.h: New file, from GNU gettext.
79602         * lib/linebreak.c: New file, from GNU gettext with slight
79603         modifications.
79604         * lib/lbrkprop.h: New file, from GNU gettext.
79605
79606 2003-04-03  Bruno Haible  <bruno@clisp.org>
79607
79608         * modules/utf8-ucs4: New file.
79609         * modules/utf16-ucs4: New file.
79610         * modules/ucs4-utf8: New file.
79611         * modules/ucs4-utf16: New file.
79612         * MODULES.html.sh (func_all_modules): Add them.
79613
79614 2003-04-03  Bruno Haible  <bruno@clisp.org>
79615
79616         * m4/utf-ucs4.m4: New file.
79617         * m4/ucs4-utf.m4: New file.
79618
79619 2003-04-03  Bruno Haible  <bruno@clisp.org>
79620
79621         * lib/utf8-ucs4.h: New file, from GNU gettext.
79622         * lib/utf16-ucs4.h: New file, from GNU gettext.
79623         * lib/ucs4-utf8.h: New file, from GNU gettext.
79624         * lib/ucs4-utf16.h: New file, from GNU gettext.
79625
79626 2003-04-02  Bruno Haible  <bruno@clisp.org>
79627
79628         * modules/binary-io: New file.
79629         * MODULES.html.sh (func_all_modules): Add it.
79630
79631 2003-04-02  Bruno Haible  <bruno@clisp.org>
79632
79633         * lib/binary-io.h: New file, from GNU gettext.
79634
79635 2003-04-01  Bruno Haible  <bruno@clisp.org>
79636
79637         * modules/pathname: New file.
79638         * MODULES.html.sh (func_all_modules): Add it.
79639
79640 2003-04-01  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/pathname.h: New file, from GNU gettext.
79643         * lib/concatpath.c: New file, from GNU gettext.
79644
79645 2003-03-30  Bruno Haible  <bruno@clisp.org>
79646
79647         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79648
79649 2003-03-30  Bruno Haible  <bruno@clisp.org>
79650
79651         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79652         function chown() doesn't exist.
79653
79654 2003-03-28  Bruno Haible  <bruno@clisp.org>
79655
79656         * modules/copy-file: New file.
79657         * MODULES.html.sh (func_all_modules): Add it.
79658
79659 2003-03-28  Bruno Haible  <bruno@clisp.org>
79660
79661         * m4/copy-file.m4: New file.
79662
79663 2003-03-28  Bruno Haible  <bruno@clisp.org>
79664
79665         * lib/copy-file.h: New file, from GNU gettext.
79666         * lib/copy-file.c: New file, from GNU gettext.
79667
79668 2003-03-18  Jim Meyering  <jim@meyering.net>
79669
79670         * lib/quote.c (quote_n): Fix typo in comment.
79671
79672 2003-03-18  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79675         checking.
79676         * m4/onceonly_2_57.m4: Likewise.
79677
79678 2003-03-17  Bruno Haible  <bruno@clisp.org>
79679
79680         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79681         (m4_quote): Remove macro.
79682         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79683
79684 2003-03-14  Jim Meyering  <jim@meyering.net>
79685
79686         Merge changes from Coreutils.
79687         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79688         to be const, in order to avoid warnings.
79689         (obstack_room): Likewise.
79690         (obstack_empty_p): Likewise.
79691
79692 2003-03-14  Bruno Haible  <bruno@clisp.org>
79693
79694         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79695         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79696
79697 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79698
79699         Merge changes from Bison.
79700         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79701         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79702         when compiling Bison 1.875's `bitset bset = obstack_alloc
79703         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79704         * lib/hash.c: Include <stdbool.h> unconditionally.
79705
79706 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79707
79708         * m4/onceonly.m4 (m4_quote): New macro.
79709         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79710         Quote AC_FOREACH variable-expansions properly.
79711
79712 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79713
79714         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79715
79716 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79717
79718         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79719         Reported by Bruce Becker; see:
79720         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79721
79722 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79723             Bruno Haible  <bruno@clisp.org>
79724
79725         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79726         Reported by John Hughes, see
79727         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79728
79729 2003-02-20  Bruno Haible  <bruno@clisp.org>
79730
79731         * MODULES.html.sh (func_all_modules): Add poll.
79732
79733 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79734
79735         * modules/poll: New file.
79736
79737 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79738
79739         * lib/poll_.h: New file.
79740         * lib/poll.c: New file.
79741
79742 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79743
79744         * m4/poll.m4: New file.
79745
79746 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79747
79748         * modules/mathl: New file.
79749
79750 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79751
79752         * lib/mathl.h: New file.
79753         * lib/acosl.c: New file.
79754         * lib/asinl.c: New file.
79755         * lib/atanl.c: New file.
79756         * lib/ceill.c: New file.
79757         * lib/cosl.c: New file.
79758         * lib/expl.c: New file.
79759         * lib/floorl.c: New file.
79760         * lib/frexpl.c: New file.
79761         * lib/ldexpl.c: New file.
79762         * lib/logl.c: New file.
79763         * lib/sincosl.c: New file.
79764         * lib/sinl.c: New file.
79765         * lib/sqrtl.c: New file.
79766         * lib/tanl.c: New file.
79767         * lib/trigl.c: New file.
79768         * lib/trigl.h: New file.
79769
79770 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79771
79772         * m4/mathl.m4: New file.
79773
79774 2003-02-18  Bruno Haible  <bruno@clisp.org>
79775
79776         * MODULES.html.sh (func_all_modules): Add mathl.
79777
79778 2003-02-17  Bruno Haible  <bruno@clisp.org>
79779
79780         * modules/mkdtemp: New module.
79781         * MODULES.html.sh (func_all_modules): Add it.
79782
79783 2003-02-17  Bruno Haible  <bruno@clisp.org>
79784
79785         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79786
79787 2003-02-17  Bruno Haible  <bruno@clisp.org>
79788
79789         * lib/mkdtemp.h: New file, from GNU gettext.
79790         * lib/mkdtemp.c: New file, from GNU gettext.
79791
79792 2003-02-02  Jim Meyering  <jim@meyering.net>
79793
79794         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79795         e.g. glibc-2.2.93.
79796
79797 2003-01-31  Bruno Haible  <bruno@clisp.org>
79798
79799         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79800         'rpl_rename'.
79801         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79802         'rpl_strnlen'.
79803         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79804         'rpl_strtod'.
79805         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79806         'rpl_utime'.
79807
79808 2003-01-31  Bruno Haible  <bruno@clisp.org>
79809
79810         * lib/rename.c: #undef rename before defining rpl_rename.
79811         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79812
79813 2003-01-30  Bruno Haible  <bruno@clisp.org>
79814
79815         * modules/vasnprintf, modules/vasprintf: New modules.
79816         * MODULES.html.sh (func_all_modules): Add them.
79817
79818 2003-01-30  Bruno Haible  <bruno@clisp.org>
79819
79820         * m4/signed.m4: New file, from GNU gettext.
79821         * m4/longdouble.m4: New file, from GNU gettext.
79822         * m4/wchar_t.m4: New file, from GNU gettext.
79823         * m4/wint_t.m4: New file, from GNU gettext.
79824         * m4/vasnprintf.m4: New file.
79825         * m4/vasprintf.m4: New file.
79826
79827 2003-01-30  Bruno Haible  <bruno@clisp.org>
79828
79829         * lib/printf-args.h: New file, from GNU gettext.
79830         * lib/printf-args.c: New file, from GNU gettext.
79831         * lib/printf-parse.h: New file, from GNU gettext.
79832         * lib/printf-parse.c: New file, from GNU gettext.
79833         * lib/vasnprintf.h: New file, from GNU gettext.
79834         * lib/vasnprintf.c: New file, from GNU gettext.
79835         * lib/asnprintf.c: New file, from GNU gettext.
79836         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79837         * lib/vasprintf.c: New file, from GNU gettext.
79838         * lib/asprintf.c: New file, from GNU gettext.
79839
79840 2003-01-29  Bruno Haible  <bruno@clisp.org>
79841
79842         * modules/stpncpy: New module.
79843         * MODULES.html.sh (func_all_modules): Add it.
79844
79845 2003-01-29  Bruno Haible  <bruno@clisp.org>
79846
79847         * m4/stpncpy.m4: New file.
79848
79849 2003-01-29  Bruno Haible  <bruno@clisp.org>
79850
79851         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79852         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79853
79854 2003-01-28  Bruno Haible  <bruno@clisp.org>
79855
79856         * modules/c-ctype: New module.
79857         * MODULES.html.sh (func_all_modules): Add it.
79858
79859 2003-01-28  Bruno Haible  <bruno@clisp.org>
79860
79861         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79862         Paul Eggert.
79863         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79864         Paul Eggert.
79865
79866 2003-01-27  Bruno Haible  <bruno@clisp.org>
79867
79868         * modules/xsetenv: New module.
79869         * MODULES.html.sh (func_all_modules): Add it.
79870
79871 2003-01-27  Bruno Haible  <bruno@clisp.org>
79872
79873         * lib/xsetenv.h: New file, from GNU gettext.
79874         * lib/xsetenv.c: New file, from GNU gettext.
79875
79876 2003-01-23  Jim Meyering  <jim@meyering.net>
79877
79878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79879         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79880
79881 2003-01-23  Bruno Haible  <bruno@clisp.org>
79882
79883         * modules/minmax: New module.
79884         * MODULES.html.sh (func_all_modules): Add it.
79885
79886 2003-01-23  Bruno Haible  <bruno@clisp.org>
79887
79888         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79889         Eggert.
79890
79891 2003-01-22  Bruno Haible  <bruno@clisp.org>
79892
79893         * modules/exit: New module.
79894         * MODULES.html.sh (func_all_modules): Add it.
79895
79896 2003-01-22  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/exit.h: New file, from GNU gettext.
79899
79900 2003-01-19  Bruno Haible  <bruno@clisp.org>
79901
79902         * gnulib-tool: Recognize option --extract-maintainer.
79903         (func_get_maintainer): New function.
79904         * modules/*: Add Maintainer entry.
79905
79906 2003-01-16  Jim Meyering  <jim@meyering.net>
79907
79908         * m4/regex.m4: The `regex' struct is both input and output.
79909         Initialize it before each use.  Patch by Tim Waugh.
79910
79911 2003-01-16  Bruno Haible  <bruno@clisp.org>
79912
79913         * MODULES.html.sh: Add a table of contents. Add the module name as
79914         leftmost column. Add hyperlinks.
79915
79916 2003-01-15  Bruno Haible  <bruno@clisp.org>
79917
79918         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79919
79920 2003-01-15  Bruno Haible  <bruno@clisp.org>
79921
79922         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79923         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79924         suffix.
79925
79926 2003-01-15  Bruno Haible  <bruno@clisp.org>
79927
79928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79929
79930 2003-01-15  Bruno Haible  <bruno@clisp.org>
79931
79932         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79933         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79934
79935 2003-01-14  Jim Meyering  <jim@meyering.net>
79936
79937         * lib/same.c (same_name): Tweak a comment.
79938
79939 2003-01-14  Bruno Haible  <bruno@clisp.org>
79940
79941         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79942         when a string comparison is sufficient.
79943
79944 2003-01-14  Bruno Haible  <bruno@clisp.org>
79945
79946         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79947         'unsigned int'.
79948
79949 2003-01-14  Bruno Haible  <bruno@clisp.org>
79950
79951         * lib/hash-pjw.c: Add comment about low quality of this function.
79952
79953 2003-01-13  Bruno Haible  <bruno@clisp.org>
79954
79955         * modules/stpcpy: Distribute lib/stpcpy.h.
79956         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79957
79958 2003-01-13  Bruno Haible  <bruno@clisp.org>
79959
79960         * modules/*: Add a description.
79961         * modules/strpbrk: Fix Makefile.am snippet.
79962         * modules/strtoimax: Fix dependencies.
79963         * modules/strtoumax: Likewise.
79964
79965 2003-01-13  Bruno Haible  <bruno@clisp.org>
79966
79967         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79968         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79969         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79970
79971 2003-01-13  Bruno Haible  <bruno@clisp.org>
79972
79973         * gnulib-tool (func_create_testdir): Store config/* files in the main
79974         directory.
79975         * config.rpath: Move to ...
79976         * config/config.rpath: ... here.
79977         * modules/gettext: Contains config/config.rpath, not config.rpath.
79978         * modules/iconv: Likewise.
79979
79980 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79981
79982         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79983         to avoid collisions with libcurses and libreadline.
79984
79985         * m4/getstr.m4: Remove.
79986         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79987
79988 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79989
79990         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79991         to avoid collisions with libcurses and libreadline.
79992
79993         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79994         * lib/getstr.h, getstr.c: Remove.
79995         * lib/getline.c: Include "getline.h", to check interface.
79996         Move body of old getstr.c here: this defines MIN_CHUNK and
79997         declares getdelim2, which is renamed from getstr.
79998         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79999
80000         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80001         All uses changed.
80002         * lib/linebuffer.h: Likewise.
80003         (readline): Remove backward-compatibility macro.
80004
80005 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80006
80007         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80008         to avoid collisions with libcurses and libreadline.
80009         * getstr: Remove.
80010         * MODULES.html.sh: Remove getstr.
80011         * modules/getline: Depend on unlocked-io, not getstr.
80012
80013 2003-01-12  Jim Meyering  <jim@meyering.net>
80014
80015         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80016
80017 2003-01-10  Bruno Haible  <bruno@clisp.org>
80018
80019         * modules/alloca: Change Makefile.am requirements. Simplify Include
80020         requirements. Add lib/alloca_.h to file list.
80021
80022 2003-01-10  Bruno Haible  <bruno@clisp.org>
80023
80024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80025
80026 2003-01-10  Bruno Haible  <bruno@clisp.org>
80027
80028         * lib/alloca_.h: New file.
80029         * lib/getdate.y: Unconditionally include alloca.h.
80030         * lib/makepath.c: Likewise.
80031         * lib/setenv.c: Likewise.
80032         * lib/userspec.c: Likewise.
80033
80034 2003-01-09  Karl Berry  <karl@gnu.org>
80035
80036         * MODULES.html.sh: include `dirname $0` in PATH, to find
80037         gnulib-tool.
80038
80039 2003-01-09  Bruno Haible  <bruno@clisp.org>
80040
80041         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80042         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80043
80044 2003-01-09  Bruno Haible  <bruno@clisp.org>
80045
80046         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80047
80048 2003-01-09  Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/stdbool.h.in: New file.
80051
80052 2003-01-09  Bruno Haible  <bruno@clisp.org>
80053
80054         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80055         * MODULES.html.sh: Likewise.
80056
80057 2003-01-08  Jim Meyering  <jim@meyering.net>
80058
80059         * lib/full-write.c: Undefine and define-away `const' after inclusion
80060         of errno.h, not before.  Suggestion from Bruno Haible.
80061
80062 2003-01-08  Bruno Haible  <bruno@clisp.org>
80063
80064         * modules/full-read: Depend on full-write.
80065
80066 2003-01-08  Bruno Haible  <bruno@clisp.org>
80067
80068         * lib/safe-read.c: Include specification header first, to ensure its
80069         selfcontainedness.
80070         * lib/full-write.c: Likewise.
80071
80072 2003-01-07  Jim Meyering  <jim@meyering.net>
80073
80074         * lib/full-write.c: Rework so that it may serve to define full_read,
80075         too.
80076         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80077
80078 2003-01-07  Bruno Haible  <bruno@clisp.org>
80079
80080         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80081         <inttypes.h>.
80082         * lib/xstrtol.h: Likewise.
80083         * lib/xstrtoimax.c: Likewise.
80084         * lib/xstrtoumax.c: Likewise.
80085         * lib/human.h: Likewise.
80086
80087         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80088         on systems that have <inttypes.h> but not <stdint.h>.
80089
80090 2003-01-07  Bruno Haible  <bruno@clisp.org>
80091
80092         * MODULES.html.sh: Add copyright notice.
80093         (missed_files): Omit CVS directory entries.
80094         (func_module): Make it work with sed-3.02.
80095         * MODULES.txt: Remove file.
80096
80097 2003-01-06  Jim Meyering  <jim@meyering.net>
80098
80099         * lib/version-etc.c: Update year in translatable copyright string.
80100
80101 2003-01-03  Karl Berry  <karl@gnu.org>
80102
80103         * config/config.{guess,sub}: update from prep.
80104
80105 2003-01-02  Karl Berry  <karl@gnu.org>
80106
80107         * doc/COPYING.DOC: belatedly updated to 1.2.
80108
80109 2003-01-01  Karl Berry  <karl@gnu.org>
80110
80111         * gnulib-tool (func_verify_module): report module name $module in
80112         error message, not $1.
80113         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80114         be created, only if it doesn't exist.
80115         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80116
80117 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80118
80119         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80120
80121 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80122
80123         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80124         memcmp if strcoll doesn't work.
80125
80126 2002-12-31  Bruno Haible  <bruno@clisp.org>
80127
80128         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80129         nonempty.
80130
80131 2002-12-31  Bruno Haible  <bruno@clisp.org>
80132
80133         * lib/memcoll.c (STRCOLL): New macro.
80134         (memcoll): Use it.
80135
80136 2002-12-31  Bruno Haible  <bruno@clisp.org>
80137
80138         * lib/localcharset.h: New file.
80139         * lib/localcharset.c: Include it.
80140         * lib/unicodeio.c: Likewise.
80141
80142 2002-12-31  Bruno Haible  <bruno@clisp.org>
80143
80144         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80145         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80146
80147 2002-12-31  Bruno Haible  <bruno@clisp.org>
80148
80149         * lib/getline.h: Include <stddef.h>, for size_t.
80150
80151         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80152         * lib/unicodeio.c: Don't include <stddef.h>.
80153
80154 2002-12-31  Bruno Haible  <bruno@clisp.org>
80155
80156         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80157         HAVE_TM_ZONE.
80158
80159 2002-12-24  Karl Berry  <karl@gnu.org>
80160
80161         * config/config.guess: update from prep.
80162
80163 2002-12-24  Bruno Haible  <bruno@clisp.org>
80164
80165         General infrasructure.
80166         * m4/README: Rewritten.
80167         * m4/onceonly.m4: New file.
80168         * m4/onceonly_2_57.m4: New file.
80169
80170         Module atexit.
80171         * m4/atexit.m4: New file.
80172
80173         Module strtod.
80174         * m4/strtod.m4: New file.
80175
80176         Module strtol.
80177         * m4/strtol.m4: New file.
80178
80179         Module strtoul.
80180         * m4/strtoul.m4: New file.
80181
80182         Module memchr.
80183         * m4/memchr.m4: New file.
80184
80185         Module memcmp.
80186         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80187         (jm_FUNC_MEMCMP): Invoke it.
80188
80189         Module memcpy.
80190         * m4/memcpy.m4: New file.
80191
80192         Module memmove.
80193         * m4/memmove.m4: New file.
80194
80195         Module memset.
80196         * m4/memset.m4: New file.
80197
80198         Module strcspn.
80199         * m4/strcspn.m4: New file.
80200
80201         Module strpbrk.
80202         * m4/strpbrk.m4: New file.
80203
80204         Module strstr.
80205         * m4/strstr.m4: New file.
80206
80207         Module strerror.
80208         * m4/strerror.m4: New file.
80209
80210         Module mktime.
80211         * m4/mktime.m4: Renamed from jm-mktime.m4.
80212         (gl_PREREQ_MKTIME): New macro.
80213         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80214
80215         Module malloc.
80216         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80217         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80218         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80219
80220         Module realloc.
80221         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80222         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80223         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80224
80225         Module strftime.
80226         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80227         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80228         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80229         gl_TM_GMTOFF.
80230         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80231
80232         Module xalloc.
80233         * m4/xalloc.m4: New file.
80234
80235         Module alloca.
80236         * m4/alloca.m4: New file.
80237
80238         Module putenv.
80239         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80240         (jm_FUNC_PUTENV): Invoke it.
80241
80242         Module setenv.
80243         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80244         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80245         when invoked twice.
80246         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80247         gt_FUNC_SETENV.
80248
80249         Module memrchr.
80250         * m4/memrchr.m4: New file.
80251
80252         Module stpcpy.
80253         * m4/stpcpy.m4: New file.
80254
80255         Module strcase.
80256         * m4/strcase.m4: New file.
80257
80258         Module strdup.
80259         * m4/strdup.m4: New file.
80260
80261         Module strnlen.
80262         * m4/strnlen.m4: New file.
80263
80264         Module strndup.
80265         * m4/strndup.m4: New file.
80266
80267         Module xstrtod.
80268         * m4/xstrtod.m4: New file.
80269
80270         Module xstrtol.
80271         * m4/xstrtol.m4: New file.
80272
80273         Module getdate.
80274         * m4/getdate.m4: New file.
80275
80276         Module unlocked-io.
80277         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80278         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80279         * m4/jm-glibc-io.m4n: Remove file.
80280
80281         Module long-options.
80282         * m4/long-options.m4: New file.
80283
80284         Module md5.
80285         * m4/md5.m4: New file.
80286
80287         Module sha.
80288         * m4/sha.m4: New file.
80289
80290         Module getstr.
80291         * m4/getstr.m4: New file.
80292
80293         Module getline.
80294         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80295         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80296         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80297         simply getline. Infoke gl_PREREQ_GETLINE.
80298
80299         Module obstack.
80300         * m4/obstack.m4: New file.
80301
80302         Module hash.
80303         * m4/hash.m4: New file.
80304
80305         Module readtokens.
80306         * m4/readtokens.m4: New file.
80307
80308         Module strverscmp.
80309         * m4/strverscmp.m4: New file.
80310
80311         Module stdbool.
80312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80313         OSF/1.
80314
80315         Module strtoll.
80316         * m4/strtoll.m4: New file.
80317
80318         Module strtoull.
80319         * m4/strtoull.m4: New file.
80320
80321         Module strtoimax.
80322         * m4/strtoimax.m4: New file.
80323
80324         Module strtoumax.
80325         * m4/strtoumax.m4: New file.
80326
80327         Module xstrtoimax.
80328         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80329         jm_AC_PREREQ_XSTRTOIMAX.
80330         Moved the strtol prerequisites to strtol.m4.
80331         Moved the strtoll prerequisites to strtoll.m4.
80332         Moved the strtoimax prerequisites to strtoimax.m4.
80333
80334         Module xstrtoumax.
80335         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80336         jm_AC_PREREQ_XSTRTOUMAX.
80337         Moved the strtoul prerequisites to strtoul.m4.
80338         Moved the strtoull prerequisites to strtoull.m4.
80339         Moved the strtoumax prerequisites to strtoumax.m4.
80340
80341         Module chown.
80342         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80343         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80344
80345         Module dup2.
80346         * m4/dup2.m4: New file.
80347
80348         Module ftruncate.
80349         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80350         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80351
80352         Module getgroups.
80353         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80354         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80355
80356         Module gettimeofday.
80357         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80358         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80359         gl_PREREQ_GETTIMEOFDAY.
80360
80361         Module mkdir.
80362         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80363         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80364
80365         Module mkstemp.
80366         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80367         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80368         jm_AC_TYPE_UINTMAX_T.
80369         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80370
80371         Module stat.
80372         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80373         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80374
80375         Module lstat.
80376         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80377         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80378
80379         Module timespec.
80380         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80381         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80382         * m4/st_mtim.m4: Indentation.
80383
80384         Module nanosleep.
80385         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80386         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80387         gl_PREREQ_NANOSLEEP.
80388
80389         Module regex.
80390         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80391         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80392         (gl_REGEX): New macro.
80393
80394         Module rename.
80395         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80396         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80397
80398         Module rmdir.
80399         * m4/rmdir.m4: New file.
80400
80401         Module utime.
80402         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80403         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80404         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80405
80406         Module dirname.
80407         * m4/dirname.m4: New file.
80408
80409         Module getopt.
80410         * m4/getopt.m4: New file.
80411
80412         Module unistd-safer.
80413         * m4/unistd-safer.m4: New file.
80414
80415         Module fnmatch.
80416         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80417         declaration.
80418         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80419         (gl_FUNC_FNMATCH_POSIX): New macro.
80420         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80421         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80422         simply fnmatch.
80423
80424         Module exclude.
80425         * m4/exclude.m4: New file.
80426
80427         Module human.
80428         * m4/human.m4: New file.
80429
80430         Module acl.
80431         * m4/acl.m4: Nop.
80432
80433         Module backupfile.
80434         * m4/backupfile.m4: New file.
80435         * m4/d-ino.m4: Indentation.
80436
80437         Module fsusage.
80438         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80439         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80440         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80441
80442         Module dirfd.
80443         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80444         requirements.
80445
80446         Module euidaccess.
80447         * m4/euidaccess.m4: New file.
80448
80449         Module file-type.
80450         * m4/file-type.m4: New file.
80451
80452         Module fileblocks.
80453         * m4/fileblocks.m4: New file.
80454
80455         Module filemode.
80456         * m4/filemode.m4: New file.
80457
80458         Module isdir.
80459         * m4/isdir.m4: New file.
80460
80461         Module lchown.
80462         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80463         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80464
80465         Module makepath.
80466         * m4/makepath.m4: New file.
80467
80468         Module modechange.
80469         * m4/modechange.m4: New file.
80470
80471         Module mountlist.
80472         * m4/mountlist.m4: New file.
80473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80474         Indentation.
80475
80476         Module path-concat.
80477         * m4/path-concat.m4: New file.
80478
80479         Module pathmax.
80480         * m4/pathmax.m4: New file.
80481
80482         Module same.
80483         * m4/same.m4: New file.
80484
80485         Module save-cwd.
80486         * m4/save-cwd.m4: New file.
80487
80488         Module savedir.
80489         * m4/savedir.m4: New file.
80490
80491         Module xgetcwd.
80492         * m4/xgetcwd.m4: New file.
80493         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80494
80495         Module xreadlink.
80496         * m4/xreadlink.m4: New file.
80497
80498         Module safe-read.
80499         * m4/safe-read.m4: New file.
80500
80501         Module safe-write.
80502         * m4/safe-write.m4: New file.
80503
80504         Module closeout.
80505         * m4/closeout.m4: New file.
80506
80507         Module stdio-safer.
80508         * m4/stdio-safer.m4: New file.
80509
80510         Module getpass.
80511         * m4/getpass.m4: New file.
80512
80513         Module getugroups.
80514         * m4/getugroups.m4: New file.
80515
80516         Module group-member.
80517         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80518         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80519
80520         Module idcache.
80521         * m4/idcache.m4: New file.
80522
80523         Module userspec.
80524         * m4/userspec.m4: New file.
80525
80526         Module gettime.
80527         * m4/clock_time.m4: New file.
80528         * m4/gettime.m4: New file.
80529
80530         Module settime.
80531         * m4/settime.m4: New file.
80532
80533         Module posixtm.
80534         * m4/posixtm.m4: New file.
80535
80536         Module gethostname.
80537         * m4/gethostname.m4: New file.
80538
80539         Module canon-host.
80540         * m4/canon-host.m4: New file.
80541
80542         Module gettext.
80543         * m4/codeset.m4: New file, from gettext-0.11.5.
80544         * m4/gettext.m4: New file, from gettext-0.11.5.
80545         * m4/glibc21.m4: New file, from gettext-0.11.5.
80546         * m4/iconv.m4: New file, from gettext-0.11.5.
80547         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80548         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80549         * m4/inttypes.m4: New file, from gettext-0.11.5.
80550         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80551         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80552         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80553         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80554         * m4/lib-link.m4: New file, from gettext-0.11.5.
80555         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80556         * m4/progtest.m4: New file, from gettext-0.11.5.
80557         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80558         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80559         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80560
80561         Module localcharset.
80562         * m4/localcharset.m4: New file.
80563
80564         Module hard-locale.
80565         * m4/hard-locale.m4: New file.
80566
80567         Module mbswidth.
80568         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80569         onceonly macros.
80570         * m4/mbrtowc.m4: Add comment.
80571
80572         Module memcasecmp.
80573         * m4/memcasecmp.m4: New file.
80574
80575         Module memcoll.
80576         * m4/memcoll.m4: New file.
80577
80578         Module unicodeio.
80579         * m4/unicodeio.m4: New file.
80580
80581         Module rpmatch.
80582         * m4/rpmatch.m4: New file.
80583
80584         Module yesno.
80585         * m4/yesno.m4: New file.
80586
80587         Module exitfail.
80588         * m4/exitfail.m4: New file.
80589
80590         Module c-stack.
80591         * m4/c-stack.m4 (gl_C_STACK): New macro.
80592         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80593
80594         Module error.
80595         * m4/error.m4 (gl_ERROR): New macro.
80596         (jm_PREREQ_ERROR): Use onceonly macros.
80597
80598         Module fatal.
80599         * m4/fatal.m4: New file.
80600
80601         Module getloadavg.
80602         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80603         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80604
80605         Module getpagesize.
80606         * m4/getpagesize.m4: New file.
80607
80608         Module getusershell.
80609         * m4/getusershell.m4: New file.
80610
80611         Module physmem.
80612         * m4/physmem.m4: New file.
80613
80614         Module posixver.
80615         * m4/posixver.m4: New file.
80616
80617         Module quotearg.
80618         * m4/quotearg.m4: New file.
80619
80620         Module quote.
80621         * m4/quote.m4: New file.
80622
80623         Module readutmp.
80624         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80625
80626         Module sig2str.
80627         * m4/sig2str.m4: New file.
80628
80629         Other.
80630         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80631         ulonglong.m4.
80632         * m4/intmax_t.m4: New file.
80633         * m4/d-type.m4: Indentation.
80634         * m4/jm-macros.m4: Update.
80635         * m4/prereq.m4 (jm_PREREQ): Update.
80636         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80637         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80638         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80639         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80640         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80641         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80642         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80643         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80644         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80645         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80646         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80647         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80648         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80649         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80650         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80651         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80652         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80653         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80654         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80655
80656 2002-12-24  Bruno Haible  <bruno@clisp.org>
80657
80658         * MODULES.txt: Update according to m4/ changes.
80659
80660         Module gettext.
80661         * config.rpath: New file, from gettext-0.11.5.
80662
80663         * modules/*: New module descriptions.
80664         * gnulib-tool: New file.
80665         * MODULES.html.sh: New file.
80666
80667 2002-12-21  Karl Berry  <karl@gnu.org>
80668
80669         * doc/fdl.texi: update to version 1.2.
80670
80671 2002-12-19  Karl Berry  <karl@gnu.org>
80672
80673         * config/config.guess: update from prep.
80674
80675 2002-12-18  Bruno Haible  <bruno@clisp.org>
80676
80677         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80678         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80679
80680 2002-12-17  Bruno Haible  <bruno@clisp.org>
80681
80682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80683         stdlib.h, string.h.
80684
80685 2002-12-17  Bruno Haible  <bruno@clisp.org>
80686
80687         * lib/canon-host.c (strdup): Remove unused declaration.
80688
80689         * lib/fsusage.c: Include full_read.h.
80690         (get_fs_usage): Use full_read instead of safe_read.
80691
80692         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80693
80694 2002-12-12  Karl Berry  <karl@gnu.org>
80695
80696         * config/config.guess: update from prep.
80697
80698 2002-12-11  Bruno Haible  <bruno@clisp.org>
80699
80700         * m4/setenv.m4: New file, from gettext-0.11.5.
80701
80702 2002-12-11  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80705         not unsetenv().
80706         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80707         modifications:
80708
80709         2002-12-11  Bruno Haible  <bruno@clisp.org>
80710
80711                 * setenv.c (alloca): Fall back to malloc.
80712                 (freea): New macro.
80713                 (setenv): Use freea() to free memory allocated with alloca().
80714
80715         2002-11-13  Bruno Haible  <bruno@clisp.org>
80716
80717                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80718                 function declarations.
80719                 * unsetenv.c (unsetenv): Likewise.
80720
80721         2002-03-04  Bruno Haible  <bruno@clisp.org>
80722
80723                 Portability to AIX 4.3.3.
80724                 * unsetenv.c: New file, extracted from setenv.c.
80725                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80726
80727         2001-12-20  Bruno Haible  <bruno@clisp.org>
80728
80729                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80730                 use malloc instead. For SunOS 4.
80731
80732         2001-12-11  Bruno Haible  <bruno@clisp.org>
80733
80734                 * setenv.c: Declare alloca.
80735                 (compar_fn_t): New typedef.
80736                 (KNOWN_VALUE, STORE_VALUE): Use it.
80737
80738         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80739         setenv.h.
80740
80741 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80742
80743         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80744         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80745         Choose values that are less likely to collide with system fnmatch
80746         options.
80747         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80748         defined (e.g., a pure POSIX system).
80749         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80750         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80751
80752 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80753
80754         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80755         a pain in practice to deal with generated m4 files.  This change
80756         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80757
80758         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80759         and jm-glibc-io.m4, as they are no longer a special case.
80760         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80761         kludge and the auto-generation stuff.  Check only whether the
80762         functions are declared, not whether they exist, since older hosts
80763         that don't declare the functions can't use the optimization anyway.
80764
80765 2002-12-06  Jim Meyering  <jim@meyering.net>
80766
80767         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80768
80769         Merge in changes from libc's misc/error.c, in preparation
80770         for the merge of gnulib's changes back into libc.
80771
80772         * lib/error.c (_): Define only if not already defined.
80773         Move definition to follow all #include directives.
80774         Include unlocked-io.h only if !_LIBC.
80775         [_LIBC]: Include <libio/libioP.h>.
80776         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80777         (fflush): Tweak definition to use INTUSE.
80778         (putc): Define.
80779
80780 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80781
80782         * lib/alloca.c [defined emacs]: Include "lisp.h".
80783         (xalloc_die) [defined emacs]: New macro.
80784         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80785         [! defined emacs]: Include <xalloc.h>.
80786         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80787         (pointer): Typedef to POINTER_TYPE *.
80788         (malloc): Remove decl; we now always use xmalloc.
80789         (alloca): Use old-style definition, since Emacs needs this.
80790         Check for arithmetic overflow when computing combined size.
80791
80792 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80793
80794         Do not generate unlocked-io.h automatically, since it's easier to
80795         maintain it by hand.
80796
80797         * lib/unlocked-io.h: New file, from GNU diffutils,
80798         but with proper copyright notice and attribution.
80799         * lib/gen-uio: Remove.
80800         * lib/Makefile.am: Add copyright notice.
80801         (libfetish_a_SOURCES): Add unlocked-io.h.
80802         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80803         (DISTCLEANFILES, io_functions): Remove macros.
80804         (EXTRA_DIST): Remove gen_uio.
80805         (unlocked-io.h): Remove rule.
80806
80807 2002-12-04  Jim Meyering  <jim@meyering.net>
80808
80809         Reflect the fact that stat.c and lstat.c are no longer generated.
80810         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80811         (DISTCLEANFILES): Likewise.
80812         (EXTRA_DIST): Likewise.
80813         (all_local): Don't depend on stat.c or lstat.c.
80814         (stat.c, lstat.c): Remove rules.
80815         (EXTRA_DIST): Remove xstat.in.
80816
80817         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80818         * lib/stat.c: New file.  Contents mostly from xstat.in.
80819         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80820         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80821
80822         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80823         too.
80824         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80825
80826 2002-12-03  Jim Meyering  <jim@meyering.net>
80827
80828         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80829         but not semantics, to minimize the differences between these two files.
80830         (safe_read): Change comment to mention SAFE_READ_ERROR.
80831
80832         * lib/safe-read.c (IS_EINTR): Define.
80833         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80834
80835 2002-12-02  Jim Meyering  <jim@meyering.net>
80836
80837         * lib/safe-read.c (EINTR): Define.
80838         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80839         (INT_MAX): Provide fallback.
80840         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80841
80842         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80843
80844 2002-12-02  Bruno Haible  <bruno@clisp.org>
80845
80846         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80847         Define, taken from safe-read.c.
80848         (INT_MAX): Provide fallback.
80849         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80850         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80851
80852         * lib/safe-read.c (EINTR): Remove definition.
80853         (safe_read): Don't use EINTR if it is absent.
80854
80855 2002-12-01  Jim Meyering  <jim@meyering.net>
80856
80857         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80858         zero.
80859         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80860
80861 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80862
80863         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80864         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80865         with `if (! (value < limit)) abort ();', for readability.
80866
80867 2002-11-26  Karl Berry  <karl@gnu.org>
80868
80869         * lib/strdup.c: copy from libc again, with jim's ok.
80870         * lib/.cppi-disable: re-add strdup.c
80871
80872 2002-11-25  Karl Berry  <karl@gnu.org>
80873
80874         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80875         instead of "strtol.c".
80876
80877 2002-11-25  Karl Berry  <karl@gnu.org>
80878
80879         * config/install-sh: update from automake for variable quoting, $0 in
80880         error msgs, etc.
80881
80882         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80883         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80884         entry.
80885
80886 2002-11-25  Jim Meyering  <jim@meyering.net>
80887
80888         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80889
80890 2002-11-24  Karl Berry  <karl@gnu.org>
80891
80892         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80893         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80894
80895 2002-11-24  Jim Meyering  <jim@meyering.net>
80896
80897         Update from coreutils:
80898
80899         * lib/mktime.c: Merge in changes from libc.
80900
80901         Avoid a link-time failure on some Linux systems.
80902         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80903         (otherwise).
80904         (__mon_yday): Declare with the STATIC attribute.
80905         (__mktime_internal): Likewise.
80906         Based on a report from Greg Schafer.
80907
80908 2002-11-23  Jim Meyering  <jim@meyering.net>
80909
80910         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80911         Use `unsigned', not `int', as type of index.
80912
80913         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80914
80915         * lib/fsusage.c: Remove unneeded parentheses around operands of
80916         `defined'.
80917
80918 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80919
80920         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80921         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80922         so that we can be included first.
80923         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80924         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80925         No need to include stddef.h or sys/types.h any more.
80926         Surround local include files with "", not "<>".
80927         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80928         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80929         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80930         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80931         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80932         (ISPRINT): Remove; no longer needed now that we assume C89.
80933
80934         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80935         Preserve errno.
80936
80937         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80938         quotearg_char): Use SIZE_MAX rather than
80939         (size_t) -1 when we are talking about "infinity".
80940
80941         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80942
80943 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80944
80945         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80946         hint that one should use `if (! x) abort ();' rather than `assert
80947         (x);', and anyway it's one less thing to worry about configuring.
80948         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80949         hash_rehash, hash_insert): Use abort rather than assert.
80950
80951 2002-11-22  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/safe-read.h: Assume C89. Add comments.
80954         (safe_read): Change return type to size_t.
80955         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80956         byte counts > SSIZE_MAX correctly.
80957         * lib/safe-write.h: New file.
80958         * lib/safe-write.c: New file.
80959         * lib/full-read.h: New file.
80960         * lib/full-read.c: New file.
80961         * lib/full-write.h: Assume C89. Add comments.
80962         * lib/full-write.c: Include safe-write.h.
80963         (full_write): Rewritten to use safe_write.
80964         Suggested by Jim Meyering and Paul Eggert.
80965
80966 2002-11-21  Jim Meyering  <jim@meyering.net>
80967
80968         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80969
80970         Merge in changes from the coreutils.
80971
80972         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80973         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80974         <stdint.h>.
80975         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80976         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80977         int.  Work more efficiently if X is the same width as uintmax_t.
80978         Do not compare X to -1, to avoid bogus compiler warning.
80979         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80980         Don't assume that f_frsize and f_bsize are the same type.
80981
80982         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80983         warning on FreeBSD.
80984
80985         * lib/makepath.c (make_path): Restore umask *before* creating the final
80986         component.
80987         (make_path): Minor reformatting.
80988
80989         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80990         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80991         HAVE_MALLOC/HAVE_REALLOC.
80992
80993         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80994         dummy ones.  At least on GNU/Linux systems, `auto' means something
80995         else.
80996         From Michael Stone.
80997
80998 2002-11-21  Bruno Haible  <bruno@clisp.org>
80999
81000         Remove case insensitive option matching.
81001         * lib/argmatch.h (argcasematch): Remove declaration.
81002         (ARGCASEMATCH): Remove macro.
81003         (__xargmatch_internal): Remove case_sensitive argument.
81004         (XARGMATCH): Update.
81005         (XARGCASEMATCH): Remove macro.
81006         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81007         case_sensitive argument.
81008         (argcasematch): Remove function.
81009         (__xargmatch_internal): Remove case_sensitive argument.
81010         (main): Use XARGMATCH instead of XARGCASEMATCH.
81011
81012         * lib/xmalloc.c: Change compile-time error message. Add comment about
81013         required autoconf version.
81014
81015 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81016
81017         Merge argmatch cleanups from Bison.  Assume C89.
81018
81019         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81020         Include stdlib.h, for EXIT_FAILURE.
81021         Always include <string.h>, since we assume C89.
81022         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81023         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81024         Include <stddef.h> instead, since it's all we need for size_t.
81025         (PARAMS): Remove.  All uses removed.
81026         (ARRAY_CARDINALITY): Do not bother to #undef.
81027         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81028         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81029         Remove unnecessary parentheses.
81030         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81031         Insert necessary parentheses.
81032         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81033         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81034
81035 2002-11-19  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81038         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81039
81040         * lib/mbswidth.h (PARAMS): Remove macro.
81041         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81042         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81043
81044         * lib/gcd.h (PARAMS): Remove macro.
81045         (gcd): Use ANSI C function declarations.
81046         * lib/gcd.c (gcd): Likewise.
81047
81048 2002-11-15  Bruno Haible  <bruno@clisp.org>
81049
81050         * lib/strcspn.c: Include <stddef.h>.
81051         (strcspn): Use ANSI C function declaration. Change return type to
81052         size_t. Use NULL.
81053         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81054         (strpbrk): Use NULL.
81055         * lib/strpbrk.h (PARAMS): Remove macro.
81056         (strpbrk): Use ANSI C function declaration.
81057         * lib/strstr.c: Don't include <sys/types.h>.
81058         * lib/strstr.h (PARAMS): Remove macro.
81059         (strstr): Use ANSI C function declarations.
81060
81061 2002-11-14  Karl Berry  <karl@gnu.org>
81062
81063         * config/mkinstalldirs: `do' on separate line, instead of
81064         `for var; do'.
81065
81066 2002-11-06  Bruno Haible  <bruno@clisp.org>
81067
81068         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81069         * lib/gcd.c (gcd): Likewise.
81070
81071 2002-11-05  Bruno Haible  <bruno@clisp.org>
81072
81073         * lib/gcd.h: New file, from gettext-0.11.5.
81074         * lib/gcd.c: New file, from gettext-0.11.5.
81075
81076 2002-11-05  Bruno Haible  <bruno@clisp.org>
81077
81078         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81079         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81080         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81081         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81082
81083         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81084         <libintl.h>.
81085         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81086         <libintl.h>.
81087
81088         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81089         * lib/human.c: Include gettext.h instead of <libintl.h>.
81090         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81091         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81092         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81093         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81094         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81095         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81096         (textdomain): Remove definition.
81097         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81098
81099         * lib/long-options.c: Remove include of <libintl.h> and definition of
81100         _.
81101         * lib/same.c: Remove include of <libintl.h> and definition of _.
81102
81103 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81104
81105         * lib/config.charset: A few additions for Solaris.
81106
81107 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81108
81109         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81110         * lib/localcharset.c (locale_charset): Declare as extern "C".
81111
81112 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81113
81114         * lib/config.charset: msdos in uk_UA uses CP1125.
81115
81116 2002-11-04  Bruno Haible  <bruno@clisp.org>
81117
81118         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81119         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81120         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81121         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81122         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81123
81124 2002-11-04  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/localcharset.c (locale_charset): Don't return an empty string.
81127
81128 2002-11-04  Bruno Haible  <bruno@clisp.org>
81129
81130         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81131         aliases.
81132
81133 2002-11-04  Bruno Haible  <bruno@clisp.org>
81134
81135         * lib/config.charset: Update for newest glibc. Add canonical names
81136         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81137
81138 2002-11-04  Bruno Haible  <bruno@clisp.org>
81139
81140         * lib/config.charset: Add support for NetBSD.
81141
81142 2002-11-04  Bruno Haible  <bruno@clisp.org>
81143
81144         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81145
81146 2002-11-01  Bruno Haible  <bruno@clisp.org>
81147
81148         * configure.in: Add AC_CONFIG_AUX_DIR call.
81149         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81150         test/Makefile.
81151         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81152
81153 2002-09-28  Karl Berry  <karl@gnu.org>
81154
81155         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81156         installed automake until the next release, since changes have been
81157         made.
81158
81159 2002-09-25  Karl Berry  <karl@gnu.org>
81160
81161         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81162         * lib/getopt*: copy from libc/posix.
81163         * lib/gettext.h: copy from gettext.
81164         * lib/.cppi-disable: add strdup.c, gettext.h.
81165
81166 2002-09-25  Karl Berry  <karl@gnu.org>
81167
81168         * config/srclist.txt: enable gettext.h check.
81169         * config/config.{guess,sub}: update from prep.
81170         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81171                 from automake 1.6.3.
81172         See srclist*.
81173
81174 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81175
81176         * regex.c (PATFETCH): Remove the translating fetch.
81177         (PATFETCH_RAW): Rename to PATFETCH.
81178         (set_image_of_range): New fun.
81179         (SET_RANGE_TABLE_WORK_AREA): Use it.
81180         (regex_compile): Don't translate the pattern chars so eagerly.
81181         Only do it when inserting an `exactn' bytecode or when handling
81182         a char-range.
81183         (mutually_exclusive_p): Avoid empty statement.
81184
81185 2002-07-06  Jim Meyering  <meyering@lucent.com>
81186
81187         * m4/README: Don't mention Makefile.am.in.
81188         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81189
81190 2002-07-01  Jim Meyering  <meyering@lucent.com>
81191
81192         * lib/c-stack.c: Include sys/time.h.
81193         From Volker Borchert.
81194
81195 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81196
81197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81198
81199 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81200
81201         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81202         New macro.  Use it uniformly instead of
81203         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81204         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81205         reported by Vin Shelton.
81206
81207 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81208
81209         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81210         Do not assume SA_SIGINFO behavior.
81211         Bug reported by Jim Meyering on NetBSD 1.5.2.
81212
81213 2002-06-22  Jim Meyering  <meyering@lucent.com>
81214
81215         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81217
81218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81219         now that configure.ac uses AC_GNU_SOURCE.
81220         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81221         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81222
81223         Update to latest tools.  Suggestions from Paul Eggert.
81224         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81225         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81226         * m4/fnmatch.m4: Likewise.
81227         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81228         to AC_HEADER_STDBOOL
81229
81230 2002-06-22  Jim Meyering  <meyering@lucent.com>
81231
81232         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81233         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81234
81235 2002-06-22  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81238
81239         * lib/exitfail.c, exitfail.h: Likewise.
81240         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81241
81242         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81243         of fnmatch.h.
81244         (EXTRA_DIST): Add fnmatch_loop.c.
81245         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81246
81247         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81248         * lib/fnmatch.c: Update from diffutils-2.8.2.
81249         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81250         * lib/fnmatch.h: Remove file.
81251
81252 2002-06-21  Jim Meyering  <meyering@lucent.com>
81253
81254         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81255         * m4/mbrtowc.m4: Likewise.
81256
81257         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81258         * m4/mbswidth.m4: Reflect name change:
81259         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81260         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81261
81262         * m4/lib-link.m4: Update from gettext-0.11.2.
81263         * m4/gettext.m4: Likewise.
81264
81265         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81266         From Alfred M. Szmidt.
81267
81268 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81269
81270         * lib/file-type.h: Report an error if neither S_ISREG nor
81271         S_IFREG is defined, instead of using a test specific to glibc
81272         2.2.  This should be safe, since POSIX requires S_ISREG and
81273         Unix Version 7 had S_IFREG.  We don't need to check for
81274         <sys/types.h> since we don't use any symbols that it defines.
81275
81276 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81277
81278         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81279         $@-t, so that each temporary file name is unique and valid in the first
81280         8 characters, for operation under DOS.
81281
81282 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81283
81284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81285
81286 2002-06-15  Jim Meyering  <meyering@lucent.com>
81287
81288         Work even with DJGPP 2.03, which lacks support for symlinks.
81289         From Richard Dawe.
81290         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81291         is defined.
81292         * lib/lchown.c (S_ISLNK): Likewise.
81293
81294 2002-06-15  Jim Meyering  <meyering@lucent.com>
81295
81296         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81297         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81298         have been included before this file.
81299
81300 2002-06-14  Jim Meyering  <meyering@lucent.com>
81301
81302         * lib/file-type.h: Use the version from diffutils-2.8.2.
81303         * lib/file-type.c: Likewise.
81304
81305 2002-06-07  Jim Meyering  <meyering@lucent.com>
81306
81307         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81308         They're needed at least for NetBSD 1.5.2.
81309         ($statxfs_includes): Include those same headers.
81310         ($statxfs_includes): Include sys/vfs.h if available.
81311         ($statxfs_includes): Likewise for sys/statvfs.h.
81312         Check for the following members in both structs statfs and statvfs:
81313         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81314
81315 2002-06-01  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81318         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81319
81320 2002-05-28  Jim Meyering  <meyering@lucent.com>
81321
81322         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81323         Reported by Volker Borchert.
81324
81325 2002-05-27  Jim Meyering  <meyering@lucent.com>
81326
81327         Fix a problem seen only on nonconforming systems whereby ls.c's
81328         use of localtime, and then of gettimeofday would cause trouble:
81329         the localtime call used to initialize rpl_gettimeofday's save
81330         mechanism would clobber ls's current local time information so
81331         that in any long listing the first file would always be listed
81332         with date 1970-01-01.  Analysis by Volker Borchert.
81333
81334         * lib/gettimeofday.c (localtime): Undefine.
81335         (rpl_localtime): New function.
81336
81337 2002-05-27  Jim Meyering  <meyering@lucent.com>
81338
81339         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81340         localtime.
81341
81342         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81343         use the replacement function; it wouldn't resolve at link time.
81344         Reported by Volker Borchert.
81345
81346 2002-05-22  Jim Meyering  <meyering@lucent.com>
81347
81348         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81349         file-type.h.
81350         * lib/file-type.h: New file.
81351         * lib/file-type.c (file_type): New file/function.  Extracted from
81352         diffutils.
81353
81354 2002-04-30  Jim Meyering  <meyering@lucent.com>
81355
81356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81357
81358 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81359
81360         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81361
81362 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81363
81364         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81365         Do not check for alloca.h (no longer used) or stdbool.h (was never
81366         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81367
81368 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81369
81370         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81371
81372 2002-04-29  Jim Meyering  <meyering@lucent.com>
81373
81374         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81375         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81376         Use AC_FUNC_STRNLEN here instead.
81377
81378         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81379         With autoconf-2.53a, it's part of AC_PROG_CC.
81380
81381 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81382
81383         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81385
81386 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81387
81388         * lib/sig2str.h, lib/sig2str.c: New files.
81389         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81390
81391 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81392
81393         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81394         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81395         of 127, since 64 is the largest conceivable number for ancient
81396         nonstandard hosts.
81397         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81398
81399 2002-04-28  Jim Meyering  <meyering@lucent.com>
81400
81401         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81402
81403 2002-04-24  Jim Meyering  <meyering@lucent.com>
81404
81405         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81406         (jm_PREREQ): Use it.
81407
81408         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81409         mach/mach.h fcntl.h.
81410         Check for this function: setlocale.
81411
81412 2002-04-24  Jim Meyering  <meyering@lucent.com>
81413
81414         * lib/gettext.h: New file, from Gettext.
81415         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81416         (libfetish_a_SOURCES): Add gettext.h.
81417
81418 2002-04-16  Jim Meyering  <meyering@lucent.com>
81419
81420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81421         ut_pid, ut_id, ut_exit.
81422
81423 2002-04-16  Jim Meyering  <meyering@lucent.com>
81424
81425         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81426         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81427         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81428
81429 2002-04-12  Jim Meyering  <meyering@lucent.com>
81430
81431         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81432         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81433         existence of the getmntinfo function.  Needed for Darwin 5.3.
81434
81435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81436         This is necessary at least on Darwin 5.3.
81437
81438         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81439         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81440         strnlen.o in the library, and that makes some versions of ranlib
81441         object.
81442
81443 2002-04-12  Jim Meyering  <meyering@lucent.com>
81444
81445         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81446
81447 2002-04-09  Jim Meyering  <meyering@lucent.com>
81448
81449         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81450         to be more precise.  Rather than saying we're checking whether the
81451         function `works', say what we're testing.
81452         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81453         Reported by Bruno Haible.
81454
81455 2002-03-10  Jim Meyering  <meyering@lucent.com>
81456
81457         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81458         Suggestion from Santiago Vila.
81459
81460 2002-03-08  Jim Meyering  <meyering@lucent.com>
81461
81462         * lib/rename.c: Mention that this wrapper is needed also on
81463         mips-dec-ultrix4.4 systems.
81464
81465 2002-03-02  Jim Meyering  <meyering@lucent.com>
81466
81467         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81468         not HAVE_CLOCK_SETTIME.
81469
81470 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81471
81472         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81473         Check for clock_settime.
81474
81475 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81476
81477         * lib/nanosleep.h: Rename to....
81478         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81479
81480         * lib/gettime.c: New file.
81481         * lib/settime.c: New file.
81482         * lib/stime.c: Remove.
81483
81484         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81485         timespec.h.  Remove nanosleep.h.
81486
81487 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81488
81489         * m4/acl.m4: New file.
81490         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81491         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81492
81493 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81494
81495         * lib/acl.c, lib/acl.h: New files.
81496         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81497
81498 2002-02-24  Jim Meyering  <meyering@lucent.com>
81499
81500         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81501         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81502         cause trouble.  Reported by Nelson Beebe.
81503
81504 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81505
81506         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81507         compilers that don't know that xalloc_die never returns.
81508
81509 2002-02-20  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/getdate.c: Regenerate using bison-1.33.
81512
81513 2002-02-17  Jim Meyering  <meyering@lucent.com>
81514
81515         * config/config.guess (main): Don't use `head -1'; it's no longer
81516         portable. Use `sed 1q' instead.
81517
81518 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81519
81520         * m4/codeset.m4: Upgrade to gettext-0.11.
81521         * m4/gettext.m4: Upgrade to gettext-0.11.
81522         * m4/glibc21.m4: Upgrade to gettext-0.11.
81523         * m4/iconv.m4: Upgrade to gettext-0.11.
81524         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81525         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81526         * m4/lib-ld.m4: New file, from gettext-0.11.
81527         * m4/lib-link.m4: New file, from gettext-0.11.
81528         * m4/lib-prefix.m4: New file, from gettext-0.11.
81529         * m4/progtest.m4: Upgrade to gettext-0.11.
81530
81531 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81532
81533         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81534         (jm_PREREQ): Use it.
81535
81536 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81537
81538         * lib/posixver.c, lib/posixver.h: New files.
81539         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81540
81541 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81542             Bruno Haible  <bruno@clisp.org>
81543
81544         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81545         (fwrite_success_callback): New declaration.
81546         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81547         print_unicode_char. Call failure callback instead of error.
81548         (fwrite_success_callback): New function.
81549         (exit_failure_callback): New function.
81550         (fallback_failure_callback): New function.
81551         (print_unicode_char): Call unicode_to_mb.
81552
81553 2002-01-26  Jim Meyering  <meyering@lucent.com>
81554
81555         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81556         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81557
81558 2002-01-26  Jim Meyering  <meyering@lucent.com>
81559
81560         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81561
81562 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81563
81564         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81565
81566 2002-01-22  Jim Meyering  <meyering@lucent.com>
81567
81568         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81569         Otherwise, some versions of automake would omit the rule that makes
81570         Makefile from Makefile.in.
81571
81572 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81573
81574         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81575         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81576         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81577         (memcoll): Set errno to zero if there is no error.
81578
81579         * lib/quotearg.c (quotearg_buffer_restyled):
81580         Fix bug with quoting buffers containing NUL when backslashing escapes.
81581         This bug was exposed by the other changes in this patch.
81582         (quotearg_n_options): New arg ARGSIZE.
81583         All callers changed.
81584         (quoting_options_from_style): New function.
81585         (quotearg_n_style): Use it.
81586         (quotearg_n_style_mem): New function.
81587
81588         * lib/quotearg.h (quotearg_n_style_mem): New function.
81589
81590 2002-01-19  Jim Meyering  <meyering@lucent.com>
81591
81592         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81593         Remove useless quotes: DF_PROG="df".
81594         * m4/strnlen.m4: New file.
81595
81596 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81597
81598         * lib/backupfile.c (ISDIGIT): Comment fix.
81599         * lib/getdate.y (ISDIGIT): Likewise.
81600         * lib/posixtm.c (ISDIGIT, year): Likewise.
81601         * lib/strverscmp.c (ISDIGIT): Likewise.
81602         * lib/userspec.c (ISDIGIT): Likewise.
81603
81604 2002-01-16  Jim Meyering  <meyering@lucent.com>
81605
81606         * lib/getdate.y: Add three semicolons, each just before a closing
81607         brace. Bison (as of version 1.31) no longer papers over that mistake.
81608
81609 2002-01-05  Jim Meyering  <meyering@lucent.com>
81610
81611         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81612
81613 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81614
81615         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81616         not silently exit merely because the output buffer happens to
81617         have nothing pending.
81618
81619 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81620
81621         See the big note in ../ChangeLog.
81622         * lib/human.c (suffixes): Prefer K to k for 1024.
81623         (generate_suffix_backwards): New function.
81624         (human_readable_inexact): Use it.
81625         * lib/xstrtol.c (__xstrtol): If there is no number but there
81626         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81627         Accept 'K' as well as 'k'.
81628
81629 2001-12-15  Jim Meyering  <meyering@lucent.com>
81630
81631         * lib/regex.h (__restrict_arr): Update from libc.
81632
81633         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81634         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81635         (STREQ): Define.
81636
81637 2001-12-14  Jim Meyering  <meyering@lucent.com>
81638
81639         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81640         Suggestion from Bruno Haible.
81641
81642 2001-12-10  Jim Meyering  <meyering@lucent.com>
81643
81644         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81645         xrealloc, Instead, include "xalloc.h".
81646         (initbuffer): Don't cast xmalloc return value to char*.
81647         (readline): Reword comment.
81648         Don't cast xrealloc return value to char*
81649         Return NULL, not 0.
81650
81651 2001-12-09  Jim Meyering  <meyering@lucent.com>
81652
81653         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81654         about `signed and unsigned type in conditional expression'.
81655         * lib/posixtm.c (posix_time_parse): Likewise.
81656
81657         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81658
81659         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81660         to avoid a pedantic warning.
81661
81662         * lib/getstr.c: Don't include assert.h.
81663         (getstr): Remove warning-evoking assertions.
81664         Return -1 if offset parameter is out of bounds.
81665         Change the type of a local from int to size_t.
81666
81667         * lib/strftime.c (my_strftime_localtime_r): Include this function
81668         definition in the `#if ! HAVE_TM_GMTOFF' block.
81669
81670         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81671         Include xalloc.h instead.
81672
81673 2001-12-02  Jim Meyering  <meyering@lucent.com>
81674
81675         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81676         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81677         included.
81678
81679         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81680         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81681
81682 2001-11-30  Akim Demaille  <akim@epita.fr>
81683
81684         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81685         before being defined.
81686
81687 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81688
81689         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81690         First arg is int, not unsigned.
81691         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81692         (SIZE_MAX, UINT_MAX): New macros.
81693         (quotearg_n_options): Abort if N is negative.
81694         Avoid overflow check on hosts where size_t is 64 bits and int
81695         is 32 bits, as overflow is impossible there.
81696         Fix off-by-one typo that caused unnecessary reallocation.
81697
81698 2001-11-27  Jim Meyering  <meyering@lucent.com>
81699
81700         * lib/tempname.c: Merge with version from libc.
81701         * lib/regex.c: Likewise.
81702
81703         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81704         systems for which STDC_HEADERS is 0, it was not included, resulting in
81705         a warning about an integer-to-pointer conversion problem with getenv.
81706         Reported by Volker Borchert.
81707
81708 2001-11-26  Jim Meyering  <meyering@lucent.com>
81709
81710         * lib/gtod.h: Remove file.
81711         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81712         * lib/gettimeofday.c: Don't include gtod.h.
81713         (GTOD_init): Remove function.
81714         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81715         Suggestion from Volker Borchert.
81716
81717 2001-11-23  Jim Meyering  <meyering@lucent.com>
81718
81719         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81720         it.
81721         * lib/hash.c (struct hash_table): Define it here instead.
81722
81723 2001-11-22  Jim Meyering  <meyering@lucent.com>
81724
81725         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81726
81727 2001-11-20  Jim Meyering  <meyering@lucent.com>
81728
81729         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81730         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81731
81732 2001-11-19  Jim Meyering  <meyering@lucent.com>
81733
81734         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81735         directory.  Use "conftestXXXXXX" as the template.
81736         Suggestion from Paul Eggert.
81737
81738         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81739         immediately, so the test doesn't mistakenly hit the max-open-files
81740         limit.
81741
81742 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81743
81744         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81745         (TEMPORARIES): New macro.
81746         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81747         removes an artificial limitation (e.g. HP-UX 10.20, where
81748         TMP_MAX is 17576).
81749
81750 2001-11-18  Jim Meyering  <meyering@lucent.com>
81751
81752         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81753
81754 2001-11-18  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81757         on SunOS 4.
81758
81759         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81760         files will be created before anything else.
81761
81762 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81763
81764         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81765         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81766
81767 2001-11-17  Jim Meyering  <meyering@lucent.com>
81768
81769         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81770         Prompted by a report from Bob Proulx.
81771
81772         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81773         Instead, require UTILS_FUNC_MKSTEMP.
81774
81775 2001-11-17  Jim Meyering  <meyering@lucent.com>
81776
81777         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81778         Now, that's done as part of AC_FUNC_STRTOD.
81779
81780 2001-11-17  Jim Meyering  <meyering@lucent.com>
81781
81782         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81783         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81784         rather than group writable.  Patch by Juan F. Codagnone.
81785
81786         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81787         xrealloc, Instead, include "xalloc.h".
81788
81789         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81790         Remove explicit declarations of xmalloc, xrealloc,
81791         and xstrdup.  Instead, include "xalloc.h".
81792
81793         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81794         unlocked-io.h.
81795         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81796         Likewise.
81797         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81798
81799         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81800         Reported by Padraig Brady.
81801
81802         * lib/mkstemp.c: #undef mkstemp.
81803         Include config.h.
81804         (rpl_mkstemp): Rename from mkstemp.
81805         Protoize.
81806
81807 2001-11-16  Jim Meyering  <meyering@lucent.com>
81808
81809         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81810         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81811         determine the amount of total physical memory, use pstat_getstatic.
81812         HPUX-11 doesn't define _SC_PHYS_PAGES.
81813         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81814         If sysconf couldn't be used to determine the amount of available
81815         physical memory, use both pstat_getstatic and pstat_getdynamic.
81816         Based on a patch from Bob Proulx.
81817
81818 2001-11-10  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81821         (jm_PREREQ): Use it.
81822
81823 2001-11-09  Jim Meyering  <meyering@lucent.com>
81824
81825         * m4/jm-macros.m4: Require autoconf-2.52f.
81826         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81827         Use these AC_-prefixed names, not the AM_-prefixed ones.
81828
81829         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81830
81831 2001-11-05  Jim Meyering  <meyering@lucent.com>
81832
81833         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81834
81835 2001-11-04  Jim Meyering  <meyering@lucent.com>
81836
81837         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81838         $DEFS.
81839
81840 2001-11-03  Jim Meyering  <meyering@lucent.com>
81841
81842         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81843         of AC_DEFUN.
81844
81845         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81846         know the name of the variable in the macro definition.
81847
81848 2001-11-03  Jim Meyering  <meyering@lucent.com>
81849
81850         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81851         in argmatch_to_argument call.
81852
81853         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81854         argument.
81855
81856         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81857         e.g., a fault due to an attempt to free a NULL pointer.
81858
81859 2001-11-01  Jim Meyering  <meyering@lucent.com>
81860
81861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81862         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81863
81864 2001-11-01  Jim Meyering  <meyering@lucent.com>
81865
81866         * lib/dirfd.c, lib/dirfd.h: New files.
81867         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81868
81869         * lib/hash.c (hash_print) [TESTING]: Clean up.
81870
81871 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81872
81873         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81874         to avoid a warning if -Wall.
81875
81876 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81877
81878         * README: New file
81879         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81880         (per RMS's instructions, this is now the canonical source)
81881         * lgpl/, gpl/: New directories.
81882
81883 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81884
81885         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81886
81887 2001-10-21  Jim Meyering  <meyering@lucent.com>
81888
81889         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81890         this code would end up calling gettext even in packages built
81891         with --disable-nls.
81892         * lib/getopt.c (_): Likewise.
81893         * lib/regex.c (_): Likewise.
81894
81895 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81896
81897         * m4/error.m4 (jm_PREREQ_ERROR):
81898         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81899         AC_FUNC_STRERROR_R does that.
81900         Check for strerror declaration.
81901
81902         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81903         are supposed to have them these days.
81904         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81905         Merge changes from latest Autoconf CVS.
81906         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81907         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81908         POSIX decided to standardize on the int flavor of strerror_r.
81909
81910 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81911
81912         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81913         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81914         Use strerror_r that is only a macro, even if it is not a function.
81915         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81916         (private_strerror): Use prototypes, not old-style function definition.
81917         (print_errno_message): New function.
81918         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81919         char*-flavored one.
81920         (error_tail, error, error_at_line): Use it.
81921
81922 2001-10-11  Jim Meyering  <meyering@lucent.com>
81923
81924         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81925         and quote_n (1, ... to avoid clobbering a buffer.
81926
81927 2001-10-05  Jim Meyering  <meyering@lucent.com>
81928
81929         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81930         hash-pjw.h.
81931         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81932         * lib/hash-pjw.h: New file.
81933
81934 2001-09-30  Jim Meyering  <meyering@lucent.com>
81935
81936         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81937         `struct fsstat' has the `f_fstypename' member.
81938         Use that to define FS_TYPE, which is now used to make
81939         the getfsstat link test tighter.
81940
81941 2001-09-30  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81944         Include <sys/ucred.h>, for Apple Darwin.
81945         Include sys/mount.h and sys/fs_types.h only if available.
81946         (FS_TYPE): Define.
81947         (read_filesystem_list): Use FS_TYPE.
81948
81949 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81950
81951         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81952         a boolean context.
81953
81954 2001-09-29  Jim Meyering  <meyering@lucent.com>
81955
81956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81957         [one-argument getmntent function]): Include stdio.h before mntent.h.
81958         SunOS 4.1.x needs it for the declaration of `FILE'.
81959         Patch by Volker Borchert.
81960
81961         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81962         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81963         sys/fs_types.h, and make the link-test for getfsstat guard #include
81964         directives with appropriate #if HAVE_*_H tests so that we can
81965         detect getfsstat on Apple Darwin1.3.7 systems.
81966         Reported by Nelson Beebe.
81967         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81968
81969 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81970
81971         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81972         #defines strtoimax.  Also treat the other strto* functions
81973         like strtoimax.
81974
81975         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81976         Check for strtoul and strtoumax,
81977         as those declarations are made even in the signed case.
81978         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81979         Likewise, for strtol and strtoimax.
81980
81981 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81982
81983         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81984         #defines strtoimax.  Also treat the other strto* functions
81985         like strtoimax.
81986
81987         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81988         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81989         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81990
81991 2001-09-26  Jim Meyering  <meyering@lucent.com>
81992
81993         Most macros in unlocked-io.h had the wrong number of arguments.
81994         * lib/gen-uio: New script.
81995         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81996         * lib/unlocked-io.hin: Remove file.
81997         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81998         rather than trying to embed it here.
81999         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82000         Reported by Padraig Brady.
82001
82002 2001-09-25  Volker Borchert  <bt@teknon.de>
82003
82004         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82005         `result'.
82006
82007 2001-09-24  Jim Meyering  <meyering@lucent.com>
82008
82009         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82010
82011 2001-09-23  Jim Meyering  <meyering@lucent.com>
82012
82013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82014         instead of the mere test for existence of mntent.h.  The latter
82015         would get a false-positive on AIX 3.4 systems.
82016         In the outer getmntent if-block, don't die if neither of the getmntent
82017         tests succeeds.  Instead, just fall through and continue with the
82018         remaining tests.
82019
82020 2001-09-23  Jim Meyering  <meyering@lucent.com>
82021
82022         * lib/mountlist.c: Remove useless parentheses in #if directives.
82023         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82024         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82025
82026 2001-09-22  Jim Meyering  <meyering@lucent.com>
82027
82028         * m4/gettext.m4: New file.  From gettext.
82029         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82030         * m4/progtest.m4: Likewise
82031         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82032         * m4/glibc21.m4: Likewise.
82033
82034         * m4/libintl.m4: Remove.  No longer used.
82035
82036 2001-09-22  Jim Meyering  <meyering@lucent.com>
82037
82038         * lib/localcharset.c: Update from latest gettext.
82039         * lib/config.charset: Likewise.
82040
82041 2001-09-20  Jim Meyering  <meyering@lucent.com>
82042
82043         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82044         strtoimax.
82045         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82046         strtoumax.
82047
82048 2001-09-20  Jim Meyering  <meyering@lucent.com>
82049
82050         * lib/xstrtol.c (strtoimax): Guard declaration with
82051         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82052         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82053         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82054         (strtoumax): Likewise, for completeness (it wasn't necessary).
82055
82056 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82057
82058         * lib/strtoimax.c (HAVE_LONG_LONG):
82059         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82060         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82061         to work around bug in IBM C compiler.
82062
82063 2001-09-17  Jim Meyering  <meyering@lucent.com>
82064
82065         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82066         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82067         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82068         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82069         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82070         whenever the right hand side need not be expanded by the shell.
82071
82072 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82073
82074         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82075         library.  It's not correct, as some older glibcs are buggy.
82076         fnmatch wasn't fixed until glibc 2.2.
82077
82078         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82079         special shell magic here.
82080
82081 2001-09-16  Jim Meyering  <meyering@lucent.com>
82082
82083         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82084         * m4/jm-macros.m4: Require it.
82085
82086 2001-09-16  Jim Meyering  <meyering@lucent.com>
82087
82088         * lib/mkdir.c: New file.
82089
82090 2001-09-15  Jim Meyering  <meyering@lucent.com>
82091
82092         * m4/jm-macros.m4: Check for help2man.
82093
82094 2001-09-11  Jim Meyering  <meyering@lucent.com>
82095
82096         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82097         The body, by Paul Eggert, was moved here from configure.in.
82098         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82099
82100 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82101
82102         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82103         (jm_PREREQ): Use it.
82104
82105 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82106
82107         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82108         Use ssize_t, not int, to store result of readlink.
82109         Check for ssize_t overflow as well as size_t overflow,
82110         as POSIX says the result of readlink is implementation-defined
82111         when ssize_t overflows.
82112         Remove unnecessary cast to char*.
82113         Use free+malloc instead of realloc, as the storage doesn't need
82114         to be preserved and it's clearer and can be more efficient that way.
82115         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82116         * lib/xreadlink.h (xreadlink): Update prototype.
82117
82118 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82119
82120         * lib/xgetcwd.c: Revert some of the previous change; intead,
82121         fix the HAVE_GETCWD_NULL code to behave more like the
82122         !HAVE_GETCWD_NULL code used to.
82123
82124         Include "xalloc.h".
82125         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82126         invoke xalloc_die.
82127
82128 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82129
82130         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82131         sys/param.h, as pathmax.h includes them.
82132
82133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82134
82135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82136         (jm_PREREQ_XGETCWD): New macro.
82137
82138         * m4/getcwd.m4: New file.
82139
82140 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82141
82142         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82143         like the HAVE_GETCWD_NULL code.
82144         Include pathmax.h if not HAVE_GETCWD.
82145         Do not include xalloc.h.
82146         (INITIAL_BUFFER_SIZE): New symbol.
82147         Do not use xmalloc / xrealloc, since the caller is responsible for
82148         handling errors.  Preserve errno around `free' during failure.
82149         Do not overrun buffer when using getwd.
82150
82151 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82152
82153         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82154         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82155         getcwd (NULL, 0).
82156
82157 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82160         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82161         spotted by Jim Meyering.
82162
82163 2001-09-03  Jim Meyering  <meyering@lucent.com>
82164
82165         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82166         failure.
82167
82168 2001-09-02  Jim Meyering  <meyering@lucent.com>
82169
82170         * lib/error.c: Update from GNU libc.
82171
82172 2001-09-01  Jim Meyering  <meyering@lucent.com>
82173
82174         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82175         Used by df.
82176
82177 2001-09-01  Jim Meyering  <meyering@lucent.com>
82178
82179         * lib/xreadlink.c: New file.
82180         * lib/xreadlink.h: New file.
82181         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82182         xreadlink.h.
82183
82184         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82185         doesn't conflict with sparc Solaris 7's definition in
82186         /usr/include/sys/int_types.h.
82187
82188         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82189         files.
82190         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82191         and strncasecmp as r-values.  Unixware didn't have declarations.
82192
82193 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82194
82195         * lib/xstrtol.h: Add copyright notice.
82196         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82197         LONGINT_INVALID_SUFFIX_CHAR.
82198
82199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82200
82201         * lib/xstrtol.c (strtoimax): New decl.
82202
82203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82204
82205         * lib/xgetcwd.c: Don't include pathmax.h.
82206         Include stdlib.h and unistd.h if available.
82207         Include xalloc.h.
82208         (xmalloc, xstrdup, free): Remove decls.
82209         (xgetcwd): Don't assume sizes fit in unsigned.
82210         Check for overflow when computing sizes.
82211         Simplify reallocation code.
82212
82213 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82214
82215         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82216         a directory's st_size can have an arbitrary value, so the old
82217         usage could waste an arbitrary amount of memory.  All uses
82218         changed.
82219         * lib/savedir.h: Update prototype.
82220
82221 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82222
82223         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82224
82225         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82226         old strtoimax.c.
82227
82228         Also, make the following further changes to make this file's
82229         configuration more similar to that of strtol.c:
82230         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82231         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82232         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82233         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82234         changed to signed values.
82235
82236         And make the following changes as well:
82237         Fix copyright notice, as 1999 was missing.
82238         (verify): New macro.
82239         (strtoimax): Check sizes at compile-time, not run-time.
82240         Prefer strtol to strtoll if both work.
82241         (main): Remove; it was not that useful and was a pain to maintain.
82242
82243         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82244
82245 2001-08-31  Jim Meyering  <meyering@lucent.com>
82246
82247         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82248         Use an initial, malloc'd, buffer of length 128 rather than
82249         a statically allocated one of length 1024.
82250
82251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82252
82253         Simplify code, partly by assuming autoconf 2.52 semantics.
82254
82255         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82256
82257         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82258         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82259         All uses removed.
82260         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82261         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82262         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82263         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82264         jm_AC_HEADER_INTTYPES_H.
82265         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82266
82267         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82268
82269         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82270         Quote first arg of AC_DEFUN.
82271         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82272         since they are needed to parse the include file even if we need
82273         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82275         but with opposite signedness.
82276
82277 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82278
82279         Merge 'exclude' changes from tar 1.13.22.
82280         This fixes one or two unlikely storage allocation overflow bugs,
82281         but doesn't change user-visible behavior otherwise.
82282
82283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82284
82285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82286         (jm_PREREQ_EXCLUDE): New macro.
82287
82288 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82289
82290         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82291         tm to be declared.
82292
82293 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82294
82295         * lib/hash.c: Remove '2001' from copyright notice.
82296
82297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82298
82299         * lib/full-write.h: New file.
82300         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82301         * lib/full-write.c: Correct credits, as cccp.c no longer
82302         exists and anyway it was so heavily changed from the old cccp
82303         code as to be unrecognizable.  Include full-write.h.
82304         (full_write): Return size_t, with short writes meaning failure.
82305         All callers changed.  This fixes a bug with large buffers
82306         on 64-bit hosts.
82307         * lib/utime.c: Include full-write.h.
82308
82309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82310
82311         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82312         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82313         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82314         Include if available.
82315         (<xalloc.h>): Include
82316         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82317         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82318         collide with FNM macros.
82319         (struct patopts): New struct.
82320         (struct exclude): Use it, as exclude patterns now come with options.
82321         (new_exclude): Support above changes.
82322         (new_exclude, add_exclude_file):
82323         Initial size must now be a power of two to simplify overflow checking.
82324         (free_exclude, fnmatch_no_wildcards): New function.
82325         (excluded_filename): No longer requires options arg, as the options
82326         are determined by add_exclude.  Now returns bool, not int.
82327         (excluded_filename, add_exclude):
82328         Add support for the fancy new exclusion options.
82329         (add_exclude, add_exclude_file): Now takes int options arg.
82330         Check for arithmetic overflow when computing sizes.
82331         (add_exclude_file): xrealloc might modify errno, so don't
82332         realloc until after errno might be used.
82333
82334         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82335         New macros.
82336         (free_exclude): New decl.
82337         (add_exclude, add_exclude_file): Now takes int options arg.
82338         (excluded_filename): No longer requires options arg, as the options
82339         are determined by add_exclude.  Now returns bool, not int.
82340
82341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82342
82343         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82344
82345 2001-08-27  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82348
82349         * lib/version-etc.c (N_): Remove definition.
82350         Revert most of last change.
82351         Instead, simply don't mark the `Copyright...' string for translation.
82352         Based on advice from Paul Eggert.
82353
82354         * lib/strtoxmax.c: Tweak comment.
82355
82356 2001-08-26  Jim Meyering  <meyering@lucent.com>
82357
82358         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82359
82360         * m4/xstrtoimax.m4: New file.
82361         * m4/xstrtoumax.m4: Add comments explaining why we
82362         AC_REPLACE_FUNCS(strtol).
82363
82364 2001-08-26  Jim Meyering  <meyering@lucent.com>
82365
82366         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82367         of copyright with `%s' so translators don't get an untranslated
82368         message in 2002.
82369         (COPYRIGHT_YEAR): Define.
82370         (version_etc): Use fprintf rather than fputs.
82371         Suggestion from Ulrich Drepper.
82372
82373         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82374
82375         * lib/strtoll.c: New file, from GNU libc.
82376         * lib/xstrtoimax.c: New file.
82377
82378         * lib/xstrtol.h: Add xstrtoimax.
82379         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82380         * lib/strtoimax.c: New file.  Likewise, but first define
82381         STRTOUXMAX_SIGNED.
82382
82383         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82384         ...
82385         * lib/strtoxmax.c: ... then renamed to this.
82386
82387 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82388
82389         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82390         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82391         (jm_AC_TYPE_INTMAX_T): New macro.
82392         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82393
82394         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82395
82396         * m4/longlong.m4: Renamed from ulonglong.m4.
82397         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82398         * m4/uintmax_t.m4: Removed.
82399
82400 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82401
82402         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82403         Port to Solaris 8, where 'sed' requires a space after the 'r'
82404         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82405         Redirect output to $tmp just once.
82406
82407 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82408
82409         * lib/addext.c (<errno.h>): Include.
82410         (errno): Declare if not defined.
82411         (addext): Work correctly when pathconf returns -1 and leaves
82412         errno alone because there is no limit.  Also, work even if
82413         pathconf returns a value greater than SIZE_MAX.
82414
82415 2001-08-12  Jim Meyering  <meyering@lucent.com>
82416
82417         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82418         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82419         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82420         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82421         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82422         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82423         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82424         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82425         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82426         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82427         utime.m4, utimes.m4, xstrtoumax.m4:
82428         Quote the first argument in each use of AC_DEFUN.
82429
82430 2001-08-12  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82433         Simply `return getcwd (NULL, 0);'.
82434         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82435         Use 1300 as initial value for length, not PATH_MAX.
82436
82437         * lib/pathmax.h: Clean up cpp syntax.
82438
82439 2001-08-12  Jim Meyering  <meyering@lucent.com>
82440
82441         * lib/gettimeofday.c: New file.
82442         * lib/gtod.h: New file.
82443         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82444
82445 2001-08-05  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/jm-macros.m4: Require autoconf-2.52.
82448
82449 2001-08-04  Jim Meyering  <meyering@lucent.com>
82450
82451         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82452         stmt, to get in sync with glibc.
82453
82454 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82455
82456         The following changes are from gettext 0.10.39 as maintained by
82457         Bruno Haible.
82458
82459         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82460         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82461         with inverted sense.  All uses changed.
82462
82463         * lib/mbswidth.c: Don't include <limits.h>.
82464         Include <stdlib.h> and <string.h> unconditionally.
82465         (iswcntrl, mbsinit, ISCNTRL): New macros.
82466         (mbsnwidth): Use K&R style function declarations.
82467         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82468         can optimize it when MB_CUR_MAX == 1.
82469         The width of control characters is zero, not 1.
82470
82471 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82472
82473         The following changes are from gettext 0.10.39 as maintained by
82474         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82475
82476         * m4/codeset.m4: Upgrade to serial AM1.
82477         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82478         all uses changed.  Quote first arg of AC_DEFUN.
82479         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82480
82481         * m4/iconv.m4: Upgrade to serial AM2.
82482         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82483         Add --with-libconv-prefix.
82484         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82485         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82486         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82487         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82488         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82489
82490         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82491         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82492         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82493         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82494         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82495         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82496         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82497         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82498         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82499
82500         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82501         string.h any more.
82502
82503         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82504         not the default value.
82505
82506         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82507         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82508         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82509         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82510         Also check for iswcntrl, used for wcwidth fallback.
82511         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82512         to Autoconf 2.13.
82513
82514 2001-08-03  Jim Meyering  <meyering@lucent.com>
82515
82516         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82517         as it was in the original.  Reported by Paul Eggert.
82518
82519 2001-07-16  Jim Meyering  <meyering@lucent.com>
82520
82521         * m4/gettimeofday.m4: New file.
82522         Prompted by a report from Bernhard Baehr.
82523
82524 2001-07-15  Jim Meyering  <meyering@lucent.com>
82525
82526         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82527         stuff. Now it's in ../Makefile.cfg.
82528
82529 2001-07-15  Jim Meyering  <meyering@lucent.com>
82530
82531         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82532         (BUILT_SOURCES): Add unlocked-io.h.
82533         (io_functions): Define.
82534         (unlocked-io.h): New rule.
82535         (DISTCLEANFILES): Add unlocked-io.h.
82536         (all-local): Depend on unlocked-io.h, to ensure it is created.
82537
82538         * lib/unlocked-io.hin: New file
82539
82540         * lib/regex.c: Update from glibc.
82541
82542 2001-07-05  Jim Meyering  <meyering@lucent.com>
82543
82544         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82545         recommendation.
82546         (libfetish_a_SOURCES): Put all .h files here instead.
82547         Remove a thus-exposed (better checks in automake) duplicate and
82548         two unnecessary .h files.
82549
82550 2001-07-04  Jim Meyering  <meyering@lucent.com>
82551
82552         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82553         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82554         distcheck failure.
82555
82556 2001-07-02  Jim Meyering  <meyering@lucent.com>
82557
82558         The following changes were prompted by suggestions from Bruno Haible.
82559
82560         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82561         is now generated.
82562         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82563         definition of EXTRA_DIST.
82564         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82565         ensure that the generated file is created/updated whenever the list
82566         of $(unlocked_functions) is changed.
82567         (jm-glibc-io.m4): New rule.
82568         (unlocked-io.h): New rule -- currently unused.
82569
82570 2001-06-24  Jim Meyering  <meyering@lucent.com>
82571
82572         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82573         unmatched right bracket, rather than kludging it with an extra,
82574         falsely-matching quote in a comment.  Patch by Akim Demaille.
82575
82576 2001-06-11  Jim Meyering  <meyering@lucent.com>
82577
82578         * lib/regex.c: Update from GNU libc.
82579
82580 2001-05-27  Jim Meyering  <meyering@lucent.com>
82581
82582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82583         Check for ut_type in struct utmp.
82584
82585 2001-05-27  Jim Meyering  <meyering@lucent.com>
82586
82587         * lib/readutmp.h (UT_TYPE): Define.
82588
82589 2001-05-24  Jim Meyering  <meyering@lucent.com>
82590
82591         * lib/argmatch.c: Include "quote.h".
82592         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82593         quote function.  Reported by Göran Uddeborg.
82594
82595 2001-05-22  Jim Meyering  <meyering@lucent.com>
82596
82597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82598         now that we use the package-supplied version unconditionally.
82599         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82600
82601 2001-05-21  Jim Meyering  <meyering@lucent.com>
82602
82603         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82604         shell syntax errors.
82605
82606 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82607
82608         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82609
82610 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82611
82612         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82613         Don't bother to check library strftime, since
82614         we'll be using our own my_strftime function anyway.
82615         Define my_strftime instead of strftime.
82616
82617 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82618
82619         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82620         which is not yet declared.
82621
82622 2001-05-15  Jim Meyering  <meyering@lucent.com>
82623
82624         * m4/regex.m4: Use proper quoting so brackets appear in the test
82625         program.
82626         Reported by, and with help from, Bruno Haible.
82627
82628 2001-05-13  Jim Meyering  <meyering@lucent.com>
82629
82630         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82631         undefined.
82632
82633 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82634
82635         dirname code cleanup.  base_name now behaves more compatibly
82636         with POSIX basename when given file names that have trailing
82637         slashes, and similarly for dir_name.  Add new primitives
82638         base_len and dir_len.  Put the directory-name-related decls
82639         into dirname.h.
82640
82641         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82642         * lib/backupfile.c (base_name): Likewise.
82643         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82644         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82645         * lib/makepath.c (strip_trailing_slashes): Likewise.
82646         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82647         ISSLASH): Likewise.
82648         * lib/rename.c (strip_trailing_slashes): Likewise.
82649         * lib/same.c (base_name): Likewise.
82650         * lib/stripslash.c (ISSLASH): Likewise.
82651
82652         * lib/addext.c: Include <dirname.h> after size_t is defined.
82653         * lib/backupfile.c: Likewise.
82654
82655         * lib/addext.c (addext): Use base_len to trim redundant
82656         trailing slashes instead of doing it ourselves.
82657         But do not trim the last slash if it is not redundant.
82658
82659         * lib/backupfile.c (find_backup_file_name,
82660         max_backup_version): Use base_len instead of rolling it ourselves.
82661         Handle the case of "" and (on DOS) "C:" correctly.
82662
82663         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82664         needed. Include <string.h>, <dirname.h>.
82665         (base_name): Allow file names ending in slashes, other than names
82666         that are all slashes.  In this case, return the basename followed
82667         by the slashes.  This is more general, and can be used in places
82668         where the original base_name purposely had an assertion failure.
82669         (base_len): New function.
82670
82671         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82672         Do not include <assert.h>; no longer needed.
82673         Include xalloc.h.
82674         (memrchr): Remove decl.
82675         (dir_name_r): Remove.
82676         (dir_len): Renamed from dirlen.  All callers changed.
82677         Rewrite in terms of base_name, for simplicity and consistency.
82678         (dir_name): Never return NULL.  All callers changed.
82679         Do not include <stdlib.h> in test program; no longer needed.
82680         return 0; is fine for test program.
82681
82682         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82683         New macros.
82684         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82685
82686         * lib/path-concat.c (path_concat): Use base_len to compute
82687         base length, not strlen; this means we cannot rely on memcpy
82688         to null-terminate.
82689
82690         * lib/same.c (STREQ): Remove.
82691         (same_name): Handle the case where the basename ends in trailing '/'.
82692
82693         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82694         a slash was stripped.  Do not strip the last slash after a
82695         file system prefix.
82696
82697 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82698
82699         * lib/Makefile.am (libfetish_a_SOURCES):
82700         Add strftime.c, since we now compile it on all hosts.
82701
82702         * lib/strftime.c (my_strftime):
82703         Define to nstrftime if emacs, but only if my_strftime is not defined.
82704         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82705         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82706         Add one more extra argument: a nanoseconds value.
82707         All uses changed.
82708         (ns): New macro.
82709         (my_strftime function): Add %N format.
82710         (emacs_strftimeu): Renamed from emacs_strftime,
82711         with extra ut argument.
82712
82713 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82714
82715         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82716
82717 2001-04-21  Jim Meyering  <meyering@lucent.com>
82718
82719         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82720         doesn't interfere.
82721
82722 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82723
82724         * m4/ftruncate.m4: Check for chsize.
82725         Link with ftruncate.o unconditionally if ftruncate is missing.
82726         This was required when cross-compiling to i586-mingw32msvc.
82727
82728 2001-04-08  Jim Meyering  <meyering@lucent.com>
82729
82730         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82731         recomputed; that's necessary when the offset spans a DST transition.
82732         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82733
82734 2001-04-02  Jim Meyering  <meyering@lucent.com>
82735
82736         * lib/regex.h, regex.c: Update from GNU libc.
82737
82738 2001-03-24  Jim Meyering  <meyering@lucent.com>
82739
82740         * m4/jm-macros.m4: Require autoconf-2.49d.
82741
82742 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82743
82744         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82745
82746 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82747
82748         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82749
82750 2001-03-17  Jim Meyering  <meyering@lucent.com>
82751
82752         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82753         now that the version in autoconf is equivalent.
82754         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82755
82756         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82757         Suggestion from Akim Demaille.
82758
82759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82760         (jm_PREREQ_TEMPNAME): New function.
82761
82762 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82763
82764         * lib/tempname.c (uint64_t): Define to uintmax_t if
82765         not defined, and if UINT64_MAX is not defined.
82766         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82767         Reported by John David Anglin.
82768
82769 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82770
82771         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82772         resolve alias if codeset is empty.
82773         * lib/config.charset (BeOS): Use wildcard syntax.
82774
82775 2001-03-13  Jim Meyering  <meyering@lucent.com>
82776
82777         * lib/path-concat.c (path_concat)
82778         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82779         concatenating e.g., `C:' and `foo'.
82780         From Bruno Haible.
82781
82782 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82783
82784         * lib/localcharset.c (locale_charset): Don't use
82785         setlocale(LC_CTYPE,NULL). Don't return NULL.
82786         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82787
82788 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82789
82790         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82791         support for DOS/DJGPP.
82792
82793 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82794
82795         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82796         lacks mkstemp.  Compile our own tempname.c if we compile our own
82797         mkstemp.c, as mkstemp relies on tempname.
82798
82799 2001-03-01  Jim Meyering  <meyering@lucent.com>
82800
82801         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82802         AH_VERBATIM really does output its argument verbatim.
82803
82804 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82805
82806         * lib/Makefile.am (libfetish_a_SOURCES):
82807         Add dup-safer.c, fopen-safer.c.
82808         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82809
82810         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82811         * lib/unistd-safer.h: New files.
82812
82813 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82814
82815         The mkstemp replacement is taken from glibc 2.2.2, with some
82816         portability fixes for use outside glibc, as follows:
82817
82818         * lib/tempname.c (struct_stat64): New macro.
82819         (direxists, __gen_tempname): Use it.
82820         This avoids a portability problem with Solaris 8.
82821
82822         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82823         (<stddef.h>, <stdint.h>, <string.h>):
82824         Include only if STDC_HEADERS || _LIBC.
82825         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82826         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82827         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82828         (__set_errno): Define this macro if <errno.h> doesn't.
82829         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82830         Define these macros if <stdio.h> doesn't.
82831         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82832         Define these macros if <sys/stat.h>
82833         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82834         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82835         __xstat64): Define if not _LIBC.
82836         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82837         (__gen_tempname): Invoke gettimeofday only if
82838         HAVE_GETTIMEOFDAY || _LIBC;
82839         otherwise, fall back on plain "time".
82840         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82841
82842         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82843
82844         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82845
82846 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82847
82848         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82849
82850 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82851
82852         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82854         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82855         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82856
82857 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82858
82859         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82860         Remove workaround macros for hosts that have mbrtowc but not
82861         mbstate_t, as we now insist on proper declarations for both
82862         before using mbrtowc.
82863
82864 2001-02-17  Jim Meyering  <meyering@lucent.com>
82865
82866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82867         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82868         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82869         UnixWare 7.1.1.
82870
82871         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82872         rather than AC_CACHE_VAL.
82873
82874 2001-02-17  Jim Meyering  <meyering@lucent.com>
82875
82876         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82877         around included file name.
82878
82879         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82880
82881         * lib/strftime.c: Update from GNU libc (the only changes were to
82882         comments).
82883
82884 2001-02-17  Jim Meyering  <meyering@lucent.com>
82885
82886         * lib/regex.c: Update from libc.
82887
82888 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82889
82890         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82891         clash.
82892
82893 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82894
82895         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82896         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82897         Reported by Mark Hounschell via Paul Eggert.
82898
82899 2001-02-07  Jim Meyering  <meyering@lucent.com>
82900
82901         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82902
82903 2001-02-05  Jim Meyering  <meyering@lucent.com>
82904
82905         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82906         it includes the patch required for `large file' support with at least
82907         HP-UX's 10.20 /bin/cc.
82908
82909 2001-02-03  Jim Meyering  <meyering@lucent.com>
82910
82911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82912         AS_IF, now that it works once again (mysteriously).
82913         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82914
82915 2001-01-30  Jim Meyering  <meyering@lucent.com>
82916
82917         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82918         * m4/chown.m4: Rename conftestchown to conftest.chown.
82919         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82920         s/conftestdir2/conftest.d2/.
82921         * m4/utimes.m4: s/conftestdata/conftest.data/
82922         Inspired by Pavel Roskin's change in autoconf.
82923
82924 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82925
82926         * lib/config.charset: Update for FreeBSD 4.2.
82927
82928 2001-01-27  Jim Meyering  <meyering@lucent.com>
82929
82930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82931         a use of AS_IF.
82932         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82933
82934 2001-01-26  Jim Meyering  <meyering@lucent.com>
82935
82936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82937         quotearg.c includes it.
82938
82939 2001-01-26  Jim Meyering  <meyering@lucent.com>
82940
82941         * lib/quotearg.c: Include stddef.h.
82942         * lib/quote.c: Include stddef.h.
82943         Reported by Axel Kittenberger.
82944
82945         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82946         line in double quotes so that it evokes a better diagnostic.
82947         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82948         Reported by Axel Kittenberger.
82949
82950 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82951
82952         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82953         as if it was a `charset'.
82954
82955 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82956
82957         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82958         has const.
82959
82960 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82961
82962         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82963         to avoid a warning.  Add back 'const' to inptr.
82964
82965 2001-01-20  Jim Meyering  <meyering@lucent.com>
82966
82967         Be sure that headers are checked before used in code compiled
82968         for the type checks.
82969         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82970         In place of that, invoke jm_CHECK_ALL_TYPES.
82971         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82972         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82973         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82974         The check for ssize_t was mistakenly run before the test for unistd.h.
82975
82976         The configure-time check for stdbool.h was missing.
82977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82978         (jm_PREREQ_HASH): New function.
82979
82980 2001-01-17  Jim Meyering  <meyering@lucent.com>
82981
82982         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82983         for autoconf-2.49c.
82984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82985
82986 2001-01-16  Jim Meyering  <meyering@lucent.com>
82987
82988         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82989         From Bruno Haible.
82990
82991 2001-01-14  Jim Meyering  <meyering@lucent.com>
82992
82993         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82994         foo and bar.  Create conftestdir/ in the script, not in the C code.
82995         Remove directories in the script, not in the C code.
82996         Remove conftestdir{,2} before trying to create the directory.
82997         Make the entire configure script fail if the mkdir fails.
82998
82999 2001-01-14  Jim Meyering  <meyering@lucent.com>
83000
83001         * lib/rename.c: New file.  From Volker Borchert.
83002         Include stdlib.h, string.h or strings.h, and xalloc.h.
83003         Use strip_trailing_slashes rather than open-coding it.
83004
83005 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83006
83007         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83008
83009 2001-01-03  Jim Meyering  <meyering@lucent.com>
83010
83011         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83012         of local `inptr' to avoid warning with some system declarations of
83013         iconv.
83014
83015 2001-01-02  Volker Borchert  <bt@teknon.de>
83016
83017         * m4/rename.m4: New file.
83018         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83019
83020 2001-01-01  Jim Meyering  <meyering@lucent.com>
83021
83022         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83023         even on systems with utmpx.h.  It's necessary for the declaration of
83024         utmp's ut_user member.  Reported by Andreas Jaeger.
83025
83026         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83027         available. They are required for the declarations of getgrgid and
83028         getpwuid resp.
83029         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83030         Reported by Andreas Jaeger.
83031
83032 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83033
83034         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83035         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83036         so `make install' also works in VPATH builds.
83037
83038 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83039
83040         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83041         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83042         can be used in subdirectories.
83043
83044 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83045
83046         * lib/modechange.c: Do not assume that mode_t uses the
83047         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83048         the other-execute bit of FOO even if S_IXOTH != 1.
83049
83050         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83051         WOTH, XOTH, ALLM): New macros.
83052         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83053          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83054         Use them.
83055         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83056         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83057         (mode_compile):
83058         No need to use uintmax_t; unsigned long is long enough.
83059         Don't bother to get suffix since we don't use it.
83060
83061 2000-12-26  Jim Meyering  <meyering@lucent.com>
83062
83063         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83064         better with autoheader.
83065
83066 2000-12-24  Jim Meyering  <meyering@lucent.com>
83067
83068         * lib/hash.c (is_prime): Return explicit boolean values.
83069         (hash_get_first): Return NULL to appease Irix5.6's 89.
83070         Reported by Nelson Beebe.
83071
83072 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83073
83074         * lib/localcharset.c (locale_charset): Add support for Win32.
83075
83076 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83077
83078         * lib/physmem.h, lib/physmem.c: New files.
83079
83080         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83081         (noinst_HEADERS): Add physmem.h.
83082
83083         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83084         't' for compatibility with Solaris 8 sort.
83085
83086 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83087
83088         * lib/config.charset: Add support for BeOS.
83089
83090 2000-12-17  Jim Meyering  <meyering@lucent.com>
83091
83092         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83093         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83094
83095 2000-12-16  Jim Meyering  <meyering@lucent.com>
83096
83097         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83098         N and M) would have treated it like `chown N:N FILE'.
83099
83100         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83101
83102 2000-12-16  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83105         SHELLS_FILE to a file name that's useful on djgpp systems.
83106         Include stdlib.h.
83107         (ADDITIONAL_DEFAULT_SHELLS): Define.
83108         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83109         Based mostly on a patch from Prashant TR.
83110
83111 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83112
83113         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83114         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83115         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83116
83117 2000-12-08  Andreas Schwab  <schwab@suse.de>
83118
83119         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83120         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83121
83122 2000-12-07  Jim Meyering  <meyering@lucent.com>
83123
83124         * lib/stripslash.c (ISSLASH): Define.
83125         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83126         `/'.
83127         From Prashant TR.
83128
83129         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83130         (dir_name_r): Declare this function as static.
83131         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83132         manifest itself on a name containing a mix of slashes and
83133         backslashes.
83134         Make this function work with names starting with a DOS-style
83135         drive letter and colon prefix.
83136         (dir_name): Append `.' if necessary.
83137         Based mostly on patches from Prashant TR and Eli Zaretskii.
83138
83139         * lib/dirname.h (dir_name_r): Remove prototype.
83140
83141 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83142
83143         * m4/off_t-format.m4: Remove this file.
83144         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83145
83146 2000-12-06  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83149         replacement strtoull, we may well need the replacement strtoul, too.
83150         Check for declarations of strtoul and strtoull.
83151         Check for strtol.  Mainly as a cue to cause automake to include
83152         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83153         Check for limits.h -- strtol.c needs it.
83154
83155 2000-12-05  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83158
83159 2000-12-04  Jim Meyering  <meyering@lucent.com>
83160
83161         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83162         Also include memory.h, stdlib.h, unistd.h if appropriate.
83163         Reported by Andreas Jaeger (conflicting declaration of malloc).
83164
83165 2000-12-02  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83168         * m4/jm-macros.m4 (jm_MACROS): require it.
83169
83170 2000-12-02  Jim Meyering  <meyering@lucent.com>
83171
83172         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83173
83174 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83175
83176         * lib/memrchr.c: Include <config.h> before any system include file.
83177
83178 2000-11-30  Jim Meyering  <meyering@lucent.com>
83179
83180         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83181
83182 2000-11-30  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83185
83186 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83187
83188         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83189
83190 2000-11-26  Jim Meyering  <meyering@lucent.com>
83191
83192         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83193
83194 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83195
83196         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83197         size of (size_t) -1; it's not portable.
83198
83199 2000-11-17  Jim Meyering  <meyering@lucent.com>
83200
83201         * lib/strstr.c: Update from GNU libc.
83202
83203 2000-11-17  Akim Demaille  <akim@epita.fr>
83204
83205         * lib/obstack.h: Formatting changes.
83206         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83207         prevent type checking.
83208         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83209         cast the value to (void *): assigning a `foo *' to a `void *'
83210         variable is valid.
83211         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83212
83213 2000-11-16  Jim Meyering  <meyering@lucent.com>
83214
83215         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83216
83217 2000-11-11  Jim Meyering  <meyering@lucent.com>
83218
83219         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83220
83221 2000-11-10  Jim Meyering  <meyering@lucent.com>
83222
83223         * lib/obstack.h: Update from GNU libc.
83224         * lib/obstack.c: Likewise.
83225
83226 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83227
83228         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83229
83230 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83231
83232         * lib/getusershell.c (setusershell): Use rewind rather than
83233         fseek/fseeko, to avoid configuration hassles with fseeko.
83234         Don't bother opening SHELLS_FILE if shellstream is NULL;
83235         it's not necessary.
83236
83237 2000-11-05  Jim Meyering  <meyering@lucent.com>
83238
83239         * lib/makepath.h (make_dir): Declare.
83240         * lib/makepath.c (make_dir): Remove `static' attribute.
83241         Tweak a comment.
83242
83243 2000-11-04  Jim Meyering  <meyering@lucent.com>
83244
83245         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83246
83247 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83248
83249         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83250         last one in a bucket, advance to the next bucket.
83251
83252 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83253
83254         * lib/fnmatch.c: Do not comment out all the code if we are using
83255         the GNU C library, because in some cases we are replacing buggy
83256         code in the GNU C library itself.
83257
83258 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83259
83260         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83261         (regex_compile): Catch bogus \(\1\).
83262
83263 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83264
83265         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83266         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83267         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83268
83269 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83270
83271         * lib/error.h, getline.h, modechange.h:
83272         Remove "2000" from Copyright line, as the file hasn't been
83273         changed this year other than in the copyright notice.
83274
83275         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83276         was changed this year.
83277
83278 2000-10-29  Jim Meyering  <meyering@lucent.com>
83279
83280         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83281         renaming.
83282         * m4/ls-mntd-fs.m4: Likewise
83283
83284 2000-10-29  Jim Meyering  <meyering@lucent.com>
83285
83286         * lib/xstat.in: Fix grammar in comment.
83287
83288 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83289
83290         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83291         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83292         doesn't define __restrict_arr.
83293
83294 2000-10-28  Jim Meyering  <meyering@lucent.com>
83295
83296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83297         (jm_PREREQ_MEMCHR): New function.
83298
83299 2000-10-28  Jim Meyering  <meyering@lucent.com>
83300
83301         * lib/memchr.c: Update from libc.
83302         Adjust for portability:
83303         [HAVE_STDLIB_H]: Include stdlib.h.
83304         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83305         Undef __memchr, too.
83306         [!weak_alias]: Define __memchr to memchr.
83307
83308         * lib/regex.c: Update from libc.
83309         * lib/regex.h: Likewise.
83310         * lib/getopt1.c: Likewise.
83311         * lib/memcmp.c: Likewise.
83312
83313         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83314         Avoid using fseek, when possible -- it's broken by design.
83315         Patch by Ulrich Drepper.
83316
83317 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83318
83319         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83320         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83321         Giving in to popular pressure to shut up the compiler with casts.
83322
83323 2000-10-26  Jim Meyering  <meyering@lucent.com>
83324
83325         * lib/strftime.c: Update from libc.
83326
83327 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83328
83329         * regex.c: More `unsigned char' -> `re_char' changes.
83330         Also change several `int' into `re_wchar_t'.
83331         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83332         (PUSH_FAILURE_POINTER): Don't cast any more.
83333         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83334         We want GCC to complain, since this piece of code makes
83335         re_match non-reentrant, which *should* be fixed.
83336         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83337         (EXTEND_BUFFER): Use RETALLOC.
83338         (SET_LIST_BIT): Don't cast.
83339         (re_wchar_t): New type.
83340         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83341         that those two functions will always properly return.
83342         (IMMEDIATE_QUIT_CHECK): Cast to void.
83343         (analyse_first): Use recursion rather than an explicit stack.
83344         (re_compile_fastmap): Can't fail anymore.
83345         (re_search_2): Don't check re_compile_fastmap for failure.
83346         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83347         Now also sets the new value (passed in a new argument).
83348         (re_match_2_internal): Use it.
83349         Also, use a new var `reg' of type size_t when looping through regs
83350         rather than reuse the inappropriate `mcnt'.
83351
83352 2000-10-25  Jim Meyering  <meyering@lucent.com>
83353
83354         * lib/obstack.c: Update from libc.
83355
83356 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83357
83358         * regex.c (regex_compile): Change the way of handling a range from
83359         a char less than 256 to a char not less than 256.
83360
83361 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83362
83363         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83364         NT-Emacs only.
83365         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83366         so that re_search functions only quit when callers expect them to.
83367
83368 2000-10-23  Jim Meyering  <meyering@lucent.com>
83369
83370         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83371         wrong.  That set_locale call must not have any side effects.
83372         From Paul Eggert.
83373
83374 2000-10-22  Jim Meyering  <meyering@lucent.com>
83375
83376         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83377         [CYCLIC]: Remove now-unused definition.
83378
83379         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83380         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83381         Suggestion from Ulrich Drepper.
83382
83383 2000-10-21  Jim Meyering  <meyering@lucent.com>
83384
83385         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83386         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83388
83389 2000-10-21  Jim Meyering  <meyering@lucent.com>
83390
83391         * lib/dirname.c (memrchr): Declare if necessary.
83392         (dir_name): Remove the restriction that there be no
83393         trailing slashes.  Now, this code skips past them, effectively
83394         ignoring them.
83395         [TEST_DIRNAME] (main): New unit tests.
83396
83397         * lib/memrchr.c: New file from GNU libc.
83398         Undef __memrchr, too.
83399         [!weak_alias]: Define __memrchr to memrchr.
83400         Guard weak_alias use with `#ifdef weak_alias'.
83401
83402 2000-10-21  Jim Meyering  <meyering@lucent.com>
83403
83404         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83405         (dir_name): Use dir_name_r.
83406         * lib/dirname.h (dir_name_r): Declare it.
83407
83408 2000-10-17  Jim Meyering  <meyering@lucent.com>
83409
83410         * lib/quote.h (PARAMS): Define and use.
83411         Reported by Akim Demaille.
83412
83413         * lib/getopt.c: Update from libc.
83414
83415 2000-10-16  Jim Meyering  <meyering@lucent.com>
83416
83417         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83418         setlocale.
83419         From Jan Fedak.
83420
83421 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83422
83423         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83424
83425 2000-09-25  Jim Meyering  <meyering@lucent.com>
83426
83427         * lib/md5.h (rol): Define (from GnuPG).
83428
83429         * lib/sha.c: Give credit (GnuPG) where due.
83430         (M): Use rol rather than open-coding it.
83431         Add a FIXME comment.
83432
83433 2000-09-21  Jim Meyering  <meyering@lucent.com>
83434
83435         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83436         Reported by Michael Stone.
83437
83438 2000-09-20  Jim Meyering  <meyering@lucent.com>
83439
83440         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83441         (noinst_HEADERS): Add sha.h.
83442         Based on code from Scott G. Miller and from GnuPG.
83443
83444 2000-09-18  Jim Meyering  <meyering@lucent.com>
83445
83446         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83447         LIBS. Otherwise, everyone ends up linking with -lelf for some
83448         configurations.
83449         Reported by Mike Stone.
83450
83451 2000-09-15  Jim Meyering  <meyering@lucent.com>
83452
83453         * lib/regex.c: Update from libc.
83454
83455 2000-09-10  Jim Meyering  <meyering@lucent.com>
83456
83457         * lib/getopt.c (_getopt_internal): Update from glibc.
83458
83459 2000-09-09  Jim Meyering  <meyering@lucent.com>
83460
83461         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83462         think it should be used as a general replacement for isascii.
83463         * lib/fnmatch.c: Likewise.
83464         * lib/mbswidth.c: Likewise
83465         * lib/regex.c: Likewise.
83466
83467         Don't use atoi.
83468         * lib/userspec.c: Include sys/param.h and limits.h.
83469         Include xstrtol.h.
83470         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83471         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83472         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83473         UID, GID.  Check range.
83474
83475 2000-09-06  Jim Meyering  <meyering@lucent.com>
83476
83477         * lib/getopt.c (_getopt_internal): Update from glibc.
83478
83479 2000-08-30  Jim Meyering  <meyering@lucent.com>
83480
83481         * lib/strftime.c: Merge in changes from GNU libc.
83482
83483 2000-08-26  Jim Meyering  <meyering@lucent.com>
83484
83485         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83486         * m4/fpending.m4: New file.
83487
83488 2000-08-26  Jim Meyering  <meyering@lucent.com>
83489
83490         * lib/closeout.c: Include "__fpending.h".
83491         (close_stdout_status): Return right away if there's nothing to flush.
83492
83493         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83494         * lib/__fpending.c: New file.
83495         * lib/__fpending.h: New file.
83496
83497 2000-08-20  Jim Meyering  <meyering@lucent.com>
83498
83499         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83500         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83501         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83502
83503 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83504
83505         Improve fileutils installation on systems where running
83506         programs (like install) can't be unlinked.
83507         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83508         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83509
83510 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83511
83512         Standardize on "memory exhausted" instead of "Memory exhausted"
83513         or "virtual memory exhausted".
83514         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83515         "virtual memory exhausted".
83516         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83517         our own message.
83518         * lib/userspec.c (parse_user_spec): Likewise.
83519         * lib/bumpalloc.h: comment fix
83520         * lib/same.c, userspec.c: Include xalloc.h.
83521
83522         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83523         not char *const and pointing to a constant array.
83524         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83525         (xrealloc): Comment fix.
83526
83527         * lib/userspec.c (parse_user_spec):
83528         Don't translate a message until just before returning,
83529         to avoid unnecessary translation.
83530
83531 2000-08-07  Jim Meyering  <meyering@lucent.com>
83532
83533         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83534         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83535         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83536         getgroups.c, gethostname.c, getopt.h, group-member.c,
83537         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83538         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83539         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83540         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83541         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83542         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83543         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83544         yesno.c: Back out Copyright date changes for each file with no change
83545         this year.  This eases coordination with other programs using the same
83546         source code modules.  From Paul Eggert.
83547
83548 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83549
83550         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83551         not char, for compatibility with glibc 2.1.3 strftime.c.
83552
83553 2000-08-03  Greg McGary  <greg@mcgary.org>
83554
83555         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83556         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83557         (EXTEND_BUFFER): Use them.
83558
83559 2000-08-01  Jim Meyering  <meyering@lucent.com>
83560
83561         * lib/dirname.c (ISSLASH): Define.
83562         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83563         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83564         both `\' and `/' may be use as path separators.
83565         Based on a patch from Prashant TR.
83566
83567 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83568
83569         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83570         slot vector a constant, since it might get modified.
83571
83572 2000-07-31  Jim Meyering  <meyering@lucent.com>
83573
83574         * lib/xmalloc.c: Use `virtual memory exhausted', not
83575         `Memory exhausted'.
83576         * lib/obstack.c (print_and_abort): Likewise.
83577
83578 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83579
83580         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83581         buffer, so that the caller can always quote one small
83582         component of a "memory exhausted" message in slot 0.
83583         From a suggestion by Jim Meyering.
83584
83585 2000-07-30  Jim Meyering  <meyering@lucent.com>
83586
83587         * lib/makepath.c (make_path): Quote the other instance, too.
83588
83589         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83590         (STATIC_BUF_SIZE): Define.
83591         (quotearg_n_options): Use only statically allocated storage when
83592         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83593         than STATIC_BUF_SIZE.
83594
83595 2000-07-29  Jim Meyering  <meyering@lucent.com>
83596
83597         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83598         * lib/dirname.c (dir_name): Likewise.
83599
83600         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83601         `/'.
83602
83603         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83604         (dir_name): Assert that there are no trailing slashes.
83605
83606 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83607
83608         * lib/mbswidth.h (mbswidth): Add a flags argument.
83609         (mbswidth): New declaration.
83610         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83611         * lib/mbswidth.c (mbswidth): Add a flags argument.
83612         (mbsnwidth): New function.
83613
83614 2000-07-24  Jim Meyering  <meyering@lucent.com>
83615
83616         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83617
83618 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83619
83620         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83621
83622 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83623
83624         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83625         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83626         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83627         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83628         invoke multibyte primitives.
83629
83630 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83631
83632         * lib/quotearg.c:
83633         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83634         so that mbstate_t is always defined.
83635
83636         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83637         be 1 in at least one GCC installation, and this configuration
83638         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83639         performance on hosts that have mbrtowc but have only unibyte
83640         locales, but I assume these hosts are rare.
83641
83642 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83643
83644         * lib/mbswidth.c (_XOPEN_SOURCE):
83645         Don't define; this causes problems on Solaris 7.
83646         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83647
83648 2000-07-23  Jim Meyering  <meyering@lucent.com>
83649
83650         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83651         too: getgrgid, getpwuid, getuid.
83652
83653 2000-07-23  Jim Meyering  <meyering@lucent.com>
83654
83655         * lib/basename.c (base_name): Add an assertion.
83656
83657 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83658
83659         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83660         shadow its mbsinit function.
83661
83662 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83663
83664         * lib/mbswidth.h: New file.
83665         * lib/mbswidth.c: New file.
83666         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83667         (noinst_HEADERS): Add mbswidth.h.
83668
83669 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83670
83671         * lib/config.charset: Add support for FreeBSD. Improve support for
83672         HP-UX and IRIX 6.
83673
83674 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83675
83676         * m4/mbswidth.m4: New file.
83677         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83678
83679 2000-07-15  Jim Meyering  <meyering@lucent.com>
83680
83681         * lib/makepath.c: Include quote.h.
83682         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83683         corresponding argument in a `quote (...)' call.
83684         Give better diagnostics.
83685
83686         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83687         (noinst_HEADERS): Add quote.h.
83688
83689         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83690         from tar's src/misc.c.
83691         * lib/quote.h: New file.  Prototypes for same.
83692
83693 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83694
83695         From a suggestion by Bruno Haible.
83696         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83697         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83698         to decide whether to define the BeOS workaround macro;
83699         this adjusts to the change to AC_MBSTATE_T.
83700
83701 2000-07-14  Jim Meyering  <meyering@lucent.com>
83702
83703         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83704         jm_AC_TYPE_UINTMAX_T.
83705
83706 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83707
83708         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83709
83710         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83711         quotearg_buffer_restyled): Add support for
83712         clocale_quoting_style.  Undo previous change to
83713         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83714         and "{RIGHT QUOTATION MARK}" msgids.
83715
83716 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83717
83718         From a suggestion by Bruno Haible.
83719         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83720         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83721         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83722         and mbstate_t, to a single-part test that simply defines mbstate_t.
83723         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83724         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83725
83726 2000-07-10  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83729
83730         * m4/gnu-source.m4: Output to confdefs.h directly.
83731         Suggestion from Akim Demaille.
83732
83733 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83734
83735         The old behavior of quoting `like this' doesn't look good with
83736         newer, ISO-style fonts.  See:
83737         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83738
83739         Instead, quote "like this" by default.  Let the translator
83740         tailor the locale-specific quoting behavior by providing
83741         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83742
83743         * lib/quotearg.c (N_): New macro.
83744         (gettext_default): New function.
83745         (quotearg_buffer_restyled): Use
83746         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83747         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83748
83749 2000-07-09  Jim Meyering  <meyering@lucent.com>
83750
83751         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83752         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83753
83754         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83756
83757 2000-07-09  Jim Meyering  <meyering@lucent.com>
83758
83759         * lib/Most files: Update copyright dates to include 2000.
83760
83761 2000-07-08  Jim Meyering  <meyering@lucent.com>
83762
83763         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83764         if not defined.
83765         (xgethostname): Remove now-unnecessary #ifdef.
83766         Move declaration of `err' into loop where it's used.
83767
83768 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83769         and Bruno Haible  <haible@clisp.cons.org>
83770
83771         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83772         only if the test for an object-type mbstate_t fails.  This
83773         prevents us from mistakenly reporting that mbstate_t is a
83774         system object type after we "#define mbstate_t int" to work
83775         around its lack.
83776
83777 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83778         and Bruno Haible  <haible@clisp.cons.org>
83779
83780         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83781
83782 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83783
83784         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83785         to strerror_r.
83786         Include <ctype.h> for use of isalpha.
83787
83788 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83789
83790         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83791         by allocating a larger buffer. Test the gethostname return value for
83792         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83793         returns an error and ENAMETOOLONG isn't defined.
83794
83795 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83796
83797         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83798         dimension.
83799
83800 2000-07-04  Jim Meyering  <meyering@lucent.com>
83801
83802         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83803         of the deprecated AC_CHECKING.
83804
83805 2000-07-04  Jim Meyering  <meyering@lucent.com>
83806
83807         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83808         Reported by Bruno Haible.
83809
83810 2000-07-04  Jim Meyering  <meyering@lucent.com>
83811
83812         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83813         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83814         lacks mbrtowc.
83815
83816 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83817
83818         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83819         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83820
83821 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83822         and Bruno Haible  <haible@clisp.cons.org>
83823
83824         * lib/quotearg.c (mbrtowc):
83825         Assign to *pwc, and return 1 only if result is nonzero.
83826         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83827
83828 2000-07-03  Jim Meyering  <meyering@lucent.com>
83829
83830         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83831
83832 2000-07-03  Jim Meyering  <meyering@lucent.com>
83833
83834         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83835         This is necessary to get a definition of e.g., UTMP_FILE on
83836         HP-UX 10.20.
83837         From Bob Proulx.
83838
83839 2000-07-02  Jim Meyering  <meyering@lucent.com>
83840
83841         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83842
83843         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83844         AC_LIBOBJ(function_name).
83845         * m4/chown.m4: Likewise.
83846         * m4/fnmatch.m4: Likewise.
83847         * m4/ftruncate.m4: Likewise.
83848         * m4/getgroups.m4: Likewise.
83849         * m4/getline.m4: Likewise.
83850         * m4/group-member.m4: Likewise.
83851         * m4/jm-macros.m4: Likewise.
83852         * m4/lstat.m4: Likewise.
83853         * m4/malloc.m4: Likewise.
83854         * m4/memcmp.m4: Likewise.
83855         * m4/nanosleep.m4: Likewise.
83856         * m4/putenv.m4: Likewise.
83857         * m4/realloc.m4: Likewise.
83858         * m4/regex.m4: Likewise.
83859         * m4/stat.m4: Likewise.
83860         * m4/strftime.m4: Likewise.
83861
83862 2000-07-02  Jim Meyering  <meyering@lucent.com>
83863
83864         * lib/quotearg.c (mbstate_t): Don't define here.
83865
83866 2000-07-02  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83869
83870 2000-07-01  Jim Meyering  <meyering@lucent.com>
83871
83872         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83873
83874 2000-07-01  Jim Meyering  <meyering@lucent.com>
83875
83876         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83877         problem.
83878
83879 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83880
83881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83882         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83883
83884 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83885
83886         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83887         per change in ../m4/ls-mntd-fs.m4.
83888         (read_filesystem_list): Ignore symbolic links.
83889
83890 2000-06-29  Jim Meyering  <meyering@lucent.com>
83891
83892         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83893         for declaration of strcmp.
83894
83895         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83896
83897         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83898         Avoid warning by casting result to `char *' to remove `const'.
83899
83900 2000-06-28  Jim Meyering  <meyering@lucent.com>
83901
83902         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83903         included by quotearg.c, for which we perform this test.  From
83904         Bruno Haible.
83905
83906 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83907
83908         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83910         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83911
83912 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83913
83914         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83915
83916 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83917
83918         savedir now sets errno on failure and invokes xmalloc to get memory.
83919         Fix a couple of other minor bugs while we're at it.
83920
83921         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83922         (NAMLEN): Remove macro.
83923         (malloc, realloc): Remove decls.
83924         (stpcpy): Likewise.
83925         ("xalloc.h"): Include.
83926         (NAME_SIZE_DEFAULT): New macro.
83927         (savedir): Use xmalloc / xrealloc to allocate memory.
83928         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83929         Skip "" directory entries.
83930         Use strlen to calculate directory entry length, since the old method
83931         is rarely used these days and isn't worth supporting.
83932         Don't use a pointer after freeing it.
83933         Check for integer overflow when calculating allocation size.
83934         Use memcpy to copy entries, instead of stpcpy.
83935         Set errno properly when returning NULL.
83936         Check for readdir error.
83937
83938 2000-06-26  Jim Meyering  <meyering@lucent.com>
83939
83940         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83941
83942 2000-06-25  Jim Meyering  <meyering@lucent.com>
83943
83944         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83945         Linux header bug when _XOPEN_SOURCE is defined to 500.
83946
83947 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83948
83949         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83950         deficiency.
83951
83952 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83953
83954         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83955         Include xalloc.h.
83956         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83957
83958 2000-06-24  Jim Meyering  <meyering@lucent.com>
83959
83960         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83961         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83962         for which strerror does return char*, but which lacks a conveniently
83963         accessible declaration of the function.  If the compile-test says
83964         strerror_r doesn't work, then resort to a `run'-test that works on
83965         BeOS and segfaults on DEC Unix.
83966
83967 2000-06-24  Jim Meyering  <meyering@lucent.com>
83968
83969         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83970
83971 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83972
83973         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83975
83976 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83977
83978         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83979         (mbrtowc, mbstate_t): Define substitutes if
83980         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83981         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83982         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83983
83984 2000-06-23  Jim Meyering  <meyering@lucent.com>
83985
83986         * m4/afs.m4: Add missing AC_MSG_RESULT.
83987         Reported by Bruno Haible.
83988
83989         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83990         Suggestion from Bruno Haible.
83991
83992 2000-06-23  Jim Meyering  <meyering@lucent.com>
83993
83994         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83995
83996 2000-06-21  Jim Meyering  <meyering@lucent.com>
83997
83998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83999
84000 2000-06-21  Jim Meyering  <meyering@lucent.com>
84001
84002         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84003         (noinst_HEADERS): Add getstr.h.
84004
84005         * lib/getline.c (getstr): Move into a separate file.
84006         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84007         the following changes: new parameter, delim2; both delim[12]
84008         parameters have type `int', not `char'.  The latter would lose
84009         with 8-bit delimiters.
84010         * lib/getstr.h: New file.
84011
84012 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84013
84014         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84015         than 1024, return a memory chunk of least possible size, instead
84016         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84017         Use free/xmalloc instead of xrealloc to avoid copying for very long
84018         paths.
84019
84020 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84021
84022         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84023         the empty string.
84024
84025 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84026
84027         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84028         address, not strdup.  Include <stdlib.h> and don't declare free().
84029
84030 2000-06-19  Jim Meyering  <meyering@lucent.com>
84031
84032         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84033
84034 2000-06-18  Jim Meyering  <meyering@lucent.com>
84035
84036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84037
84038         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84039         `checking whether...' message to be consistent with that of the
84040         lstat test.
84041
84042 2000-06-18  Jim Meyering  <meyering@lucent.com>
84043
84044         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84045         Besides, these days every porting target provides a mkdir function.
84046
84047         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84048         needed. (this snippet comes from src/system.h).
84049
84050 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84051
84052         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84053
84054 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84055
84056         * lib/human.c (adjust_value): New function.
84057         (human_readable_inexact): Apply rounding style even when
84058         printing approximate values.
84059
84060 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84061
84062         * lib/human.c (human_readable_inexact): Allow an input block
84063         size that is not a multiple of the output block size, and vice versa.
84064         Reported by Piergiorgio Sartor.
84065
84066 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84067
84068         * lib/getdate.y (get_date): Apply relative times after time
84069         zone indicator, not before.  Reported by Todd A. Jacobs.
84070
84071 2000-06-13  Jim Meyering  <meyering@lucent.com>
84072
84073         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84074
84075         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84076
84077 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84078
84079         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84080
84081 2000-06-12  Jim Meyering  <meyering@lucent.com>
84082
84083         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84084         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84085         optional argument.
84086         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84087         the optional argument, `lib'.
84088
84089 2000-06-08  Jim Meyering  <meyering@lucent.com>
84090
84091         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84092
84093 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84094
84095         Rewrite largefile configuration so that we don't need to run
84096         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84097         AC_CANONICAL_HOST in configure.in -- jmm]
84098
84099         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84100         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84101         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84102         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84103         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84104         All uses changed.
84105         Instead of inspecting the output of getconf, try to compile the
84106         test program without and with the macro definition.
84107         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84108         for getconf.  Instead, check for the needed flags by compiling
84109         test programs.
84110
84111 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84112
84113         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84114
84115 2000-06-04  Jim Meyering  <meyering@lucent.com>
84116
84117         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84118         SunOS 4.1.4 for which gid_t is an unsigned type.
84119
84120 2000-06-03  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84123         now that autoconf requires that.
84124
84125         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84126         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84127         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84128
84129 2000-06-03  Jim Meyering  <meyering@lucent.com>
84130
84131         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84132
84133 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84134
84135         * m4/glibc21.m4: New file.
84136         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84137
84138 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84139
84140         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84141         newer, don't install charset.alias.
84142         * lib/config.charset: Change the Linux/glibc rules so they become empty
84143         on glibc-2.1 or newer.
84144
84145 2000-06-02  Jim Meyering  <meyering@lucent.com>
84146
84147         * lib/mountlist.c: Back out last change.  Instead, do this...
84148         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84149         me_dummy member using the same `ignore'-testing code.
84150         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84151         fs_type strings.
84152         From Mark D. Roth.
84153
84154 2000-05-29  Jim Meyering  <meyering@lucent.com>
84155
84156         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84157         mounts with the `ignore' attribute.  Based on a patch from
84158         Mark D. Roth.
84159
84160 2000-05-28  Jim Meyering  <meyering@lucent.com>
84161
84162         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84163         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84164         * m4/stat.m4: Likewise.
84165         * m4/lstat.m4: Likewise.
84166         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84167
84168         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84169         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84170
84171 2000-05-26  Jim Meyering  <meyering@lucent.com>
84172
84173         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84174
84175 2000-05-24  Jim Meyering  <meyering@lucent.com>
84176
84177         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84178         autoconf requires that.
84179         * m4/lib-check.m4: Likewise.
84180         * m4/jm-macros.m4: Likewise.
84181         * m4/strftime.m4: Likewise.
84182
84183         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84184         AC_CHECK_DECLS, now that autoconf requires that.
84185
84186 2000-05-22  Jim Meyering  <meyering@lucent.com>
84187
84188         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84189         * m4/lstat.m4: Likewise.
84190
84191 2000-05-22  Jim Meyering  <meyering@lucent.com>
84192
84193         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84194
84195 2000-05-20  Jim Meyering  <meyering@lucent.com>
84196
84197         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84198         (jm_PREREQ): Use it.
84199
84200 2000-05-18  Jim Meyering  <meyering@lucent.com>
84201
84202         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84203         back, too, since it may have been modified by allocate_entry.
84204         (hash_delete): Rewrite to use neither the assignment operator
84205         nor the comma operator in an if-expression.
84206
84207 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84208
84209         * lib/closeout.c:
84210         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84211         Remove; no longer needed.
84212         "quotearg.h": Add include.
84213         (file_name): Do not bother to explicitly initialize to NULL; it's less
84214         efficient on some hosts.
84215         (close_stdout_status): Remove test as to whether stdout was already
84216         closed; it breaks for the case "echo x | sort >&-".
84217         Quote file name colons.
84218         Do not assume that _("write error") lacks format strings.
84219
84220 2000-05-15  Jim Meyering  <meyering@lucent.com>
84221
84222         * lib/version-etc.c (version_etc_copyright): Update the copyright
84223         string used in all --version output.
84224
84225 2000-05-14  Jim Meyering  <meyering@lucent.com>
84226
84227         * lib/closeout.c (close_stdout_set_file_name): New function.
84228         (close_stdout_status): Use new file-scoped global.
84229         Return right away if fstat says the stdout file descriptor is invalid.
84230         * lib/closeout.h (close_stdout_set_file_name): Declare.
84231
84232 2000-05-10  Jim Meyering  <meyering@lucent.com>
84233
84234         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84235         (close_stdout_set_status): New function.
84236         * lib/closeout.h (close_stdout_set_status): Declare.
84237
84238 2000-05-09  Jim Meyering  <meyering@lucent.com>
84239
84240         * m4/gettext.m4: Rename this...
84241         * m4/libintl.m4: ...to this.
84242
84243 2000-05-08  Jim Meyering  <meyering@lucent.com>
84244
84245         * lib/long-options.c: Don't include closeout.h.
84246         (parse_long_options): Don't call close_stdout for --version.
84247
84248 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84249
84250         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84251         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84252         2.1.3 bug.  This avoids a clash when files like regex.c define
84253         _GNU_SOURCE.
84254
84255 2000-05-06  Jim Meyering  <meyering@lucent.com>
84256
84257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84258         (AC_REPLACE_FUNCS): Add strnlen.
84259
84260         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84261         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84262
84263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84264         AC_SEARCH_LIBS call for nanosleep.
84265         (LIB_NANOSLEEP): Set and AC_SUBST.
84266
84267 2000-05-06  Jim Meyering  <meyering@lucent.com>
84268
84269         * lib/strnlen.c: Undefine __strnlen and strnlen.
84270         [!weak_alias]: Define __strnlen to strnlen.
84271
84272         * lib/atexit.c: New file, from libiberty.
84273
84274 2000-05-06  Jim Meyering  <meyering@lucent.com>
84275
84276         * lib/closeout.c (close_stdout_status): Also check for errors on the
84277         stderr stream.
84278
84279 2000-05-05  Jim Meyering  <meyering@lucent.com>
84280
84281         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84282         AC_SEARCH_LIBS call for clock_gettime.
84283         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84284
84285         * m4/search-libs.m4: Update from autoconf.
84286
84287         su doesn't work on Solaris 2.6.
84288         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84289         <shadow.h>.  Reported by Dragos Harabor.
84290
84291 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84292
84293         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84294         memcpy instead of xmalloc, xrealloc, path_concat.
84295         (locale_charset): Treat empty environment variables as absent.
84296         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84297
84298 2000-05-04  Jim Meyering  <meyering@lucent.com>
84299
84300         * lib/getopt.c: Update from glibc.
84301         * lib/obstack.c: Likewise.
84302         * lib/obstack.h: Likewise.
84303         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84304         file
84305
84306         * lib/regex.h: Likewise.
84307         * lib/strndup.c: Likewise.
84308         * lib/strnlen.c: New file, from glibc.
84309
84310 2000-05-03  Jim Meyering  <meyering@lucent.com>
84311
84312         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84313
84314 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84315
84316         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84317         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84318         compile-time test, rather than inspecting host and OS, to
84319         decide whether to define _LARGEFILE_SOURCE.
84320
84321 2000-05-01  Jim Meyering  <meyering@lucent.com>
84322
84323         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84324
84325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84326         Based on a patch from Bruno Haible.
84327
84328 2000-05-01  Jim Meyering  <meyering@lucent.com>
84329
84330         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84331
84332 2000-04-29  Jim Meyering  <meyering@lucent.com>
84333
84334         * lib/path-concat.c: Declare strdup only if it's not defined.
84335         * lib/canon-host.c: Likewise.
84336
84337 2000-04-28  Jim Meyering  <meyering@lucent.com>
84338
84339         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84340         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84341         is included first, then limits.h is included by locale.h by libintl.h.
84342         From John David Anglin.
84343
84344 2000-04-25  Jim Meyering  <meyering@lucent.com>
84345
84346         * lib/makepath.c (S_IRWXUGO): Define.
84347         (make_path): Always perform explicit chmod if MODE specifies any
84348         of the `special' permission bits.  Prompted by a bug report against
84349         install from Mate Wierdl and Joost van Baal.
84350
84351 2000-04-18  Jim Meyering  <meyering@lucent.com>
84352
84353         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84354         (jm_PREREQ): Use it.
84355
84356 2000-04-18  Jim Meyering  <meyering@lucent.com>
84357
84358         * lib/README: New file.
84359
84360         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84361         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84362
84363 2000-04-17  Jim Meyering  <meyering@lucent.com>
84364
84365         Get it right :-)
84366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84367         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84368         Suggestion from Akim Demaille.
84369
84370 2000-04-17  Jim Meyering  <meyering@lucent.com>
84371
84372         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84373         the definition of it to rpl_strftime also defined-away the system's
84374         declaration.
84375
84376 2000-04-15  Jim Meyering  <meyering@lucent.com>
84377
84378         Use `C' to denote so-called `contiguous' files, the same way
84379         that tar does.
84380         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84381         (ftypelet): Use S_ISCTG.
84382         From Michael Deutschmann.
84383
84384 2000-04-14  Jim Meyering  <meyering@lucent.com>
84385
84386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84387         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84388         clobbered.
84389
84390 2000-04-14  Jim Meyering  <meyering@lucent.com>
84391
84392         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84393
84394 2000-04-13  Jim Meyering  <meyering@lucent.com>
84395
84396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84397         AH_VERBATIM to insert required #ifndef into config.h.in.
84398         Suggestion from Akim Demaille.
84399
84400 2000-04-12  Jim Meyering  <meyering@lucent.com>
84401
84402         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84403         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84404         Christian Krackowizer.
84405
84406         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84407         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84408         (AC_SYS_LARGEFILE): Require.
84409         (AM_C_PROTOTYPES): Require.
84410
84411 2000-04-08  Jim Meyering  <meyering@lucent.com>
84412
84413         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84414         names don't conflict.  Reported by Eli Zaretskii.
84415
84416 2000-04-07  Jim Meyering  <meyering@lucent.com>
84417
84418         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84419         sys/types.h, to work around system header problems on AIX 3.2.5.
84420         From Bruno Haible.
84421
84422 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84423
84424         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84425         bug.  Deal with the different error behavior of Irix iconv.
84426
84427 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84428
84429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84430         IRIX if the installer said otherwise.
84431
84432 2000-04-05  Jim Meyering  <meyering@lucent.com>
84433
84434         Portability tweaks required for ultrix4.3.
84435         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84436         (jm_CHECK_DECLS): Add getutent to the list of functions.
84437         (_jm_DECL_HEADERS): Add utmpx.h.
84438         From John David Anglin.
84439
84440         * m4/strftime.m4: Back out the 2000-04-02 change.
84441         Instead of that change, simply undefine putenv in the test program.
84442
84443 2000-04-05  Jim Meyering  <meyering@lucent.com>
84444
84445         Portability tweaks required for ultrix4.3.
84446         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84447         getutent.
84448         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84449         * lib/canon-host.c: Declare strdup.
84450         * lib/path-concat.c: Likewise.
84451         From John David Anglin.
84452
84453 2000-04-04  Jim Meyering  <meyering@lucent.com>
84454
84455         Be more DOS 8.3-friendly.
84456         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84457         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84458         * lib/Makefile.am: Reflect renaming.
84459         Reported by Eli Zaretskii.
84460
84461         Use a temporary file name that won't clash with `charset.alias'
84462         in the DOS 8.3 name space.
84463         * lib/Makefile.am (charset_tmp): Define.
84464         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84465         (uninstall-local): Likewise.
84466         Reported by Eli Zaretskii.
84467
84468 2000-04-03  Jim Meyering  <meyering@lucent.com>
84469
84470         * m4/gettext.m4: Fix typo in comment.
84471
84472         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84473         textutils/configure.in).  Suggestion from Paul Eggert.
84474         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84475
84476 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84477
84478         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84479         variable in the shell rather than using putenv, which isn't
84480         portable.  This avoids the configure-time inter-test dependency
84481         on the potentially-renamed putenv function.
84482
84483 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84484
84485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84486         before checking struct stat.st_blksize, so that
84487         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84488
84489 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84490
84491         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84492         since strftime.c uses HAVE_STRFTIME to decide whether to use
84493         the underlying strftime.
84494
84495 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84496
84497         * lib/time/strftime.c (my_strftime): Make sure we call the system
84498         strftime, not ourselves, when invoking the underlying strftime.
84499
84500 2000-03-24  Jim Meyering  <meyering@lucent.com>
84501
84502         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84503         (charset_alias): Define.
84504         (install-exec-local): Factor out common code.
84505         (uninstall-local): Split lines longer than 80.
84506         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84507         (SUFFIXES): Define.
84508         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84509         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84510
84511 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84512
84513         * lib/config.charset: Output a line containing "Packages using this
84514         file".
84515         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84516         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84517         ref-del.sed): New rules.
84518
84519 2000-03-17  Jim Meyering  <meyering@lucent.com>
84520
84521         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84522         Otherwise, include <strings.h>
84523
84524 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84525
84526         * lib/unicodeio.c (utf8_wctomb): New function.
84527         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84528         format instead of in UCS-4 with platform dependent endianness.
84529
84530 2000-03-10  Jim Meyering  <meyering@lucent.com>
84531
84532         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84533         From Marco Franzen.
84534
84535 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84536
84537         * lib/savedir.c (savedir): Work even if directory size is
84538         negative; this can happen with some screwy NFS configurations.
84539
84540 2000-03-06  Jim Meyering  <meyering@lucent.com>
84541
84542         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84543         if it's NULL (because we ran out of memory).  From Bruno Haible.
84544
84545 2000-03-05  Jim Meyering  <meyering@lucent.com>
84546
84547         * lib/localcharset.c ("path-concat.h"): Include.
84548         (get_charset_aliases): Use path_concat instead of ANSI string
84549         concatenation.
84550
84551         * lib/unicodeio.h (PARAMS): Define.
84552         Use it to guard prototype.
84553
84554 2000-03-04  Jim Meyering  <meyering@lucent.com>
84555
84556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84557         for lib/localcharset.c.
84558
84559 2000-03-04  Jim Meyering  <meyering@lucent.com>
84560
84561         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84562         installing into it.
84563         (uninstall-local): Uncomment this rule so `make distcheck' works
84564         once again.
84565
84566         * lib/unicodeio.c (<errno.h>): Include it.
84567         (errno): Declare if not defined.
84568
84569         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84570
84571         * lib/config.charset: New version, incorporating remarks from a linux
84572         i18n mailing list.  From Bruno Haible.
84573
84574 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84575
84576         * m4/codeset.m4: New file.
84577         * m4/iconv.m4: New file.
84578         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84579
84580 2000-03-03  Jim Meyering  <meyering@lucent.com>
84581
84582         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84583
84584 2000-03-02  Jim Meyering  <meyering@lucent.com>
84585
84586         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84587         the messages come out on separate lines.
84588
84589         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84590         rather than jm_CHECK_DECLARATIONS.
84591         * m4/decl.m4: Remove now-unused file.
84592
84593         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84594         geteuid.
84595
84596 2000-03-02  Jim Meyering  <meyering@lucent.com>
84597
84598         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84599
84600 2000-03-01  Jim Meyering  <meyering@lucent.com>
84601
84602         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84603         * lib/unicodeio.c: Likewise.
84604
84605 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84606
84607         * lib/config.charset: New file.
84608         * lib/localcharset.c: New file.
84609         * lib/unicodeio.h, lib/unicodeio.c: New files.
84610         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84611         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84612         (noinst_HEADERS): Add unicodeio.h.
84613         (all-local, install-exec-local, charset.alias): New targets.
84614
84615 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84616
84617         * lib/quotearg.c (ALERT_CHAR): New macro.
84618         (quotearg_buffer_restyled): Use it.
84619
84620 2000-02-27  Jim Meyering  <meyering@lucent.com>
84621
84622         * m4/check-decl.m4: Add getenv to the list.
84623
84624 2000-02-27  Jim Meyering  <meyering@lucent.com>
84625
84626         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84627         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84628
84629         * lib/backupfile.c: Guard inclusion of stdlib.h with
84630         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84631         Declare malloc if needed.
84632
84633         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84634         `#ifndef HAVE_DECL..'
84635         now that autoconf always defines the HAVE_DECL_ symbols.
84636         * lib/human.c: Likewise.
84637         * lib/same.c: Likewise.
84638         * lib/strtoumax.c: Likewise.
84639
84640         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84641         declaration check was not run.
84642         * lib/hash.c: Likewise.
84643         * lib/human.c: Likewise.
84644         * lib/same.c: Likewise.
84645         * lib/strtoumax.c: Likewise.
84646
84647         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84648         `.', then first look up the entire `.'-containing string as a login
84649         name.
84650
84651 2000-02-23  Jim Meyering  <meyering@lucent.com>
84652
84653         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84654         in place of my hack.
84655
84656 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84657
84658         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84659         (textint): New typedef.
84660         (parser_control): Member year changed from int to textint.
84661         All uses changed.
84662         (YYSTYPE): Removed; replaced by %union with int and textint members.
84663         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84664         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84665         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84666         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84667         (date, number, to_year): Use width of number in digits, not its value,
84668         to determine whether it's a 2-digit year, or a 2-digit time.
84669         (yylex): Store number of digits of numeric tokens.
84670         Reported by John Kendall.
84671
84672         (parser_control): Changed from struct parser_control to typedef (for
84673         consistency).  All uses changed.
84674
84675         (tID): Removed; not used.
84676         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84677
84678 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84679
84680         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84681         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84682
84683 2000-02-12  Jim Meyering  <meyering@lucent.com>
84684
84685         * lib/userspec.c (ISDIGIT): Define it.
84686         (isdigit): Remove definition.
84687         (is_number): Use ISDIGIT, not isdigit.
84688         <libintl.h>: Include.
84689         (_ and N_): Define.
84690         (parse_user_spec): Mark translatable strings.
84691
84692 2000-02-10  Jim Meyering  <meyering@lucent.com>
84693
84694         With these changes, nanosleep.[ch] are finally enough like the other
84695         lib/* replacement files to compile on a few more losing systems.
84696
84697         * lib/nanosleep.h: Don't include config.h.
84698         Remove prototype from declaration of nanosleep.
84699         (PARAMS): Remove now-unneeded definition.
84700         * lib/nanosleep.c: #undef nanosleep.
84701         (rpl_nanosleep): Rename from nanosleep.
84702
84703 2000-02-10  Jim Meyering  <meyering@lucent.com>
84704
84705         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84706         gnu_nanosleep to rpl_nanosleep.
84707
84708 2000-02-09  Jim Meyering  <meyering@lucent.com>
84709
84710         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84711         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84712
84713 2000-02-08  Akim Demaille  <akim@epita.fr>
84714
84715         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84716         `[' and `]' and remove uses of `changequote'.
84717         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84718         (AC_SYS_LARGEFILE): Likewise.
84719         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84720         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84721         of changequote.
84722         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84723         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84724         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84725         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84726
84727 2000-02-05  Jim Meyering  <meyering@lucent.com>
84728
84729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84730         Remove explicit use of AC_HEADER_TIME.  It is required by
84731         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84732         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84733         in autoconf whereby the expansion of the latter ended up preceding
84734         the expansion of its prerequisite, AC_HEADER_TIME.
84735         Reported by Volker Borchert.
84736
84737 2000-02-03  Jim Meyering  <meyering@lucent.com>
84738
84739         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84740
84741 2000-02-03  Jim Meyering  <meyering@lucent.com>
84742
84743         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84744         rather than with `#if HAVE_UTMPNAME'.
84745
84746 2000-02-02  Jim Meyering  <meyering@lucent.com>
84747
84748         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84749         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84750         Reported by Eli Zaretskii.
84751
84752 2000-02-01  Jim Meyering  <meyering@lucent.com>
84753
84754         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84755
84756 2000-01-31  Jim Meyering  <meyering@lucent.com>
84757
84758         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84759         functions.  Add the time.h and sys/time.h headers along with the
84760         AC_REQUIRE'ment of AC_HEADER_TIME.
84761
84762 2000-01-31  Jim Meyering  <meyering@lucent.com>
84763
84764         * lib/nanosleep.h (nanosleep): Guard declaration with
84765         `#if ! HAVE_DECL_NANOSLEEP'.
84766         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84767         the declaration in that vendor's sys/timers.h.
84768         Reported by Christian Krackowizer.
84769
84770         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84771         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84772         (ISPRINT): Likewise.
84773         Reported by Tom Tromey.
84774
84775 2000-01-30  Jim Meyering  <meyering@lucent.com>
84776
84777         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84778
84779         * m4/prereq.m4 (utmp_includes): Define.
84780         Check for ut_user and ut_name members in both struct utmpx
84781         and struct utmp.
84782
84783 2000-01-30  Jim Meyering  <meyering@lucent.com>
84784
84785         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84786         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84787         header files where only utmpx.ut_user is declared.
84788
84789         * lib/readutmp.h (UT_USER): Define.
84790
84791 2000-01-29  Jim Meyering  <meyering@lucent.com>
84792
84793         * m4/lib-check.m4: New file containing library-related checks from
84794         fileutils and sh-utils (textutils had none).
84795
84796 2000-01-28  Jim Meyering  <meyering@lucent.com>
84797
84798         * m4/perl.m4: Change format of warning message to look more like that
84799         from the missing script.  Suggestion from François Pinard.
84800
84801 2000-01-25  Jim Meyering  <meyering@lucent.com>
84802
84803         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84804         well as time.h in the compile check.
84805         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84806         Fix typo in cross-compiling case: s/yes/no/.
84807
84808 2000-01-23  Jim Meyering  <meyering@lucent.com>
84809
84810         * m4/jm-macros.m4: Move df-related tests here from
84811         fileutils/configure.in
84812
84813         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84814         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84815
84816         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84817         s/space/ac_fsusage_space/.
84818         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84819
84820         * m4/ftruncate.m4: New file (derived from part of
84821         fileutils/configure.in).
84822         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84823         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84824
84825         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84826         AC_SUBST these here, rather than just in sh-util/configure.in, so
84827         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84828         all the same.
84829         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84830         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84831         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84832         (AC_SUBST(POW_LIBM)): Likewise.
84833         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84834
84835 2000-01-23  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84838         obstack.c.
84839
84840 2000-01-22  Jim Meyering  <meyering@lucent.com>
84841
84842         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84843
84844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84845
84846         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84847         configure.in
84848         (AC_CHECK_HEADERS): Likewise for sh-utils.
84849         (AC_CHECK_HEADERS): Likewise for textutils.
84850         Merge the three lists of headers.
84851
84852         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84853         from fileutils' configure.in.
84854
84855         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84856         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84857         check-decl.m4.
84858
84859         * m4/check-decl.m4: Use #if rather than #ifdef.
84860         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84861         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84862         (_jm_DECL_HEADERS): Define new function.
84863         (jm_CHECK_DECLARATIONS): Require it.
84864
84865 2000-01-22  Jim Meyering  <meyering@lucent.com>
84866
84867         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84868         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84869         Required for some AIX systems.  Reported by Christian Krackowizer.
84870         [TESTING] (main): New function.
84871
84872         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84873         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84874         letters.
84875
84876         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84877         iswprint.
84878
84879         * lib/strverscmp.c (ISDIGIT): Define.
84880         (strverscmp): Use ISDIGIT, not isdigit.
84881
84882 2000-01-19  Jim Meyering  <meyering@lucent.com>
84883
84884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84885         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84886         defines `struct timespec' in <sys/time.h>
84887
84888         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84889         Thanks to Akim for explaining.
84890
84891 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84892
84893         * lib/nanosleep.c (nanosleep):
84894         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84895         POSIX.1 doesn't require SA_INTERRUPT and some systems
84896         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84897         it's been part of POSIX.1 since day 1 (in 1988).
84898
84899 2000-01-17  Jim Meyering  <meyering@lucent.com>
84900
84901         * lib/interlock: Remove unused file.  Reported by François Pinard.
84902
84903 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84904
84905         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84906         alert, backslash, formfeed, and vertical tab unnecessarily in
84907         shell quoting style.
84908
84909 2000-01-16  Jim Meyering  <meyering@lucent.com>
84910
84911         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84912         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84913         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84914         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84915
84916 2000-01-16  Jim Meyering  <meyering@lucent.com>
84917
84918         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84919         because the latter didn't work.
84920
84921 2000-01-15  Jim Meyering  <meyering@lucent.com>
84922
84923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84924         (AC_REPLACE_FUNCS): Add memcpy and memset.
84925         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84926         Add strpbrk.
84927         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84928
84929 2000-01-12  Jim Meyering  <meyering@lucent.com>
84930
84931         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84932         (jm_PREREQ): Use it.
84933         (jm_PREREQ_READUTMP): New macro.
84934         (jm_PREREQ): Use it.
84935
84936 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84937
84938         Quote multibyte characters correctly.
84939         * m4/c-bs-a.m4: New file.
84940         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84941         (jm_PREREQ): Use it.
84942
84943 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84944
84945         * m4/uintmax_t.m4: Port to autoconf 2.13.
84946
84947 2000-01-08  Jim Meyering  <meyering@ascend.com>
84948
84949         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84950         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84951
84952 2000-01-04  Jim Meyering  <meyering@ascend.com>
84953
84954         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84955         jm_STRUCT_DIRENT_D_TYPE.
84956         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84957         jm_STRUCT_DIRENT_D_INO.
84958         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84959         jm_STRUCT_UTIMBUF.
84960         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84961         renamings.
84962         * m4/utime.m4: Likewise.
84963
84964         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84965         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84966
84967 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84968
84969         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84970         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84971
84972 2000-01-02  Jim Meyering  <meyering@ascend.com>
84973
84974         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84975         remember if this is necessary.
84976
84977 1999-12-26  Jim Meyering  <meyering@ascend.com>
84978
84979         * m4/jm-macros.m4: Use it here.
84980         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84981
84982 1999-12-23  Jim Meyering  <meyering@ascend.com>
84983
84984         * m4/jm-macros.m4: Check for clock_gettime (moved from
84985         fileutils/configure.in)
84986         Check for gettimeofday.
84987
84988 1999-12-20  Jim Meyering  <meyering@ascend.com>
84989
84990         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84991         autoconf-2.14a-1999-12-20.
84992
84993 1999-12-19  Jim Meyering  <meyering@ascend.com>
84994
84995         * m4/lstat-slash.m4: New file.
84996         * m4/jm-macros.m4: Use the new macro:
84997         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84998
84999 1999-12-07  Jim Meyering  <meyering@ascend.com>
85000
85001         * m4/perl.m4: Require that File::Compare be available, too.
85002         Too many systems seem to lack it.
85003
85004         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85005         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85006
85007 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85008
85009         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85010         problem with the QNX 4.25 shell, which doesn't propagate exit
85011         status of failed commands inside shell assignments.
85012
85013 1999-11-17  Jim Meyering  <meyering@ascend.com>
85014
85015         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85016
85017 1999-11-07  Jim Meyering  <meyering@ascend.com>
85018
85019         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85020
85021 1999-11-06  Jim Meyering  <meyering@ascend.com>
85022
85023         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85024         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85025
85026 1999-11-05  Jim Meyering  <meyering@ascend.com>
85027
85028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85029         configure.in of textutils, fileutils, and sh-utils into this one
85030         (shared between those packages) file.
85031         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85032         AC_STRUCT_ST_BLKSIZE.
85033
85034 1999-11-03  Jim Meyering  <meyering@ascend.com>
85035
85036         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85037         of AC_CHECK_TYPE checks includes unistd.h.
85038         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85039         Suggestion from Akim Demaille.
85040
85041 1999-10-30  Jim Meyering  <meyering@ascend.com>
85042
85043         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85044         m4-quoted string.
85045         * m4/ls-mntd-fs.m4: Likewise.
85046         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85047         * m4/jm-winsz1.m4: Likewise.
85048
85049         * m4/const.m4: Remove file, since the fix made it into the experimental
85050         version of autoconf.
85051         * m4/mktime.m4: Likewise.
85052
85053         * m4/check-type.m4: Remove file, now that the latest version of
85054         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85055
85056         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85057         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85058         AC_CHECK_TYPE.
85059
85060 1999-10-04  Jim Meyering  <meyering@ascend.com>
85061
85062         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85063
85064 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85065
85066         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85067         2.95.1 bug with HP-UX 10.20.
85068
85069 1999-09-17  Jim Meyering  <meyering@ascend.com>
85070
85071         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85072         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85073         due to missing strdup (against sh-utils-2.0).
85074
85075 1999-08-29  Jim Meyering  <meyering@ascend.com>
85076
85077         * m4/jm-macros.m4: Require jm_BISON.
85078         * m4/bison.m4: New file.
85079
85080 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85081
85082         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85083         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85084
85085 1999-08-05  Jim Meyering  <meyering@ascend.com>
85086
85087         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85088         to avoid conflicts with `conftest' on 8+3 filesystems.
85089         Suggestion from Eli Zaretskii.
85090
85091 1999-08-04  Jim Meyering  <meyering@ascend.com>
85092
85093         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85094         fileutils and sh-utils (textutils's getline test was inadequate).
85095         (AM_FUNC_GETLINE): Run this test.
85096         (AC_CHECK_FUNCS): Check for getdelim.
85097         Reported by Bob Proulx.
85098
85099 1999-08-02  Jim Meyering  <meyering@ascend.com>
85100
85101         * m4/jm-macros.m4: Add a comment.
85102
85103 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85104
85105         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85106         <inttypes.h> defines strtoumax as a macro (and not as a
85107         function).
85108
85109 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85110
85111         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85112         that we can shift, multiply and divide unsigned long long
85113         values; Ultrix cc can't do it.
85114
85115 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85116
85117         * m4/mktime.m4: New file, which is a preview of what should appear
85118         in the next public autoconf release.
85119
85120 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85121
85122         * m4/lfs.m4: Remove this file.
85123         * m4/largefile.m4: New file.  It contains the old contents of
85124         lfs.m4, except that all names with prefix AC_LFS have been
85125         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85126         compatible with future autoconf versions.  Also, some minor m4
85127         quoting problems have been fixed.
85128
85129 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85130
85131         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85132         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85133         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85134         and simplify the shell code.
85135
85136 1999-08-01  Jim Meyering  <meyering@ascend.com>
85137
85138         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85139         m4.
85140
85141 1999-07-20  Jim Meyering  <meyering@ascend.com>
85142
85143         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85144
85145 1999-07-15  Jim Meyering  <meyering@ascend.com>
85146
85147         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85148
85149 1999-05-22  Jim Meyering  <meyering@ascend.com>
85150
85151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85152
85153 1999-05-20  Jim Meyering  <meyering@ascend.com>
85154
85155         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85156         Add a colon after each `then' in case $4 is empty.
85157
85158 1999-05-16  Jim Meyering  <meyering@ascend.com>
85159
85160         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85161
85162 1999-05-10  Jim Meyering  <meyering@ascend.com>
85163
85164         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85165
85166         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85167         AC_FUNC_MKTIME.
85168
85169 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85170
85171         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85172
85173 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85174
85175         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85176         not CPPFLAGS, so that linking works correctly in IRIX.
85177
85178 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85179
85180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85181
85182 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85183
85184         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85185         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85186         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85187         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85188         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85189
85190         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85191
85192 1999-04-20  Jim Meyering  <meyering@ascend.com>
85193
85194         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85195         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85196         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85197
85198 1999-04-18  Jim Meyering  <meyering@ascend.com>
85199
85200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85201         * m4/jm-macros.m4: Use it.
85202
85203 1999-04-06  Jim Meyering  <meyering@ascend.com>
85204
85205         * m4/strftime.m4: Remove test for %f.
85206
85207 1999-03-29  Jim Meyering  <meyering@ascend.com>
85208
85209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85210         superset of the AC_TYPE_* checks in the textutils, fileutils,
85211         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85212         AC_TYPE_PID_T.
85213
85214 1999-03-28  Jim Meyering  <meyering@ascend.com>
85215
85216         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85217         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85218         replaced e.g., in the *.sh files of the sh-utils.
85219
85220 1999-03-20  Jim Meyering  <meyering@ascend.com>
85221
85222         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85223         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85224         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85225
85226 1999-03-19  Jim Meyering  <meyering@ascend.com>
85227
85228         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85229
85230 1999-03-12  Jim Meyering  <meyering@ascend.com>
85231
85232         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85233
85234 1999-03-07  Jim Meyering  <meyering@ascend.com>
85235
85236         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85237         declared.
85238
85239 1999-02-17  Jim Meyering  <meyering@ascend.com>
85240
85241         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85242         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85243
85244 1999-02-07  Jim Meyering  <meyering@ascend.com>
85245
85246         * m4/group-member.m4: New file -- extracted from sh-utils'
85247         configure.in.
85248
85249         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85250         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85251
85252 1999-02-06  Jim Meyering  <meyering@ascend.com>
85253
85254         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85255         * m4/fnmatch.m4: Likewise.
85256         * m4/getgroups.m4: Likewise.
85257         * m4/lstat.m4: Likewise.
85258         * m4/malloc.m4: Likewise.
85259         * m4/putenv.m4: Likewise.
85260         * m4/realloc.m4: Likewise.
85261         * m4/regex.m4: Likewise.
85262         * m4/stat.m4: Likewise.
85263         * m4/strftime.m4: Likewise.
85264         Suggestion from Alain Magloire.
85265
85266         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85267         * m4/fnmatch.m4: Likewise.
85268         * m4/getgroups.m4: Likewise.
85269         * m4/getline.m4: Likewise.
85270         * m4/lstat.m4: Likewise.
85271         * m4/malloc.m4: Likewise.
85272         * m4/memcmp.m4: Likewise.
85273         * m4/putenv.m4: Likewise.
85274         * m4/realloc.m4: Likewise.
85275         * m4/regex.m4: Likewise.
85276         * m4/stat.m4: Likewise.
85277         * m4/strftime.m4: Likewise.
85278         Suggestion from Alain Magloire.
85279
85280         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85281         an argument.
85282
85283         * m4/regex.m4: Add a run-time Test for proper operation of
85284         re_compile_pattern.
85285
85286 1999-01-31  Jim Meyering  <meyering@ascend.com>
85287
85288         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85289
85290 1999-01-30  Jim Meyering  <meyering@ascend.com>
85291
85292         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85293
85294         * m4/jm-mktime.m4: Make this a wrapper around the official
85295         AM_FUNC_MKTIME rather than my private copy, now that the official one
85296         is up to date.
85297         * m4/mktime.m4: Remove file.
85298
85299         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85300         * m4/uptime.m4: Likewise.
85301         * m4/uintmax_t.m4: Likewise.
85302
85303 1999-01-28  Jim Meyering  <meyering@ascend.com>
85304
85305         * m4/jm-macros.m4: Use jm_AFS.
85306         * m4/afs.m4: New file (from fileutils' configure.in).
85307
85308         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85309         * m4/chown.m4: Likewise.
85310         * m4/d-ino.m4: Likewise.
85311         * m4/d-type.m4: Likewise.
85312         * m4/fnmatch.m4: Likewise.
85313         * m4/getgroups.m4: Likewise.
85314         * m4/gettext.m4: Likewise.
85315         * m4/jm-mktime.m4: Likewise.
85316         * m4/jm-winsz2.m4: Likewise.
85317         * m4/lcmessage.m4: Likewise.
85318         * m4/ls-mntd-fs.m4: Likewise.
85319         * m4/malloc.m4: Likewise.
85320         * m4/memcmp.m4: Likewise.
85321         * m4/putenv.m4: Likewise.
85322         * m4/realloc.m4: Likewise.
85323         * m4/st_mtim.m4: Likewise.
85324         * m4/strftime.m4: Likewise.
85325
85326 1999-01-16  Jim Meyering  <meyering@ascend.com>
85327
85328         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85329         (ARGMATCH_DIE_DECL): Define.
85330
85331 1999-01-12  Jim Meyering  <meyering@ascend.com>
85332
85333         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85334         Reported by Lars Hecking.
85335
85336 1999-01-10  Jim Meyering  <meyering@ascend.com>
85337
85338         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85339         gross kludge.
85340         * m4/inttypes_h.m4: Likewise.
85341         * m4/lstat.m4: Likewise.
85342         * m4/malloc.m4: Likewise.
85343         * m4/readdir.m4: Likewise.
85344         * m4/realloc.m4: Likewise.
85345         * m4/st_dm_mode.m4: Likewise.
85346         * m4/stat.m4: Likewise.
85347         * m4/utimbuf.m4: Likewise.
85348         * m4/utimes.m4: Likewise.
85349
85350         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85351         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85352         comments in config.h.in are meaningful.
85353
85354         * m4/jm-macros.m4: Require autoconf-2.13 here.
85355
85356         * m4/regex.m4: By default, don't use the included regex.c on systems
85357         with glibc 2.  Suggestion from Uli Drepper.
85358
85359 1999-01-02  Jim Meyering  <meyering@ascend.com>
85360
85361         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85362
85363 1998-12-18  Jim Meyering  <meyering@ascend.com>
85364
85365         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85366         Based on a suggestion from Lars Hecking.
85367
85368 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85369
85370         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85371
85372 1998-11-16  Jim Meyering  <meyering@ascend.com>
85373
85374         * m4/lfs.m4: Double-quote the `uname...` expression.
85375
85376 1998-11-14  Jim Meyering  <meyering@ascend.com>
85377
85378         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85379         * m4/stat.m4: Likewise.
85380
85381 1998-11-03  Jim Meyering  <meyering@ascend.com>
85382
85383         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85384         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85385
85386 1998-10-18  Jim Meyering  <meyering@ascend.com>
85387
85388         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85389
85390 1998-10-17  Jim Meyering  <meyering@ascend.com>
85391
85392         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85393         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85394         calls for those previously hard-coded headers.  Instead, take a new
85395         parameter.
85396         (jm_CHECK_DECLARATIONS): Reflect interface change.
85397         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85398         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85399
85400         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85401
85402 1998-10-14  Jim Meyering  <meyering@ascend.com>
85403
85404         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85405         instead of "TZ=America/Vancouver".  From Paul Eggert.
85406
85407 1998-10-11  Jim Meyering  <meyering@ascend.com>
85408
85409         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85410         This adds a test for a recently added compatibility fix for mktime.c.
85411         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85412
85413 1998-09-27  Jim Meyering  <meyering@ascend.com>
85414
85415         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85416
85417         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85418         ../configure.in, including a change from Gordon Matzigkeit to allow
85419         cross-compiling for the Hurd.
85420
85421         * m4/glibc.m4: New file/macro to test for the GNU C Library
85422         versions 1 and 2.  From Gordon Matzigkeit.
85423         Indent.
85424
85425 1998-09-21  Jim Meyering  <meyering@ascend.com>
85426
85427         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85428
85429 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85430
85431         Port nanosecond-resolution times to UnixWare 2.1.2 and
85432         pedantic Solaris 2.6.
85433
85434         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85435         AC_STRUCT_ST_MTIM.
85436         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85437         Generate name of ns member, instead of just 1 or undef.
85438         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85439
85440 1998-08-15  Jim Meyering  <meyering@ascend.com>
85441
85442         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85443         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85444         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85445         instead of jm_TYPE_SSIZE_T.
85446
85447 1998-08-12  Jim Meyering  <meyering@ascend.com>
85448
85449         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85450
85451 1998-08-02  Jim Meyering  <meyering@ascend.com>
85452
85453         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85454         in acconfig.h manually.
85455
85456 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85457
85458         * m4/st_mtim.m4: New file.
85459
85460 1998-07-28  Jim Meyering  <meyering@ascend.com>
85461
85462         * m4/utimes.m4: Undef stat.
85463
85464 1998-07-25  Jim Meyering  <meyering@ascend.com>
85465
85466         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85467         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85468
85469 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85470
85471         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85472         uid and gid actually remain unchanged.
85473
85474 1998-07-07  Jim Meyering  <meyering@ascend.com>
85475
85476         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85477
85478 1998-07-04  Jim Meyering  <meyering@ascend.com>
85479
85480         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85481         to prove that this macro can be used in packages without regex.c.
85482
85483 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85484
85485         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85486         is to be used.
85487
85488 1998-07-03  Jim Meyering  <meyering@ascend.com>
85489
85490         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85491
85492         * m4/gettext.m4: New file -- from gettext-0.10.35.
85493         * m4/lcmessage.m4: Likewise.
85494         * m4/progtest.m4: Likewise.
85495
85496         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85497         * m4/jm-macros.m4: Require the new macro.
85498
85499 1998-06-29  Jim Meyering  <meyering@ascend.com>
85500
85501         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85502         for the definition of NGROUPS (used in a system header included
85503         by sys/mount.h).
85504
85505 1998-06-28  Jim Meyering  <meyering@ascend.com>
85506
85507         * m4/ls-mntd-fs.m4: New file.
85508         * m4/fstypename.m4: New file.
85509
85510         * m4/jm-macros.m4: Require the new macro.
85511         * m4/jm-glibc-io.m4: New file.
85512
85513 1998-05-19  Jim Meyering  <meyering@ascend.com>
85514
85515         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85516         * m4/lchown.m4: New file.
85517
85518         * m4/Makefile.am.in: New file.
85519         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85520
85521 1998-05-14  Jim Meyering  <meyering@ascend.com>
85522
85523         * m4/Makefile.am (EXTRA_DIST): Add them.
85524         * m4/jm-macros.m4: New file.
85525         * m4/utimbuf.m4: New file.
85526
85527 1998-05-12  Jim Meyering  <meyering@ascend.com>
85528
85529         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85530
85531 1998-05-11  Jim Meyering  <meyering@ascend.com>
85532
85533         * m4/isc-posix.m4: New file.
85534
85535 1998-05-10  Jim Meyering  <meyering@ascend.com>
85536
85537         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85538
85539 1998-05-09  Jim Meyering  <meyering@ascend.com>
85540
85541         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85542         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85543         with automake.
85544
85545         * m4/ssize_t.m4: New file.
85546         * m4/mktime.m4: Remove file -- the new automake has this now.
85547
85548 1998-04-26  Jim Meyering  <meyering@ascend.com>
85549
85550         * m4/assert.m4: New file.
85551         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85552
85553 1998-04-05  Jim Meyering  <meyering@ascend.com>
85554
85555         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85556         (jm_PREREQ): Use it here.
85557
85558 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85559
85560         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85561         in acconfig.h.
85562
85563 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85564
85565         * m4/prereq.m4: New file.
85566         * m4/error.m4: New file.
85567         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85568
85569 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85570
85571         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85572         cache-check for the same variable -- that defeated the purpose of
85573         the test; the test program was never run.  This was a problem only
85574         on systems with losing getline functions -- HP-UX 10.20 is one.
85575         Reported by Bjorn Helgaas.
85576
85577 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85578
85579         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85580
85581 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85582
85583         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85584
85585         * m4/const.m4: New file.  Use an initializer in this declaration
85586         typedef int charset[2]; const charset x;
85587         Reported by Bob Glickstein.
85588
85589 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85590
85591         * m4/chown.m4: Fix reversed types on -1 args to chown.
85592         From Kaveh Ghazi.
85593
85594 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85595
85596         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85597         Add lseek and memchr.
85598
85599         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85600         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85601         have a 20-character limit on names.
85602
85603 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85604
85605         * m4/inttypes_h.m4: New file.
85606         * m4/uintmax_t.m4: New file.
85607         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85608
85609
85610         -----
85611
85612         Local Variables:
85613         coding: utf-8
85614         End:
85615
85616         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85617
85618         Copying and distribution of this file, with or without
85619         modification, are permitted provided the copyright notice
85620         and this notice are preserved.